[issue14659] HP multi-thread environment python core in PyObject_GC_UnTrack

2012-04-23 Thread frank
New submission from frank : #0 0x1dbaa480:0 in PyObject_GC_UnTrack () at Modules/gcmodule.c:1149 1149Modules/gcmodule.c: No such file or directory. in Modules/gcmodule.c (gdb) where #0 0x1dbaa480:0 in PyObject_GC_UnTrack () at Modules/gcmodule.c:1149 #1 0x1d

[issue13959] Re-implement parts of imp in pure Python

2012-04-23 Thread Eric Snow
Eric Snow added the comment: updated patch for moving TAG to importlib/imp.py -- Added file: http://bugs.python.org/file25336/issue13959_tag.diff ___ Python tracker ___

[issue13959] Re-implement parts of imp in pure Python

2012-04-23 Thread Eric Snow
Eric Snow added the comment: updated patch for magic number support in imp/importlib -- Added file: http://bugs.python.org/file25335/issue13959_magic.diff ___ Python tracker ___

[issue14647] imp.reload() on a package leads to a segfault or a GC assertion failure

2012-04-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14655] traceback module docs should show how to print/fomat an exception object

2012-04-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14369] make __closure__ writable

2012-04-23 Thread Nick Coghlan
Nick Coghlan added the comment: Another use case for a writeable __closure__ attribute is to make it possible to manually break reference cycles: http://blog.ccpgames.com/kristjan/2012/04/23/reference-cycles-with-closures/ -- ___ Python tracker

[issue14654] More fast utf-8 decoding

2012-04-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14657] Avoid two importlib copies

2012-04-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14657] Avoid two importlib copies

2012-04-23 Thread Nick Coghlan
Nick Coghlan added the comment: My preference would also be for _frozen_importlib._bootstrap to overwrite as much evidence of itself as it can with the "real" one. This would also mean that changes to importlib._bootstrap would actually take effect for user code almost immediately, *without*

[issue14605] Make import machinery explicit

2012-04-23 Thread Nick Coghlan
Nick Coghlan added the comment: Oops: s/sensitive to sys.path changes/sensitive to current working directory changes/ -- ___ Python tracker ___

[issue14605] Make import machinery explicit

2012-04-23 Thread Nick Coghlan
Nick Coghlan added the comment: I put those explicit path checks in there deliberately. I really don't want to go back to having any __file__ attributes that are sensitive to sys.path changes. -- ___ Python tracker

[issue8427] toplevel jumps to another location on the screen

2012-04-23 Thread Andrei Paraschivescu
Andrei Paraschivescu added the comment: Ned, thanks for the quick response. I will give that a go. -- ___ Python tracker ___ ___ Pytho

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-23 Thread Joe Peterson
Joe Peterson added the comment: The one you tried is the old patch. Here are the two new patches. Use these: Python 2: issue10941_python2.diff Python 3: issue10941_python3.diff -- ___ Python tracker ___

[issue8427] toplevel jumps to another location on the screen

2012-04-23 Thread Ned Deily
Ned Deily added the comment: Thanks for supplying the test case. I can reproduce the incorrect behavior by using Python 2.7 and the Apple-supplied system Tcl/Tk 8.4 on OS X 10.4. But if a current ActiveState Tcl/Tk 8.4 is used with the same Python and OS X, the correct behavior is seen. The

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's a CPython bug. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue14657] Avoid two importlib copies

2012-04-23 Thread Brett Cannon
Brett Cannon added the comment: I should also mention that all of this becomes much less important once issue #14605 is finished because at that point sys.meta_path and sys.path_hooks will have _frozen_importlib objects and that will be what importlib works off of directly. But I still unders

[issue14080] Sporadic test_imp failure

2012-04-23 Thread Brett Cannon
Brett Cannon added the comment: Issue #14657 is tracking the discussion of _frozen_importlib/importlib._bootstrap. -- ___ Python tracker ___ ___

