[issue2263] struct.pack() + numpy int raises SystemError

2008-03-10 Thread Just van Rossum
New submission from Just van Rossum [EMAIL PROTECTED]: struct.pack() raises SystemError when fed a numpy integer in some cases. The following was run on MacOSX 10.4, little endian (I can only reproduce the error if I specify big endian for the struct format). Not sure if this could be a numpy

[issue2122] mmap.flush does not check for errors on windows

2008-03-10 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: attached is a patch. I hope it is ok to change the semantics a bit. They were very strange: - on unix it raises an exception on errors. otherwise it always returns 0. - on windows it returns non-zero on success, and returns zero on errors. Now,

[issue2240] setitimer, getitimer wrapper

2008-03-10 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: Okay, the patch applies just fine (besides configure, which must be regenerated). Running the tests however consumes 3 gb of memory. The range functions must be changed to xrange on trunk. I've also changed the docs a bit (new in 2.6). I didn't

[issue2240] setitimer, getitimer wrapper

2008-03-10 Thread Ralf Schmitt
Changes by Ralf Schmitt [EMAIL PROTECTED]: -- versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2240 __ ___ Python-bugs-list mailing list

[issue2264] empty specifier for float.__format__ does not always print at least one decimal digit

2008-03-10 Thread Eric Smith
New submission from Eric Smith [EMAIL PROTECTED]: PEP 3101 specifies that the empty format presentation type for float will always print at least one digit after the decimal point, but it does not do that if the number is output with an exponent: works: format(3.0, '') '3.0' fails:

[issue1751245] Popen pipe file descriptor leak on OSError in init

2008-03-10 Thread Ralf Schmitt
Changes by Ralf Schmitt [EMAIL PROTECTED]: -- nosy: +schmir type: - resource usage _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1751245 _ ___ Python-bugs-list

[issue2262] Helping the compiler avoid memory references in PyEval_EvalFrameEx

2008-03-10 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Jeffrey ... but I'm really surprised to see the same tests affected in Jeffrey opposite directions. Is that common with pybench and compiler Jeffrey changes? I've no idea. Marc-André Lemburg would be the person with the most insight

[issue1475] test_popen fails when the directory contains a space

2008-03-10 Thread Joseph Armbruster
Joseph Armbruster [EMAIL PROTECTED] added the comment: Should this issue be linked to 1559298? It appears to be the same issue but was opened up earlier and is referencing a different version. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1475

[issue1451466] reading very large files

2008-03-10 Thread Joseph Armbruster
Joseph Armbruster [EMAIL PROTECTED] added the comment: Note: If this issue is related to 1672853, I ran through the test code provided in the issue recently and it appeared to pass for both the trunk and 2.5 maint. _ Tracker [EMAIL PROTECTED]

[issue2265] A line in the second example of 7.3.5 Examples in Python Library Reference seems to be incorrect.

2008-03-10 Thread Kazuyoshi Furutaka
New submission from Kazuyoshi Furutaka [EMAIL PROTECTED]: The line destination.add(MHMessage(message)) should read destination.add(mailbox.MHMessage(message)) -- assignee: georg.brandl components: Documentation messages: 63442 nosy: furutaka, georg.brandl severity: minor status:

[issue2128] sys.argv is wrong for unicode strings

2008-03-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Here is a patch that redoes the entire argv handling, in terms of wchar_t. As a side effect, it also changes the sys.path handling to use wchar_t. -- keywords: +patch Added file: http://bugs.python.org/file9647/wchar.diff

[issue2262] Helping the compiler avoid memory references in PyEval_EvalFrameEx

2008-03-10 Thread Jeffrey Yasskin
Changes by Jeffrey Yasskin [EMAIL PROTECTED]: Added file: http://bugs.python.org/file9648/elim_mem_refs.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2262 __ ___

[issue2262] Helping the compiler avoid memory references in PyEval_EvalFrameEx

2008-03-10 Thread Jeffrey Yasskin
Changes by Jeffrey Yasskin [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9648/elim_mem_refs.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2262 __ ___

[issue2262] Helping the compiler avoid memory references in PyEval_EvalFrameEx

2008-03-10 Thread Jeffrey Yasskin
Changes by Jeffrey Yasskin [EMAIL PROTECTED]: Added file: http://bugs.python.org/file9649/elim_mem_refs.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2262 __ ___

[issue1275] bsddb closing a DB object before all DBCursors using it are closed crashes

2008-03-10 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: This issue is solved in pybsddb 4.6.1, available in pypi. Python bsddb3 module must be updated and this issue closed as fixed. -- nosy: +jcea __ Tracker [EMAIL PROTECTED]

[issue2266] Missing documentation about old/new-style classes

2008-03-10 Thread Yinon Ehrlich
New submission from Yinon Ehrlich [EMAIL PROTECTED]: http://docs.python.org/tut/node11.html talks about old/new style classes. But there is no any explanation what it is. The same for http://docs.python.org/ref/node33.html My suggestion: refer to

[issue2266] Missing documentation about old/new-style classes

2008-03-10 Thread Yinon Ehrlich
Changes by Yinon Ehrlich [EMAIL PROTECTED]: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2266 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1621] Do not assume signed integer overflow behavior

2008-03-10 Thread jan matejek
Changes by jan matejek [EMAIL PROTECTED]: -- nosy: +matejcik __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1621 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue834461] simple bsddb interface potential for deadlock with threads

