[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-09 Thread Eric Snow
Eric Snow added the comment: Looks like a case where the concrete dict API is ignoring subtype implementations. In your example the attribute access will be handled by a LOAD_ATTR which calls PyObject_GetAttr() (Python/ceval.c:2369). That ends up calling PyFunction_Type.tp_getattro (inherite

[issue12006] strptime should implement %V or %u directive from libc

2013-01-09 Thread Erik Cederstrand
Erik Cederstrand added the comment: Ping. Is anyone willing to take this? I'm not a committer nor know anyone with commit access. -- nosy: +Erik Cederstrand ___ Python tracker _

[issue15782] Compile error for a number of Mac modules with recent Xcode

2013-01-09 Thread Ned Deily
Ned Deily added the comment: LGTM. I've committed the patch along with expanded warnings in the Standard Library doc pages for "Mac OS X specific services" and "Mac OS Toolbox Modules". -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _

[issue15782] Compile error for a number of Mac modules with recent Xcode

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae1d34142a2a by Ned Deily in branch '2.7': Issue #15782: Prevent compile errors of OS X Carbon modules _Fm, _Qd, and http://hg.python.org/cpython/rev/ae1d34142a2a -- nosy: +python-dev ___ Python tracker

[issue16406] move the "Uploading Packages" section to distutils/packageindex.rst

2013-01-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Updating patch with use of the :orphan: directive (so that the old page can be excluded from the table of contents/toctree without issuing a Sphinx warning). -- Added file: http://bugs.python.org/file28665/issue-16406-2.patch __

[issue16910] Fix test discovery for bytes/string tests

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue16910] Fix test discovery for bytes/string tests

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55383912c225 by Ezio Melotti in branch '3.3': #16910: test_bytes, test_unicode, and test_userstring now work with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/55383912c225 New changeset 6478c4259ce3 by Ezio Melo

[issue16913] ElementTree tostring error when method='text'

2013-01-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +3.3regression nosy: +eli.bendersky, ezio.melotti stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue16913] ElementTree tostring error when method='text'

2013-01-09 Thread Frank
New submission from Frank: Since upgrading to python 3.3 the tostring method fails when the output method is requested as text. Code like this: with open(fp, mode='rt') as f: data = f.read() tree, idmap = ET.XMLID(data) print(ET.tostring(tree, method='text', encoding='unicode')) Generates

[issue11695] Improve argparse usage/help customization

2013-01-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: +1 to the feature. A closely-related use case is customizing the message displayed by error(), which is normally the usage string followed by the error message. I wanted to append instructions on how to invoke --help, and implemented it this way for CPython'

[issue16905] Fix test discovery for test_warnings

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! However I had to change a couple of things: 1) test_main contained c/py_warnings.onceregistry.clear(), and removing that breaks when running the test twice in a row. I now added it to setUpModule, and that seems to be called both whe

[issue16905] Fix test discovery for test_warnings

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20e44464eb86 by Ezio Melotti in branch '3.3': #16905: test_bufio now works with unittest test discovery. Initial patch by Berker Peksag. http://hg.python.org/cpython/rev/20e44464eb86 New changeset 6ee721029fd5 by Ezio Melotti in branch 'default':

[issue15948] Unchecked return value of I/O functions

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16445] SEGFAULT when deleting Exception.message

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11695] Improve argparse usage/help customization

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue1508475] transparent gzip compression in urllib

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16898] Fix test discovery for test_bufio.py

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue16898] Fix test discovery for test_bufio.py

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09d4b690b504 by Ezio Melotti in branch '3.3': #16898: test_bufio now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/09d4b690b504 New changeset 9a6e28350645 by Ezio Melotti in branch 'default': #16898: m

[issue16888] Fix test discovery for test_array.py

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue16888] Fix test discovery for test_array.py

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1538307c06c0 by Ezio Melotti in branch '3.3': #16888: test_array now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/1538307c06c0 New changeset 16c58eeca0f8 by Ezio Melotti in branch 'default': #16888: m

[issue16896] Fix test discovery for test_asyncore.py

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16896] Fix test discovery for test_asyncore.py

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4976bf1d751c by Ezio Melotti in branch '3.3': #16896: test_asyncore now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/4976bf1d751c New changeset e7a965a075f5 by Ezio Melotti in branch 'default': #16896

[issue16897] Fix test discovery for test_bisect.py

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! While I was at it I also added the other example from the doc. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue16897] Fix test discovery for test_bisect.py

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset f32cb5389a4b by Ezio Melotti in branch '3.3': #16897: test_bisect now works with unittest test discovery. Initial patch by Zachary Ware. http://hg.python.org/cpython/rev/f32cb5389a4b New changeset cfd8d99ae645 by Ezio Melotti in branch 'default':

