[issue30215] Make re.compile() locale agnostic

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 898ff03e1e7925ecde3da66327d3cdc7e07625ba by Serhiy Storchaka in branch 'master': bpo-30215: Make re.compile() locale agnostic. (#1361) https://github.com/python/cpython/commit/898ff03e1e7925ecde3da66327d3cdc7e07625ba --

[issue30243] Core dump when use uninitialized _json objects

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Repeated calling of the __init__ method caused memory leaks. -- ___ Python tracker ___

[issue30243] Core dump when use uninitialized _json objects

2017-05-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As well as __name__, __qualname__, __module__, __bases__, __call__, mro, etc. -- ___ Python tracker ___

[issue30247] Make importlib.machinery class handle os.PathLike path

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the path attribute can be None or list it looks to me that it isn't a filesystem path, and it may be incorrect to use os.fspath() with it. How this attribute is used? What wrong if left it a pathlib.Path? --

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

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As you said, calling close() can have side effects (for example invoking self._cont_handler.endDocument()). This was the argument against PR 1444. It seems to me that if _entity_stack is not empty (this happens in case of error in entity parsing) the

[issue30276] import hashlib makes many programs slow

2017-05-04 Thread Bernhard M. Wiedemann
New submission from Bernhard M. Wiedemann: Steps to Reproduce: echo import hashlib > test.py time python -m cProfile -s tottime test.py 2>&1 | head Actual Results: shows 27ms spent in hashlib.py The problem goes away when dropping everything after line 133 in hashlib.py see also issue 21288

[issue30172] test_tools takes longer than 5 minutes on some buildbots

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: I modified regrtest to log the system load: bpo-30263. > On x86-64 El Capitan 3.x buildbot, test_tools takes longer than 5 minutes, > whereas the overall test suite took 31 min. Is someone wrong in test_tools? On this buildbot which has 2 CPUs, the system

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: If no one speak up to propose a fix for the two skipped tests before a deadline of two weeks, I will removed them, apply: https://github.com/python/cpython/pull/1419 -- ___ Python tracker

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: > It's very strange because I expect either a crash: regrtest stops with no > more output, or a report of the crash. But no, regrtest displays the summary > as everything was fine... It was a bug in regrtest: now fixed by bpo-30258. --

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: Jeremy Kloth: "I'm not in the position to be able to check this possibility, ATM, but it is possible that other things have also changed since this was commited 5 years ago." I expect that many bugs have been fixed in virtualenv and venv modules, so maybe

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: I modified Python 2.7, 3.5, 3.6 and master (3.7). I prefer to keep the issue open at least one week in a regression is found, like issue #30273 (this one should already be fixed). Maybe the devguide should be updated too? --

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a19eb24c97ef43e9fc7d45af180334ac8093545 by Victor Stinner in branch '2.7': bpo-23404: make touch becomes make regen-all (#1466) https://github.com/python/cpython/commit/8a19eb24c97ef43e9fc7d45af180334ac8093545 --

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

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

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

2017-05-04 Thread Jeff Zhang
New submission from Jeff Zhang: I want to use pickle in compile/exec, but it doesn't work for me. It only works when I use the global namespace. But I don't want to use global namespace, is there any way for that ? Thanks >>> a = compile("def f():\n\t'hello'\nimport pickle\npickle.dumps(f)",

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab6b962ef241be97536573d7490ce1cfc74fde18 by Victor Stinner in branch '3.5': bpo-23404: make touch becomes make regen-all (#1405) (#1461) (#1465) https://github.com/python/cpython/commit/ab6b962ef241be97536573d7490ce1cfc74fde18 --

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab6b962ef241be97536573d7490ce1cfc74fde18 by Victor Stinner in branch '3.5': bpo-23404: make touch becomes make regen-all (#1405) (#1461) (#1465) https://github.com/python/cpython/commit/ab6b962ef241be97536573d7490ce1cfc74fde18 --

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: > The change to sysconfig *may* be a regression wrt bpo-15366. Hum, I'm still able to create a venv and install coverage in the venv after my commit b109a1d3360fc4bb87b9887264e3634632d392ca, whereas this commit basically reverts the bpo-15366 fix. --

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

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

[issue30273] The coverage job is broken: distutils build_ext fails on None

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

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread Jeremy Kloth
Jeremy Kloth added the comment: The change to sysconfig *may* be a regression wrt bpo-15366. I'm not in the position to be able to check this possibility, ATM, but it is possible that other things have also changed since this was commited 5 years ago. -- nosy: +jkloth

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9d02f562961efd12d3c8317a10916db7f77330cc by Victor Stinner in branch '3.6': [3.6] bpo-23404: make touch becomes make regen-all (#1405) (#1461) https://github.com/python/cpython/commit/9d02f562961efd12d3c8317a10916db7f77330cc --

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9d02f562961efd12d3c8317a10916db7f77330cc by Victor Stinner in branch '3.6': [3.6] bpo-23404: make touch becomes make regen-all (#1405) (#1461) https://github.com/python/cpython/commit/9d02f562961efd12d3c8317a10916db7f77330cc --

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-04 Thread Thomas Wouters
Thomas Wouters added the comment: Well, what should the zipfile module do when you open a broken zipfile for appending in the first place? :) There are many ways in which it could be broken. I don't think a zipfile with incorrect offsets should be treated any differently. (I don't know *how*

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Interesting dir(list.append) and the IDLE completion box show __text_signature__. dir(list) and the box do not. -- ___ Python tracker

[issue30270] Remove sqlite3.Cache display method

2017-05-04 Thread Brett Cannon
Brett Cannon added the comment: How long has the method been there? And does it hurt anything for it to be exposed? Removing it at this point may break code if it predates Python 3.7. -- nosy: +brett.cannon ___ Python tracker

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

2017-05-04 Thread Brett Cannon
New submission from Brett Cannon: https://docs.python.org/3/library/importlib.html#importlib.machinery.ExtensionFileLoader says "fullname, path" for __init__(), but https://github.com/python/cpython/blob/647c3d381e67490e82cdbbe6c96e46d5e1628ce2/Lib/importlib/_bootstrap_external.py#L909 says

[issue30085] Discourage operator.__dunder__ functions

2017-05-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review type: -> enhancement versions: +Python 3.7 ___ Python tracker ___

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: > What if the third-party parser don't use prepare_input_source()? It can use > more efficient way if pass just a file name. About "third-party parsers": I have no idea of what are these parsers. It seems like Jython uses provides a parser. But I'm not

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> list.__text_signature__ '(iterable=(), /)' But IDLE shouldn't use __text_signature__ directly, it should use the inspect module. -- ___ Python tracker

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: (I presume'ordinal' meant 'ordinary'.) I don't know where signature finds the info on built-in type objects Methods like .append have .__text_signature__. List does not, and list.__call__.__text_signature is the generic '($self, /, *args, **kwargs)'.

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset b109a1d3360fc4bb87b9887264e3634632d392ca by Victor Stinner in branch 'master': bpo-30273: Update sysconfig (#1464) https://github.com/python/cpython/commit/b109a1d3360fc4bb87b9887264e3634632d392ca --

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset b109a1d3360fc4bb87b9887264e3634632d392ca by Victor Stinner in branch 'master': bpo-30273: Update sysconfig (#1464) https://github.com/python/cpython/commit/b109a1d3360fc4bb87b9887264e3634632d392ca --

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

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

[issue30273] The coverage job is broken: distutils build_ext fails on None

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

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: > get_config_var('AST_H_DIR') Oh, I see. My commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b removed multiple variables from Makefile.pre.in to simplify it, but I didn't notice that some of them (only AST_H_DIR?) were used outside Makefile.pre.in. I completely

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: To reproduce the bug, build the master branch of Python and then run: ./python -m venv venv ./venv/bin/python -m pip install -U coverage Or just: $ ./venv/bin/python -c 'from distutils import sysconfig; print(sysconfig.get_python_inc())' Traceback (most

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, yes, __new__ and __init__ differ from ordinal methods. They don't have docstrings generated by Argument Clinic. But list itself as a callable have correct signature. >>> inspect.signature(list) -- ___

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-04 Thread STINNER Victor
New submission from STINNER Victor: Bug reported by Antoine Pitrou on the python-committers mailing list. According to Brett Canon, the first failure was: https://travis-ci.org/python/cpython/jobs/228409786 And the regression is related to my commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b:

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: help(object.__init__) and help(list.__init__) have exactly the same output. -- ___ Python tracker ___

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: list.__new__ is inherited from object. Look at list.__init__. -- ___ Python tracker ___

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: >>> help(list.__new__) Help on built-in function __new__: __new__(*args, **kwargs) method of builtins.type instance Create and return a new object. See help(type) for accurate signature. 'list.__new__(' currently pops up just the docstring. I think

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

2017-05-04 Thread Oliver Smith
Changes by Oliver Smith : -- components: +Distutils nosy: +dstufft, merwok type: -> behavior ___ Python tracker ___

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

2017-05-04 Thread Oliver Smith
New submission from Oliver Smith: This should return True and not raise an exception: >>> from distutils.version import LooseVersion >>> LooseVersion("22.7-r1") < LooseVersion("22.7.3-r1") Traceback (most recent call last): File "", line 1, in File

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Let's back up. The high-level specification for get_argspec is something like 'Return information that will help programmers write a correct call." The proposed implementation strategy is to combine signature info from signature (replacing getfullargspec)

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

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if the third-party parser don't use prepare_input_source()? It can use more efficient way if pass just a file name. Wouldn't be better to move your code into the parser's method parse()? If a file is opened inside the parse() method and is not exposed

[issue30271] Make sqlite3 statement cache optional

2017-05-04 Thread Aviv Palivoda
Changes by Aviv Palivoda : -- pull_requests: +1560 ___ Python tracker ___ ___

[issue30271] Make sqlite3 statement cache optional

2017-05-04 Thread Aviv Palivoda
New submission from Aviv Palivoda: Currently the minimum size of the statement cache is 10. I suggest that it will be any value above 1 or no cache at all if the size is set to 0. -- components: Extension Modules messages: 293006 nosy: berker.peksag, ghaering, palaviv priority: normal

[issue18699] What is Future.running() for in PEP 3148 / concurrent.futures.Future?

2017-05-04 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: -1535 ___ Python tracker ___ ___

[issue18669] curses.chgat() moves cursor, documentation says it shouldn't

2017-05-04 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1558 ___ Python tracker ___

[issue30270] Remove sqlite3.Cache display method

2017-05-04 Thread Aviv Palivoda
Changes by Aviv Palivoda : -- pull_requests: +1559 ___ Python tracker ___ ___

[issue30270] Remove sqlite3.Cache display method

2017-05-04 Thread Aviv Palivoda
New submission from Aviv Palivoda: The display method is there for debugging and should not be in the released code. -- components: Extension Modules messages: 293005 nosy: berker.peksag, ghaering, palaviv priority: normal severity: normal status: open title: Remove sqlite3.Cache

[issue30267] Deprecate os.path.commonprefix

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We shouldn't deprecate a function until add an alternative. There is a working alternative for paths, but commonprefix() is used in the wild for non-paths (for example in unittest.util). The problem is that there is no right place for this function. The

[issue30269] [2.7] test_release_task_refs() of test_multiprocessing.py is unstable

2017-05-04 Thread STINNER Victor
New submission from STINNER Victor: [2.7] test_release_task_refs() of test_multiprocessing.py fails randomly. Example: http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%202.7/builds/136/steps/test/logs/stdio [116/401/1] test_multiprocessing [77069 refs] test test_multiprocessing

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: I started a thread on python-dev to ask if it's ok to backport the change to 2.7, 3.5 and 3.6. I started to backport the change to 3.6: https://github.com/python/cpython/pull/1461 -- ___ Python tracker

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

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

[issue30171] Emit ResourceWarning in multiprocessing Queue destructor

2017-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The thread seems to be stopped when the Queue object is finalized: # Send sentinel to the thread queue object when garbage collected self._close = Finalize( self, Queue._finalize_close, [self._buffer, self._notempty],

[issue30108] test_site modifies sys.path

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset e81e355a8e4395680225e3f99859a1a29ecb by Victor Stinner in branch '2.7': bpo-30108: Fix test_site setUpModule() (#1460) https://github.com/python/cpython/commit/e81e355a8e4395680225e3f99859a1a29ecb --

[issue30108] test_site modifies sys.path

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

[issue30108] test_site modifies sys.path

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 78064387e5815633168a80dcdc1bd9aec4eff46a by Victor Stinner in branch '2.7': bpo-30108: Restore sys.path in test_site (#1197) (#1459) https://github.com/python/cpython/commit/78064387e5815633168a80dcdc1bd9aec4eff46a --

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: > There is no forkserver in 2.7. Oh right, it's specific to forkserver, ok ;-) Thank you for the fix. -- ___ Python tracker

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: There is no forkserver in 2.7. -- ___ Python tracker ___ ___

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

2017-05-04 Thread ProgVal
New submission from ProgVal: The documentation for mimetypes.guess_type says that it “guesses the type of a file based on its filename or URL”. However, this function only accepts a string object, and not a bytes object: >>> import os >>> import mimetypes >>>

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 isn't affected by this bug? -- ___ Python tracker ___ ___

[issue30267] Deprecate os.path.commonprefix

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: Ned Batchelder wrote an article about this function in 2010 :-) https://nedbatchelder.com/blog/201003/whats_the_point_of_ospathcommonprefix.html """ The docs helpfully include the warning: Note that this may return invalid paths because it works a

[issue30108] test_site modifies sys.path

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

[issue30267] Deprecate os.path.commonprefix

2017-05-04 Thread ProgVal
New submission from ProgVal: The function os.path.commonprefix computes the longest prefix of strings (any iterable, actually), regardless of their meaning as paths. I do not see any reason to use this function for paths, and keeping it in the os.path module makes it prone to be confused with

[issue12857] Expose called function on frame object

2017-05-04 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker ___

[issue30263] regrtest: log the system load?

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: > why will a 1 CPU environment using -j8? Many tests of the Python test suite spend a significant time on just sleeping and waiting for I/O. Using -jN with N > 1 runs tests much faster. > isn't that too much for it? That's a good question :-) At least, we

[issue22610] test_ftplib fails with sem_init: Too many open files

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this error recently on any buildbot. While the patch seems safe, I prefer to not apply it to prevent any kind of regression. -- nosy: +haypo resolution: -> out of date stage: -> resolved status: open -> closed

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue30263] regrtest: log the system load?

2017-05-04 Thread Louie Lu
Louie Lu added the comment: why will a 1 CPU environment using -j8? isn't that too much for it? -- nosy: +louielu ___ Python tracker ___

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 7299088ccf5f72b8494063814b58a180b4250aa7 by Antoine Pitrou in branch '3.5': [3.5] bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (GH-1319) (#1455) https://github.com/python/cpython/commit/7299088ccf5f72b8494063814b58a180b4250aa7

[issue19133] Transient test failure: test_with_statement (test_ftplib)

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently on any buildbot. -- nosy: +haypo resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue15934] flaky test in test_ftplib

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently on any buildbot. -- nosy: +haypo resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset a7e48b544becc01dbf9059ed01f38997c6d0156c by Antoine Pitrou in branch '3.6': [3.6] bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (GH-1319) (#1454) https://github.com/python/cpython/commit/a7e48b544becc01dbf9059ed01f38997c6d0156c

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

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

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +1553 ___ Python tracker ___ ___

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +1552 ___ Python tracker ___ ___

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Louie Lu
Louie Lu added the comment: Thing just getting weird. If we remove the guard, some of the builtin function will get not-so-good signature result: >>> i.signature(range.__init__) >>> i.signature(list.append) >>>

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: Ok, the race condition causing EBADF is now handled correctly in 3.5, 3.6 and master (3.7). -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue30185] forkserver process should silence KeyboardInterrupt

2017-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 6dd4d734ed207ba16b017e38f8909de7ef187e29 by Antoine Pitrou in branch 'master': bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (#1319) https://github.com/python/cpython/commit/6dd4d734ed207ba16b017e38f8909de7ef187e29 --

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: > Looking at test.support, the only errors that I can see being ignored by > unlink() is FileNotFoundError and NotADirectoryError (line 399) Oh wait, I was looking at Python 2.7 code: def unlink(filename): try: _unlink(filename) except

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

2017-05-04 Thread Jeremy Kloth
Jeremy Kloth added the comment: Looking at test.support, the only errors that I can see being ignored by unlink() is FileNotFoundError and NotADirectoryError (line 399). The only bare OSError except clause is on line 359, but for an lstat() call. -- nosy: +jkloth

[issue30263] regrtest: log the system load?

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: On Windows, there is a "System > Processor Queue Length" metric which is close to the UNIX system load, but I'm unable to see how to get this value. -- ___ Python tracker

[issue30263] regrtest: log the system load?

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: Oh... I see many unexpected load average! On the small ARMv7 Ubuntu 3.x (1 CPU), -j8 is used: the load average starts with 2.58 but goes up to 11.13 around "0:04:20 load avg: 11.13 [216/405] ". Load average of 11 on such device seems too high and can explain

[issue8450] httplib: false BadStatusLine() raised

2017-05-04 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1551 ___ Python tracker ___

[issue30263] regrtest: log the system load?

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3d0056842c5e06b4102f990b59ab3b607f932dd8 by Victor Stinner in branch 'master': bpo-30263: regrtest: log system load (#1452) https://github.com/python/cpython/commit/3d0056842c5e06b4102f990b59ab3b607f932dd8 --

[issue30263] regrtest: log the system load?

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: Hum, "load: 1.73" is confusing. I replaced it with "load avg: 1.73" to be more explicit, even if it's a little bit longer. -- ___ Python tracker

[issue30263] regrtest: log the system load?

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

[issue30263] regrtest: log the system load?

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: Logging the system load may also help to understand why, on the ARM buildbot, some builds fail with a timeout after 49 minutes, whereas an usual build take 13 min. Example of build killed with "command timed out: 1200 seconds without output":

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 31906b42fd71c6baaf80429005c720b40dfe8fae by Victor Stinner in branch '3.6': bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443) (#1449) https://github.com/python/cpython/commit/31906b42fd71c6baaf80429005c720b40dfe8fae --

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a1c71053139f20348ea487c0c464694ed3c88c5 by Victor Stinner in branch '3.5': bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443) (#1450) https://github.com/python/cpython/commit/8a1c71053139f20348ea487c0c464694ed3c88c5 --

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

2017-05-04 Thread STINNER Victor
STINNER Victor added the comment: I wrote a different change which doesn't use the parser anymore, since it seems like xml.sax allows to plug third-party parsers. My new PR 1451 closes directly the file or urllib object, instead of touching the parser (which can have more visible side

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

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

[issue30004] in regex-howto, improve example on grouping

2017-05-04 Thread Cristian Barbarosie
Cristian Barbarosie added the comment: This topic seems stuck. Is there anything else I should do ? -- ___ Python tracker ___

[issue30225] EBADF error on x86 Tiger 3.x buildbot

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

[issue30225] EBADF error on x86 Tiger 3.x buildbot

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

[issue29956] math.exp documentation is misleading

2017-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset dbaf746b6de0ee431c809d3175ab40ccc18898a8 by Serhiy Storchaka in branch 'master': bpo-29956: Improve the math.exp() related documentation. (#1073) https://github.com/python/cpython/commit/dbaf746b6de0ee431c809d3175ab40ccc18898a8 --

  1   2   >