[issue22267] fix reliance on refcounting in test_weakref

2014-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset b63b8c5628da by Benjamin Peterson in branch '2.7': fix some test_weakref tests to not rely on ref-counting (closes #22267) http://hg.python.org/cpython/rev/b63b8c5628da New changeset b1c82ef96862 by Benjamin Peterson in branch '3.4': fix some

[issue22265] fix reliance on refcounting in test_itertools

2014-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a91f8766f755 by Benjamin Peterson in branch '2.7': allow test to work on implementations not using ref-counting (closes #22265) http://hg.python.org/cpython/rev/a91f8766f755 New changeset e6bb59b6b85c by Benjamin Peterson in branch '3.4': allow

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2014-08-24 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___ Python-bugs-list mailing list

[issue22270] cache version selection for documentation

2014-08-24 Thread Jonas Jelten
New submission from Jonas Jelten: The Python version selection for the documentation should be cached. It's very annoying having to select the preferred version each time one follows a link, e.g. search result, irc post, etc. I'd like to see caching the preferred version in a cookie and

[issue22266] fix reliance on refcounting in tarfile.gzopen

2014-08-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think technically this changes semantics, since the construction of the GzipFile is no longer in the main try-except. You should probably backport the full 3.x behavior. -- nosy: +benjamin.peterson ___ Python

[issue22270] cache version selection for documentation

2014-08-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't think that makes much sense. People often link to a particular version of the documentation and making the version sticky to a particular user could be confusing. -- nosy: +benjamin.peterson ___ Python

[issue22270] cache version selection for documentation

2014-08-24 Thread Jonas Jelten
Jonas Jelten added the comment: it should rather be a opt-in feature. and when the redirection triggered, one should be able do click (you know it from wikipedia) back to page where one was redireced from. -- ___ Python tracker

[issue22270] cache version selection for documentation

2014-08-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Sun, Aug 24, 2014, at 16:39, Jonas Jelten wrote: Jonas Jelten added the comment: it should rather be a opt-in feature. and when the redirection triggered, one should be able do click (you know it from wikipedia) back to page where one was redireced

[issue22264] Add wsgiref.util.fix_decoding

2014-08-24 Thread Graham Dumpleton
Graham Dumpleton added the comment: Is actually WSGI 1.0.1 and not 1.1. :-) -- nosy: +grahamd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22264 ___

[issue22264] Add wsgiref.util.fix_decoding

2014-08-24 Thread STINNER Victor
STINNER Victor added the comment: I don't like fix in the name fix_encoding. It is negative. Why not decode or decode_wsgi? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22264 ___

[issue22264] Add wsgiref.util.fix_decoding

2014-08-24 Thread Graham Dumpleton
Graham Dumpleton added the comment: From memory, the term sometimes used on the WEB-SIG when discussed was transcode. I find the idea that it needs 'fixing' or is 'incorrect', as in 'fix the original incorrect decoding to latin-1' is a bit misleading as well. It was the only practical way of

[issue22258] set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos

2014-08-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Use FD_CLOEXEC in Python/fileutils.c - set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos ___ Python tracker rep...@bugs.python.org

[issue22258] set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos

2014-08-24 Thread STINNER Victor
STINNER Victor added the comment: @Igor: Here is a patch. Can you please apply it and run ./python -m test -v test_os on your OS? I tried it manually on Linux by forcing the errno to ENOTTY. -- Added file: http://bugs.python.org/file36460/ioctl_works.patch

[issue22264] Add wsgiref.util.fix_decoding

2014-08-24 Thread STINNER Victor
STINNER Victor added the comment: I don't think that applications are prepared to handle surrogate characters, so I'm not sure that the default encoding should be surrogateescape. In my experience, text is later encoded to UTF-8 (or latin1 or ascii) and you then you an error from the encoder.

[issue22264] Add wsgiref.util.fix_decoding

2014-08-24 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot to mention that I'm not convinced that we should add such function to the Python stdlib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22264

[issue18814] Add tools for cleaning surrogate escaped strings

2014-08-24 Thread STINNER Victor
STINNER Victor added the comment: Your clean() function looses information. If a filename contains almost only undecodable characters, it will looks like .txt. It's not very useful. I would prefer to escape the byte. Mac OS X (HFS+ filesystem) uses for example %HH format: \udc80 would be

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-08-24 Thread STINNER Victor
STINNER Victor added the comment: I think there are too many changes. Here is simpler patch which get rid of all warnings in Objects/unicodeobject.c on my computer (gcc 4.6.3, 32-bit Linux). The purpose of my patch is not to make the compiler quiet, but to ensure that negative lengths are

[issue22271] Deprecate PyUnicode_AsUnicode(): emit a DeprecationWarning

2014-08-24 Thread STINNER Victor
New submission from STINNER Victor: With the PEP 393 implemented in Python 3.3, PyUnicode_AsUnicode() and all similar functions have to convert the compact string to a heavy wchar_t* string (UCS-4 on Linux: 4 bytes per character, UTF-16 on Windows: 2 or 4 bytes per character) which is stored

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-24 Thread STINNER Victor
STINNER Victor added the comment: Instead of a complex structure, we can use a 64-bit signed integer to store a number of nanoseconds. For a UNIX epoch, nanoseconds since January 1st 1970, the min/max are: 1677-09-21 00:12:43.145224 2262-04-11 23:47:16.854776 The Linux kernel is going to use

[issue22240] argparse support for python -m module in help

2014-08-24 Thread Miki Tebeka
Miki Tebeka added the comment: How can you run a package without -m? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22240 ___ ___

[issue22240] argparse support for python -m module in help

2014-08-24 Thread Miki Tebeka
Miki Tebeka added the comment: Made the test more robust by using sys.executable in the comparison. -- Added file: http://bugs.python.org/file36461/prog3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22240

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2014-08-24 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___ Python-bugs-list

[issue22266] fix reliance on refcounting in tarfile.gzopen

2014-08-24 Thread Brian Kearns
Changes by Brian Kearns bdkea...@gmail.com: Removed file: http://bugs.python.org/file36456/tarfile.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22266 ___

[issue22266] fix reliance on refcounting in tarfile.gzopen

2014-08-24 Thread Brian Kearns
Brian Kearns added the comment: Yes, I guess that makes sense (though this behavior is undocumented and untested...) -- Added file: http://bugs.python.org/file36462/tarfile.patch ___ Python tracker rep...@bugs.python.org

[issue22240] argparse support for python -m module in help

2014-08-24 Thread paul j3
paul j3 added the comment: Package might be the wrong term. How about a directory with a `__main__.py` file, and no local imports (relative or not)? In my tests it runs with and without the -m. -- ___ Python tracker rep...@bugs.python.org

[issue22260] Rearrange tkinter tests, use test discovery

2014-08-24 Thread Zachary Ware
Zachary Ware added the comment: Here's a new version of the patch, post-#22236. Serhiy, since you want this in 2.7 and 3.4, this version doesn't move any files around (except Lib/test/test_tcl.py), which should make backporting easier. I like this patch much better than the original, it's a

<    1   2