[issue14605] Make import machinery explicit

2012-04-23 Thread Brett Cannon
Brett Cannon added the comment: Updated patch for an explicit sys.path_hooks that simply tweaks the test_cmd_line_script tests to stop requiring an absolute path on the files and instead verifies that the relative paths are legit. It also adds warnings when None is found in sys.path_importer_

[issue8427] toplevel jumps to another location on the screen

2012-04-23 Thread Andrei Paraschivescu
Andrei Paraschivescu added the comment: "python jumpBug.py" creates two windows, "root" and "other". If the first thing you do is click on "other", then hit , the printed geometry string will show the position of the window "root". By contrast, if you first click on "root", then on "other", f

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I still get conflicts: $ patch -p0 < imaplib_Internaldate2tuple_dst_fix_python32.patch patching file Lib/imaplib.py Hunk #2 FAILED at 1312. Hunk #3 succeeded at 1347 (offset 8 lines). Hunk #4 FAILED at 1379. 2 out of 4 hunks FAILED -- saving rejects to

[issue14657] Avoid two importlib copies

2012-04-23 Thread Brett Cannon
Brett Cannon added the comment: So why the mutation? Are you that worried someone is going to import importlib._bootstrap directly? This also costs in development complexity because not only do you have to run 'make' to get changes to be testable, but it also leads to difficult debugging sit

[issue14657] Avoid two importlib copies

2012-04-23 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue3177] Add shutil.open

2012-04-23 Thread Chris Rebert
Changes by Chris Rebert : Added file: http://bugs.python.org/file25332/shutil_open.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14656] Add a macro for unreachable code

2012-04-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Right, we currently avoid this problem by writing "assert(0)" for > example in lookdict_split in dictobject.c. What I'm saying is that > instead writing "assert(0)", we could use Py_UNREACHABLE. I don't understand. The assert(0) is not there to silence any c

[issue14655] traceback module docs should show how to print/fomat an exception object

2012-04-23 Thread R. David Murray
R. David Murray added the comment: Sounds OK to me, though I am worried others will think that kind of variable signature (where the type of the first argument depends on the number of arguments passed) is bad. -- ___ Python tracker

[issue14656] Add a macro for unreachable code

2012-04-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2012/4/23 Martin v. Löwis : > > Martin v. Löwis added the comment: > >>> What's the specific warning that you want to eliminate? >> >> "control reaches end of non-void function without return" >> >> Basically, whenever you see "assert(0)" today. > > Sorry, w

[issue14657] Avoid two importlib copies

2012-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch also avoids calling _setup() a second time (which can be annoying since _setup() has a list.append() call somewhere). -- Added file: http://bugs.python.org/file25331/unique_importlib3.patch ___ Python trac

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14658] Overwriting dict.__getattr__ is inconsistent

