[Python-Dev] [Python-3000] Warning for 2.6 and greater (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Sat Jan 13 16:50:56 CET 2007


glyph at divmod.com schrieb:

It would certainly be possible to have:

from future import itemsisiter be the same as: py3kcompatitemsisiter = True and have the 2.x series' items() method check the globals() of the calling scope to identify the return value of items() in that particular context.

Why do you think that this would be that certainly possible? I cannot imagine an efficient implementation.

Regards, Martin



More information about the Python-Dev mailing list