[issue30276] import hashlib makes many programs slow

2017-05-05 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: getting to a similar size on Debian, so I'll move this into the openSUSE bugtracker to find out why it is so slow there. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tra

[issue30270] Remove sqlite3.Cache display method

2017-05-05 Thread R. David Murray
R. David Murray added the comment: If it is there for debugging, why would we want to remove it? -- nosy: +r.david.murray ___ Python tracker ___ _

[issue30285] Optimize case-insensitive regular expressions

2017-05-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1582 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-05-05 Thread Berker Peksag
Berker Peksag added the comment: I'd suggest marking them with @unittest.expectedFailure as an alternative way to move forward. -- nosy: +berker.peksag stage: -> patch review type: -> behavior ___ Python tracker

[issue30248] Using boolean arguments in the _json module

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Initially I was going to add explicit bool() calls in Python implementations, so that Python and C implementation behave the same in case of non-constant options. But then I figured out that is behavior is insane and we shouldn't guarantee anything in this c

[issue30272] distutils.version.LooseVersion's compare raises exception in corner-case

2017-05-05 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. This is a duplicate of issue 14894. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> distutils.LooseVersion fails to compare number and a word

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-05 Thread Berker Peksag
Berker Peksag added the comment: > Someone somewhere may be using them for something, they've been around for a > long time. Well, you can use the same argument for every issue on the tracker. People can even rely on real bugs that are still open for 10 years, but that doesn't mean they shoul

[issue30286] ctypes FreeLibrary fails on Windows 64-bit

2017-05-05 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': >>> import ctypes >>> path = 'C:\\Python35-64\\vcruntime140.dll' >>> cfile = ctypes.CDLL(path) >>> cfile._handle 140736170229760 >>> ctypes.windll.kernel32.FreeLibrary(cfile._handle) Traceback (most recent call last): ctypes.windll.kernel32.FreeLibrary(c

[issue30286] ctypes FreeLibrary fails on Windows 64-bit

2017-05-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge, theller ___ Python tracker ___ ___ Python-bugs-l

[issue30286] ctypes FreeLibrary fails on Windows 64-bit

2017-05-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: http://stackoverflow.com/questions/23522055/error-when-unload-a-64bit-dll-using-ctypes-windll Adding "ctypes.windll.kernel32.FreeLibrary.argtypes = [wintypes.HMODULE]" fixes the issue. This works: import ctypes from ctypes import wintypes path = 'C:\\Pytho

[issue30270] Remove sqlite3.Cache display method

2017-05-05 Thread Berker Peksag
Berker Peksag added the comment: FWIW, I agree with Brett and David. Did you try to use it? I prefer to fix it even if it's broken at the moment. -- ___ Python tracker ___ _

[issue30282] object returned by tarfile.extractfile has an incorrect value of name attribute

2017-05-05 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1583 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29302] add contextlib.AsyncExitStack

2017-05-05 Thread Yury Selivanov
Yury Selivanov added the comment: Overall, the approach looks fine. Alexander, do you want to make a PR to start working on adding this to 3.7? -- versions: -Python 3.6 ___ Python tracker

[issue30282] object returned by tarfile.extractfile has an incorrect value of name attribute

2017-05-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30275] pickle doesn't work in compile/exec

2017-05-05 Thread Brett Cannon
Brett Cannon added the comment: It won't work without the global namespace as pickle needs to be able to figure out where the function lives (the function itself doesn't get pickled, just the name of the function). -- nosy: +brett.cannon resolution: -> not a bug stage: -> resolved st

[issue30267] Deprecate os.path.commonprefix

2017-05-05 Thread Brett Cannon
Brett Cannon added the comment: I agree with Serhiy that it might be time to create a seqtools module. -- nosy: +brett.cannon ___ Python tracker ___ _

[issue30218] shutil.unpack_archive doesn't support PathLike

2017-05-05 Thread Brett Cannon
Brett Cannon added the comment: New changeset a12df7b7d40dbf47825917c8fa03d2c09b5a382c by Brett Cannon (Jelle Zijlstra) in branch 'master': bpo-30218: support path-like objects in shutil.unpack_archive() (GH-1367) https://github.com/python/cpython/commit/a12df7b7d40dbf47825917c8fa03d2c09b5a382c

[issue30218] shutil.unpack_archive doesn't support PathLike

2017-05-05 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch (and patience), Jelle! -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue30218] shutil.unpack_archive doesn't support PathLike