2008-03-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión [EMAIL PROTECTED]: -- nosy: +jcea Tracker [EMAIL PROTECTED] http://bugs.python.org/issue834461 ___ Python-bugs-list mailing list

[issue1215023] bsddb dbobj.DB.associate doesn't accept dbobj.DB param

2008-03-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión [EMAIL PROTECTED]: -- nosy: +jcea _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1215023 _ ___ Python-bugs-list mailing list

[issue1010645] bsddb3 testsuite failure when running more than one time

2008-03-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión [EMAIL PROTECTED]: -- nosy: +jcea _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1010645 _ ___ Python-bugs-list mailing list

[issue1149447] bssdb wrapper does not export some low-level functions

2008-03-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión [EMAIL PROTECTED]: -- nosy: +jcea _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1149447 _ ___ Python-bugs-list mailing list

[issue2267] datetime.datetime operator methods are not subclass-friendly

2008-03-10 Thread Paul Komkoff
New submission from Paul Komkoff [EMAIL PROTECTED]: The datetime.datetime class overrides some arithmetic operations for it to be able to add or subtract timedeltas. However, the result of A + B operation, where A is instance of a subclass of datetime and B is timedelta instance will be always

[issue2268] Fold slice constants

2008-03-10 Thread Alexander Belopolsky
New submission from Alexander Belopolsky [EMAIL PROTECTED]: I am attaching a proof-of-concept patch which would optimize bytecode generated from constant slices as follows: Before patch: dis(lambda:x[1:2:3]) 1 0 LOAD_GLOBAL 0 (x) 3 LOAD_CONST

[issue2268] Fold slice constants

2008-03-10 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone [EMAIL PROTECTED]: -- nosy: -exarkun __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2268 __ ___ Python-bugs-list mailing list

[issue2269] Problem reporting non-keyword arg after keyword arg syntax error

2008-03-10 Thread Isaac Morland
New submission from Isaac Morland [EMAIL PROTECTED]: $ cat bug_fine.py if True: max (a='a', 'b') #elif True: # pass else: pass $ python bug_fine.py File bug_fine.py, line 2 max (a='a', 'b') SyntaxError: non-keyword arg after keyword arg $ cat bug_show.py if True:

[issue2269] Problem reporting non-keyword arg after keyword arg syntax error

2008-03-10 Thread Isaac Morland
Isaac Morland [EMAIL PROTECTED] added the comment: I should add that the full version information is: Python 2.5 (r25:51908, Aug 15 2007, 11:38:03) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Also, in my actual code (a much larger file, in a project using ll.xist and other

[issue2270] Typo on 8.6.2.5 Document Objects page

2008-03-10 Thread T.G.M.
New submission from T.G.M. [EMAIL PROTECTED]: The Python 2.5.2 online docs, http://docs.python.org/lib/dom-document-objects.html; (http://docs.python.org/lib/dom-document-objects.html) has the following 2nd sentence: Remeber that it inherits properties from Node. Remeber should be Remember.

[issue2269] Problem reporting non-keyword arg after keyword arg syntax error

2008-03-10 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: Already fixed in the trunk. Thanks for the report! -- nosy: +facundobatista resolution: - out of date status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2269

[issue2267] datetime.datetime operator methods are not subclass-friendly

2008-03-10 Thread Alexander Belopolsky
Alexander Belopolsky [EMAIL PROTECTED] added the comment: This is trivial to implement (see attached) and IMHO is a good idea. The next question, however is whether similar changes should be made to timedelta arithmetics. Timedelta case is not so clearcut because of the usual dilemma of what

[issue2267] datetime.datetime operator methods are not subclass-friendly

2008-03-10 Thread Paul Komkoff
Paul Komkoff [EMAIL PROTECTED] added the comment: I just checked the astimezone method - it also does this. As with timedelta... well, it's not critical for me now but it worth thinking about :) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2267

[issue2267] datetime.datetime operator methods are not subclass-friendly

2008-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Recently, the similar issue1562 Decimal can't be subclassed useful was rejected. In the discussion I found a reference to a former post, which precisely deals with datetime and timedelta:

[issue2271] msi installs to the incorrect location (C drive)

2008-03-10 Thread Ross
New submission from Ross [EMAIL PROTECTED]: When installing Python using any of the following stand-alone installers: python-2.5.2.amd64.msi python-2.5.1.amd64.msi python-2.5.2.msi all the files and folders are installed in C:\ instead of C:\Python25\ as specified in the installer. Creating

[issue2267] datetime.datetime operator methods are not subclass-friendly

2008-03-10 Thread Alexander Belopolsky
subclass' tp_alloc. Existing code already does this in some cases. For example, class d(datetime): pass ... d.strptime('20080310', '%Y%m%d') d(2008, 3, 10, 0, 0) d.now() d(2008, 3, 10, 20, 27, 6, 303147) I think date/datetime present a particularly compelling case for departing from the general

[issue1858] Make .pypirc handle multiple servers

2008-03-10 Thread Tarek Ziadé
Tarek Ziadé [EMAIL PROTECTED] added the comment: patch with more tests and explanations... for the -r option, the standard call without the change would be: $ python setup.py register -r pypi sdist upload -r pypi which is very redundant. That's why config.py looks into args. To avoid

[issue2271] msi installs to the incorrect location (C drive)

2008-03-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Please run msiexec /i msi /l*v python.log Compress the log, and attach it to this report. -- nosy: +loewis __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2271