2012-04-23 Thread Albert Zeyer
New submission from Albert Zeyer : ``` class Foo1(dict): def __getattr__(self, key): return self[key] def __setattr__(self, key, value): self[key] = value class Foo2(dict): __getattr__ = dict.__getitem__ __setattr__ = dict.__setitem__ o1 = Foo1() o1.x = 42 print(o1, o1.x) o2 =

[issue14657] Avoid two importlib copies

2012-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch with tests. -- Added file: http://bugs.python.org/file25330/unique_importlib2.patch ___ Python tracker ___ __

[issue14656] Add a macro for unreachable code

2012-04-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> What's the specific warning that you want to eliminate? > > "control reaches end of non-void function without return" > > Basically, whenever you see "assert(0)" today. Sorry, what I meant is: what specific line (in what specific source file) is that warnin

[issue14657] Avoid two importlib copies

2012-04-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file25329/unique_importlib.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue14657] Avoid two importlib copies

2012-04-23 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14657] Avoid two importlib copies

2012-04-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file25328/unique_importlib.patch ___ Python tracker ___ ___ Python-bugs-list

[issue14657] Avoid two importlib copies

2012-04-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch avoids creating a second copy of importlib._bootstrap when a first one exists as _frozen_importlib. This isn't perfect as it mutates the module when importlib is imported for the first time, but I think it's better than the status quo. Also, impor

[issue14656] Add a macro for unreachable code

2012-04-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2012/4/23 Martin v. Löwis : > > Martin v. Löwis added the comment: > > What's the specific warning that you want to eliminate? "control reaches end of non-void function without return" Basically, whenever you see "assert(0)" today. -- ___

[issue14656] Add a macro for unreachable code

2012-04-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: What's the specific warning that you want to eliminate? -- nosy: +loewis ___ Python tracker ___ __

[issue14080] Sporadic test_imp failure

2012-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some entries in sys.path_importer_cache are named _frozen_importlib.FileFinder, and others are named importlib._bootstrap.FileFinder. Isn't that a bit worrying? Two copies of importlib are loaded in memory? (and functioning independently?) -- __

[issue14080] Sporadic test_imp failure

2012-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Happened again on one of the Windows buildbots: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/6436/steps/test/logs/stdio == FAIL: test_package___file__ (test.test_im

[issue14655] traceback module docs should show how to print/fomat an exception object

2012-04-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Why not reuse format_exception(exc)? in 2.7 you could write "raise type, value, traceback", or "raise value". I suggest that traceback.format_exception take the same route, and accept both (type, value, traceback) and (value). -- nosy: +amaury.fo

[issue14656] Add a macro for unreachable code

2012-04-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14654] More fast utf-8 decoding

2012-04-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14624] Faster utf-16 decoder

2012-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: 64 bit Linux, Intel Core i5-2500K @ 3.30GHz: vanilla 3.3 patched utf-16le 'A'*1 1384 (+278%) 5233 utf-16le 'A'*+'\x80' 1303 (+259%) 4684 utf-16le 'A'*+'\u010

[issue14572] 2.7.3: sqlite module does not build on centos 5

2012-04-23 Thread Marc Abramowitz
Marc Abramowitz added the comment: This patch worked for me as well. Thanks, Joakim! $ cat /etc/redhat-release CentOS release 5.5 (Final) -- nosy: +Marc.Abramowitz ___ Python tracker

[issue14656] Add a macro for unreachable code

2012-04-23 Thread Benjamin Peterson
New submission from Benjamin Peterson : It would be nice to have a macro Py_UNREACHABLE to keep compiler warnings away in unreachable code. This is can call __builtin_unreachable on gcc and abort elsewhere. -- components: Interpreter Core keywords: easy messages: 159088 nosy: benjamin.

[issue14648] Attempt to format ascii and non-ascii strings together fails with "... UCS2 ..."

2012-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 139c3ae84772 by Victor Stinner in branch 'default': Close #14648: Compute correctly maxchar in str.format() for substrin http://hg.python.org/cpython/rev/139c3ae84772 -- resolution: -> fixed stage: test needed -> committed/rejected status:

[issue14654] More fast utf-8 decoding

2012-04-23 Thread STINNER Victor
STINNER Victor added the comment: > 64-bit Linux, Intel Core i5-2500K CPU @ 3.30GHz: (...) Hum, the patch doesn't look very interesting if it only optimize one specific case: > utf-8     '\x80'*1                    366 (+53%)    559 -- ___ Pyth

[issue14654] More fast utf-8 decoding

2012-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: 64-bit Linux, Intel Core i5-2500K CPU @ 3.30GHz: vanilla 3.3 patched utf-8 'A'*1 6668 (+7%)7145 utf-8 'A'*+'\x80' 2358 (+3%)2418 utf-8 'A'*+'\u

[issue14655] traceback module docs should show how to print/fomat an exception object

2012-04-23 Thread R. David Murray
New submission from R. David Murray : Suppose you have an exception object acquired from somewhere. The exception is no longer active on the stack. Now you want to format the exception like format_exception would (to log it, perhaps). To do this you apparently need to call: format_except

[issue14648] Attempt to format ascii and non-ascii strings together fails with "... UCS2 ..."

2012-04-23 Thread STINNER Victor
STINNER Victor added the comment: "{0:s}{1:s}".format("ABC", "\u0410\u0411\u0412") > python: Objects/unicodeobject.c:1223: _copy_characters: Assertion `ch <= > to_maxchar' failed. Attached patch fixes this issue. -- keywords: +patch Added file: http://bugs.python.org/file25327/fo