[issue16878] argparse: positional args with nargs='*' defaults to []

2013-01-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: It turns out that there is already a test case: http://hg.python.org/cpython/file/05183ce544be/Lib/test/test_argparse.py#l799 (at the line "('', NS(foo=[])),") I've updated the patch with a note to reflect this. -- Added file: http://bugs.python.org/f

[issue14452] SysLogHandler sends invalid messages when using unicode

2013-01-09 Thread Roy Smith
Changes by Roy Smith : -- nosy: +roysmith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16406] move the "Uploading Packages" section to distutils/packageindex.rst

2013-01-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attached is a proposed patch. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file28663/issue-16406-1.patch ___ Python tracker __

[issue16852] Fix test discovery for test_genericpath.py

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue16852] Fix test discovery for test_genericpath.py

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f71e6aa9041 by Ezio Melotti in branch '3.3': #16852: test_genericpath, test_posixpath, test_ntpath, and test_macpath now work with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/6f71e6aa9041 New changeset 3a7cd8e

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: For user installed packages, the usual path would be "/usr/local/include/sys/soundcard.h". So, maybe check both paths. Do you agree? -- ___ Python tracker ___

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Brian, Linux has that include file too. So, yes, I think that detection would be appropiate. If we could confirm that all platforms with OSS support have that file, we could have something :-). If not, or we are not sure, just check for that file *IF* the pla

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread brian-cameron-oracle
brian-cameron-oracle added the comment: I'm not sure how to write such OSS detection code. I do know that OSS is only on Solaris systems that have this OSS-specific file: /usr/include/sys/soundcard.h So that's probably the best way to check and it should work even on Solaris 10 if OSS is alre

[issue10156] Initialization of globals in unicodeobject.c

2013-01-09 Thread Stefan Krah
Stefan Krah added the comment: Nick Coghlan wrote: > There should still be a check in tp_new (IIRC) that calls PyType_Ready on > unready types. Indeed there is one in type_new(), but that isn't used here AFAICS. If you apply this patch and start up python, there are many "str: not ready" instan

[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-09 Thread Roger Serwy
Roger Serwy added the comment: See also issue12274. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-09 Thread Roger Serwy
Roger Serwy added the comment: The attached patch changes %%s to %%r. This should handle file names containing quotes automatically. Ramchandra's point of using a subprocess instead would fix the issue as well. That would require changing "print_window" in Lib/idlelib/IOBinding.py Terry's ob

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-09 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: Making these into real unit tests and switching the patch to 3.3 should be no problem. Is 2.7 still open for changes to tests? I might back port to 2.7 as well so that I can delete the customized Jython test in 2.7. -- __

[issue16850] Add "e" mode to open(): close-and-exec (O_CLOEXEC) / O_NOINHERIT

2013-01-09 Thread STINNER Victor
STINNER Victor added the comment: There is another way to set close-on-exec flag on a file descriptor: "ioctl(fd, FIOCLEX, 0);" (and "ioctl(fd, FIONCLEX, 0);" to unset the flag). It is interesting because it avoids the need to get the flags before setting new flags (old | FD_CLOEXEC): 1 syscal

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Brian, this patch would try to compile OSS module on any Solaris machine, even if not OSS support is provided. That is, compilation would fail in that case. That is not acceptable. Some kind of OSS detection is needed. --

[issue10156] Initialization of globals in unicodeobject.c

2013-01-09 Thread Nick Coghlan
Nick Coghlan added the comment: There should still be a check in tp_new (IIRC) that calls PyType_Ready on unready types. While doing something systematic about this kind of problem is part of the rationale of PEP 432, that won't help earlier versions. -- ___

[issue16465] dict creation performance regression

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16398] deque.rotate() could be much faster

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16912] Wrong float sum w/ 10.14+10.1 and 10.24+10.2

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: See also http://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate -- ___ Python tracker ___ ___

[issue16912] Wrong float sum w/ 10.14+10.1 and 10.24+10.2

2013-01-09 Thread Ezio Melotti
Ezio Melotti added the comment: See http://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue16912] Wrong float sum w/ 10.14+10.1 and 10.24+10.2

2013-01-09 Thread fenrirsoul
New submission from fenrirsoul: When 10.14+10.1 is typed, it's result is 20.242 and when 10.24+10.2 is typed, it's result is 20.438, i just found these two occurences. -- components: None messages: 179495 nosy: fenrirsoul priority: normal severity: normal status:

[issue10156] Initialization of globals in unicodeobject.c

2013-01-09 Thread Stefan Krah
Stefan Krah added the comment: Nick, I'm adding you to the nosy list since this issue seems related to PEP 432. Quick summary: Globals are used in unicodeobject.c before they are initialized. Also, Unicode objects are created before PyType_Ready(&PyUnicode_Type) has been called. This happens d

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > PyObject_CallMethodObjArgs takes a PyObject*, mustn't that be non-const for > reference counting to work? Then refcounts.dat wrong. > PyDict_GetItemString already has const, just not in refcounts.dat. Fixed. There are a lot of char* arguments in refcounts

[issue16853] add a Selector to the select module

2013-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: And the next Tulip rev renames Key to SelectorKey. -- ___ Python tracker ___ ___ Python-bugs-list

[issue16853] add a Selector to the select module

2013-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: I've fixed the signal handling issue. Please check Tulip revision 1c4db3d1a688: http://code.google.com/p/tulip/source/detail?r=1c4db3d1a68874dc22c84f9c1c376c5371037f09 -- ___ Python tracker

[issue16911] Socket Documentation Error

2013-01-09 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16853] add a Selector to the select module

2013-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: On Wed, Jan 9, 2013 at 12:47 PM, Charles-François Natali wrote: >> - How shall we go forward? I've made a variety of small changes to the >> Tulip version (selector.py) now. Can you work those into a fresh unified >> patch for CPython 3.4? > > Yes, but I thi

[issue16911] Socket Documentation Error

2013-01-09 Thread Ronnie Ghose
Changes by Ronnie Ghose : -- nosy: -docs@python, sghose ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16911] Socket Documentation Error

2013-01-09 Thread Ronnie Ghose
Ronnie Ghose added the comment: sorry - my error. accidentally omitted somethings -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue16911] Socket Documentation Error

2013-01-09 Thread Ronnie Ghose
Changes by Ronnie Ghose : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16911] Socket Documentation Error

