[Python-Dev] [Python-3000] Warning for 2.6 and greater
"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 items_is_iter
>
> be the same as:
>
> __py3k_compat_items_is_iter__ = 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