[issue3177] Add shutil.open

2012-04-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14654] More fast utf-8 decoding

2012-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are the results of benchmarking (numbers in MB/s). On 32-bit Linux, AMD Athlon 64 X2 4600+ @ 2.4GHz: Py2.7 Py3.2 Py3.3 patch utf-8 'A'*1 191 (+790%) 1170

[issue11618] Locks broken wrt timeouts on Windows

2012-04-23 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: The vista specific path is included there for completeness, if and when code moves to that platform, besides showing what the "emulated CV" is actually emulating. Also, I am aware of the old/new GIL, but our console game uses python 2.7 and the old G

[issue14654] More fast utf-8 decoding

2012-04-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The utf-8 decoder is already well optimized. I propose a patch, which accelerates the utf-8 decoder for some of the frequent cases even more (+10-30%). In particular, for 2-bites non-latin1 codes will get about +30%. This is not the final result of optimi

[issue14596] struct.unpack memory leak

2012-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that implements method __sizeof__ for Struct. This can be used to limit the caching. In any case, it is useful to know the real memory consumption of the object. I'm not sure of the correctness of the method implementation. -- Added f

[issue14625] Faster utf-32 decoder

2012-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are the results of benchmarking (numbers in MB/s). On 32-bit Linux, AMD Athlon 64 X2 4600+ @ 2.4GHz: Py2.7 Py3.2 Py3.3 patchA patchB utf-32le 'A'*1 461

[issue14624] Faster utf-16 decoder

2012-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are the results of benchmarking (numbers in MB/s). On 32-bit Linux, AMD Athlon 64 X2 4600+ @ 2.4GHz: Py2.7Py3.2Py3.3 patch utf-16le 'A'*1 504 (+282%) 1905 (+1%

[issue14339] Optimizing bin, oct and hex

2012-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can only do this tomorrow. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue14610] configure script hangs on pthread verification and PTHREAD_SCOPE_SYSTEM verification on Ubuntu

2012-04-23 Thread Raphael Cruzeiro
Raphael Cruzeiro added the comment: Posting the strac output -- Added file: http://bugs.python.org/file25322/strace.output.txt ___ Python tracker ___ ___

[issue14653] Improve mktime_tz to use calendar.timegm instead of time.mktime

2012-04-23 Thread Mitar
New submission from Mitar : I would suggest improvement of mktime_tz to use calendar.timegm internally instead of time.mktime. The problem is that on Windows mktime_tz fails with "mktime argument out of range" for this code: mktime_tz(parsedate_tz('Thu, 1 Jan 1970 00:00:00 GMT')) if user is i

[issue14610] configure script hangs on pthread verification and PTHREAD_SCOPE_SYSTEM verification on Ubuntu

2012-04-23 Thread Raphael Cruzeiro
Raphael Cruzeiro added the comment: Here is the output of sh -x ./configure -- Added file: http://bugs.python.org/file25321/output_sh ___ Python tracker ___

[issue11618] Locks broken wrt timeouts on Windows

2012-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is a 60% performance increase for the common case of acquiring an > uncontested lock worth doing? Yes, I agree it is. However, the Vista-specific path seems uninteresting, if it's really 2% faster. > our console profilers were alarmed at all the kernel tran

[issue11618] Locks broken wrt timeouts on Windows

