Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Fixed in r83809 and r83810.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4570
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +mdcowles
priority: - normal
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4570
___
Changes by Kelda kel...@gmail.com:
Removed file: http://bugs.python.org/file16790/datastructures.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4570
___
Kelda kel...@gmail.com added the comment:
Replaced unused variable assignment with a call to set() for illustrative
purposes.
--
keywords: +patch
nosy: +autometa
Added file: http://bugs.python.org/file16790/datastructures.diff
___
Python tracker
John Marter jmar...@gmail.com added the comment:
You may want to add another space before the comment, otherwise it will be the
only one not aligned with the others.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4570
Shashwat Anand anand.shash...@gmail.com added the comment:
I guess giving fruit, the set of unique fruit a different name makes it more
clear. Comments alignment fixed.
basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
print(basket)
{'orange', 'bananna', 'pear', 'apple'}
Kelda kel...@gmail.com added the comment:
I think this change fits well with the rest of the example without having to
rework things. Spacing fixed.
--
Added file: http://bugs.python.org/file16795/datastructures.diff
___
Python tracker
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I'll get to this soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4570
___
John Marter jmar...@gmail.com added the comment:
I see that the spelling of banana has been fixed but what is the purpose of
assigning fruit and then immediately reassigning it another value without even
looking at the first assignment?
fruit = ['apple', 'orange', 'apple', 'pear', 'orange',
Florent Xicluna la...@yahoo.fr added the comment:
Confirmed in trunk and 3.1
--
nosy: +flox
resolution: fixed -
stage: - needs patch
status: closed - open
versions: +Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: georg.brandl - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4570
___
New submission from John Marter [EMAIL PROTECTED]:
On http://docs.python.org/3.0/tutorial/datastructures.html#sets there is
the following section in the section on sets
basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
print(basket)
{'orange', 'bananna', 'pear', 'apple'}
John Marter [EMAIL PROTECTED] added the comment:
Also, I see banana is misspelled on the first output line (line 3).
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4570
___
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Fixed r67624.
--
nosy: +rhettinger
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4570
___
14 matches
Mail list logo