New submission from Lie Ryan :
I've been experimenting with namedtuple, it seems that string formatting
doesn't recognize namedtuple as mapping.
from collections import namedtuple
Nt = namedtuple('Nt', ['x', 'y'])
nt = Nt(12, 32)
print 'one = %(x)
Changes by Lie Ryan :
--
components: +Interpreter Core
versions: +Python 2.6
___
Python tracker
<http://bugs.python.org/issue5205>
___
___
Python-bugs-list mailin
Changes by Lie Ryan :
--
versions: +Python 2.7, Python 3.2 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue7166>
___
___
Python-bugs-list mailin
New submission from Lie Ryan :
On python trunk and 3.2 IDLE, the b in b'' is not green colored.
On python 3.1 IDLE, the u in u'' is still colored, despite a SyntaxError.
(sorry, I don't have diff installed on my Windows machine)
Change on python trunk:
/Lib/idle
New submission from Lie Ryan :
maybe related to #6501
Vista 32-bit SP1, Python 3.1:
"""
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
D:\>chcp 65001
Active code page: 65001
D:\>python -c 'print("")'
Lie Ryan added the comment:
The possible new PEP 3135, however I'm not that familiar with the
implementation of the new super, thus please review whether it is "right
w.r.t. reality". I'm writing only from whatever I can determine from
observing the behavior of super in py
Lie Ryan added the comment:
Here is the unified diff.
--
keywords: +patch
Added file: http://bugs.python.org/file13305/pep-3135.diff
___
Python tracker
<http://bugs.python.org/issue2
New submission from Lie Ryan :
An itertool to Group-by-n
>>> lst = range(15)
>>> itertools.grouper(lst, 5)
[[0, 1, 2, 3, 4], [5, 6, 7, 8, 9], [10, 11, 12, 13, 14]]
This function is often asked in several c.l.py discussions, such as these:
http://comments.gmane.org/gmane.c
Lie Ryan added the comment:
All implementations relying on zip or zip_longest breaks with infinite
iterable (e.g. itertools.count()).
And it is not impossible to define a clean, flexible, and familiar API
which will be similar to open()'s mode or unicode error mode. The modes
would be &
New submission from Lie Ryan :
Following from http://comments.gmane.org/gmane.comp.python.tutor/55576
>>> import subprocess
>>> subprocess.Popen(['a', 'b', 'c', 'd'], executable='echo')
b c d
instead of the (what I) exp
New submission from Lie Ryan :
A minor typo on the man page
> -W argument
> ...
> such as inside a loop); module to print each warning *only only*
> ...
--
assignee: georg.brandl
components: Documentation
files: onlyonly.diff
keywords: patch
messages: 89645
nosy: georg.bra
Lie Ryan added the comment:
Bored, I grepped the trunk for a few more stuffs that has similar
consecutive duplicate typos. The dup.diff patch corrects these typos.
Not opening a new issue since all of them are minor.
--
Added file: http://bugs.python.org/file14350/dup.diff
12 matches
Mail list logo