2013-01-09 Thread Ronnie Ghose
New submission from Ronnie Ghose: Running the example given in the docs gives the following: In [8]: socket.getaddrinfo('www.python.org',80) Out[8]: [(2, 1, 6, '', ('82.94.164.162', 80)), (2, 2, 17, '', ('82.94.164.162', 80)), (2, 3, 0, '', ('82.94.164.162', 80)), (10, 1, 6, '', ('2001:888:2

[issue16853] add a Selector to the select module

2013-01-09 Thread Charles-François Natali
Charles-François Natali added the comment: > - How shall we go forward? I've made a variety of small changes to the > Tulip version (selector.py) now. Can you work those into a fresh unified > patch for CPython 3.4? Yes, but I think we could wait a little, to make sure the API is good enough t

[issue16876] epoll: reuse epoll_event buffer instead of allocating a new one at each poll()

2013-01-09 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16907] Distutils fails to build extension in path with spaces

2013-01-09 Thread klo uo
klo uo added the comment: I found two similar issues: 1. distutils compiler not handling spaces in path to output/src files: http://bugs.python.org/issue4508 with patches for unix compiler and cygwin compiler 2. Distutils does not put quotes around paths that contain spaces when compiling wi

[issue16907] Distutils fails to build extension in path with spaces

2013-01-09 Thread klo uo
klo uo added the comment: > klo.uo: can you kindly provide a working (or, rather, failing) > example? A trivial "hello-world" kind of package could do, along > with a report what path you unpacked it in, and what error you get. As mentioned in opening thread, this doesn't happen with Cython's "

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2013-01-09 Thread Éric Araujo
Éric Araujo added the comment: Code patch looks good, but for tests, I prefer to run subprocesses with the options and output I want, instead of changing the expected results depending on the python-running-tests’ options (and thus, having two tests into one, but always running only one). ---

[issue16907] Distutils fails to build extension in path with spaces

2013-01-09 Thread Éric Araujo
Éric Araujo added the comment: I think this is a duplicate report; could you please search for an existing open report for the same bug? -- ___ Python tracker ___ __

[issue16853] add a Selector to the select module

2013-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: - How shall we go forward? I've made a variety of small changes to the Tulip version (selector.py) now. Can you work those into a fresh unified patch for CPython 3.4? - I tried making a single combined kqueue call in register(), and it caused the SSL test

[issue16876] epoll: reuse epoll_event buffer instead of allocating a new one at each poll()

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset be8e6b81284e by Charles-François Natali in branch 'default': Issue #16876: Optimize epoll.poll() by keeping a per-instance epoll events http://hg.python.org/cpython/rev/be8e6b81284e -- nosy: +python-dev _

[issue6975] symlinks incorrectly resolved on Linux

2013-01-09 Thread Hynek Schlawack
Hynek Schlawack added the comment: I will review this first thing tomorrow. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread brian-cameron-oracle
brian-cameron-oracle added the comment: Sure, doing multiple #ifdef's makes sense. Do you need me to provide an updated patch, or is this something easier for someone who has commit access to the source code repository to just go ahead and do. I would think this Module would fail to compile i

[issue16904] Avoid unnecessary and possibly unsafe code from http.client.HTTPConnection.send

2013-01-09 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: The problem with your approach is that different Solaris release could support different flags. So I rather prefer specific #ifdef's. I wonder about compiling OSS module under Solaris without OSS support. Compiling a module acting as "NULL" is OK, compiling a

[issue16909] urlparse: add userinfo attribute

2013-01-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: If it does go in, due the RFC requirement, then it would be only in 3.4 (default branch) and the feature may not be backported. Without reading the RFC section, I have an intuitive -1 for this proposal because the suggestion may be a corner case rather than a

[issue16910] Fix test discovery for bytes/string tests

2013-01-09 Thread Zachary Ware
Changes by Zachary Ware : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue16910] Fix test discovery for bytes/string tests

2013-01-09 Thread Zachary Ware
New submission from Zachary Ware: This patch fixes discovery for test_bytes.py. That fix changes string_tests.py, which breaks test_unicode.py and test_userstring.py, so those two files have been changed as well. All three test files also use unittest.main() now instead of test_main().

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread brian-cameron-oracle
brian-cameron-oracle added the comment: Correct, OSS should work out-of-the-box on Solaris 11 and up since it is the default audio system there. OSS was also integrated into OpenSolaris, so it is probably the most sensible audio plugin to use there also. Some end-users may build and install t

[issue16907] Distutils fails to build extension in path with spaces

2013-01-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: klo.uo: can you kindly provide a working (or, rather, failing) example? A trivial "hello-world" kind of package could do, along with a report what path you unpacked it in, and what error you get. Your patch is not applicable to Python, since it requires the w

[issue6975] symlinks incorrectly resolved on Linux

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK. Perhaps I will prepare similar patches for ntpath and macpath. -- ___ Python tracker ___ ___ Py

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Brian, then this module should be compiled only under Solaris 11 and up and, presumably, OpenSolaris/Illumos derivatives. Does your patch compiles cleanly under previous Solaris versions?. I am +1 to consider this a bugfix. Any other python-dev opinion? PS:

[issue15239] Abandoned Tools/unicode/mkstringprep.py

2013-01-09 Thread Georg Brandl
Georg Brandl added the comment: No need to hurry; no one apparently needs it anyway, and if there is a change let Martin review it before commit. -- ___ Python tracker ___ _

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread brian-cameron-oracle
brian-cameron-oracle added the comment: OSS is the default audio system in Solaris 11 and 12. In Solaris 10 and earlier, the sunaudio (or SADA) interfaces are still used. You can only test this if you are using Solaris 11 or later, on a machine with a sound card supported by OSS. I would sa

[issue6975] symlinks incorrectly resolved on Linux

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If no one objects I will commit this next week. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue6975] symlinks incorrectly resolved on Linux

2013-01-09 Thread Georg Brandl
Georg Brandl added the comment: I'd like to see a review first. I don't have time to do it myself right now though. -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue13454] crash when deleting one pair from tee()

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If no one objects I will commit this next week. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue15239] Abandoned Tools/unicode/mkstringprep.py

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Georg, now Tools/unicode/mkstringprep.py is broken in all Python 3 branches (it not usable at all, under 3.2 it even raises SyntaxError). Do you object against fixing it in 3.2 and 3.3? -- nosy: +georg.brandl ___

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread Trent Nelson
Changes by Trent Nelson : -- nosy: +trent ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16905] Fix test discovery for test_warnings

2013-01-09 Thread Zachary Ware
New submission from Zachary Ware: Patch looks good to me. Thank you, Berker! -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-01-09 Thread Lars Buitinck
Lars Buitinck added the comment: Oops, forgot to save changes to Doc/c-api/object.rst. PyObject_CallMethodObjArgs takes a PyObject*, mustn't that be non-const for reference counting to work? PyDict_GetItemString already has const, just not in refcounts.dat. Fixed. -- Added file: http:

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Docs update needed. Perhaps some other functions which accepts char* (i.e. PyObject_CallMethodObjArgs or PyDict_GetItemString) should be fixed. -- nosy: +serhiy.storchaka ___ Python tracker

