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

Re: Promiscuous ports under Linux

2017-05-04 Thread Peter Pearson
On Thu, 4 May 2017 18:04:02 + (UTC), Grant Edwards wrote: > On 2017-05-04, Peter Pearson wrote: > >> I'm curious to survey all my LAN traffic in various ways, and it seems >> likely that I will see phenomena that I don't understand, and focussing >> in on those

Re: Elegant way to merge dicts without overwriting keys?

2017-05-04 Thread Peter Otten
Malcolm Greene wrote: > I have a bunch of pickled dicts I would like to merge. I only want to > merge unique keys but I want to track the keys that are duplicated > across dicts. Is there a newer dict-like data structure that is fine > tuned to that use case? > Short of an optimized data

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

Re: Python 2.7 on Windows: Copy install

2017-05-04 Thread eryk sun
On Thu, May 4, 2017 at 8:27 PM, jeff saremi wrote: > I have scoured the net for any hints on this. We have some prod machines > where we're not able to run MSI installations. > Is it possible to copy Python2.7 from say c:\Python2.7 from one machine to > another? > What

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

Re: Python 2.7: no such module pip

2017-05-04 Thread eryk sun
On Thu, May 4, 2017 at 8:24 PM, jeff saremi wrote: > Did a fresh install of python-2.7.amd64.msi on windows 10. > > The install finishes with success. Python runs. No pip when the following is > run: > > C:\> python -m pip install elastalert > C:\Python27\python.exe: No

