[issue12437] _ctypes.dlopen does not include errno in OSError

2011-08-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, it looks more like a bug in the POSIX standard unfortunately. I'm suggesting to close as "won't fix". -- nosy: +pitrou resolution: -> wont fix status: open -> pending ___ Python tracker

[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +easy nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-08-08 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12437] _ctypes.dlopen does not include errno in OSError

2011-08-08 Thread Matt Joiner
Matt Joiner added the comment: I didn't notice there was no use of errno. It's quite possible that dlopen might be used without the C library present, so perhaps this is why it wasn't included. The error strings however are very C-like, which made me think of this in the first place. Thanks a

[issue12437] _ctypes.dlopen does not include errno in OSError

2011-08-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack
New submission from Hynek Schlawack : After I've seen a co-worker to unpack tuples while using multiprocessing.Pool.map(), I realized that the module is missing a starmap() method like itertools has. I took it as a opportunity to contribute some code and implemented both starmap() and starmap

[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread STINNER Victor
STINNER Victor added the comment: test_enable_file, test_enable_single_thread, test_gil_released and test_read_null read an int (4 bytes) from the address 0 (NULL). test_sigsegv pass: this test raises explicitly a SIGSEGV and the signal handler writes the right message ("Segmentation fault").

[issue12600] Support parameterized TestCases in unittest

2011-08-08 Thread Pere Martir
Changes by Pere Martir : -- nosy: +pere.martir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Hynek Schlawack
New submission from Hynek Schlawack : While working on #12708 , I noticed that the error_callback argument of multiprocessing.Pool.map_async() isn't documented (callback is). -- assignee: docs@python components: Documentation messages: 141763 nosy: docs@python, hynek priority: normal se

[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Sandro Tosi
Sandro Tosi added the comment: Would you like to provide a doc patch about it? Thanks in advance -- nosy: +sandro.tosi stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.4 ___ Python tracker

[issue10087] HTML calendar is broken

2011-08-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: I agree with Chris's point that people using html format in console are probably redirecting to a file and encoding parameter should be helpful. What do we settle upon? Leave the encoding argument as such? Antoine - I was specifically interested to know if s

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2011-08-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: I don't think so. We are just making our regex bit lenient. I am not sure how we can raise a warning with more lenient regex. As with any parsing changes, I would like to be careful and that we don't introduce any regression. -- _

[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: R. David Murray wrote: > If someone wants to re-engineer the interface, that would be fine with me :) Does that mean, that if vote for removing the 'accepted' keyword it becomes an issue for the meta-tracker? -- _

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack
Hynek Schlawack added the comment: In all my excitement, I somehow presumed that the docstring automagically lands in the docs. Added doc entries to patch (I hope they aren't too crude, I'm not a native speaker). Same as first patch otherwise. -- Added file: http://bugs.python.org/fi

[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Hynek Schlawack
Hynek Schlawack added the comment: Yeah, if my 3G hadn't failed on me, it would have been already here. :) As a matter of fact, the argument is discussed in the body of the doc, it just has been omitted in the method definition, so the patch is trivial. -- keywords: +patch Added file:

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack
Changes by Hynek Schlawack : Removed file: http://bugs.python.org/file22859/mp-starmap.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10087] HTML calendar is broken

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

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-08-08 Thread STINNER Victor
STINNER Victor added the comment: See also #12567. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-08-08 Thread STINNER Victor
STINNER Victor added the comment: See also #10570. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-08-08 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12669] test_curses skipped on buildbots

2011-08-08 Thread STINNER Victor
STINNER Victor added the comment: > Correction: the offending options are -j and *-W* I changed regrtest -W recently to only run the tests once using StringIO as stdout. So it's a regression in Python 3.3. Can't we create a dummy/temporary TTY for the curses tests using pty.openpty()? --

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-08-08 Thread STINNER Victor
STINNER Victor added the comment: > Ping. What's the progress on this? Will this ever be fixed? Some functions has been fixed in the new packaging module, but not in the distutils yet. -- ___ Python tracker _

[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread R. David Murray
R. David Murray added the comment: I think we've moved from discussing a documentation issue to discussing a procedural issue in the development process. I'm not sure what forum that belongs in, though I believe in the past we have used tracker-discuss for that. That said, I'm really fine wi

[issue12710] GTK crash

2011-08-08 Thread Toni Boni
New submission from Toni Boni : Deluge Gui crash with this error (image in attachment). I've Ubuntu 10.10 updated, Python 2.6.6.2ubuntu2 The bug is reported: http://dev.deluge-torrent.org/ticket/1914 -- assignee: tarek components: Distutils files: 1rx5ec.jpg.png messages: 141775 nosy: e

[issue11357] Add support for PEP 381 Mirror Authenticity

2011-08-08 Thread david
Changes by david : -- nosy: +db ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue12710] GTK crash

2011-08-08 Thread Sandro Tosi
Sandro Tosi added the comment: Hello, this is not a but in the python interpreter (f.e., the traceback in the image is referring to twisted) so I'm closing it as invalid. The best way of action is contacting the deluge developers, as you did with the other report. -- nosy: +sandro.tos

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-08-08 Thread Sandro Tosi
Sandro Tosi added the comment: Here's a patch to add SimpleQueue to doc and __all__ . I didn't document the 'sentinels' argument of SimpleQueue.get() because I got lost into Pipe _pool and can't understand how those sentinels are actually used/useful. Any hint is appreciated :) -- no

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-08-08 Thread Sandro Tosi
Changes by Sandro Tosi : -- keywords: +patch Added file: http://bugs.python.org/file22863/issue11836-default.patch ___ Python tracker ___

[issue12666] map semantic change not documented in What's New

2011-08-08 Thread Éric Araujo
Éric Araujo added the comment: The content of the patch is very helpful, but I question its location: I’m not sure people will find this nugget in the 3.2+ version of the What’s New in Python 3.0 document (sorry for not bringing that up sooner). Maybe you could update Doc/library/functions.r

[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-08-08 Thread Éric Araujo
Éric Araujo added the comment: > I would like to help out with this, as there seems to be a lot of > work that needs to be done. Thanks! In my initial report, I was talking only about module-level names that are documented as code (``sys.path``) instead of module-level data (:data:`sys.path`

[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-08-08 Thread Éric Araujo
Éric Araujo added the comment: instead of* An addition: in some cases, it may be on purpose that someone used ``somename`` instead of :func:`somename`, for example to avoid a ton of link in the doc of the somename function. For the most part however, I believe it was just unawareness (or ma

[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2835b8412e5 by Sandro Tosi in branch '2.7': #12709: add error_callback argument to map_async documentation http://hg.python.org/cpython/rev/b2835b8412e5 New changeset 41b816853819 by Sandro Tosi in branch '3.2': #12709: add error_callback argument

[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Sandro Tosi
Sandro Tosi added the comment: Hynek, thanks for your contribution to Python! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-08-08 Thread Ezio Melotti
Ezio Melotti added the comment: ``...`` should also be used for common names like True, False, None (no one needs links to their doc to see what they are), or, as Éric said, to avoid creating links for each occurrence of a name (one such example is the name of a module in the page that docume

[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-08 Thread Éric Araujo
Éric Araujo added the comment: LookupError sounds good. About the latest patch: I wonder if using !a instead of !r in the format strings for exceptions would be more helpful (maybe you’ve seen a recent python-dev subthread about that). I don’t like seeing escapes for perfectly common charac

[issue12711] Explain tracker components in devguide

2011-08-08 Thread Éric Araujo
New submission from Éric Araujo : Users reporting bugs don’t always know what components to set. http://docs.python.org/devguide/triaging#components should explain them. -- components: Devguide messages: 141785 nosy: eric.araujo priority: normal severity: normal stage: needs patch stat

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-08-08 Thread Éric Araujo
Éric Araujo added the comment: _sre is a module written in C, not Python; we call that an extension module. The Library component is used for Python modules, which are found in the Lib directory in a checkout of CPython. See #12711. -- nosy: +eric.araujo ___

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-08-08 Thread Éric Araujo
Changes by Éric Araujo : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-08-08 Thread Chris Palmer
Changes by Chris Palmer : -- nosy: -cpalmer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12711] Explain tracker components in devguide

2011-08-08 Thread Ezio Melotti
Ezio Melotti added the comment: This are the current components in random order and a possible description: """ The following components should be selected if the issue apply to: Build the build process Demos and Tools the scripts in Tools/ and Tools/demo/ 2to3 (2.x to 3.0 conversion tool)

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-08-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12672] Some problems in documentation extending/newtypes.html

2011-08-08 Thread Éric Araujo
Éric Araujo added the comment: > it's unclear what [].append is. It’s crystal clear to me: [].append is a method of a list object, just created here by a literal. (Maybe you’re not aware that [].append is valid Python.) > The C coding convention is unusual and non PEP-7 in 2.1.1 Running Tools

[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Éric Araujo
Éric Araujo added the comment: When we’ve talked about that a few times these last months on the ML or on IRC, the outcome was that accepted means patch is accepted, not bug report is valid. I’ve never seen accepted used to mean that a feature request is closed; I use fixed for solved bugs a

[issue12032] Tools/Scripts/crlf.py needs updating for python 3+

2011-08-08 Thread Éric Araujo
Éric Araujo added the comment: This needs porting to 3.2. -- nosy: +eric.araujo resolution: fixed -> status: closed -> open ___ Python tracker ___ _

[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Ezio Melotti
Ezio Melotti added the comment: "patch accepted" can be marked with the "commit review" stage. That should mean "the patch is ready to go in, after a last quick review by the committer that will apply it", even though I've seen it used as "I made the commit but I'm leaving this open until I'm

[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-08 Thread Sandro Tosi
Sandro Tosi added the comment: after a review from Ezio (thanks!) we've come out with this updated patch; main changes are in the test suite, where now it's checked that chown() succeed. about !r/!a I've left !r; and changed the 2 ValueError in LookupError (the first, in case no arguments are

[issue12712] weave build_tools library identification

2011-08-08 Thread Tim Holme
New submission from Tim Holme : This may be a problem with scipy/weave, or it may be a problem with the site-library pythonequations, or it may be in python 2.7.2 itself. When running the program, it looks for an installed version of MinGW, which it finds. It is possibly looking for C:\Pyth

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-08-08 Thread Petri Lehtinen
Petri Lehtinen added the comment: Éric Araujo wrote: > _sre is a module written in C, not Python; we call that an extension > module. The Library component is used for Python modules, which are > found in the Lib directory in a checkout of CPython. See #12711. Ok, I wasn't aware of this. Thanks

[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing the dev guide, which I think is definitely needed, is an issue for this tracker. Changing the tracker is an issue for the meta-tracker. Discussing a change might be an issue for python-dev. I was under the impression once that the tracker fields were

[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-08-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing ``x`` to :data:`x` adds 4 chars. Changing ``x()`` to :func:`x` justs adds 2. If I were to review, I would prefer that the additions not trigger cascading line rewraps. -- ___ Python tracker

[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread Gareth Rees
Gareth Rees added the comment: After changing NULL to (int *)1, all tests pass. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12669] test_curses skipped on buildbots

2011-08-08 Thread Nadeem Vawda
Nadeem Vawda added the comment: > Can't we create a dummy/temporary TTY for the curses tests using > pty.openpty()? I would have thought so, but it seems that savetty() and endwin() both fail when running under '-j0': test test_curses crashed -- Traceback (most recent call last): Fi

[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1777df2ce50d by Victor Stinner in branch 'default': Issue #12700: fix test_faulthandler for Mac OS X Lion http://hg.python.org/cpython/rev/1777df2ce50d -- nosy: +python-dev ___ Python tracker

[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread STINNER Victor
STINNER Victor added the comment: > After changing NULL to (int *)1, all tests pass. Ok, so Lion has a special case for reading from NULL. I changed the tests to try to fix your bug. Can you tell me if it's now better? -- ___ Python tracker

[issue12711] Explain tracker components in devguide

2011-08-08 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a proper patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file22865/issue12711.diff ___ Python tracker _

[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread Gareth Rees
Gareth Rees added the comment: All tests now pass. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread STINNER Victor
STINNER Victor added the comment: > All tests now pass. Ok, thanks for your report and your feedback. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Have you checked if -fwrapv is in the list of compiler arguments in the generated makefile? There is an open issue about adding that flag when clang is used as the compiler (the flag is already used for gcc). The flag is necessary because the example code c

[issue444582] Finding programs in PATH, adding shutil.which

2011-08-08 Thread Simon Law
Changes by Simon Law : -- nosy: +sfllaw ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-08 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-08 Thread Peter Williams
New submission from Peter Williams : Quite often the names of subcommands are quite long so that their meaning is clear. However, the downside to this is the increased typing the user of the command must make. A compromise between clarity and brevity can be realized if abbreviation of subcom

[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: RDM, yes, unfortunately the direction of the discussion changed from documentation issue to a process one. Instead of diverting further into catch all discussion about process/tracker, it would be good idea to settle this one. Your points definitely counts as y

[issue12672] Some problems in documentation extending/newtypes.html

2011-08-08 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, I know perfectly well that [].append is valid Python, but I don't think this is the clearest way to give an example of an object method. I think spelling [].append's meaning more explicitly would be better. I'm also aware that there are tab problems all

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-08-08 Thread Марк Коренберг
Марк Коренберг added the comment: > Why do you say it "hangs"? It doesn't hang, it just waits for you to > call serve_forever(): it's not a bug, it's actually a feature. Okay, for my case, How I should correctly terminate thread? Conditions: 1. signal may appear at any time 2. thread may becom

[issue2771] Test issue

2011-08-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- hgrepos: +52 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue2771] Test issue

2011-08-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- hgrepos: -52 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue2771] Test issue

2011-08-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- hgrepos: +53 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue2771] Test issue

2011-08-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- hgrepos: -53 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12702] shutil.copytree() should use os.lutimes() to copy the metadata of symlinks

2011-08-08 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-08 Thread deadshort
deadshort added the comment: Yup, that was it. Something new learnt. Thanks. Not sure how to have configure spot that clang needs the flag. OK, the configure stanza for gcc is hardly general; maybe trying $(CC) -fwrapv and keeping the flag if that does not blow up on the pad? But I guess tha