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

2013-01-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's a bug; thanks for pointing this out. I always suspected that there was something wrong, but never found the time to look into it. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

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

2013-01-09 Thread klo uo
New submission from klo uo: I noticed this issue, while trying to compile Cython extension, when source file is in path with spaces. Extension wouldn't compile because LIBDIR is passed to MinGW g++ (though not to gcc) or MSVC compilers unquoted. I tracked the problem to distutils/build_ext.py

[issue16908] Enhancing performance and memory usage

2013-01-09 Thread Sworddragon
New submission from Sworddragon: On my system (Linux 64 Bit) I figured out that python 3 needs a little more memory than python 2 and it is a little bit slower. Here are some examples: sworddragon@ubuntu:~$ execution-time 'python2 -c print\(0\)' 0.21738 sworddragon@ubuntu:~$ execution-time

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2013-01-09 Thread STINNER Victor
STINNER Victor added the comment: That's definitely something which needs discussion (at not only on the tracker, I would could bring it up on python-dev). I agree, I started a thread on python-dev mailing list: https://mail.python.org/pipermail/python-dev/2013-January/123552.html --

[issue16908] Enhancing performance and memory usage

2013-01-09 Thread Ramchandra Apte
Ramchandra Apte added the comment: What is the problem? Python 3 uses more memory because many things that were earlier ASCII strings in Python 2 are Unicode strings. Same reason for performance AFAIK. -- nosy: +ramchandra.apte ___ Python tracker

[issue16908] Enhancing performance and memory usage

2013-01-09 Thread Georg Brandl
Georg Brandl added the comment: The performance you're measuring here is mostly startup, i.e. loading all necessary modules. On Python 3, there is more to load, e.g. the filesystem encoding, therefore startup takes a little longer. There are efforts to improve startup time, see e.g. #16101.

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

2013-01-09 Thread Ramchandra Apte
Ramchandra Apte added the comment: Can you fix the bare except? -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16907 ___

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

2013-01-09 Thread klo uo
klo uo added the comment: Can you fix the bare except? ... except ImportError: pass -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16907

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

2013-01-09 Thread Ramchandra Apte
Ramchandra Apte added the comment: Here's a patch on revision 75fe7f5fda9a (I did it on a trip without an internet connection) There might be some mistakes of this type: I incorrectly changed instances like this ` try: something except: close file raise ` to ` try: something

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

2013-01-09 Thread Ramchandra Apte
Ramchandra Apte added the comment: Sorry, I entered the wrong filename for the patch and so it didn't get attached. Now I have attached it. -- keywords: +patch Added file: http://bugs.python.org/file28647/patch.patch ___ Python tracker

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

2013-01-09 Thread Prashant Kurnawal
Prashant Kurnawal added the comment: When are you planning to submit a fix for it..? This bug will be fixed in python3.3 and a new version of python3.3 will be released..? Or it will be fixed in python3.4..? -- ___ Python tracker

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

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: get_ext_fullpath() has no relations to this bug. The bug is probably in spawn()  functions, perhaps in _nt_quote_args() or something like. It looks as Windows specific bug (Posix passes command arguments as a list, not joining it into string). --

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

2013-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unhappy Rietveld hasn't recognize your patch. I have regenerated it. -- nosy: +serhiy.storchaka Added file: http://bugs.python.org/file28648/bare_except.patch ___ Python tracker rep...@bugs.python.org

[issue5066] IDLE documentation for Unix obsolete/incorrect

2013-01-09 Thread Zachary Ware
Zachary Ware added the comment: Version 4 looks good to me! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5066 ___ ___ Python-bugs-list mailing

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16261 ___ ___ Python-bugs-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 rep...@bugs.python.org http://bugs.python.org/issue16852

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

2013-01-09 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3073 ___

[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:

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue9369 ___

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

2013-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: fixed - out of date ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3073 ___ ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16896

[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. --

[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 rep...@bugs.python.org http://bugs.python.org/issue9369 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16888

[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)

[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 rep...@bugs.python.org http://bugs.python.org/issue16898

[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 rep...@bugs.python.org

[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:

[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 rep...@bugs.python.org http://bugs.python.org/issue16905 ___ ___

[issue16902] Add OSS module support for Solaris

2013-01-09 Thread Trent Nelson
Changes by Trent Nelson tr...@snakebite.org: -- nosy: +trent ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16902 ___ ___ Python-bugs-list mailing

[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 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue13454 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue6975

[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 rep...@bugs.python.org http://bugs.python.org/issue6975 ___ ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue15239

[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:

[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 rep...@bugs.python.org http://bugs.python.org/issue6975 ___

[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

[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

[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().

[issue16910] Fix test discovery for bytes/string tests

2013-01-09 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16910 ___ ___ Python-bugs-list

[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

[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

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

2013-01-09 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16904 ___ ___ Python-bugs-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

[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 rep...@bugs.python.org http://bugs.python.org/issue6975 ___ ___

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16907

[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 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 hello

[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

[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 neolo...@free.fr: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16876

[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 to

[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, '',

[issue16911] Socket Documentation Error

2013-01-09 Thread Ronnie Ghose
Changes by Ronnie Ghose ronnie.gh...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16911 ___ ___

[issue16911] Socket Documentation Error

2013-01-09 Thread Ronnie Ghose
Ronnie Ghose added the comment: sorry - my error. accidentally omitted somethings -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16911 ___ ___

[issue16911] Socket Documentation Error

2013-01-09 Thread Ronnie Ghose
Changes by Ronnie Ghose ronnie.gh...@gmail.com: -- nosy: -docs@python, sghose ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16911 ___ ___

[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 rep...@bugs.python.org 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?

[issue16911] Socket Documentation Error

2013-01-09 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16911 ___ ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16853 ___

[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

[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

[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

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue16912

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

2013-01-09 Thread John O'Connor
Changes by John O'Connor tehj...@gmail.com: -- nosy: +jcon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16398 ___ ___ Python-bugs-list mailing

[issue16465] dict creation performance regression

2013-01-09 Thread John O'Connor
Changes by John O'Connor tehj...@gmail.com: -- nosy: +jcon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465 ___ ___ Python-bugs-list mailing

[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. --

[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. --

[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 syscall

[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. --

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16829 ___ ___ Python-bugs-list mailing list

[issue10156] Initialization of globals in unicodeobject.c

2013-01-09 Thread Stefan Krah
Stefan Krah added the comment: Nick Coghlan rep...@bugs.python.org 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

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16902

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16852

[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 rep...@bugs.python.org http://bugs.python.org/issue16406

[issue14452] SysLogHandler sends invalid messages when using unicode

2013-01-09 Thread Roy Smith
Changes by Roy Smith r...@panix.com: -- nosy: +roysmith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14452 ___ ___ Python-bugs-list mailing list

[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:

[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':

[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 rep...@bugs.python.org http://bugs.python.org/issue16897

[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':

[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 rep...@bugs.python.org http://bugs.python.org/issue16896

[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:

[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 rep...@bugs.python.org http://bugs.python.org/issue16888

[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:

[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 rep...@bugs.python.org http://bugs.python.org/issue16898 ___

[issue1508475] transparent gzip compression in urllib

2013-01-09 Thread John O'Connor
Changes by John O'Connor tehj...@gmail.com: -- nosy: +jcon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1508475 ___ ___ Python-bugs-list mailing

[issue11695] Improve argparse usage/help customization

2013-01-09 Thread John O'Connor
Changes by John O'Connor tehj...@gmail.com: -- nosy: +jcon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11695 ___ ___ Python-bugs-list mailing

<    1   2   3   >