[Python-Dev] __qualname__ exposed as a local variable: standard?

2016-07-07 Thread Carlos Pita
Hi all, I noticed __qualname__ is exposed by locals() while defining a class. This is handy but I'm not sure about its status: is it standard or just an artifact of the current implementation? (btw, the pycodestyle linter -former pep8- rejects its usage). I was unable to find any reference to this

[Python-Dev] Idea: __length_hint__ wrapper in itertools

2015-02-20 Thread Carlos Pita
Hi all, python now supports the __length_hint__ method but not for every use case that could potentially benefit from it, v.g.: 1) Some common builtins like map don't set the hint. 2) Generators. 3) Application specific hints that, by definition, can't be predicted by a general strategy. I know