[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-06-27 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: -> committed/rejected status: open -> pending ___ Python tracker ___ ___ Pytho

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a0b929b5c3d by Ned Deily in branch '2.7': Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9 http://hg.python.org/cpython/rev/4a0b929b5c3d New changeset 570cdef34066 by Ned Deily in branch '3.2': Issue #10736: Fix test_ttk test_w

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-06-27 Thread Paulo Scardine
Paulo Scardine added the comment: Is there anything I should improve in order to get this patch commited? -- resolution: -> remind ___ Python tracker ___ __

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur added the comment: I've fixed the last failing tests, but I'm unsure it's the right way to do it. Take a look at the part for Lib/distutils/tests/test_build_ext.py. I just check that os.environ['PATH'] is defined. I'm not 100% certain that this will work on every platforms. --

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Henry Precheur
Changes by Henry Precheur : Removed file: http://bugs.python.org/file22501/fix_distutils_test.diff ___ Python tracker ___ ___ Python-bugs-list

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: memoryview.release() will raise an exception if you call it when the underlying PyManagedBuffer instance has a refcount > 1. So the explicit memory management still works, and if you mess it up by leaving dangling references around you'll run the risk of gettin

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: > test_sigwaitinfo_interrupted() fails because SIGALRM > signal handler is called ... Oh, the problem is that sigwait() behaviour changes after a fork: it is interrupted if an unexpected signal is received, but the signal handler is not called. It behaves cor

[issue12424] distutils2: extension section uses bad environment marker separator

2011-06-27 Thread Eli Collins
Changes by Eli Collins : -- keywords: +patch Added file: http://bugs.python.org/file22503/cpython_issue12424.patch ___ Python tracker ___

[issue12424] distutils2: extension section uses bad environment marker separator

2011-06-27 Thread Eli Collins
New submission from Eli Collins : The _pop_values() function in packaging.config uses "--" as the environment marker separator when parsing extension sections. This doesn't match PEP 345, or how the metadata section is currently parsed, both of which use ";" instead. Also, "--" is frequently f

[issue12345] Add math.tau

2011-06-27 Thread Guido van Rossum
Guido van Rossum added the comment: Uh, not until I've seen a lot more evidence that people are habitually writing "TAU = 2 * math.pi" in their programs... -- nosy: +gvanrossum ___ Python tracker

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2011-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: Your patch is linux3 compliant, go ahead! -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: New patch updated according to bitdancer's comment on IRC: only change the -W option. With the patch, -W only runs the test once but captures the output. The main difference with my patch is that all output is written to stderr, even if the captured output wa

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg139334 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: Can someone update the patch for Python 3.3? Python 2.7 and 3.2 don't accept new features. -- ___ Python tracker ___ __

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: You someone update the patch for Python 3.3? Python 2.7 and 3.2 don't accept new features. -- versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-06-27 Thread Nicholas Cole
Nicholas Cole added the comment: Is there any hope that something like this patch will make it into a future version? As far as I can see, entering accented characters is currently impossible on the latest release versions of python...or am I missing something? -- nosy: +Nicholas.Col

[issue12352] multiprocessing.Value() hangs

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: There are different technics to workaround this issue. My preferred is heap_gc_deadlock_lockless.diff because it has less border effect and have a well defined behaviour. -- ___ Python tracker

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3143cadb2f2d by Benjamin Peterson in branch '2.7': add more ast tests (closes #11302) http://hg.python.org/cpython/rev/3143cadb2f2d New changeset e8d47cbe9b6f by Benjamin Peterson in branch '3.2': add more ast tests (closes #11302) http://hg.python

[issue12352] multiprocessing.Value() hangs

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: > You may document that _pending_free_blocks.append() > and _pending_free_blocks.pop() are atomic in CPython > and don't need a specific lock. Oops, i skipped complelty your long comment explaining everything! It is enough. --

[issue12352] multiprocessing.Value() hangs

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: heap_gc_deadlock_lockless.diff: _free_pending_blocks() and free() execute the following instructions in a different order, is it a problem? +self._free(block) +self._allocated_blocks.remove(block) vs +self._allocated_b

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: Extract of abort manual page: "The abort() first unblocks the SIGABRT signal, and then raises that signal for the calling process. This results in the abnormal termination of the process unless the SIGABRT signal is caught and the signal handler does not

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset e24ad85e9608 by Benjamin Peterson in branch 'default': don't memoize objects that are their own copies (closes #12422) http://hg.python.org/cpython/rev/e24ad85e9608 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected st

[issue1475523] gettext breaks on plural-forms header

2011-06-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok. This is a different issue, then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Lenard Lindstrom
Lenard Lindstrom added the comment: It would if the proposed PyManagedBuffer only releases the Py_buffer struct - calls PyBuffer_Release - when its Python reference count goes to zero. So a separate reference count will be maintained instead. -- __

[issue12376] unittest.TextTestResult.__init__ does not pass on its init arguments in super call

2011-06-27 Thread Ben Ranker
Ben Ranker added the comment: Sorry for any confusion caused by my imprecise use of the word "explodes." -- ___ Python tracker ___ __

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Pauli Virtanen
Pauli Virtanen added the comment: Lenard Lindstrom writes: > Using Python reference counting and the garbage collector to control > when PyBuffer_Release is called has problems. That's not what's being suggested. The refcounting discussed here is an implementation detail internal to memoryvie

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Alex Gaynor
Alex Gaynor added the comment: Amaury points out: this is not strictly about immutable objects, but rather objects who's deepcopy is themselves (identity-wise), in some (rare I think) cases this could provide a slowdown. Specifically a case of [(1, 2, 3)] * 1 would be slower, because it

[issue11457] Expose nanosecond precision from system calls

2011-06-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Jun 26, 2011 at 8:23 AM, Martin v. Löwis wrote: .. >> I understand that it is an issue of the datetime module. Can it be >> solved, or is there a design issue in the module? > > It's an inherent flaw of broken-down time. Don't use that > represent

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-27 Thread Dimitri Tcaciuc
Changes by Dimitri Tcaciuc : -- nosy: +dtcaciuc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Lenard Lindstrom
Lenard Lindstrom added the comment: Using Python reference counting and the garbage collector to control when PyBuffer_Release is called has problems. First, it assumes the CPython interpreter will always use reference counting. Second, PyBuffer_Release may never get called if circular refere

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-27 Thread Kamil Kisiel
New submission from Kamil Kisiel : It seems that registering a signal handler for SIGABRT doesn't handle the signal from os.abort(). Example code: import signal, os import time def handler(signum, frame): print "Signal!" raise Exception() signal.signal(signal.SIGABRT, handler) os.abo

[issue12423] signal handler dpes

2011-06-27 Thread Kamil Kisiel
Changes by Kamil Kisiel : -- nosy: kisielk priority: normal severity: normal status: open title: signal handler dpes ___ Python tracker ___ __

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur added the comment: OK it makes sense. I'm working on fixing the tests. I'm not done yet, but I've attached a patch with my work in progress (some tests still fail). Do you have any comments? I'll post a complete version later today or tomorrow. -- Added file: http://bu

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le Mon, 27 Jun 2011 13:17:57 +, Nick Coghlan a écrit : > > The TL;DR version of the above is that I would like to see it become: > > typedef struct { > PyObject_HEAD > PyManagedBuffer source_data; // shared read-only Py_buffer access > Py_buff

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Stefan Krah
Stefan Krah added the comment: Nick Coghlan wrote: [Snip liberally] > The lifecycle problem is unrelated to the details of the buffer *contents* though - it's entirely about the fact that clients can't safely copy all those pointers (as some may refer to addresses inside the struct) and ask

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Alex Gaynor
Alex Gaynor added the comment: Switched to using assertIs, as merwok suggested. -- Added file: http://bugs.python.org/file22500/d.diff ___ Python tracker ___ ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Stefan Krah
Stefan Krah added the comment: Pauli Virtanen wrote: > skrah writes: > > For example, an exporting object could provide a sliced view by adding > > a getslicedbufferproc to PyBufferProcs: > > > > int PyObject_GetSlicedBuffer(PyObject *obj, Py_buffer *view, > > int

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-06-27 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2011-06-27, at 9:11 AM, Éric Araujo wrote: > Éric Araujo added the comment: > > « Python 3.2 was released on February 20th, 2011. » (from python.org) My mistake; I meant to say 3.2.1 final. -- ___ Python t

[issue10403] Use "member" consistently

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Alexander, could you comment on the review page about datetime.rst changes? -- nosy: +belopolsky ___ Python tracker ___ __

[issue12043] Update shutil documentation

2011-06-27 Thread Sandro Tosi
Sandro Tosi added the comment: I'm starting to work on a patch right now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12043] Update shutil documentation

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Can you add links, a list of problems, dependency bugs or a patch? Otherwise this is an empty placeholder. -- ___ Python tracker ___ ___

[issue12043] Update shutil documentation

2011-06-27 Thread Sandro Tosi
Changes by Sandro Tosi : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: « Python 3.2 was released on February 20th, 2011. » (from python.org) -- nosy: +eric.araujo ___ Python tracker ___

[issue12385] the help for bytearray.maketrans describes bytes.maketrans

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 586745894ab8 by Senthil Kumaran in branch '3.2': Fix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray object. http://hg.python.org/cpython/rev/586745894ab8 -- nosy: +python-dev resolution: -> fixed stage: nee

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-06-27 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2011-06-26, at 2:04 PM, Terry J. Reedy wrote: > Terry J. Reedy added the comment: > > Sridhar, is there still a problem with current 3.2/3? > > If you are no longer working on this, I think we should close as > languishing/postponed. I am not workin

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: I mean in the two commits. I can check the whole file later (and also use automatic reST footnotes, [#] instead of [#fn1]). -- ___ Python tracker __

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Eric, you mean for the whole of sqlite3 docmentation or the part in the footnote? -- ___ Python tracker ___ _

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin added the comment: I updated the gist and made a minimal test https://gist.github.com/1047551 -- ___ Python tracker ___ ___ Pyt

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Alex Gaynor
Alex Gaynor added the comment: A slightly cleverer version (or less clever, depending on how you approach the issue) that also works with tuples of immutable content. -- Added file: http://bugs.python.org/file22499/d.diff ___ Python tracker

[issue8617] Better document user site-packages in site module doc

2011-06-27 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue8617] Better document user site-packages in site module doc

2011-06-27 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +patch Added file: http://bugs.python.org/file22498/pep370-doc.diff ___ Python tracker ___ ___ Py

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Carl Friedrich Bolz
Changes by Carl Friedrich Bolz : -- nosy: +Carl.Friedrich.Bolz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: The setup.cfg spec says only this: > The callables are executed in the order they’re found in the file; if > one of them cannot be found, tools should not stop, but for example > produce a warning and continue with the next line. packaging/commandhooks does not s

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: To explain my position: distutils is a very brittle codebase that’s used and monkey-patched by a lot of third-party code. In the past, before the forking of distutils/packaging, Tarek tried to gradually improve distutils but he got a lot of pushback when his ch

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Alex Gaynor
New submission from Alex Gaynor : All storing immutable objects in the memo dict does is slow stuff down, due to having a larger hash table, and on some other Python's causing hilarious levels of GC pressure. Using http://paste.pocoo.org/show/421310/ as a benchmark, CPython get's a 2x speedup

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Vincent Legoll
Vincent Legoll added the comment: * removed the comments for exc msgs * added explanation to multiline statements * added 2 tests to test_AST_objects() Regarding Éric's comment, I'm starting to wonder if those Exception tests should be added to cpython's testsuite. Maybe that would only be ben

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Tarek Ziadé
Tarek Ziadé added the comment: We need to make it crystal clear in the doc: developers need to understand this behavior. Also, for a fatal error, I am -1 for activating this for an uninstall hook because we want to uninstall wathever happens in the hooks, +1 for others (as long as it's coupl

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Henry Precheur
Changes by Henry Precheur : -- title: distutils crashes if PATH is not defined -> distutils tests fail if PATH is not defined ___ Python tracker ___

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur added the comment: I think that returning None would be a better option. The function documentation says: Tries to find 'executable' in the directories listed in 'path'. A string listing directories separated by 'os.pathsep'; defaults to os.environ['PATH']. Returns the co

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Definitely, hooks do not stop operation. I’ll double-check that. We may want an option to turn hooks failures into fatal errors. -- ___ Python tracker

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Tarek Ziadé
Tarek Ziadé added the comment: Sounds good. Also, we should make the assumption that this hook might be deactivated or might fail. So it should not break the uninstallation in this case (a warning seem fine) -- ___ Python tracker

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/6/27 Vincent Legoll : > > Vincent Legoll added the comment: > > I was testing exact matches on the strings because I think pypy wants to be > as compliant as possible with cpython, and IMHO that include exception msgs > as far as possible. I don't see

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: > I think pypy wants to be as compliant as possible with cpython, and > IMHO that include exception msgs as far as possible. I don't see any > reason to be different just for the sake of it. > > As a user I'd find strange not to get same exc msgs from different > i

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Vincent Legoll
Vincent Legoll added the comment: I was testing exact matches on the strings because I think pypy wants to be as compliant as possible with cpython, and IMHO that include exception msgs as far as possible. I don't see any reason to be different just for the sake of it. As a user I'd find stra

[issue4296] Python assumes identity implies equivalence; contradicts NaN

2011-06-27 Thread Sven Marnach
Sven Marnach added the comment: The behaviour discussed in this thread does not seem to be reflected in Python's documentation. The documentation of __eq__() [1] doesn't mention that objects should compare equal to themselves. [1]: http://docs.python.org/dev/reference/datamodel.html#object.

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Floris Bruynooghe
Floris Bruynooghe added the comment: That was quick, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: I just noticed that the blocks in reST should use three-space indent, not two. -- ___ Python tracker ___ _

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Vinay Sajip
Vinay Sajip added the comment: N.B. I did not add an additional constructor arg - instead, it's a class-level attribute which can be overridden at class or instance level. -- ___ Python tracker __

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Great patch, thanks! It’s on the top of my commit list. -- priority: normal -> high ___ Python tracker ___ __

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: You still haven't explained why including multiline literals is a good idea. Also, the reason we avoid matching exact messages is it can vary across implementations. You can still do an accurate test with something like self.assertIn("foobar", str(e)) ---

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6baa90fa2b6d by Vinay Sajip in branch 'default': Closes #12419: Added ident to SysLogHandler. http://hg.python.org/cpython/rev/6baa90fa2b6d -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed ___

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-27 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22330/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-27 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22309/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12296] Minor clarification in devguide

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Okay for a new sentence. I think repeating new is clearer: (This obviously does not apply to new classes or functions, or new optional arguments.) -- ___ Python tracker __

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread R. David Murray
R. David Murray added the comment: But senthil already demonstrated in the previous issue that it does not become a unicode string unless you use unicode input. You also claimed that your test program here succeeded in python2.6, but it does not. This casts a little bit of doubt on your clai

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Okay, I see the original use case (#12401). I think the proper thing to do is to skip tests that rely on the environment being non-empty. -- ___ Python tracker

[issue12417] Inappropriate copyright on profile files

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Great news for Debian users! Thanks to all involved. -- nosy: +eric.araujo versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur added the comment: I don't know exactly in which context find_executable should be used, but after taking a closer look it seems that returning None when PATH is not defined could "work". -- ___ Python tracker

[issue12417] Inappropriate copyright on profile files

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55219254eb77 by Benjamin Peterson in branch '2.7': update profile license (closes #12417) http://hg.python.org/cpython/rev/55219254eb77 New changeset e50963c3119d by Benjamin Peterson in branch '3.2': update profile license (closes #12417) http://h

[issue11493] Add python.exe-gdb.py to .hgignore

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Ah, it’s for Mac. gdb + .exe sounded strange in my head :) -- ___ Python tracker ___ ___ Python-bugs-

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur added the comment: Sorry "crash" wasn't the right term. It's just that distutils tests fail. I ran into that when trying to run unit tests without any environment variable (see #12401). $ env -i ./python ./Lib/test/regrtest.py test_distutils [1/1] test_distutils test test_distut

[issue12406] msi.py needs updating for Python 3.3

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: > I've realised there are more additions due to packaging - for example > there is a whole set of "wininst-X.Y[-amd64].exe" files Oh thanks, I had forgotten about msi.py. Copying the similar section that already exists for distutils wininst executables and addin

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Vincent Legoll
Vincent Legoll added the comment: Here we are, I left the exact messages for raised exceptions as comments so they can easily be checked in case of test failure... Does that look OK ? -- Added file: http://bugs.python.org/file22495/add-more-tests-for-ast_py-2.patch __

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: I have no objection, but you may want to ask on the fellowship ML first. Should the hooks be run before the removal or just after? (Debian for example has both, which makes four hooks: preinst, postinst, prerm, postrm). Our setup_hooks (used with pysetup comma

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Can you tell how you ran into this? Did you call the function directly, or did you get the bug while running a setup.py command? Also, what do you mean by crash? We use that for CPython segmentation faults, not regular misbehavior. If

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin added the comment: Right, so you have some binary data and you want to sent it to `httplib`. This worked in the past when `msg` was a non-unicode string, but starting with Python 2.7 this became an unicode string, so when you try to append the `message` if will fail because it will try

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread R. David Murray
R. David Murray added the comment: And finally, your program does *not* succeed on Python3, except in the trivial sense that on python3 you never attempt to add the string and bytes data. It is exactly this kind of programming error that Python3 is designed to avoid: instead of sometimes get

[issue12421] Use PYTHON when calling Parser/asdl_c.py

2011-06-27 Thread Henry Precheur
Henry Precheur added the comment: Indeed, I didn't realize that PYTHON was the name of the target interpreter and not the name a an already installed interpreter. -- ___ Python tracker ___

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread R. David Murray
R. David Murray added the comment: To clarify: if I convert your program to using strings pre2.6, it still fails with a UnicodeDecodeError, as one would expect. bytes are strings in 2.x. -- ___ Python tracker __

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread R. David Murray
R. David Murray added the comment: rdmurray>python2.6 py27-str-unicode-bytes.py type(b)= Traceback (most recent call last): File "py27-str-unicode-bytes.py", line 17, in unicode_str += b # this line will throw UnicodeDecodeError on Python 2.7 UnicodeDecodeError: 'ascii' codec can't decod

[issue12421] Use PYTHON when calling Parser/asdl_c.py

2011-06-27 Thread R. David Murray
R. David Murray added the comment: I don't believe we have any desire to support unix systems that do not define 'python', and 'python3' executables in the path. If the distribution wishes to do that they'll have to patch everything to accommodate it. That however is mostly irrelevant to thi

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: I'll try to do a summary of the conversation so far, since it's quite long and hard to follow. The basic issue is that memoryview needs to support copying and slicing that creates a new memoryview object. The major problem with that is that the PEP 3118 semant

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin added the comment: Here is a test file that will replicate the problem, I added it as a gist so it could support contributions ;) Py <2.7 works Py ==2.7 fails Py >=3.0 works after minor changes required by py3k https://gist.github.com/1047551 -- ___

[issue12421] Use PYTHON when calling Parser/asdl_c.py

2011-06-27 Thread Henry Precheur
New submission from Henry Precheur : Parser/asdl_c.py uses `/usr/bin/env python' as an interpreter. But Python executable is not always `python'. With OpenBSD's ports, CPython's interpreters are installed as pythonX.Y. There's a variable PYTHON in the Makefile, that's what should be used. Thi

[issue12401] unset PYTHON* environment variables when running tests

2011-06-27 Thread Henry Precheur
Henry Precheur added the comment: Here's a small patch to call regression tests without any environment variable defined. It's probably a good thing to run all the tests with a clean state, this way they are less likely to fail for mysterious external reasons. For example test_displayhook_une

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-27 Thread Vinay Sajip
Vinay Sajip added the comment: > Just a nit, could you give descriptive file names to your patches? > Hex numbers quickly get confusing. Ok - I was under the impression that those names were generated automatically from the changeset hash, and that changing the name arbitrarily would break so

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Henry Precheur
New submission from Henry Precheur : The function find_executable crashes if PATH is not defined. I admit that it's an extreme case, but it's probably better to on the safe side of things. What about using the current directory only if PATH is not defined? This seems to be a reasonable workar

  1   2   >