[issue16898] Fix test discovery for test_bufio.py

2013-01-09 Thread Zachary Ware
New submission from Zachary Ware: Version 2 replaces test_main() with unittest.main(). -- Added file: http://bugs.python.org/file28655/test_bufio_fix.v2.diff ___ Python tracker _

[issue16906] Bug in _PyUnicode_ClearStaticStrings() method of unicodeobject.c

2013-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e18ccaa537e by Benjamin Peterson in branch '3.3': correct static string clearing loop (closes #16906) http://hg.python.org/cpython/rev/3e18ccaa537e New changeset 0c04ed40eeaf by Benjamin Peterson in branch 'default': merge 3.3 (#16906) http://hg.py

[issue16888] Fix test discovery for test_array.py

2013-01-09 Thread Zachary Ware
Zachary Ware added the comment: Version 2 removes test_main() and associated ``tests`` list. -- Added file: http://bugs.python.org/file28654/test_array.v2.diff ___ Python tracker ___

[issue16899] Add support for C99 complex type (_Complex) as ctypes.c_complex

2013-01-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: libffi still has no support for _Complex. Did you try with a pure Python solution, like the one suggested in http://objectmix.com/python/112374-re-ctypes-c99-complex-numbers.html -- nosy: +amaury.forgeotdarc _

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-01-09 Thread Lars Buitinck
Lars Buitinck added the comment: Redid the patch. -- Added file: http://bugs.python.org/file28653/constness.patch ___ Python tracker ___ __

[issue16261] Fix bare excepts in various places in std lib

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Want to make a few warnings. Accepting your confirmation may take a long time. And it is very unlikely that your patch can be applied as a whole. The maintainers of the individual modules can apply it by parts. -- ___

[issue16896] Fix test discovery for test_asyncore.py

2013-01-09 Thread Zachary Ware
Zachary Ware added the comment: Patch v2, in which test_main() goes away. -- Added file: http://bugs.python.org/file28652/test_asyncore_fix.v2.diff ___ Python tracker ___ ___

[issue16897] Fix test discovery for test_bisect.py

2013-01-09 Thread Zachary Ware
Zachary Ware added the comment: Here's version 2 of the patch, which converts the doctests to a standard testcase and removes test_main(). -- Added file: http://bugs.python.org/file28651/test_bisect_fix.v2.diff ___ Python tracker

[issue3073] Cookie.Morsel breaks in parsing cookie values with whitespace

2013-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: fixed -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-01-09 Thread Christian Heimes
Christian Heimes added the comment: Let's try this again for 3.4 -- nosy: +christian.heimes versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ __

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Brian, is this supported in Solaris 10 or Solaris 11?. How can I actually try it?. I use Solaris on servers, and have Solaris 10/11 virtual machines in my laptop but never ever used sound under Solaris... Also, I am unsure about this being a new feature (avai

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-01-09 Thread Lars Buitinck
Lars Buitinck added the comment: Any reason why this issue is still open? I just got a lot of compiler warnings when building Numpy, so this isn't just relevant to C++ programmers. (Btw., I did RTFM: the issue's Resolution is "accepted" but that option is not documented.) -- nosy: +la

[issue3073] Cookie.Morsel breaks in parsing cookie values with whitespace

2013-01-09 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16852] Fix test discovery for test_genericpath.py

2013-01-09 Thread Zachary Ware
Zachary Ware added the comment: Version 4 replaces test_main() with unittest.main() -- Added file: http://bugs.python.org/file28650/issue16852.v4.diff ___ Python tracker ___

[issue16261] Fix bare excepts in various places in std lib

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See my comments on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16261] Fix bare excepts in various places in std lib

2013-01-09 Thread Richard Oudkerk
Richard Oudkerk added the comment: > try: > _MAXFD = os.sysconf("SC_OPEN_MAX") > -except: > +except ValueError: > _MAXFD = 256 os.sysconf() might raise OSError. I think ValueError is only raised if _SC_OPEN_MAX was undefined when the module was compiled. -- nosy: +sbt ___

[issue16909] urlparse: add userinfo attribute

2013-01-09 Thread Olof Johansson
New submission from Olof Johansson: Hi, The urlparse library's "netloc" attribute is today further split into the following attributes: username, password, hostname, port. The attributes preceding the @ (username, password) are refered to in RFC 3986 [1] as "userinfo", the format of which is

  1   2   >