[issue5415] uuid module generates incorrect values for uuid3 (and possibly uuid5)

2009-03-03 Thread René Puls
New submission from René Puls : I am trying to recreate the sample output from appendix B of RFC 4122. http://www.ietf.org/rfc/rfc4122.txt In that document, a version 3 UUID is created using the DNS namespace (6ba7b810-9dad-11d1-80b4-00c04fd430c8, same as uuid.NAMESPACE_DNS in Python) and the

[issue5413] urllib ctypes error on Mac OS X Server 10.5

2009-03-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't have time to investigate this right now, I do have access to a 10.5 server box though. With some luck I'll be able to create a patch later today. Looking at the code in urllib I found the most likely reason for the problem: the Python script tries t

[issue5404] Cross-compiling Python

2009-03-03 Thread Joshua Kinard
Joshua Kinard added the comment: Roumen, I took a look at 4010, and tried your patch (as well as attempted to apply the latter patch, but they changes are too great). Neither one helped resolve my issue, but I should probably explain the angle I'm attacking this from so you have an idea of wha

[issue5414] asciibin.a2b_uu returns unexpected values on non ascii data

2009-03-03 Thread David Majnemer
David Majnemer added the comment: Added version number of python. -- versions: +Python 2.5 ___ Python tracker ___ ___ Python-bugs-list

[issue5414] asciibin.a2b_uu returns unexpected values on non ascii data

2009-03-03 Thread David Majnemer
New submission from David Majnemer : Note that binascii.a2b_uu("\0") returns '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'. This appears to be the same as binascii.a2b_uu() which is most likely not the intention.

[issue5273] 3.0.1 crashes in unicode path

2009-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, fixed in r70157(py3k) and r70158(release30-maint) -- priority: release blocker -> resolution: -> fixed status: open -> closed ___ Python tracker __

[issue5413] urllib ctypes error on Mac OS X Server 10.5

2009-03-03 Thread Ned Deily
Ned Deily added the comment: For more info, see discussion starting here: I suspect a difference in the proxy configuration available between OS X and OS X Server, although I don't have a OS X Server configuration at hand t

[issue5413] urllib ctypes error on Mac OS X Server 10.5

2009-03-03 Thread Attila Soki
New submission from Attila Soki : i trying to compile Python 2.6.1 from scratch on Mac OS X Server (ppc). After configure/make/make install i test the compiled python with the followig file (t.py) (example from http://docs.python.org/library/urllib.html): Contents of /tmp/t.py: - im

[issue5273] 3.0.1 crashes in unicode path

2009-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I cannot say anything except that the patch looks ok. If it doesn't make anything worse and solves the present problem, I guess you can commit it. ___ Python tracker ___

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-03-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> release blocker versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list maili

[issue5273] 3.0.1 crashes in unicode path

2009-03-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Removed file: http://bugs.python.org/file8976/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: A new patch is in attachment. Changes from the previous one (Sep 2008): - renamed "deafult_tasks" global list to "scheduled_tasks" - loop(), scheduler() and close_all() have a new "tasks" keyword argument defaulting to None - close_all() other than itera

[issue5179] subprocess leaves open fds on construction error

2009-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, fixed in r70137(trunk), r70142(py3k), r70146(release30-maint), r70147(release26-maint) -- priority: release blocker -> high resolution: -> fixed status: open -> closed ___ Python tracker

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-03-03 Thread Adam Olsen
Adam Olsen added the comment: issue 960406 broke this as part of a fix for readline. I believe that was motivated by fixing ctrl-C in the main thread, but non-main threads were thrown in as a "why not" measure. msg 46078 is the mention of this. You can go into readlingsigs7.patch and search f

[issue4565] Rewrite the IO stack in C

2009-03-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/3/3 Daniel Diniz : > A couple of typos in the Python implementation. Thanks for taking a look! Fixed these things in r70135. > http://codereview.appspot.com/22061/diff/1/11#newcode844 > Line 844: self._reset_read_buf() > Setting "_read_buf" and "_read_

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: Also, what version of Vista *precisely* are you using? ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: Ok. Now run the installation (of, say, 2.6) with msiexec /i python-xy.msi /l*v python26.log and compress and attach the resulting log file. ___ Python tracker ___

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Josiah Carlson
Josiah Carlson added the comment: Here's a better patch without tabs. Added file: http://bugs.python.org/file13238/scheduler_partial.patch ___ Python tracker ___

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Josiah Carlson
Changes by Josiah Carlson : Removed file: http://bugs.python.org/file13237/scheduler_partial.patch ___ Python tracker ___ ___ Python-bugs-list

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Josiah Carlson
Josiah Carlson added the comment: I've just attached a patch to sched.py and asyncore.py to offer a richer set of features for sched.py, with a call_later() function and minimal related classes for asyncore.py to handle most reasonable use-cases. There is no documentation or tests, but I can

[issue1175686] add "reload" function to IDLE

2009-03-03 Thread David W. Lambert
David W. Lambert added the comment: 0->kbk I avoid idle altogether and run python in emacs shell buffer. Switching windows usually involves mice. Mice are evil. emacs has gazillions of features. artist mode (oops, mice!) rectangular regions, registers, 25 (hundreds with C-{digit}) reasonabl

[issue4565] Rewrite the IO stack in C

2009-03-03 Thread Daniel Diniz
Daniel Diniz added the comment: A couple of typos in the Python implementation. http://codereview.appspot.com/22061/diff/1/11 File Lib/_pyio.py (right): http://codereview.appspot.com/22061/diff/1/11#newcode266 Line 266: fp is closed after the suite of the with statment is complete: statment ->

[issue5179] subprocess leaves open fds on construction error

2009-03-03 Thread Georg Brandl
Georg Brandl added the comment: Since I can't test on Windows, I'll leave that in your hands :) ___ Python tracker ___ ___ Python-bugs-list mai

