[issue3677] importing from UNC roots doesn't work

2009-01-22 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Merged in r68873(py3k). ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5032] itertools.count step

2009-01-22 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-22 Thread Takeshi Matsuyama
New submission from Takeshi Matsuyama : When I make a dictionary by parsing "legacy-icon-mapping.xml"(which is a part of icon-naming-utils[http://tango.freedesktop.org/Tango_Icon_Library]) with the following script, the three keys of the dictionary are collapsed if the "buffer_text" attribute is

[issue3677] importing from UNC roots doesn't work

2009-01-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: This fix needs to be ported to the py3k branch. Can somebody please do it? -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Jesse Noller
Jesse Noller added the comment: On a put to the queue, the object is appended onto a deque (self._buffer) - this buffer is managed by a thread (_start_thread) which is handed the _feed method as the target. I suspect the bug is actually in the _feed method. __

[issue4111] Add DTrace probes

2009-01-22 Thread Skip Montanaro
Skip Montanaro added the comment: me> I get an error later running dtrace which I have yet to investigate. Apple's dtrace program doesn't support the -G flag. When I remove it from Makefile.pre.in and rebuild I get an error about privileges: dtrace -o Python/dtrace.o -C -s ./Python/pytho

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Jesse Noller
Jesse Noller added the comment: As a note to myself: adding a simple print to the multiprocessing.Queue put method, I can see the calls occurring from the children in order, for example: obj: 0.025193 [proc1] Got lock obj: 0.227725 [proc1] Released lock obj: 0.228401 [proc2] Got lock obj:

[issue4972] let's equip ftplib.FTP with __enter__ and __exit__

2009-01-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: As for ftplib patch you should make sure that close() gets called in any case but never more than once. You can use "finally" to satisfy the first requirement and "self.sock is not None" to check the second condition: +def __exit__(self, *args): +

[issue5023] Segfault in datetime.time.strftime("%z")

2009-01-22 Thread Eric Wald
Eric Wald added the comment: Update: Undefining HAVE_SNPRINTF does not correct the problem. ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Jesse, can you explain the cause of the bug? Maybe that will inspire someone to come up with an idea for a fix. -- nosy: +exarkun ___ Python tracker _

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's why I was suggesting to leave Queue as it is and provide a separate PriorityQueue. With a PriorityQueue the user is free to put (timestamp, object) tuples in it if he wants a strict chronologic ordering. He can also use sequence numbers instead of timesta

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Jesse Noller
Jesse Noller added the comment: I agree, at very least it should provide the same default behavior that Queue does, however, it is not obvious to me how to resolve this in mp.Queue ___ Python tracker _

[issue4111] Add DTrace probes

2009-01-22 Thread Skip Montanaro
Skip Montanaro added the comment: After applying the patch and reconfiguring I get compilation errors in Python/ceval.c. I suspect it's because there is a new header file, Python/python.h. That's probably found by the #include directive in favor of Include/Python.h because of the Mac's case-in

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: The Queue module design should be followed as closely as possible. It provides FIFO order as the default, with options for LIFO and priority order. -- nosy: +rhettinger ___ Python tracker

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Rather than providing strict ordering of Queue input/output, perhaps a separate or derived class (PriorityQueue?) should be provided just for that matter (heapq-based?). -- nosy: +pitrou ___ Python tracker

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Jesse Noller
Changes by Jesse Noller : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue4593] Documentation for multiprocessing - Pool.apply()

2009-01-22 Thread Jesse Noller
Jesse Noller added the comment: fixed in trunk, r68862, merged to 3k in r68863 -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5032] itertools.count step

