[Python-checkins] r42683 - peps/trunk/pep-0343.txt
Jim Jewett
jimjjewett at gmail.com
Tue Feb 28 22:42:19 CET 2006
Which of these will trigger a warning in 2.5?
Which of these will fail in 2.6?
from other import name1 as name2 # I assume this works...
from other import as as name2 # ?
from other import name1 as as # ?
from as import name1 # ?
import as # ?
On 2/28/06, neal.norwitz <python-checkins at python.org> wrote:
> Author: neal.norwitz
> Date: Tue Feb 28 22:13:18 2006
> New Revision: 42683
>
> Modified:
> peps/trunk/pep-0343.txt
> Log:
> Minor detail about the warning
>
> Modified: peps/trunk/pep-0343.txt
> ==============================================================================
> --- peps/trunk/pep-0343.txt (original)
> +++ peps/trunk/pep-0343.txt Tue Feb 28 22:13:18 2006
> @@ -315,7 +315,7 @@
>
> This will make both 'with' and 'as' keywords. Without the future
> statement, using 'with' or 'as' as an identifier will cause a
> - DeprecationWarning to be issued.
> + Warning to be issued to stderr.
>
> In Python 2.6, the new syntax will always be recognized; 'with'
> and 'as' are always keywords.
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
More information about the Python-checkins
mailing list