[issue4712] Document pickle behavior for subclasses of dicts/lists

2009-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: The behavior is a PITA. It means that dict subclasses the redefine __setitem__ have unpleasant pickling challenges. The __setitem__ insertions are called before the subclass can initialize. The workaround involves a funky dance using __reduce__. See colle

[issue5179] subprocess leaves open fds on construction error

2009-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This issue is not fixed on windows yet. (test_leaking_fds_on_error fails) I think attached patch will fix this. == ERROR: test_writes_before_communicate (__main__.ProcessTestCase) --

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Forest Wilkinson
Forest Wilkinson added the comment: Agreed here. Thanks, gents. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Georg Brandl
Georg Brandl added the comment: OK, disregard my suggestions, it's better not to have a property that does almost exactly the same as keys(). ___ Python tracker ___ __

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Guido van Rossum
Guido van Rossum added the comment: You could solve this with a "reserved" keyword argument _tasks. Or you could have two different factory methods, call_later_with_tasks() and call_later(). ___ Python tracker

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > You'd also have to pass the tasks list to the scheduler() call and the > call_later() constructor. Defaulting to a global is fine. Unless I change the current API I can't add a new optional arguments to call_later constructor because it already uses *args

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Armin Ronacher
Changes by Armin Ronacher : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Armin Ronacher
Armin Ronacher added the comment: Please no. We just decided to *not* extend the API. The PEP originally had a well designed list of dict API extensions that already provided exactly that. If we really want to provide access to that, we can roll back to where we came from. I don't think impl

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Armin Ronacher
Armin Ronacher added the comment: Please no. We just decided to *not* extend the API. The PEP originally had a well designed list of dict API extensions that already provided exactly that. If we really want to provide access to that, we can roll back to where we came from. I don't think impl

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file13229/od6.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file13228/od5.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file13221/od4.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Forest Wilkinson
Forest Wilkinson added the comment: > Shouldn't popitem() allow the caller to choose which end from > which to pop? Thinking it through a bit more, and LRU cache would actually need to access the oldest item without necessarily removing it. Besides, popitem() should probably retain the signatu

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Forest, for your use case I recommend copying the code to a new class and replacing the _keys list with a deque so that you can efficiently pop from the other end. ___ Python tracker ___

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Forest, I've taken another look at what's involved and am inclined to accept the idea. It can be done without mucking-up the regular dict API and without precluding any of the other possible underlying algorithms. I like that it supports an entire new categ

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Georg Brandl
Georg Brandl added the comment: > The internal data structure *must* remain private so that we can build a > C replacement or switch to one of the other possible algorithms. Even then the keys list could be offered as a property. ___ Python tracker

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

2009-03-03 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Hold off on reviewing this. There's one bug around the peepholer not turning itself off when line numbers skip by more than 127, and another around the traceback generator still assuming line numbers are unsigned. I'll post another patch when those are fixed an

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: The internal data structure *must* remain private so that we can build a C replacement or switch to one of the other possible algorithms. ___ Python tracker _

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Georg Brandl
Georg Brandl added the comment: I wonder if, instead of all kinds of new APIs, the _keys list could just be made public (under a different name of course). Of course, that makes further optimization or a rewrite in C harder. ___ Python tracker

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Forest Wilkinson
Forest Wilkinson added the comment: I was just reading the PEP, and caught this bit: "Does OrderedDict.popitem() return a particular key/value pair? Yes. It pops-off the most recently inserted new key and its corresponding value." Okay, but I'd also like a convenient and fast way to find the o

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Josiah Carlson
Josiah Carlson added the comment: Forest: To answer your question, yes, that blog post discusses a better variant of sched.py , but no, there isn't a bug. I should probably post it some time soon for 2.7/3.1 inclusion. ___ Python tracker

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Guido van Rossum
Guido van Rossum added the comment: The idea is to be able (whether you see a use case or not) to use different tasks lists simultaneously. Messing with globals is the worst possible API for that. All you need is to add a tasks=None argument to the loop() signature, rename the global tasks lis

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Giampaolo, I'm concerned that your patch uses a global 'tasks' list > which cannot be overriden. Shouldn't loop() accept an optional task > list argument, as it already does with the socket map? That would keep > with the spirit of asyncore and make thin

