[issue22273] abort when passing certain structs by value using ctypes

2015-02-09 Thread Ilya Kulakov
Ilya Kulakov added the comment: The structure hack does not work on Windows 8, x64. -- nosy: +Ilya.Kulakov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22273 ___

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-02-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 09.02.2015 16:17, Steve Dower wrote: Steve Dower added the comment: Including the one shipped in the stdlib? Python 3.5 no longer supports XP. We normally have the platform.py module support multiple Python versions (at least that's how we did this

[issue22003] BytesIO copy-on-write

2015-02-09 Thread David Wilson
David Wilson added the comment: Attached trivial patch for whatsnew.rst. -- Added file: http://bugs.python.org/file38058/whatsnew.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22003 ___

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-02-09 Thread Steve Dower
Steve Dower added the comment: Including the one shipped in the stdlib? Python 3.5 no longer supports XP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19143 ___

[issue23412] importlib sometimes fails to import a recently created module

2015-02-09 Thread Brett Cannon
Brett Cannon added the comment: Because stat results are cached for performance reasons, it's possible to write to the file system and then try to read/import from it before the modification time for the directory even picks up that there was a change. For this reason there is

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-02-09 Thread Steve Dower
Steve Dower added the comment: @Marc-Andre: Okay, I'll make it easier to backport. You're listed as maintainer - would you like me to post updates here and let you merge them in? @Mark - yep, I'm aware of that. That's how I know that 3.5 doesn't support XP anymore :) (I think we're even past

[issue9949] os.path.realpath on Windows does not follow symbolic links

2015-02-09 Thread Daniel Harding
Daniel Harding added the comment: @Zach - thanks for the review. Sorry that it has taken a few months to pick this issue back up. Anyway, here is an updated patch. It is pretty different than the previous patch, to the point that I would consider it a completely new patch. Anyway, here's

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-02-09 Thread Mark Lawrence
Mark Lawrence added the comment: @Steve just in case you didn't know the rules are given here https://www.python.org/dev/peps/pep-0011/#microsoft-windows. I find it a nuisance that you have to follow an external link to get the status of Python, but maybe it's the lesser of two evils? An

[issue23342] run() - unified high-level interface for subprocess

2015-02-09 Thread Thomas Kluyver
Thomas Kluyver added the comment: Would anyone like to do further review of this - or commit it ;-) ? I don't think anyone has objected to the concept since I brought it up on python-ideas, but if anyone is -1, please say so. -- ___ Python tracker

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread 許邱翔
許邱翔 added the comment: Attached factored patch for tests. It looks much better. :) -- hgrepos: +299 Added file: http://bugs.python.org/file38079/add_tarfile_cli_filetype_test_refactor.patch ___ Python tracker rep...@bugs.python.org

