[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-08-08 Thread Andrew Dalke
New submission from Andrew Dalke <[EMAIL PROTECTED]>: I wrote a buggy PNG parser which ended up doing several file.read(large value). It causes a MemoryError, which was strange because the file was only a few KB long. I tracked it down to the implementation of read(). When given a size hint

[issue3530] ast.NodeTransformer bug

2008-08-08 Thread daishi
New submission from daishi <[EMAIL PROTECTED]>: I am testing python 2.6 from SVN version: 40110 I tried the following, based on the documentation and example in the ast module. I would expect the second 'compile' to succeed also, instead of throwing an exception. Python 2.6b2+ (unknown, Aug 6

[issue3529] Remove long integer literals from Python 3.0 tutorial

2008-08-08 Thread Jim Sizelove
New submission from Jim Sizelove <[EMAIL PROTECTED]>: The distinction between integers and long integers has been removed in Python 3.0. The attached patch file changes the long literals to Python 3.0 integer literals in the Floating Point Arithmetic section of the tutorial. -- assignee

[issue3436] csv.DictReader inconsistency

2008-08-08 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Committed as revision 65605. -- assignee: -> skip.montanaro status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3526] Customized malloc implementation on SunOS and AIX

2008-08-08 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I cannot quite see why the problem is serious: even though the memory is not returned to the system, it will be swapped out to the swap file, so it doesn't consume any real memory (just swap space). I don't think Python should integrate a se

[issue2983] Ttk support for Tkinter

2008-08-08 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: I wish I had realized this work was done or else I would have pushed to get this in for 2.6/3.0. Damn. Setting for 2.7/3.1, although if the decision was made it was easier to only have it in 3.1 that would be fine by me. Regardless, setting thi

[issue2827] IDLE 3.0a5 cannot handle UTF-8

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: 3.0b2, WinXP I cut and pasted the text above into an empty IDLE edit window, hit F5, and in the blink of an eye, both IDLE windows disappeared. No error message, no Window's error box, just gone. The pasted text was saved to the file. When

[issue3436] csv.DictReader inconsistency

2008-08-08 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: Making an existing attribute a property is a nice, API-neutral way to handle this. Let's call the inconsistency a bug and this a bug fix so that it's fine to add to 2.6 and 3.0 at this point. -- nosy: +barry resolution: -> accepte

[issue3489] add rotate{left,right} methods to bytearray

2008-08-08 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le vendredi 08 août 2008 à 21:44 +, Josiah Carlson a écrit : > Josiah Carlson <[EMAIL PROTECTED]> added the comment: > > In order for MemoryView to know what bytes it is pointing to in memory, > it (generally) keeps a pointer with a lengt

[issue3489] add rotate{left,right} methods to bytearray

2008-08-08 Thread Josiah Carlson
Josiah Carlson <[EMAIL PROTECTED]> added the comment: In order for MemoryView to know what bytes it is pointing to in memory, it (generally) keeps a pointer with a length. In order to rotate the data without any copies, you need a pointer and length for each rotation plus the original. For exam

[issue3493] No Backslash (\) in IDLE 1.2.2

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: \ works fine for me and I suspect almost everyone else. Please bring this up on comp.lang.python or python-list or gmane.comp.python.general to see if any other Macbook users have this problems or any ideas on what might be wrong with your par

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-08 Thread Bill Janssen
Changes by Bill Janssen <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11064/patch ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-08 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: Here's the updated version of my patch. It returns a string, but doesn't clobber bytes that are contained in the string. Naive code (basically code that expects ASCII strings from unquote) should continue to work as well as it ever did. I fix

[issue1721083] Add File - Reload

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: This appears to me to duplicate and supercede http://bugs.python.org/issue1175686 If so, could that be closed as superceded? -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTED]>

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: On windows: type >>> zomeinput Press home key. In command window (terminal interface), cursor goes to just before z, where one would want. In IDLE (2.5.2, 3.0b2), it goes to beginning of line. If current patch does not fix this (there is no

[issue3489] add rotate{left,right} methods to bytearray

2008-08-08 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Hi, > Sadly, this isn't quite as easy as it would seem. You are right, I was overly optimist when thinking about this. > Offering this ability in the momoryview object would be very > interesting, though I'm not sure that the memoryview obj

[issue3489] add rotate{left,right} methods to bytearray

2008-08-08 Thread Josiah Carlson
Josiah Carlson <[EMAIL PROTECTED]> added the comment: Sadly, this isn't quite as easy as it would seem. The O(1) memory overhead version of this requires 2n reads and 2n writes, but does both reads and writes at two memory locations at a time, which may have nontrivial performance implications.

[issue3526] Customized malloc implementation on SunOS and AIX

2008-08-08 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: This is very interesting, although it should probably go through discussion on python-dev since it involves integrating a big chunk of external code. -- components: +Interpreter Core nosy: +pitrou priority: -> normal versions: +Pytho

[issue2811] doctest doesn't treat unicode literals as specified by the file declared encoding

2008-08-08 Thread Karen Tracey
Karen Tracey <[EMAIL PROTECTED]> added the comment: I believe the problem is in your test file, not doctest. The enclosing doctest string is not specified as a unicode literal, so the file encoding specification ultimately has no effect on it. At least that is how I read the documentation regar

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-08 Thread Jesse Noller
Changes by Jesse Noller <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10801/connection.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-08 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Trent/Antoine - I'm stuck on the fence about this. Per trent's own suggestion - removing the allowance for the 0.0.0.0 style address means that the self._address is always a connectable end-point: this provides clarity to the API. However -

[issue3528] TypeError when compiling with no translator

2008-08-08 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r65599 :-|. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-08 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: > I don't understand what you mean. The patch you uploaded doesn't remove the > _address attribute. > > See http://bugs.python.org/file10801/connection.patch Hmm. Then that was a mistake on my part: it's entirely possible the patch didn't apply

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-08 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Selon Jesse Noller <[EMAIL PROTECTED]>: > > Unfortunately, the patch while simple, is too simple. The removal of the > _address attribute breaks a lot more than it fixes (it's heavily used > elsewhere) I don't understand what you mean. The pa

[issue941346] AIX shared library fix

2008-08-08 Thread Sébastien Sablé
Sébastien Sablé <[EMAIL PROTECTED]> added the comment: Hum, I tried to recompile Python without the --enable-shared option on AIX and it crashed; so this patch may not be compatible with a static version of Python (though I have other patches in my version - cf issue 3526 - which may be incompati

[issue3528] TypeError when compiling with no translator

2008-08-08 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: I just ran 'make html' with the latest version and got this exception: loading translations [en]... Exception occurred: File "/home/bob/data/dvl/python/svn/doctools/sphinx/builder.py", line 184, in load_i18n self.info('selected lo

[issue2153] unittest.py modernization

2008-08-08 Thread Virgil Dupras
Virgil Dupras <[EMAIL PROTECTED]> added the comment: This patch has gone invalid due to some recent conflicting changes. I remade it and I'm resubmitting it hoping that it will get applied. Added file: http://bugs.python.org/file11086/unittest_modern2.diff _

[issue3527] Py_WIN_WIDE_FILENAMES removal

2008-08-08 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: Py_WIN_WIDE_FILENAMES is not used anywhere, this patch removes this macro. -- files: remove_macro.patch keywords: patch messages: 70899 nosy: ocean-city severity: normal status: open title: Py_WIN_WIDE_FILENAMES removal versions:

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-08 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Unfortunately, the patch while simple, is too simple. The removal of the _address attribute breaks a lot more than it fixes (it's heavily used elsewhere) ___ Python tracker <[EMAIL PROTECTED]>

[issue3526] Customized malloc implementation on SunOS and AIX

2008-08-08 Thread Sébastien Sablé
Changes by Sébastien Sablé <[EMAIL PROTECTED]>: -- keywords: +patch Added file: http://bugs.python.org/file11084/patch_dlmalloc.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3526] Customized malloc implementation on SunOS and AIX

2008-08-08 Thread Sébastien Sablé
Changes by Sébastien Sablé <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11083/customized_malloc_AIX.pdf ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3526] Customized malloc implementation on SunOS and AIX

2008-08-08 Thread Sébastien Sablé
New submission from Sébastien Sablé <[EMAIL PROTECTED]>: Hi, We run a big application mostly written in Python (with Pyrex/C extensions) on different systems including Linux, SunOS and AIX. The memory footprint of our application on Linux is fine; however we found that on AIX and SunOS, any mem

[issue941346] AIX shared library fix

2008-08-08 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Sébastien, what does your patch change exactly? Does it build a shared lib for Python by default? If that's the case, I'm not sure it's a good idea due to AIX's particular way of treating shared libraries; it might break e.g. when trying to em

[issue1117601] os.path.exists returns false negatives in MAC environments.

2008-08-08 Thread Virgil Dupras
Virgil Dupras <[EMAIL PROTECTED]> added the comment: Antoine, I think that when this bug was filed, the first "os.path.exists('foobar/baz')" in my example would return False. So it's not that this bug shouldn't be fixed, but that it is already fixed. ___ Py

[issue941346] AIX shared library fix

2008-08-08 Thread Sébastien Sablé
Sébastien Sablé <[EMAIL PROTECTED]> added the comment: Hi, I have modified a bit this patch to make it work with Python 2.5.2 (see attached patched). It is a great enhancement for Python users on AIX to be able to use a shared library instead of a static one, so I would appreciate if this featu

[issue1117601] os.path.exists returns false negatives in MAC environments.

2008-08-08 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: The only sane alternative to the current behaviour would be to raise an Exception from os.path.exists rather than returning False. But it would also break a lot of code, and complexify code using os.path.exists which currently doesn't need to

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-08 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > This would mean raising an exception in Listener.__init__ if this > invariant is violated. If I understand the suggestion correctly, it would forbid people to listen on 0.0.0.0. I'm not sure it is the right correction for the problem. List

[issue1117601] os.path.exists returns false negatives in MAC environments.

2008-08-08 Thread Virgil Dupras
Virgil Dupras <[EMAIL PROTECTED]> added the comment: hsoft-dev:~ hsoft$ mkdir foobar hsoft-dev:~ hsoft$ echo "baz" > foobar/baz hsoft-dev:~ hsoft$ chmod 000 foobar/baz hsoft-dev:~ hsoft$ python Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darw

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-08 Thread Trent Nelson
Trent Nelson <[EMAIL PROTECTED]> added the comment: Jesse, thanks for capturing my e-mail thread in this issue. Can you comment on my last three paragraphs? Essentially, I think we should lock down the API and assert that Listener.address will always be a 'connectable' end-point. (i.e. not

[issue3429] urllib.urlopen() return type

2008-08-08 Thread ThomasH
ThomasH <[EMAIL PROTECTED]> added the comment: Georg, you seem like a dedicated person. I'm sure you guys have thought about documenting return types of methods and functions in a standardized way, documenting classes so that you could fade in and out inherited features, and such. Where do you g

[issue3429] urllib.urlopen() return type

2008-08-08 Thread ThomasH
ThomasH <[EMAIL PROTECTED]> added the comment: On Fri, Aug 8, 2008 at 2:04 AM, Senthil <[EMAIL PROTECTED]> wrote: > > Senthil <[EMAIL PROTECTED]> added the comment: > > I agree with Benjamin on this issue, describing what is a "File like Object" > is > so much un-needed in Python and especially

[issue3524] IOError when attempting negative seek in file (Python 3.0 tutorial)

2008-08-08 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Since the file is a text file, such seeking is not possible. I've now updated the whole section about files; in particular there was also an outdated description of text vs. binary mode. Committed r65595. -- resolution: -> fixed stat