On Mar 20, 2013 10:49 p.m., "xDog Walker" <thud...@gmail.com> wrote: > > On Wednesday 2013 March 20 13:39, Robert Sjoblom wrote: > > A word of advice: next is a keyword in python > > ~/Packages/Python/Notable-0.1.5b> python > Python 2.5 (r25:51908, May 25 2007, 16:14:04) > [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import keyword > >>> keyword.iskeyword('next') > False > >>> > 14:44 Wed 2013 Mar 20 > ~/Packages/Python/Notable-0.1.5b> python2.7 > Python 2.7.2 (default, Oct 10 2011, 10:47:36) > [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import keyword > >>> keyword.iskeyword('next') > False > >>> > 14:44 Wed 2013 Mar 20 > ~/Packages/Python/Notable-0.1.5b> python3.3 > Python 3.3.0 (default, Sep 30 2012, 09:02:56) > [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import keyword > >>> keyword.iskeyword('next') > False > >>> > > -- > Yonder nor sorghum stenches shut ladle gulls stopper torque wet > strainers. Fine, it's a method, my bad.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor