Upgrading from 2.7 to 3.x
I'm fairly new to Python I have version 2.7 installed on my computer. However my professor wants us all to use the latest version of Python. How do I go about upgrading? Do I just install the new version? Do I have to do anything with the old version already installed? -- http://mail.python.org/mailman/listinfo/python-list
Re: Upgrading from 2.7 to 3.x
On Thu 26 Apr 2012 07:37:20a, Kiuhnm wrote in news:4f993382$0$1378$4fafb...@reader2.news.tin.it: > Python 2.7.3 and 3.2.3 (the latest versions) can coexist. Just install > Python 3.2.3 in a different directory (python32, for instance). > > Python has been "forked" into 2.x and 3.x because some breaking changes > ought to be made to the language in order to improve it and clean it up. Okay, thanks. So how do I tell my IDE (Eclipse with PyDev) which version of Python I want to use? -- http://mail.python.org/mailman/listinfo/python-list
Trouble splitting strings with consecutive delimiters
I'm using regular expressions to split a string using multiple delimiters. But if two or more of my delimiters occur next to each other in the string, it puts an empty string in the resulting list. For example: re.split(':|;|px', "width:150px;height:50px;float:right") Results in ['width', '150', '', 'height', '50', '', 'float', 'right'] Is there any way to avoid getting '' in my list without adding px; as a delimiter? -- http://mail.python.org/mailman/listinfo/python-list