2012-04-23 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Any thougts? Is a 60% performance increase for the common case of acquiring an uncontested lock worth doing? Btw, for our console game I also opted for non-semaphore based locks in thread_pthread.h, because our console profilers were alarmed at all t

[issue14632] Race condition in WatchedFileHandler leads to unhandled exception

2012-04-23 Thread Vinay Sajip
Vinay Sajip added the comment: [snip] >With this change, I can trigger a failure reliably in around 1s, and >my computer is rather slow. I'm working in a VM, and although I can get John's script to fail more regularly (with the reduced timeouts and counts of 1000), a version of the test which

[issue3177] Add shutil.open

2012-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm not a lawyer (duh), but my understanding is that *looking* at GPL > code (as opposed to proprietary code, where someone might sue you > about it and not looking is a good defense) is OK, you just can't copy > it. You could probably copy a one- or two-line

[issue3177] Add shutil.open

2012-04-23 Thread R. David Murray
R. David Murray added the comment: I'm not a lawyer (duh), but my understanding is that *looking* at GPL code (as opposed to proprietary code, where someone might sue you about it and not looking is a good defense) is OK, you just can't copy it. -- ___

[issue14640] Typos in pyporting.rst

2012-04-23 Thread R. David Murray
R. David Murray added the comment: Thanks, Dionysios. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior versions: +Python 3.2 ___ Python tracker

[issue14640] Typos in pyporting.rst

2012-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7b002e5cac7 by R David Murray in branch '3.2': #14640: Fix typos/syntax in pyporting.rst. http://hg.python.org/cpython/rev/f7b002e5cac7 New changeset 13c30fe3f427 by R David Murray in branch 'default': Merge #14640: Fix typos/syntax in pyporting.r

[issue3177] Add shutil.open

2012-04-23 Thread Chris Rebert
Chris Rebert added the comment: >> The semantics of "associated application" change considerably from >> operating system to operating system. As an example, >> ``os.startfile("a.py")`` will usually run `a.py` in the Python >> interpreter, while ``xdg-open a.py`` it will usually open the source

[issue3177] Add shutil.open

2012-04-23 Thread Hobs
Hobs added the comment: Yea, I hosed up the path quoting in a misguided attempt at shortening for 80-col line-wrapping. Yours is better, will revert. On Tue, Apr 24, 2012 at 2:09 AM, Chris Rebert wrote: > > Chris Rebert added the comment: > > Also: > > The FileNotFoundErrors quote the path tw

[issue3177] Add shutil.open

2012-04-23 Thread Chris Rebert
Chris Rebert added the comment: The xdg-open source code (http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-open ) shows that exit code 4 is used whenever an invocation of another opener script (e.g. kde-open, gnome-open) fails for any reason besides said script not being installed.

[issue3177] Add shutil.open

2012-04-23 Thread Chris Rebert
Chris Rebert added the comment: Also: The FileNotFoundErrors quote the path twice: Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) >>> path = "/foo/bar" >>> print "Path '%s' may not exist" % repr(path) Path ''/foo/bar'' may not exist The ValueError error message isn't grammat

[issue14650] 1-character typo in shutil docstring

2012-04-23 Thread Sandro Tosi
Sandro Tosi added the comment: Thanks for your contribution! -- nosy: +sandro.tosi resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue14650] 1-character typo in shutil docstring

2012-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 629d4c2faa87 by Sandro Tosi in branch 'default': Issue #14650: fix typo in shutil.disk_usage() docstring; patch by Hobson Lane http://hg.python.org/cpython/rev/629d4c2faa87 -- nosy: +python-dev ___ Pytho

[issue3177] Add shutil.open