2017-05-05 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue4755] Add function to get common path prefix

2017-05-05 Thread Martin Panter
Martin Panter added the comment: Issue 10395 added “os.path.commonpath” in 3.5. -- nosy: +martin.panter resolution: -> duplicate stage: patch review -> resolved status: languishing -> closed superseder: -> new os.path function to extract common prefix based on path components ___

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-05 Thread R. David Murray
R. David Murray added the comment: No, I'm arguing purely from a generic backward compatibility perspective. There does not seem to be me be sufficient benefit to removing them to justify doing it. -- ___ Python tracker

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list maili

[issue30220] Why are custom messages for ValueError, TypeError suppressed in argparse?

2017-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: Why are the custom messages for ValueError and TypeError suppressed in argparse? -> Why are custom messages for ValueError, TypeError suppressed in argparse? versions: +Python 3.7 -Python 3.5

[issue30238] 2to3 doesn't detect or fix Exception indexing

2017-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue30287] cpython and Clang Static Analyzer

2017-05-05 Thread Дилян Палаузов
New submission from Дилян Палаузов: I compiled cpython using Clang 4.0 Static Analyzer with scan-build ./configure --enable-loadable-sqlite-extensions --enable-ipv6 --with-system-expat --with-system-ffi --with-system-libmpdec scan-build make and here are the results https://mail.aegee.org/dp

[issue30251] Windows Visual Studio solution does not have an install target

2017-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ P

[issue30252] Configuration system does not work for Windows/Visual Studio

2017-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware stage: -> test needed type: -> enhancement versions: +Python 3.7 -Python 3.6 ___ Python tracker __

[issue30253] Python does not build without WITH_THREADS defined on Windows/Visual Studio

2017-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ P

[issue30288] ssl.wrap_ssl will fail on do_handshake if default parameters are supplied by user

2017-05-05 Thread DenSA-Inc
New submission from DenSA-Inc: After a big problem with the newest ejabberd-version and sleekxmpp I located the problem in ssl.wrap_socket. When called with no parameters the later do_handshake (method of ssl.SSLSocket) fails with an exception. When called with keyword-parameters which match t

[issue30288] ssl.wrap_ssl will fail on do_handshake if default parameters are supplied by user

2017-05-05 Thread DenSA-Inc
DenSA-Inc added the comment: I just realised that the server stopped supporting TLS-v1.0 and the code still tried to establish a TLS-v1.0-connection. Yet the server responded with TLS-v1.2. So no bug here. -- stage: -> resolved status: open -> closed _

[issue30263] regrtest: log the system load?

2017-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have a 6 core, 12 cpu Pentium. I previously stopped with -j10. Reading the above, I tried -j14 and -j18. Times for one run on a quiet system of 'test -jnn -ugui' with a fresh download and debug build were 3:55 (-j10), 3:48, and 3:53. Not much affect. A

[issue30286] ctypes FreeLibrary fails on Windows 64-bit

2017-05-05 Thread Eryk Sun
Eryk Sun added the comment: It's documented that the default conversion for integer arguments is a 32-bit C int, which is also the default for result types. Whenever pointers (and Windows handles, which are sometimes 64-bit pointers, such as HMODULE values) are passed as arguments, integer val

[issue30220] Why are custom messages for ValueError, TypeError suppressed in argparse?

2017-05-05 Thread Pedro
Pedro added the comment: Paul, There are a number of scenarios in which you need to check a value and not just a type. For instance, I have a tool with several command-line arguments that need to be *nonnegative* integers, and a call to int() would not catch that. Many other utilities that as

[issue30289] make distclean and Misc/python-config.sh

2017-05-05 Thread Дилян Палаузов
Changes by Дилян Палаузов : -- components: +Build ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30289] make distclean and Misc/python-config.sh

2017-05-05 Thread Дилян Палаузов
New submission from Дилян Палаузов: 'make distclean' forgets to delete Misc/python-config.sh . -- messages: 293151 nosy: dilyan.palauzov priority: normal severity: normal status: open title: make distclean and Misc/python-config.sh ___ Python tracker

[issue30290] IDLE: add tests for help_about.py

2017-05-05 Thread Terry J. Reedy
New submission from Terry J. Reedy: Initial plan. 1a. Change AboutDialog to mimic query.Query with respect to _utest and suppression of dialog display and waiting. 1b. Create AboutDialog instance. 2a. Change textview.TextViewer as with AboutDialog. Also change textview functions and AboutDialo

<    1   2