[PATCHES] unshadow python methods
Volker Lendecke
Volker.Lendecke at SerNet.DE
Thu Oct 25 14:16:58 UTC 2018
On Thu, Oct 25, 2018 at 10:38:01PM +1300, Douglas Bagnall via samba-technical wrote:
> In Python, if you go:
>
> def foo(x):
> return x * 2
>
> def foo(x):
> return x * 3
>
> the first definition will be silently ignored.
>
> We do this in a few places.
>
> CI: https://gitlab.com/samba-team/devel/samba/pipelines/34239680
> (though if you look closely you will see I have split the first patch
> there in two).
Is there a lint-style checker for this? I'd imagine that this is
pretty hard to spot in larger files.
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
More information about the samba-technical
mailing list