[issue5127] UnicodeEncodeError - I can't even see license

2009-02-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: There were non-ascii characters in the Windows license file. This was corrected with r67860. I believe that chr(0x1) and chr(0x11000) should have the opposite behavior. This other problem is because on a narrow unicode build,

[issue1875] if 0: return not raising SyntaxError

2009-02-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Here is a patch that properly raises SyntaxError when 'return' or 'yield' statements appear outside a function. I did not bother to update the (deprecated) compiler package: it seems to be completely foreign to this kind of checks...

[issue5131] pprint doesn't know how to print a set or a defaultdict

2009-02-02 Thread Nick Craig-Wood
New submission from Nick Craig-Wood n...@craig-wood.com: I noticed this the other day when debugging a program that neither set() nor defaultdict() pprint() properly Same under 3.1 and 2.5 (Not tried 2.6/2.7 but I assume it is the same) pprint(set(range(100))) set([0, 1, 2, 3, 4, 5, 6, 7, 8,

[issue1815] Distutils add ability to skip build [Feature Request]

2009-02-02 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: right, nothing to fix here, the feature is available -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1815

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-02 Thread Mark Hammond
Mark Hammond mhamm...@users.sourceforge.net added the comment: Python shouldn't (IMHO) crahs, even if you give bogus input to python functions. But it doesn't actually crash does it? It throws an assertion dialog, which sucks when the machine is unattended - which is why it is a problem

[issue4879] Allow buffering for HTTPResponse

2009-02-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This causes failures in test_urllib2net. The fix is easy: a handful of -self.assertTrue(u.fp._sock.gettimeout() is None) +self.assertTrue(u.fp.raw._sock.gettimeout() is None) But doesn't this show a

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: - low stage: - needs patch type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5094 ___

[issue5119] wide character parameter handling in ctypes

2009-02-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: ctypes cannot guess the function signature, and does not know if the function expects strings or unicodes. In your examples, ctypes.windll.user32.MessageBoxW(handle, text, caption, type) will accept everything you pass, and create

[issue1875] if 0: return not raising SyntaxError

2009-02-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You should remove the error logic compile.c for return and yield in function calls. The problem with this approach is that every SyntaxError generated during bytecode compilation must be moved to earlier. For example, I can still use

[issue5084] unpickling does not intern attribute names

2009-02-02 Thread Collin Winter
Changes by Collin Winter coll...@gmail.com: -- nosy: +collinwinter, jyasskin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5084 ___ ___

[issue5137] SystemError when __len__ returns a non-number

2009-02-02 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: len(obj) is not happy when obj.__len__() returns a non-number. -- files: crasher_len.py messages: 81024 nosy: rhettinger priority: release blocker severity: normal status: open title: SystemError when __len__

[issue5138] File Reload for IDLE

2009-02-02 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: IDLE would be *much* easier to use in conjunction with version control if there were a reload option that did the equivalent of (close current with no save, followed by open current file). -- assignee: kbk

[issue5139] Add combinatoric counting functions to the math module.

2009-02-02 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: To parallel the functions in itertools, add: math.combinations(n,r) -- n! / r! / (n-r)! when 0 = r = n or zero when r n. math.permutations(n,r) -- n! / (n-r)! when 0 = r = n or zero when r n.

[issue5140] Some Built-in Functions entries in Library Manual are missing Permalinks

2009-02-02 Thread Robert Yodlowski
New submission from Robert Yodlowski rbt...@gmail.com: In http://docs.python.org/3.0/library/functions.html these function entries seem to be missing Permalinks. dict() frozenset() memoryview() set() Hope this helps. The Permalinks are a great idea. I hope you add lots more. ...Bob

[issue4124] Patch for adding default to itemgetter and attrgetter

2009-02-02 Thread Miki Tebeka
Miki Tebeka miki.teb...@gmail.com added the comment: Hmmm, too much time has passed and my 1bit memory has overflowed since :) IIRC it has to do with the fact that not all nodes in BeautifulSoup has a name attribute. I wanted to count how may tr there were, so len(filter(lambda n: n == tr,

[issue2459] speedup for / while / if with better bytecode

2009-02-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I would like to see this go forward. It looks promising. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2459 ___

[issue4528] test_httpservers consistently fails - OSError: [Errno 13] Permission denied (e.g. on OS X using tarball, but not svn tag r30)

2009-02-02 Thread Erkan Yilmaz
Changes by Erkan Yilmaz erka...@gmail.com: -- title: test_httpservers consistently fails on OS X using tarball, but not svn tag r30 - test_httpservers consistently fails - OSError: [Errno 13] Permission denied (e.g. on OS X using tarball, but not svn tag r30)

<    1   2   3   4