[issue7441] Py3.1: Fatal Python Error: Py_Initialize...unknown encoding: chcp 65001.

2009-12-05 Thread Lie Ryan
New submission from Lie Ryan lie.1...@gmail.com: 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()' Fatal Python error

[issue7166] IDLE (python 3.1.1) syntax coloring for b'bytestring' and u'unicode' string literal

2009-10-18 Thread Lie Ryan
Changes by Lie Ryan lie.1...@gmail.com: -- versions: +Python 2.7, Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7166

[issue7166] IDLE (python 3.1.1) syntax coloring for b'bytestring' and u'unicode' string literal

2009-10-18 Thread Lie Ryan
New submission from Lie Ryan lie.1...@gmail.com: 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/idlelib

[issue6332] typo on man page warning control

2009-06-23 Thread Lie Ryan
New submission from Lie Ryan lie.1...@gmail.com: 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

[issue6332] typo on man page warning control

2009-06-23 Thread Lie Ryan
Lie Ryan lie.1...@gmail.com 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

[issue6141] missing first argument on subprocess.Popen w/ executable

2009-05-29 Thread Lie Ryan
New submission from Lie Ryan lie.1...@gmail.com: Following from http://comments.gmane.org/gmane.comp.python.tutor/55576 import subprocess subprocess.Popen(['a', 'b', 'c', 'd'], executable='echo') subprocess.Popen object at 0x7fdf7bb2bd50 b c d instead of the (what I) expected result a b c d

[issue6021] itertools.grouper

2009-05-14 Thread Lie Ryan
New submission from Lie Ryan lie.1...@gmail.com: 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

[issue6021] itertools.grouper

2009-05-14 Thread Lie Ryan
Lie Ryan lie.1...@gmail.com 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

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Lie Ryan
Lie Ryan lie.1...@gmail.com 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 python

[issue2312] Update PEP 3135 (super())

2009-03-11 Thread Lie Ryan
Lie Ryan lie.1...@gmail.com added the comment: Here is the unified diff. -- keywords: +patch Added file: http://bugs.python.org/file13305/pep-3135.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2312

[issue5205] String Formatting with namedtuple

2009-02-10 Thread Lie Ryan
New submission from Lie Ryan lie.1...@gmail.com: 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)s, two = %(y)s' % nt

[issue5205] String Formatting with namedtuple

2009-02-10 Thread Lie Ryan
Changes by Lie Ryan lie.1...@gmail.com: -- components: +Interpreter Core versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5205