[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-02-09 Thread Martin Panter
Martin Panter added the comment: This should demonstrate that Curl does parse literal slashes in the username and password fields: $ http_proxy=http://user/name:pass/word@localhost:22 curl -v http://example.net/ * Trying ::1... * Connected to localhost (::1) port 22 (#0) * Proxy auth using

[issue3609] does parse_header really belong in CGI module?

2015-02-09 Thread Martin Panter
Martin Panter added the comment: Good idea to move this to somewhere more visible and obvious. I would have been using parse_header() much earlier if I had known it existed. However, maybe it would be better off in the “email.message” module. The rest of the “email.header” module only seems

[issue23424] Unicode character ends interactive session

2015-02-09 Thread eryksun
eryksun added the comment: This isn't a Python bug. The Windows console doesn't properly support UTF-8. See issue 1602 and Drekin's win-unicode-console, an alternative REPL based on the wide-character (UCS-2) console API. FWIW, I attached a debugger to conhost.exe under Windows 7 to inspect

[issue23342] run() - unified high-level interface for subprocess

2015-02-09 Thread Martin Panter
Martin Panter added the comment: Have you seen the code review comments on the Rietveld, https://bugs.python.org/review/23342? (Maybe check spam emails.) Many of the comments from the earlier patches still stand. In particular, I would like to see the “input” default value addressed, at least

[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-02-09 Thread Martin Panter
Martin Panter added the comment: Mapping out-of-range ports to None was added in Issue 14036, though I don’t understand why that approach was taken instead of raising ValueError. Here is a patch to raise ValueError for out-of-range integer values instead. -- keywords: +patch Added

[issue23361] integer overflow in winapi_createprocess

2015-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab2e79c6cf6b by Benjamin Peterson in branch '3.3': add overflow checking (closes #23361) https://hg.python.org/cpython/rev/ab2e79c6cf6b New changeset b82cc9180a78 by Benjamin Peterson in branch '3.4': merge 3.3 (#23361)

[issue14036] urlparse insufficient port property validation

2015-02-09 Thread Martin Panter
Martin Panter added the comment: See Issue 20059 proposing to change this to raise ValueError -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14036 ___

[issue23431] Idle Application Not Responding

2015-02-09 Thread ww0115
New submission from ww0115: I recently downloaded Python 3.4 on my Mac (running on Yosemite 10.10.2) and every time I try and open Idle, the icon just keeps jumping and the application never opens. When I click on the icon after it stops jumping it just says Application Not Responding. I've

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-09 Thread Robert Collins
Robert Collins added the comment: I'm idealogically opposed to polymorphic interpretation of args :) Antoine, will you be ok with one __init__ and one classmethod? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17911

[issue23342] run() - unified high-level interface for subprocess

2015-02-09 Thread Jeff Hammel
Jeff Hammel added the comment: A few observations in passing. I beg your pardon for not commenting after a more in depth study of the issue, but as someone that's written and managed several subprocess module front-ends, my general observations seem applicable. subprocess needs easier and

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread 許邱翔
許邱翔 added the comment: s/factored/refactored/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421 ___ ___ Python-bugs-list mailing list

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2015-02-09 Thread Martin Panter
Martin Panter added the comment: Issue 15310 appears to have a more thorough patch -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13323 ___

[issue23422] Clarify docs for importlib.import_module()

2015-02-09 Thread Brett Cannon
New submission from Brett Cannon: * Link to the function from importlib.__import__() * Link to importlib.invalidate_caches() * Linkify mention in docs for importlib.util.find_spec() -- assignee: brett.cannon components: Documentation messages: 235616 nosy: brett.cannon priority: low

[issue23423] XPath Support in ElementTree doc omission

2015-02-09 Thread Mark Baker
New submission from Mark Baker: The list of XPath supported features in section 20.5.2.2. Supported XPath syntax on page https://docs.python.org/3.4/library/xml.etree.elementtree.html does not list the use of a predicate based on an element value (it only list predicates based on an attribute

[issue22003] BytesIO copy-on-write

2015-02-09 Thread Mikhail Korobov
Mikhail Korobov added the comment: Shouldn't this fix be mentioned in https://docs.python.org/3.5/whatsnew/3.5.html#optimizations ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22003

[issue23418] Keep http.server.__all__ up to date

2015-02-09 Thread Berker Peksag
Berker Peksag added the comment: LGTM. -- nosy: +berker.peksag stage: - commit review versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23418 ___

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread 許邱翔
許邱翔 added the comment: Here is the tests. -- hgrepos: +298 Added file: http://bugs.python.org/file38059/add_tarfile_cli_filetype_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In general LGTM, but I have added few nitpicks on Rietveld. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421 ___

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421 ___ ___

[issue23415] add-to-pydotorg does not support .exe installers for Windows

2015-02-09 Thread Larry Hastings
Larry Hastings added the comment: Attached for your reading pleasure. -- keywords: +patch Added file: http://bugs.python.org/file38060/larry.add-to-pydotorg.exe.support.1.diff ___ Python tracker rep...@bugs.python.org

[issue1776674] glob.glob inconsistent

2015-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1776674 ___ ___ Python-bugs-list mailing list

[issue12738] Bug in multiprocessing.JoinableQueue() implementation on Ubuntu 11.04

2015-02-09 Thread Davin Potts
Davin Potts added the comment: Thank you for the provided test case but because it depends upon compiled code (the libsvm.so.2 file you supplied) it: (1) makes me wonder if the issue might not arise from an issue inside the supplied library (perhaps it was not rebuilt properly on your Ubuntu

[issue21793] httplib client/server status refactor

2015-02-09 Thread Martin Panter
Martin Panter added the comment: If changing the log format, you might also want to update the comment at the top of Lib/http/server.py:53. It seems the original format was imitating https://en.wikipedia.org/wiki/Common_Log_Format, except the timestamp is slightly different. --

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-09 Thread Martin Panter
Martin Panter added the comment: If it were me, I’d drop the Notes and Warnings (never been a fan), and put Thing #2 first, and then Thing #1. Maybe something like ''' sys.exit([arg]) Exit from Python. . . . and it is possible to intercept the exit attempt at an outer level. When called from

[issue23342] run() - unified high-level interface for subprocess

2015-02-09 Thread Thomas Kluyver
Thomas Kluyver added the comment: Aha, I hadn't seen any of those. They had indeed been caught by the spam filter. I'll look over them now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23342

[issue23342] run() - unified high-level interface for subprocess

2015-02-09 Thread Thomas Kluyver
Thomas Kluyver added the comment: Fourth version of patch, responding to review comments on Rietveld. The major changes are: - Eliminated the corner case when passing input=None to run() - now it's a real default parameter. Added a shim in check_output to keep it behaving the old way in case

[issue23430] socketserver.BaseServer.handle_error() should not catch exiting exceptions

2015-02-09 Thread Martin Panter
New submission from Martin Panter: I propose changing the socket servers to not suppress exceptions that are meant to exit the interpreter. This is most applicable to single threaded servers, but my patch does the same thing for multithreading servers. It no longer catches exceptions that are

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a06379f6562 by Serhiy Storchaka in branch '3.4': Issue #23421: Fixed compression in tarfile CLI. Patch by wdv4758h. https://hg.python.org/cpython/rev/2a06379f6562 New changeset 5b70eb1cfad0 by Serhiy Storchaka in branch 'default': Issue #23421:

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution. -- resolution: - fixed stage: test needed - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421

[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-02-09 Thread Panagiotis Issaris
Panagiotis Issaris added the comment: RFC3986 seems to state that a '/' character should be encoded: ... reserved= gen-delims / sub-delims gen-delims = : / / / ? / # / [ / ] / @ sub-delims = ! / $ / / ' / ( / ) / * / + / , / ; / = ... The user information, if present,

[issue23424] Unicode character ends interactive session

2015-02-09 Thread Grzegorz Abramczyk
New submission from Grzegorz Abramczyk: Inputing some Unicode characters (like 'łąśćńó...') causes interactive session to abort. When console session is set to use UTF-8 code page (65001) after diacritic character appears in string the session abruptly ends. Looking into debug output it

[issue2292] Missing *-unpacking generalizations

2015-02-09 Thread Neil Girdhar
Changes by Neil Girdhar mistersh...@gmail.com: Added file: http://bugs.python.org/file38062/starunpack31.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue23425] Windows getlocale unix-like with french, german, portuguese, spanish

2015-02-09 Thread albertjan
New submission from albertjan: getlocale() is supposed to (?) return a locale two-tuple in a platform-specific notation. However, in *Windows* 7 64, with Python 3.4, 3.3 and 2.7 a *unix-like*, abbreviated, lang_territory notation is used for french, german, portuguese, spanish. In other

[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-02-09 Thread Andy Reitz
Andy Reitz added the comment: Sure, but the question is who should do the encoding -- the user, or python? I think it would be better for python to read the password from the environment variable, and encode it before using it. I think this is what users expect. --

[issue23427] Python should expose command when invoked with -c

2015-02-09 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: When Python is invoked with the `-c command` switch, the command string does not get exposed in sys.argv: $ python -c import sys; print(sys.argv) ['-c'] $ python -c import sys; print(sys.argv) arg1 ['-c', 'arg1'] The command string does

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: With the following simple setup.py $ cat setup.py from distutils.core import setup from distutils.command.install import install class install1(install): sub_commands = install.sub_commamnds setup(name='bug', cmdclass={'install': install1}) I

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-09 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: I'd love to find an agreement here. I think we are quite close to getting this closed, so further input is very welcome. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6634

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file38067/issue23426.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23426

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch fixes both issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23426 ___ ___

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: Added file: http://bugs.python.org/file38063/setup.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23426 ___

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: Added file: http://bugs.python.org/file38064/setup1.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23426 ___

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: Added file: http://bugs.python.org/file38066/setup.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23426 ___

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: Removed file: http://bugs.python.org/file38063/setup.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23426 ___

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2015-02-09 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Can these super-small doc patches get applied or should we change something? Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20709 ___

[issue23419] Faster default __reduce__ for classes without __init__

2015-02-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch makes faster default __reduce__ implementation for the case when there is no non-trivial __init__ defined (e.g. for named tuples). In this case __reduce__ will return (cls, newargs) instead of (copyreg.__newobj__, (cls,) + newargs).

[issue23249] test_win32 fails on aarch64

2015-02-09 Thread Robert Kuska
Robert Kuska added the comment: Sorry for the late answer, I forgot about this issue. 3.2.1 doesn't contain required fix(sorry for the misleading suggestion 'or update bundled libffi' from report) but master branch at upstream repo (https://github.com/atgreen/libffi) does. --

[issue23420] python -m cProfile -s fails with non informative message

2015-02-09 Thread Robert Kuska
New submission from Robert Kuska: Originaly reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1160640 I've forgotten to add the sort value to the -s option of cProfile which results in a traceback instead of user friendly error message. In the example below hello.py just prints a

[issue22273] abort when passing certain structs by value using ctypes

2015-02-09 Thread Alexei Romanov
Changes by Alexei Romanov drednout...@gmail.com: -- nosy: +alexei.romanov versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22273 ___

[issue1429] FD leak in SocketServer when request handler throws exception

2015-02-09 Thread Martin Panter
Martin Panter added the comment: I think calling shutdown_request(), or at least close_request(), should be done regardless of whether handle_error() fails or not. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No need to use libmagic. tarfile.TarFile.gzopen() should fail if the file is not gzipped tar file. There CLI tests in Lib/test/test_tarfile.py. New test should create tar file with file name that ends with the '.gz' extension and check that it can be open

[issue23417] Windows 8.1 and Windows Server 2012 R2 are not displayed properly

2015-02-09 Thread Steve Dower
Steve Dower added the comment: We're already tracking this at #19143, where I've got a future proofed version of the function. Thanks for the prod though, I'll try and get some action going again. -- resolution: - duplicate status: open - closed superseder: - Finding the Windows

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-02-09 Thread Steve Dower
Steve Dower added the comment: (Was reminded about this by #23417) Any word on the back compat issues in platform.py? Can we make the version in 3.5 only work with Vista+, or do I need to handle XP in case someone takes the file onto an earlier Python version? --

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread 許邱翔
許邱翔 added the comment: Oh, I can use it. thx -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421 ___ ___ Python-bugs-list mailing list

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2015-02-09 Thread STINNER Victor
New submission from STINNER Victor: Python 3.5 now requires a monotonic clock to start and has the C function _PyTime_monotonic(). Python/condvar.h and Python/thread_pthread.h should use the monotonic clock CLOCK_MONOTONIC, not the system clock CLOCK_REALTIME. See the PEP 418 for the

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2015-02-09 Thread STINNER Victor
STINNER Victor added the comment: Python/condvar.h and Python/thread_pthread.h should use the monotonic clock CLOCK_MONOTONIC Oh, I forgot that Python/thread_pthread.h only uses pthread_cond_timedwait() if semaphores are emulated with mutexes+conditional variables. On most platforms,

[issue2292] Missing *-unpacking generalizations

2015-02-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: For starters, it would be nice if the patch didn't make unrelated style changes (e.g. in compile.c). I also Call arguments should be unified into one list rather than distinguishing between keywords and args anymore. -- nosy: +benjamin.peterson

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2015-02-09 Thread STINNER Victor
STINNER Victor added the comment: cond_timedwait_monotonic.patch: Work-in-progress patch. It doesn't change configure.ac yet to check if pthread_condattr_setclock() is supported (with CLOCK_MONOTONIC). -- keywords: +patch Added file:

[issue21793] httplib client/server status refactor

2015-02-09 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the catch Martin, it definitely wasn't intended. I've added a patch to fix the issue and add the extra description as suggested by Ethan. -- Added file: http://bugs.python.org/file38068/issue21793_logfix.patch

[issue23249] test_win32 fails on aarch64

2015-02-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +doko, meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23249 ___ ___ Python-bugs-list

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2015-02-09 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23428 ___ ___

[issue23429] -5**4 returns -625 instead of 625

2015-02-09 Thread Justin
New submission from Justin: C:\Users\Justinpython Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. print(-5**4) -625 #note...this should be 625 and not a negative 625 --

[issue4773] HTTPMessage not documented and has inconsistent API across Py2/Py3

2015-02-09 Thread Martin Panter
Martin Panter added the comment: Jeremy’s patch appears to have been merged in revision 9eceb618274a. A documentation entry for the HTTPMessage class was also added in 2009, pointing back to email.message.Message. So is there anything left to do for this issue? -- nosy: +vadmium

[issue23420] python -m cProfile -s fails with non informative message

2015-02-09 Thread Robert Kuska
Changes by Robert Kuska rku...@gmail.com: Added file: http://bugs.python.org/file38055/sort-choices.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23420 ___

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch. Could you provide tests? -- nosy: +berker.peksag, serhiy.storchaka stage: - test needed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread 許邱翔
許邱翔 added the comment: yes just wanna know is there a standard way to get file type by libmagic ? -- versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421 ___

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread 許邱翔
Changes by 許邱翔 wdv47...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23421 ___ ___ Python-bugs-list mailing

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Added tests. -- stage: - test needed Added file: http://bugs.python.org/file38071/issue23426-with-tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23426

[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-02-09 Thread Martin Panter
Martin Panter added the comment: To comply with the RFC on URLs, whoever is setting the environment variable _should_ do the encoding, and then Python will _decode_ it. But I suspect this case is more about how Python should handle an environment variable that hasn’t been encoded correctly.

[issue23426] run_setup is broken in distutils

2015-02-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- stage: test needed - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23426 ___

[issue23361] integer overflow in winapi_createprocess

2015-02-09 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23361 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23420] python -m cProfile -s fails with non informative message

2015-02-09 Thread Robert Kuska
Changes by Robert Kuska rku...@gmail.com: Added file: http://bugs.python.org/file38054/sort-choices.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23420 ___

[issue23421] tarfile module does not correctly choose compression algorithms

2015-02-09 Thread wdv4758h
New submission from wdv4758h: The command python -m tarfile -c test.tar.bz2 test/ should create a file that is compressed by bzip2, but actually the detection of compression algorithm that should be used is broken (for gz, xz, bz2). fix it by prepending a dot to the keys of the dictionary

[issue22235] httplib: TypeError with file() object in ssl.py

2015-02-09 Thread Etienne Robillard
Etienne Robillard added the comment: sometimes urllib break at different packages, with SSL: CERTIFICATE_VERIFY_FAILED message. It seem related to the new ssl.py backport and pip. sudo python setup.py install --prefix=/usr/local Downloading

[issue23429] -5**4 returns -625 instead of 625

2015-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unary minus has less priority than power operator. -5**4 is equal to -(5**4), not (-5)**4. -- nosy: +serhiy.storchaka resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23424] Unicode character ends interactive session

2015-02-09 Thread STINNER Victor
STINNER Victor added the comment: This issue looks to be a duplicate of the issue #1602: windows console doesn't print or input Unicode. It's a limitation of Windows, not of Python itself. Python supports any Unicode character if the output is written in a file (encoded in UTF-8).

[issue2292] Missing *-unpacking generalizations

2015-02-09 Thread Neil Girdhar
Neil Girdhar added the comment: Thank you, Benjamin. It's my nature to keep code consistent/clean, but I realize that I can get carried away. Should I revert all incidental PEP 7 style changes? Regarding the args/keywords, where do you mean? If you're talking about compile.c, we can't

[issue23427] Python should expose command when invoked with -c

2015-02-09 Thread STINNER Victor
STINNER Victor added the comment: sys.argv must not be changed. It would break too many Python applications. *If* we decide to expose the command line parameter in Python, we can add a new variable like sys.command for example. command name in used in the C code of Python, and also comes from c

[issue2292] Missing *-unpacking generalizations

2015-02-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Feb 9, 2015, at 18:15, Neil Girdhar wrote: Neil Girdhar added the comment: Thank you, Benjamin. It's my nature to keep code consistent/clean, but I realize that I can get carried away. Should I revert all incidental PEP 7 style changes?

[issue2292] Missing *-unpacking generalizations

2015-02-09 Thread Neil Girdhar
Neil Girdhar added the comment: Removed incidental PEP 7 changes and reran tests. -- Added file: http://bugs.python.org/file38070/starunpack32.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-02-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 09.02.2015 15:14, Steve Dower wrote: Steve Dower added the comment: (Was reminded about this by #23417) Any word on the back compat issues in platform.py? Can we make the version in 3.5 only work with Vista+, or do I need to handle XP in case

[issue23416] Make urllib.parse.SplitResult etc arguments optional

2015-02-09 Thread Martin Panter
Martin Panter added the comment: Adding a patch implementing my suggested enhancement -- keywords: +patch versions: +Python 3.5 Added file: http://bugs.python.org/file38076/split-result-default.patch ___ Python tracker rep...@bugs.python.org

[issue23400] Inconsistent behaviour of multiprocessing.Queue() if sem_open is not implemented

2015-02-09 Thread Davin Potts
Davin Potts added the comment: Attached are proposed patches for default (3.5), 3.4, and 2.7 branches. (The patch for 3.4 is identical to that for 3.5 so there are only two files in total being attached.) Regarding the exception being raised: * An ImportError is now consistently being raised

[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-02-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: In the initial report, I thought, it was mentioned that curl reads the same http_proxy variable properly. It will be good to have a correct curl test case to ascertain that. But, at all the places, where @ character is allowed in urls (netrc, git configs,

[issue23400] Inconsistent behaviour of multiprocessing.Queue() if sem_open is not implemented

2015-02-09 Thread Davin Potts
Davin Potts added the comment: To be clear, the changes to 2.7 are exclusively in the documentation. Changes to 3.4 and default (3.5) are in both documentation and code. -- Added file: http://bugs.python.org/file38078/issue23400_py27.patch ___