[issue4471] IMAP4 missing support for starttls

2009-03-03 Thread Bill Janssen
Bill Janssen added the comment: I brought this up on pydotorg, and Barry suggests that someone put together a Twisted environment which could be downloaded and run locally on the test machine. It would provide IMAP and POP servers, perhaps NNTP and others as well. Now, all we need is someone t

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2009-03-03 Thread Bill Janssen
Bill Janssen added the comment: Yes, the reason is that the supplied patch doesn't provide enough test cases. This is a big patch; 2.5.x is a bug-fix release; a newer version of the SSL code is available from PyPI as a work-around; I don't have time right now to write more tests myself. All of

[issue858809] Use directories from configure rather than hardcoded

2009-03-03 Thread jan matejek
jan matejek added the comment: ...the patch is absolutely trivial, doesn't have any deep consequences and applies cleanly to head and all branches i know of. ...i wonder if the patch-fasttracking offer still applies... ___ Python tracker

[issue858809] Use directories from configure rather than hardcoded

2009-03-03 Thread jan matejek
jan matejek added the comment: well, seeing as redesign of distutils probably won't happen anytime soon... why don't we fix the obvious bug (broken configure) now and redesign distutils later? ___ Python tracker _

[issue858809] Use directories from configure rather than hardcoded

2009-03-03 Thread jan matejek
Changes by jan matejek : -- nosy: +matejcik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1294959] Problems with /usr/lib64 builds.

2009-03-03 Thread jan matejek
Changes by jan matejek : -- nosy: +matejcik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5412] extend configparser to support [] syntax

2009-03-03 Thread Jeff Kaufman
New submission from Jeff Kaufman : This is a patch against the configparser in the cvs version of 3.1 to support [] notation: >>> import configparser_patched >>> config = configparser_patched.SafeConfigParser() >>> config.add_section("spam") >>> config["spam", "eggs"] = "yummy" >>> config["spam"

[issue5409] ConfigParser get methods broken

2009-03-03 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5404] Cross-compiling Python

2009-03-03 Thread Roumen Petrov
Roumen Petrov added the comment: Joshua, may be you need patch from Issue4010 to pass LDFLAGS to distutils. Another issue4305 - it is for mipsel. About cross compilation - yes it is Python flaw. For past ten years the progress is near to zero. About you problem - #error "LONG_BIT definition ap

[issue4459] bdist_rpm should enable --fix-python by default

2009-03-03 Thread Akira Kitada
Changes by Akira Kitada : -- title: bdist_rpm assumes python -> bdist_rpm should enable --fix-python by default ___ Python tracker ___ ___

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2009-03-03 Thread andrej
andrej added the comment: Is there a reason why this patch has not been implemented in the official release (2.5.4)? I am having plenty of troubles using it in a similar program. -- nosy: +andrej ___ Python tracker

[issue5411] add xz compression support to distutils

2009-03-03 Thread Per Øyvind Karlsen
New submission from Per Øyvind Karlsen : Here's a patch that adds support for xz compression: http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python/current/SOURCES/Python-2.6.1-distutils-xz-support.patch?view=log -- assignee: tarek components: Distutils messages: 83072 nosy:

[issue5410] msvcrt bytes cleanup

2009-03-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I came from issue5391. Here is quote of Victor's message. >* msvcrt.putch(char), msvcrt.ungetch(char): msvcrt has also: > - msvcrt.getch()->byte string of 1 byte > - msvcrt.getwch()->unicode string of 1 character > - msvcrt.putwch(unicode string of 1 ch

[issue5396] os.read not handling O_DIRECT flag

2009-03-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> normal type: behavior -> feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___

[issue5404] Cross-compiling Python

2009-03-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-03 Thread Retro
Retro added the comment: In my Windows Vista registry I only have the second two keys present 1) HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9cc89170-000b-457d-91f1-53691f85b223} 2) HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-03-03 Thread STINNER Victor
STINNER Victor added the comment: > Should this be backported? It's the r70113 (not the 70112). I see that pitrou backported the fix to 3.0.x. I think that it's enough, 2.x doesn't require the fix. ___ Python tracker

[issue5404] Cross-compiling Python

2009-03-03 Thread Joshua Kinard
Joshua Kinard added the comment: Making progress! Adapted the cross-2.5.1.patch from Issue #1597850, integrated the %zd printf fixup patch, and added another cross-compiler check for the libffi configure bits in setup.py (it'd pass libffi's configure no --host options, so libffi would compile f