[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

Python 2.7: no such module pip

2017-05-04 Thread jeff saremi
Did a fresh install of python-2.7.amd64.msi on windows 10. The install finishes with success. Python runs. No pip when the following is run: C:\> python -m pip install elastalert C:\Python27\python.exe: No module named pip -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7 on Windows: Copy install

2017-05-04 Thread MRAB
On 2017-05-04 21:27, jeff saremi wrote: I have scoured the net for any hints on this. We have some prod machines where we're not able to run MSI installations. Is it possible to copy Python2.7 from say c:\Python2.7 from one machine to another? What other steps do we need beyond the following

Re: os.getlogin() Error

2017-05-04 Thread Cameron Simpson
On 04May2017 20:42, Wildman wrote: On Fri, 05 May 2017 09:00:58 +1000, Cameron Simpson wrote: On 04May2017 15:03, Wildman wrote: The program installs using the Debian package system (.deb) and an entry is created in the Applications Menu. The strange

bugs.python.org registration never completes

2017-05-04 Thread jeff saremi
i've been waiting for my confirmation email. Never received it Someone should look into the registration. And there is no admin emails where you could send your issue to! thanks Jeff -- https://mail.python.org/mailman/listinfo/python-list

Python 2.7 on Windows: Copy install

2017-05-04 Thread jeff saremi
I have scoured the net for any hints on this. We have some prod machines where we're not able to run MSI installations. Is it possible to copy Python2.7 from say c:\Python2.7 from one machine to another? What other steps do we need beyond the following since these DONT work: 1. Copy all files

[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

Re: Elegant way to merge dicts without overwriting keys?

2017-05-04 Thread MRAB
On 2017-05-05 02:23, Malcolm Greene wrote: I have a bunch of pickled dicts I would like to merge. I only want to merge unique keys but I want to track the keys that are duplicated across dicts. Is there a newer dict-like data structure that is fine tuned to that use case? Short of an optimized

Re: os.getlogin() Error

2017-05-04 Thread Chris Angelico
On Fri, May 5, 2017 at 12:05 PM, Wildman via Python-list wrote: > On Fri, 05 May 2017 09:58:02 +1000, Chris Angelico wrote: > >> On Fri, May 5, 2017 at 9:50 AM, Wildman via Python-list >> wrote: >>> I'm afraid that won't work. The user environment

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 09:58:02 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 9:50 AM, Wildman via Python-list > wrote: >> I'm afraid that won't work. The user environment is different >> than root. A different set of variables. However you have >> given me a

[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

Re: Elegant way to merge dicts without overwriting keys?

2017-05-04 Thread Skip Montanaro
On Thu, May 4, 2017 at 8:23 PM, Malcolm Greene wrote: > I have a bunch of pickled dicts I would like to merge. I only want to > merge unique keys but I want to track the keys that are duplicated > across dicts. Is there a newer dict-like data structure that is fine > tuned to

[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

Best practice tips for sizing thread/process pools and concurrent futures max_workers?

2017-05-04 Thread Malcolm Greene
Looking for best practice tips on how to size thread/process pools or max workers with the concurrent futures module. Are there specific heuristics that can be applied or is this more a manual tuning process based on the run time behavior of a script and the nuances of one's environment? Are there

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

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 09:00:58 +1000, Cameron Simpson wrote: > On 04May2017 15:03, Wildman wrote: > >>The program installs using the Debian package system (.deb) and an >>entry is created in the Applications Menu. The strange thing is >>that the crash only occurs when the

[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

Elegant way to merge dicts without overwriting keys?

2017-05-04 Thread Malcolm Greene
I have a bunch of pickled dicts I would like to merge. I only want to merge unique keys but I want to track the keys that are duplicated across dicts. Is there a newer dict-like data structure that is fine tuned to that use case? Short of an optimized data structure, my plan is to convert dict

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

Re: os.getlogin() Error

2017-05-04 Thread Chris Angelico
On Fri, May 5, 2017 at 9:50 AM, Wildman via Python-list wrote: > I'm afraid that won't work. The user environment is different > than root. A different set of variables. However you have > given me a possible workaround. You can't create a variable > for root unless

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

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 08:31:15 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 8:18 AM, Wildman via Python-list > wrote: >> I am using pkexec to restart so $SUDO_USER is not set. For some >> reason sudo, su and su-to-root will freeze the first instance of >> the

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

Re: os.getlogin() Error

2017-05-04 Thread Cameron Simpson
On 04May2017 15:03, Wildman wrote: I tried testing on Mint and Ubuntu and the program would crash. The GUI would appear briefly and disappear. On Ubuntu a crash report was created so I was able to figure out what was going on. It had the traceback and showed that

[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

Re: os.getlogin() Error

2017-05-04 Thread Chris Angelico
On Fri, May 5, 2017 at 8:18 AM, Wildman via Python-list wrote: > I am using pkexec to restart so $SUDO_USER is not set. For some > reason sudo, su and su-to-root will freeze the first instance of > the program and not let it close until the second instance closes. > I

[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

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 07:46:32 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 6:03 AM, Wildman via Python-list > wrote: >> I will try to explain... >> The program reports system information based on the user's name. >> Things such as passwd, groups and shadow info.

[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

Re: os.getlogin() Error

2017-05-04 Thread Chris Angelico
On Fri, May 5, 2017 at 6:03 AM, Wildman via Python-list wrote: > I will try to explain... > The program reports system information based on the user's name. > Things such as passwd, groups and shadow info. However, the > program must have elevated privileges to get the

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

os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
I wrote a Linux only GUI program using Tk that reports various system information using a tabbed Notebook. I have tested the program on Debian, SoldyX and MX-15 and the program runs perfectly. I tried testing on Mint and Ubuntu and the program would crash. The GUI would appear briefly and

[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

Re: Promiscuous ports under Linux

2017-05-04 Thread Grant Edwards
On 2017-05-04, Peter Pearson wrote: > I'm curious to survey all my LAN traffic in various ways, and it seems > likely that I will see phenomena that I don't understand, and focussing > in on those phenomena is likely to require more flexible filtering > than Wireshark

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

Re: Promiscuous ports under Linux

2017-05-04 Thread Peter Pearson
On Thu, 04 May 2017 10:26:45 GMT, alister wrote: > On Wed, 03 May 2017 23:57:49 +, Peter Pearson wrote: > >> Cobbling together a minimalist ethernet-sniffing program, I was hoping >> to use this simple mechanism for setting the socket to "promiscuous >> mode" (to

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

Re: __getattribute__'s error is not available in __getattr__

2017-05-04 Thread Jason Maldonis
Thank you Ethan and Chris for the tips. I may be able to adapt that decorator for my use cases -- I hadn't thought of using something like that. Ethan, I'll drop a note over at Python Ideas too with some details about this. Thanks for your help, Jason On Tue, May 2, 2017 at 9:47 PM, Chris

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

Re: Problems

2017-05-04 Thread justin walters
On Thu, May 4, 2017 at 4:42 AM, aohK euqsarraT wrote: > I have been using pycharm + python 3.6 for a year and then i updated > pycharm, that was when things became a super buggy mess. I tried to > reinstall everything from scratch but the python installation keeps having

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

  1   2   >