2009-01-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am not too excited about this one. As a heavy itertools user myself, I've never had occasion to need a step argument. As an implementer, I'm aware that it would make the code for count() much more complex (because of the internal optimizations and because s

[issue5034] itertools.fixlen

2009-01-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am taking this under advisement but am initially disinclined. It is not a basic itertool since it can be composed from the others. Also, it's use cases seem to be few. One challenge for the module is that adding more tools makes the overall toolkit harder

[issue4111] Add DTrace probes

2009-01-22 Thread Ted Leung
Ted Leung added the comment: On Jan 22, 2009, at 1:35 PM, Skip Montanaro wrote: > > Skip Montanaro added the comment: > > So I completely dropped the ball on this. It appears we have some > folks from Sun and Brett surmised that Ronald Oussoren would be the > likely person to do the heavy lif

[issue4111] Add DTrace probes

2009-01-22 Thread Skip Montanaro
Skip Montanaro added the comment: So I completely dropped the ball on this. It appears we have some folks from Sun and Brett surmised that Ronald Oussoren would be the likely person to do the heavy lifting on the Apple side of things. Ronald, I've made you nosy. I will try to get the Solaris p

[issue5035] Compilation --without-threads fails

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: The problem seems to have appeared with: [svn r67802] #3632: the "pyo" macro from gdbinit can now run when the GIL is released. Patch by haypo. diff -r 68d511e1c4bc -r 584e97b40be9 Objects/object.c --- a/Objects/object.c Mon Dec 15 22:47:57 2008 +0100 +++ b

[issue5035] Compilation --without-threads fails

2009-01-22 Thread Antoine Pitrou
New submission from Antoine Pitrou : libpython2.7.a(object.o): In function `_PyObject_Dump': /home/antoine/cpython/__svn__/Objects/object.c:341: undefined reference to `PyGILState_Ensure' /home/antoine/cpython/__svn__/Objects/object.c:343: undefined reference to `PyGILState_Release' -- m

[issue5034] itertools.fixlen

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: "Return an iterator fixing *iterable*\ 's length to *length* by either cutting elements off or adding *value* to the iterable." Rather than mixing both, it would be more flexible to have a separate function for each IMO. Cutting off is already be handled by isl

[issue4111] Add DTrace probes

2009-01-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue3807] _multiprocessing build fails when configure --without-threads

2009-01-22 Thread Jesse Noller
Jesse Noller added the comment: Here's a simplified patch, unfortunately I can't test this as an OS/X build with --without-threads enabled has other issues besides this. Added file: http://bugs.python.org/file12834/issue3807.patch ___ Python tracker

[issue4111] Add DTrace probes

2009-01-22 Thread Robert Kern
Changes by Robert Kern : -- nosy: +robert.kern ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue3881] IDLE won't start in custom directory.

2009-01-22 Thread Jacob
Jacob added the comment: Fantastic. I started this post in October, and now we finaly found a solution. Thank you Martin. Will this patch be included in future versions of python? Best regards, Jacob. ___ Python tracker ___

[issue3578] 'dictionary changed size' error in test_multiprocessing

2009-01-22 Thread Jesse Noller
Changes by Jesse Noller : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue4660] multiprocessing.JoinableQueue task_done() issue

2009-01-22 Thread Jesse Noller
Changes by Jesse Noller : -- priority: -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue3272] Multiprocessing hangs when multiprocessing.Pool methods are called

2009-01-22 Thread Jesse Noller
Jesse Noller added the comment: This is now covered in the multiprocessing documentation: "Note Functionality within this package requires that the __main__ method be importable by the children. This is covered in Programming guidelines however it is worth pointing out here. This means that s

[issue3273] multiprocessing and meaningful errors

2009-01-22 Thread Jesse Noller
Jesse Noller added the comment: I am going to track this as part of issue 5001 -- resolution: -> duplicate status: open -> closed superseder: -> Remove assertion-based checking in multiprocessing ___ Python tracker

[issue3831] Multiprocessing: Expose underlying pipe in queues

2009-01-22 Thread Jesse Noller
Changes by Jesse Noller : -- priority: -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-01-22 Thread Jesse Noller
Changes by Jesse Noller : -- priority: -> normal type: -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue3273] multiprocessing and meaningful errors

2009-01-22 Thread Jesse Noller
Changes by Jesse Noller : -- priority: -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue3283] multiprocessing.connection doesn't import AuthenticationError, while using it

2009-01-22 Thread Jesse Noller
Jesse Noller added the comment: Fixed in 66023 by nnorwitz -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue3093] Namespace pollution from multiprocessing

2009-01-22 Thread Jesse Noller
Changes by Jesse Noller : -- priority: -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5034] itertools.fixlen

