with as a reserved word
kyosohma at gmail.com
kyosohma at gmail.com
Mon Jun 11 11:07:47 EDT 2007
On Jun 11, 10:03 am, BBands <bba... at gmail.com> wrote:
> I gather that 'with' is on its way to becoming a reserved word. Is
> this something that will break?
>
> import Gnuplot
> gp = Gnuplot.Gnuplot(debug=1)
> data = Gnuplot.Data([1,2,3,4,3,2,3,4,3,2,1], with='linespoints')
> gp.plot(data)
>
> >>> <module1>:3: Warning: 'with' will become a reserved keyword in Python 2.6
>
> http://www.gnuplot.info/http://gnuplot-py.sourceforge.net/
>
> This was run by PyScripter 1.8.7.1 with Python 2.5.
>
> jab
Looks that way since you can assign anything to 'for' or 'if' or other
reserved words.
Mike
More information about the Python-list
mailing list