6 ms·
There is a bug on the front page: >>> print 'Hello, I'm Python!' File "<stdin>", line 1 print 'Hello, I'm Python!' ^
by piokuc 13y ago
There is a bug on the front page:
>>> print 'Hello, I'm Python!'
File "<stdin>", line 1
print 'Hello, I'm Python!'
^
SyntaxError: invalid syntax
>>>
- frankwiles 13y agoNice catch! Fixed and will go live in a bit.
- ionelm 13y agoCan you fix this too http://awesomescreenshot.com/0432do7d8f http://awesomescreenshot.com/0432do7d8f ?
- jonalmeida 13y agoThe mouse over CSS is a flattened look which is (IMO) very ugly with the embossed default.
- est 13y agoWhy not support both 2.x and 3.x syntax? print ("Hello, I'm Python!")
- mkesper 13y agoPlease no, this is confusing.
- rbanffy 13y agoI'm not really happy with the loop example. There is a sum function precisely for that.
- timw6n 13y ago...and a python 2 print keyword instead of the python 3 print function.
- lelandbatey 13y agoThere are a bunch of these. There's the Python 2 specific string formatting as well: # Input, assignment >>> name = input('What is your name?\n') >>> print 'Hi, %s.' % name Why so Python 2 specific? Why not Python 3? : (
- koenigdavidmj 13y agoHowever, they also used an example showing that integer division returns a float, which is a behaviour specific to Python 3.
- cma 13y agoNot completely, this has been available in python 2 for a long time: >>> from __future__ import division
- alcari 13y ago%-based string interpolation still works in python 3.
- lelandbatey 13y agoHuh, you're right. I could have sworn it was taken out in favor of '.format'; I wonder where I got that idea from...?
- 13y ago
- jnoller 13y agoBug me please! I linked to the repo everywhere else :)