2009-01-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger versions: +Python 3.1 ___ Python tracker ___ ___ Python-bu

[issue5032] itertools.count step

2009-01-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger components: +Extension Modules -None nosy: +rhettinger priority: -> low versions: +Python 2.7, Python 3.1 -Python 3.0 ___ Python tracker __

[issue5034] itertools.fixlen

2009-01-22 Thread Robert Lehmann
New submission from Robert Lehmann : As raised recently on python-ideas [1]_, an itertools method fixing iterators to a certain length might be handy (where fixing is either cutting elements off or appending values). I appended a patch implementing this feature in Python/C, unit tests and docume

[issue4242] Classify language vs. impl-detail tests, step 1

2009-01-22 Thread Jim Baker
Changes by Jim Baker : -- nosy: +jbaker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue4944] os.fsync() doesn't work as expect in Windows

2009-01-22 Thread Javen Wang
Javen Wang added the comment: I don't have Python2.6 installed. I just have ever read a bench article comparing the performance between different version of Python, including 2.5, 2.6 and 3.0. That article shows, for the same script, Python2.6 has longer running time than Python2.5. My applicati

[issue5033] setup.py crashes if sqlite version contains 'beta'

2009-01-22 Thread blahblahwhat
New submission from blahblahwhat : When I try to 'make' Python 2.6.1: Traceback (most recent call last): File "./setup.py", line 1880, in main() File "./setup.py", line 1875, in main 'Lib/smtpd.py'] File "/home/apps/Python-2.6.1/Lib/distutils/core.py", line 152, in setup dist

[issue3881] IDLE won't start in custom directory.

2009-01-22 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker ___ ___ Python

[issue3881] IDLE won't start in custom directory.

2009-01-22 Thread Martin v. Löwis
Martin v. Löwis added the comment: Here is a patch that should fix the problem. It uses Vista's GetFinalPathNameByHandleW to expand symbolic links before passing the path to Tcl. -- keywords: +patch Added file: http://bugs.python.org/file12832/symlink.diff _

[issue5032] itertools.count step

2009-01-22 Thread steve21
New submission from steve21 : I'd like to request a 'step' argument be added for itertools.count. It would be useful in the same way that step is useful for the 'range' function. ('range' and 'count' are very similar - 'count' could even be merged into 'range', for example by making 'range(None)

[issue4874] decoding functions in _codecs module accept str arguments

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r68857, r68858. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue4874] decoding functions in _codecs module accept str arguments

2009-01-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch looks good. I think the missing b in test_errorcallback_longindex is an overlook when the tests were updated for py3k. You are right to change the test. ___ Python tracker

[issue4874] decoding functions in _codecs module accept str arguments

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: "Fixing" multibytecodec.c produces a TypeError in the following test: def test_errorcallback_longindex(self): dec = codecs.getdecoder('euc-kr') myreplace = lambda exc: ('', sys.maxsize+1) codecs.register_error('test.cjktest', myrepl

[issue4874] decoding functions in _codecs module accept str arguments

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Right, I hadn't thought of that. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue4874] decoding functions in _codecs module accept str arguments

2009-01-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: IMO, Modules/cjkcodecs/multibytecodec.c should be changed as well. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue4874] decoding functions in _codecs module accept str arguments

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r68855, r68856. Thanks! -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___

[issue4874] decoding functions in _codecs module accept str arguments

2009-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5031] Thread.daemon docs

2009-01-22 Thread steve21
New submission from steve21 : In the threading module the Thread.daemon documentation says: "The thread’s daemon flag. This must be set before start() is called, otherwise RuntimeError is raised. The initial value is inherited from the creating thread. The entire Python program exits w

[issue5029] Odd slicing behaviour

2009-01-22 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5029] Odd slicing behaviour

2009-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why should it return an empty list? >>> foo = [1,2,3] >>> foo[1::-1] [2, 1] >>> foo[0::-1] [1] looks quite consistent to me. -- nosy: +pitrou ___ Python tracker _

[issue4944] os.fsync() doesn't work as expect in Windows

2009-01-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: python2.6 is not so different from python2.5. Which performance concerns do you have? ___ Python tracker ___ __