Fredrik Lundh wrote: > -1 on static function variables implemented as > attributes on function or method objects. > > def eff(): > "eff" > print "eff", eff.__doc__ > > def bot(): > "bot" > print "bot", bot.__doc__ > > eff() > bot() > > eff, bot = bot, eff > > eff() > bot() > > # or did your latest patch solve this little dilemma? > # if so, -1 on your patch ;-) To belabor the obvious (existing Python allows obsfuction), I present: class eff: "eff" def __call__(self): print "eff", eff.__doc__ class bot: "bot" def __call__(self): print "bot", bot.__doc__ e = eff() b = bot() e() b() eff, bot = bot, eff e = eff() b = bot() e() b() There's nothing new here. Why does allowing the ability to obsfucate suddenly warrant a -1? - Gordon
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4