[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

[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

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

2017-05-05 Thread Дилян Палаузов
Changes by Дилян Палаузов : -- components: +Build ___ Python tracker ___ ___

[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

[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

[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

[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

[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

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

[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

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

[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

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

[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

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

[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

[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

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

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

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

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

[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

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

[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 Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1583 ___ Python tracker ___

[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

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

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

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

[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

[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

[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

[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

[issue30285] Optimize case-insensitive regular expressions

2017-05-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1582 ___ Python tracker ___ ___

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

[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

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-05 Thread R. David Murray
R. David Murray added the comment: That's the same motivation, not a new one :) Someone somewhere may be using them for something, they've been around for a long time. I hope not, though. -- ___ Python tracker

[issue30285] Optimize case-insensitive regular expressions

2017-05-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Matching and searching case-insensitive regular expressions is much slower than matching and searching case-sensitive regular expressions. Case-insensitivity requires converting every character in input string to lower case and disables some

[issue30284] Build CPython out of tree with a read-only source tree

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: test_synopsis_sourceless() should create a script, build it and test the generated .pyc file. So we control how the .pyc file is created. -- ___ Python tracker

[issue30284] Build CPython out of tree with a read-only source tree

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: Ah, there is one and only one failing test: == ERROR: test_synopsis_sourceless (test.test_pydoc.PydocDocTest) -- Traceback

[issue30270] Remove sqlite3.Cache display method

2017-05-05 Thread Brett Cannon
Brett Cannon added the comment: With over 10 years of existence for that method, I can guarantee you someone relies on it, and so we should do a reasonable job to avoid breaking them without at least some warning first. -- ___ Python tracker

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: I ran a quick benchmark on my laptop, Fedora 25: haypo@selma$ python3 -m perf command -o ref.json -- python3 -c 'pass' && python3 -m perf command -o hashlib.json -- python3 -c 'import hashlib' && python3 -m perf compare_to ref.json hashlib.json --table

[issue30192] hashlib module breaks with 64-bit kernel and 32-bit user space

2017-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> backport needed ___ Python tracker ___

[issue30284] Build CPython out of tree with a read-only source tree

2017-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1581 ___ Python tracker ___ ___

[issue30274] Make importlib.abc.ExtensionFileLoader.__init__() documentation match code

2017-05-05 Thread Brett Cannon
Brett Cannon added the comment: Another option is to rename 'name' to 'fullname', make 'name' keyword-only, and then raise a DeprecationWarning if 'name' is used, eventually removing the keyword-only argument. -- ___ Python tracker

[issue30284] Build CPython out of tree with a read-only source tree

2017-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +cstratak ___ Python tracker ___ ___

[issue30284] Build CPython out of tree with a read-only source tree

2017-05-05 Thread STINNER Victor
New submission from STINNER Victor: I tried to build CPython out of the source tree with a customized read-only source tree (chmod -R -w). I got an error when running tests: tests want to write into a build/ directory... in the source tree. Attached patch fixes this issue. --

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-05 Thread STINNER Victor
New submission from STINNER Victor: I would like to continue to backport enhancements of regrtest from master to 2.7. In master, regrtest has so many super useful features! This week, Serhiy and me backported some basic features, but we introduced regressions. I now would like to backport

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- assignee: -> haypo ___ Python tracker ___ ___

[issue30223] Add Lib/test/__main__.py in 2.7

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Victor for fixing this bug. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue30192] hashlib module breaks with 64-bit kernel and 32-bit user space

2017-05-05 Thread Neil Schemenauer
Neil Schemenauer added the comment: It should be backported in my opinion. -- ___ Python tracker ___ ___

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-05 Thread Xiang Zhang
Xiang Zhang added the comment: I am okay to use PY_SSIZE_T_MIN. But if we are worried about future change of PY_SSIZE_T_MIN, seems we also need to change the API doc of PySlice_Unpack(). Although _PyEval_SliceIndex's comment says it clips value to -PY_SSIZE_T_MAX-1, actually it uses

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread Christian Heimes
Christian Heimes added the comment: If import of hashlib is slowed down by OpenSSL, then import of ssl module will be even slower. Am 5. Mai 2017 17:57:41 MESZ schrieb "Bernhard M. Wiedemann" : > >Bernhard M. Wiedemann added the comment: > >This might work in some

[issue30268] Make mimetypes.guess_type accept path-like objects

2017-05-05 Thread ProgVal
ProgVal added the comment: @r.david.murray I don't think it's a bug either, but a possible enhancement. @serhiy.storchaka We could simply do this: if isinstance(url, bytes): url = os.fsdecode(url) -- ___ Python tracker

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: This might work in some places, but if you look at real-world users like urllib3/util/ssl_.py > from hashlib import md5, sha1, sha256 or twisted/words/protocols/jabber/xmlstream.py > from hashlib import sha1 It would probably not need any openssl at

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: I closed my issue #29641 as a duplicate of this one. -- ___ Python tracker ___

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset a1054c3b0037d4c2a5492e79fc193f36245366c7 by Victor Stinner (torsava) in branch 'master': bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478) https://github.com/python/cpython/commit/a1054c3b0037d4c2a5492e79fc193f36245366c7

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

2017-05-05 Thread Ondrej Kubecka
New submission from Ondrej Kubecka: Consider the following code snippet: import tarfile tar1 = tarfile.open('tar1.tar.gz') file_ = tar1.extractfile('FILE') print(file_.name) Up until 3.2.x, the value of name attribute would be 'FILE' as derived from tarinfo of the member. Starting with 3.3

[issue24932] Use proper command line parsing in _testembed

2017-05-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Downstream backporting of PEP 538 to the 3.6 branch also depends on this fix. Would it be beneficial in any way to cherry-pick it for 3.6? -- nosy: +cstratak ___ Python tracker

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-05 Thread Berker Peksag
Berker Peksag added the comment: Even if users somehow managed to create Cache and Statement objects themselves, they are basically implementation details of the module and there is no way to use them to mess with the internal state of the module via using the current API (e.g.

[issue30268] Make mimetypes.guess_type accept path-like objects

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There were issues with mimetypes.guess_type() on Windows in Python 2 (issue9291 and a number of duplicate issues). I afraid that adding support of bytes paths will return the hell from which we ran in Python 3. -- nosy: +serhiy.storchaka

[issue30268] Make mimetypes.guess_type accept path-like objects

2017-05-05 Thread R. David Murray
R. David Murray added the comment: To clarify my question, I don't think it is a bug, but the fact that you do might mean there needs to be a doc clarification. Or it might not. Or, there might be a desirable enhancement here, maybe relating to the pathlike protocol. --

[issue30268] Make mimetypes.guess_type accept path-like objects

2017-05-05 Thread R. David Murray
R. David Murray added the comment: Why do you think this is a bug? -- nosy: +r.david.murray ___ Python tracker ___

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-05 Thread R. David Murray
R. David Murray added the comment: Sorry, by "real motivation" I meant something beyond just cleaning up the API...that's a real motivation, it may just not be enough. -- ___ Python tracker

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-05 Thread R. David Murray
R. David Murray added the comment: If these objects have been exposed in the past, we won't simply delete them. At a minimum there would need to be a deprecation period, but is there a real motivation for deleting them? -- nosy: +r.david.murray

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: > the urandom calls themselves are not slow, but probably the processing in > between. Can't that be done on demand on first use? If the time is spent on loading OpenSSL, maybe you should try to import hashlib on demand? --

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: I'm running openSUSE Tumbleweed with python-2.7.13 and python3-3.6.1 on an Intel Pentium N3530 with linux-4.10.12 There the total time of the "import _hashlib" oneliner varies between 100 and 250 ms (python3 is a bit slower and the machine is slower when

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: Hum, integer overflows are complex issues. It deserves an unit test, maybe even in C written in _testcapi? -- nosy: +haypo ___ Python tracker

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-05 Thread Tomas Orsava
Tomas Orsava added the comment: I've opened a PR#1478 that I believe fixes the issue. -- nosy: +torsava ___ Python tracker ___

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure that -PY_SSIZE_T_MAX-1 always is representable. I would use PY_SSIZE_T_MIN and add a static assert (Py_BUILD_ASSERT) that PY_SSIZE_T_MIN + 1 <= -PY_SSIZE_T_MAX. Actually currently PY_SSIZE_T_MIN is -PY_SSIZE_T_MAX-1 by definition, but this can

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-05 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1579 ___ Python tracker ___ ___

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-05 Thread Xiang Zhang
New submission from Xiang Zhang: The default value for stop in PySlice_Unpack should be -PY_SSIZE_T_MAX-1. Otherwise a sequence of length PY_SSIZE_T_MAX could get a wrong slicelength when doing L[::-1]. -- components: Interpreter Core messages: 293097 nosy: serhiy.storchaka,

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If you use directly the parser class and pass an open file object, in that > case, yes, my change closes the file. Or if the high-level *function* parse() is called with an open file object. I don't know whether this is desirable change, but this change

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2017-05-05 Thread Matteo Bertini
Matteo Bertini added the comment: Bumped in this bug yesterday, sadly a script working (by chance) in Python2 doesn't work in Python3 because of this bug. -- nosy: +naufraghi ___ Python tracker

[issue23404] 'make touch' does not work with git clones of the source repository

2017-05-05 Thread Nick Coghlan
Nick Coghlan added the comment: As noted on python-dev, it would be helpful if this change was mentioned in the 2.7, 3.5, and 3.6 What's New documents under a "Notable changes in maintenance releases" section. For 2.7, that would be a retitling of the existing section "New features added to

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread Christian Heimes
Christian Heimes added the comment: I rather suspect it's OpenSSL. It takes a bit to load and initialize libcrypto.so. On my system it takes about 17ms to import _hashlib. There is nothing we can do about it in CPython. -- ___ Python tracker

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: What is your OS? Which kind of computer is it? I'm surprised that you noticed open calls on /dev/urandom, it should be very quick, no? -- ___ Python tracker

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: What is your Python version? It looks like an old version. -- ___ Python tracker ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: > You just pressed the merge button 2 minutes before I finished a review. Oh sorry, I didn't expect a review on this small change. > Do you mind to port changes to 3.x? I created https://github.com/python/cpython/pull/1479 for the run_tests_multiprocess()

[issue30258] [2.7] regrtest: handle child process crash

2017-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1578 ___ Python tracker ___ ___

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: > This changes the behavior if pass a file object to the parser. When the > parser failed it was possible to use the passed file object (for example call > tell()). Now it is closed. If the high-level *function* parse() is called with a filename, the caller

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-05 Thread Tomas Orsava
Changes by Tomas Orsava : -- pull_requests: +1577 ___ Python tracker ___ ___

[issue30276] import hashlib makes many programs slow

2017-05-05 Thread Christian Heimes
Christian Heimes added the comment: I cannot reproduce the open /dev/urandom calls locally. You seem to be running an old Python version and/or old Kernel. Python prefers getrandom() over /dev/urandom. The urandom code caches the fd for /dev/urandom. $ strace ./python -c 'import hashlib' 2>&1

[issue30258] [2.7] regrtest: handle child process crash

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to port changes to 3.x? -- ___ Python tracker ___ ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You just pressed the merge button 2 minutes before I finished a review. -- ___ Python tracker ___

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This changes the behavior if pass a file object to the parser. When the parser failed it was possible to use the passed file object (for example call tell()). Now it is closed. -- ___ Python tracker

[issue19903] Idle: Use inspect.signature for calltips

2017-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: What is List? Not a builtin. I am guessing that $self means to remove for bound methods. In any case, __text_signature__ is effectively private to inspect.signature. We only care what the latter produces. --

[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9

2017-05-05 Thread STINNER Victor
New submission from STINNER Victor: On the FreeBSD 9 buildbot, I saw this warning: Warning -- threading._dangling was modified by test_asyncio http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.6/builds/124/steps/test/logs/warnings%20%281%29

[issue30095] HTMLCalendar allow custom classes

2017-05-05 Thread Walter Dörwald
Walter Dörwald added the comment: See comments on Github -- ___ Python tracker ___ ___ Python-bugs-list

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: I applied my fix to 2.7, 3.5, 3.6 and master (3.7). Thanks for the helpful reviews Serhiy ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30257] _bsddb: else misleadingly indented

2017-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: @Serhiy: I fixed the bug you found. Don't hesitate to propose directly a PR if I missed something (or open an issue, it's up to you). At least, regrtest of Python 2.7 should now handle correctly crashes when using -jN. -- resolution: -> fixed stage:

[issue30265] [2.7] test.support.unlink() should fail or emit a warning on WindowsError: [Error 32] The process cannot access the file ...

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: Ok, fixed. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 228da42961ac9bf2990e6c191ecc9b762ead617c by Victor Stinner in branch '2.7': bpo-30258: Fix handling of child error in regrtest (#1477) https://github.com/python/cpython/commit/228da42961ac9bf2990e6c191ecc9b762ead617c --

[issue30265] [2.7] test.support.unlink() should fail or emit a warning on WindowsError: [Error 32] The process cannot access the file ...

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03b278895fa0db355af4e450eac71dd0532db394 by Victor Stinner in branch '2.7': bpo-30265: support.unlink() don't catch any OSError (#1456) https://github.com/python/cpython/commit/03b278895fa0db355af4e450eac71dd0532db394 --

[issue30255] test_xml_etree: python: Objects/sliceobject.c:176: _PySlice_AdjustIndices: Assertion `step >= -PY_SSIZE_T_MAX' failed.

2017-05-05 Thread STINNER Victor
STINNER Victor added the comment: > The change announces "... clip the step to [-PY_SSIZE_T_MAX, PY_SSIZE_T_MAX] > ...", but there is no explicit to clip the maximum to PY_SSIZE_T_MAX. Maybe > there is a bug on this side too! The code should be reviewed one more time. Ok, I checked:

[issue30243] Core dump when use uninitialized _json objects

2017-05-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30243] Core dump when use uninitialized _json objects

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5d7a18f3b65bd958d876391cca3c381396021639 by Serhiy Storchaka in branch '2.7': [2.7] bpo-30243: Fixed the possibility of a crash in _json. (GH-1420) (#1471) https://github.com/python/cpython/commit/5d7a18f3b65bd958d876391cca3c381396021639

[issue30258] [2.7] regrtest: handle child process crash

2017-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1576 ___ Python tracker ___ ___

  1   2   >