2012-04-23 Thread Hobs
Hobs added the comment: Because that's how I caused the exception in Ubuntu--shutil.launch('file_that_doesnt_exist'). That's why I changed the message to "file may not exist" for both 2 and 4, but should probably prove that 2 sometimes happens when the file does exist (like with permission or vi

[issue3177] Add shutil.open

2012-04-23 Thread Chris Rebert
Chris Rebert added the comment: Hobs, why is exit code 4 of xdg-open (which the manpage describes as the extremely generic "The action failed.") interpreted as FileNotFoundError in your new version? -- ___ Python tracker

[issue14650] 1-character typo in shutil docstring

2012-04-23 Thread Hobs
Hobs added the comment: Eric, the documentation (shutil.rst) looks fine. Just a code comment typo. -- ___ Python tracker ___ ___ Pyth

[issue3177] Add shutil.open

2012-04-23 Thread Chris Rebert
Chris Rebert added the comment: >> ENOSYS was the closest approximation I could find. Thoughts? Custom >> error class? Different errno? Something else? > > Why not ValueError? Because the value they provided was perfectly valid (the file/directory *did* exist), so the caller's request was reas

[issue13903] New shared-keys dictionary implementation

2012-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34b6998efd2c by Benjamin Peterson in branch 'default': fix instance dicts with str subclasses (#13903) http://hg.python.org/cpython/rev/34b6998efd2c -- ___ Python tracker

[issue14641] Minor fixes in sockets.rst

2012-04-23 Thread Sandro Tosi
Sandro Tosi added the comment: Thanks for your contribution! -- nosy: +sandro.tosi resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker __

[issue14652] Better error messages for wsgiref validator failures

2012-04-23 Thread Sidney San Martín
New submission from Sidney San Martín : wsgiref’s validation middleware is missing messages for many of its assertions, and its docstring doesn’t reflect read() now requiring an argument (said that it took an optional argument). Here’s a patch to add some and update the comment. -- co

[issue14641] Minor fixes in sockets.rst

2012-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset f24d8dc1a986 by Sandro Tosi in branch '2.7': Issue #14641: minor fixes to sockets Howto; patch by Dionysios Kalofonos http://hg.python.org/cpython/rev/f24d8dc1a986 New changeset 9bb9604519ce by Sandro Tosi in branch '3.2': Issue #14641: minor fixes

[issue3177] Add shutil.open

2012-04-23 Thread Hobs
Hobs added the comment: I'll be happy to code, test, and use the new .() function wherever it ends up and whatever it is named... but... > Initially this issue was about implementing a startfile-equivalent on > posix. But if you have to add a gui option to startfile to not lanuch > a

[issue10731] UnicodeDecodeError in OS X tkinter when binding to

2012-04-23 Thread Ned Deily
Ned Deily added the comment: A potential fix has been generated for Tk. I'll close this issue once the fix has been verified with _tkinter. -- resolution: -> out of date stage: needs patch -> status: open -> pending ___ Python tracker

[issue13903] New shared-keys dictionary implementation

2012-04-23 Thread Mark Shannon
Mark Shannon added the comment: I fixed it back then, but didn't add the test. It subsequently regressed. Should know better. Patch (with test this time) attached. -- resolution: fixed -> status: closed -> open Added file: http://bugs.python.org/file25318/str_subclass.patch _

[issue14638] pydoc error on instance of a custom class

2012-04-23 Thread R. David Murray
R. David Murray added the comment: Thanks Peter. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14638] pydoc error on instance of a custom class

2012-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a35dfbe3d99 by R David Murray in branch '3.2': #14638: pydoc now treats non-str __name__ as None instead of raising http://hg.python.org/cpython/rev/2a35dfbe3d99 New changeset 86b4b54bb0fa by R David Murray in branch 'default': merge #14638: pydoc

[issue14638] pydoc error on instance of a custom class

2012-04-23 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray nosy: +r.david.murray stage: -> commit review ___ Python tracker ___ ___

[issue14632] Race condition in WatchedFileHandler leads to unhandled exception

2012-04-23 Thread Charles-François Natali
Charles-François Natali added the comment: > Charles-François: Certainly I can reduce the iterations to make the test > faster. As it is, I did reproduce the failure on my dev system, but only > once, after running John's test script about a dozen times: every other > time, it completed successf

[issue14635] telnetlib uses select instead of poll - limited to FD_SETSIZE fds

2012-04-23 Thread R. David Murray
R. David Murray added the comment: Éric: there are devices that still only allow telnet. Older cisco routers (*many* of which are still in the field) are just one example I'm familiar with. I don't currently have any tools that use telnetlib to talk to them, but I've got at least two I'd li

[issue3177] Add shutil.open

2012-04-23 Thread Hobs
Hobs added the comment: Last patch was invalid and untested. New patch passes `make patchtest`, but still doing the full test suite on Windows and Linux. Still unsure if I raised the right exceptions with the right arguments. -- Added file: http://bugs.python.org/file25317/shutil_ope

[issue3177] Add shutil.open

2012-04-23 Thread Éric Araujo
Éric Araujo added the comment: > The semantics of "associated application" change considerably from > operating system to operating system. As an example, > ``os.startfile("a.py")`` will usually run `a.py` in the Python > interpreter, while ``xdg-open a.py`` it will usually open the source > co

[issue14651] pysetup run cmd can't handle option values in the setup.cfg

2012-04-23 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. This is weird, given that the code for setting command options in setup.cfg directly comes from distutils and works there. I think that this error may come from another bug in pysetup (i.e. in distutils2.run) where the config file is par

[issue14650] 1-character typo in shutil docstring

2012-04-23 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Can you check if the typo is also present in the documentation (i.e. in Doc/library)? -- title: 1-character typo in shutils doctext -> 1-character typo in shutil docstring ___ Python tracker

[issue14651] `pysetup run [cmd]` can't handle option values in the setup.cfg

2012-04-23 Thread Takayuki SHIMIZUKAWA
New submission from Takayuki SHIMIZUKAWA : `pysetup run [cmd]` can't handle option values in the setup.cfg setup.cfg:: [sdist] formats = gztar dist-dir = _dist run on windows:: C:> pysetup run sdist That command generate `dist/package-version.zip` instead of `_dist/packcage-version.

[issue3177] Add shutil.open

2012-04-23 Thread Sven Marnach
Sven Marnach added the comment: The semantics of "associated application" change considerably from operating system to operating system. As an example, ``os.startfile("a.py")`` will usually run `a.py` in the Python interpreter, while ``xdg-open a.py`` it will usually open the source code in

[issue3177] Add shutil.open

2012-04-23 Thread R. David Murray
R. David Murray added the comment: Initially this issue was about implementing a startfile-equivalent on posix. But if you have to add a gui option to startfile to not lanuch a GUI, and your real goal is a consistent way to launch non-gui programs on posix, then I don't see that this is abou

[issue3177] Add shutil.open

2012-04-23 Thread Hobs
Hobs added the comment: New patch incorporates improvements from pitrou, cvrebert, r.david.murray, eric.araujo, cool-RR -- Added file: http://bugs.python.org/file25315/shutil_open.patch ___ Python tracker

[issue13684] httplib tunnel infinite loop

2012-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 790ae45b52be by Senthil Kumaran in branch '2.7': Fix for Issue13684 - httplib tunnel infinite loop http://hg.python.org/cpython/rev/790ae45b52be New changeset 7787a9aebdc6 by Senthil Kumaran in branch '3.2': 3.2 - Fix for Issue13684 - httplib tunne

[issue14650] 1-character typo in shutils doctext

2012-04-23 Thread Hobs
New submission from Hobs : This patch fixes a 1-character typo in the docstring for shutil.disk_usage(). -- assignee: docs@python components: Documentation files: shutil_disk_usage_doc.patch keywords: patch messages: 159035 nosy: Hobson.Lane, docs@python, eric.araujo priority: normal sev

  1   2   >