[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Louie Lu
Louie Lu added the comment: Add a simple line to `MAIN_EXAMPLES`: "%(prog)s path/to/test_file.py - run tests from test_file.py" -- nosy: +louielu ___ Python tracker

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1306 ___ Python tracker ___ ___ Python-bugs-list

[issue27727] Update Tools/freeze to use .vcxproj files

2017-04-19 Thread Kaeptm Blaubaer
Changes by Kaeptm Blaubaer : -- resolution: duplicate -> ___ Python tracker ___

[issue30061] Check if PyObject_Size() raised an error

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

[issue21150] Add quick links table to argparse docs

2017-04-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +bethard ___ Python tracker ___ ___

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bf623ae8843dc30b28c574bec8d29fc14be59d86 by Serhiy Storchaka in branch 'master': bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) https://github.com/python/cpython/commit/bf623ae8843dc30b28c574bec8d29fc14be59d86

[issue22352] Ensure opcode names and args fit in disassembly output

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d90045f319e2ea9772b9fbd62a05fdf34af96b6c by Serhiy Storchaka in branch 'master': bpo-22352: Adjust widths in the output of dis.dis() for large line numbers and (#1153)

[issue30102] improve performance of libSSL usage on hashing

2017-04-19 Thread Gustavo Serra Scalet
New submission from Gustavo Serra Scalet: To correctly pick the best algorithm for the current architecture, libssl needs to have OPENSSL_config(NULL) called as described on: https://wiki.openssl.org/index.php/Libcrypto_API This short change lead to a speedup of 50% on POWER8 when using

[issue30103] uu package uses old encoding

2017-04-19 Thread R. David Murray
Changes by R. David Murray : -- components: +Library (Lib) -Extension Modules ___ Python tracker ___

[issue30103] uu package uses old encoding

2017-04-19 Thread R. David Murray
Changes by R. David Murray : -- type: behavior -> enhancement versions: +Python 3.7 -Python 3.4 ___ Python tracker ___

[issue21150] Add quick links table to argparse docs

2017-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Gaurav, overall this looks nice. I would drop the example column because it will make the row too wide for viewing. Alternatively, put the examples in a separate table (as was done for the combinatoric functions in the itertools docs:

[issue30065] Insufficient validation in _posixsubprocess.fork_exec()

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 66bffd1663489d080349debbf1b472d432351038 by Serhiy Storchaka in branch 'master': bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110) https://github.com/python/cpython/commit/66bffd1663489d080349debbf1b472d432351038

[issue30103] uu package uses old encoding

2017-04-19 Thread Kyle Glowacki
New submission from Kyle Glowacki: Looking in the man pages for the uuencode and uudecode (http://www.manpagez.com/man/5/uuencode/), I see that the encoding used to go from ascii 32 to 95 but that 32 is deprecated and generally newer releases go from 33-96 (with 96 being used in place of 32).

[issue27869] test failures under Bash on Windows / WSL

2017-04-19 Thread Brett Cannon
Changes by Brett Cannon : -- title: test failures under Bash on Windows -> test failures under Bash on Windows / WSL ___ Python tracker

[issue30101] Add support for ncurses A_ITALIC

2017-04-19 Thread Eijebong
Changes by Eijebong : -- components: Library (Lib) nosy: Eijebong priority: normal pull_requests: 1307 severity: normal status: open title: Add support for ncurses A_ITALIC versions: Python 3.7 ___ Python tracker

[issue30102] improve performance of libSSL usage on hashing

2017-04-19 Thread Gustavo Serra Scalet
Changes by Gustavo Serra Scalet : -- pull_requests: +1309 ___ Python tracker ___

[issue21150] Add quick links table to argparse docs

2017-04-19 Thread Louie Lu
Changes by Louie Lu : -- nosy: +louielu ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 680fea4067537a9b9c79aadd44a3a19e83cd2dbf by Serhiy Storchaka in branch '3.6': bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) (#1180)

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1312 ___ Python tracker ___ ___

[issue22352] Ensure opcode names and args fit in disassembly output

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30070] Fix errors handling in the parser module

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1313 ___ Python tracker ___ ___

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 64aa4df8502ca5d0a8ffb767ff97f625625c758c by Serhiy Storchaka in branch '2.7': [2.7] bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (GH-1096) (GH-1180) (#1183)

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-04-19 Thread Eryk Sun
Eryk Sun added the comment: In case you didn't get notified by Rietveld, I made a couple suggestions on your latest patch. Also, if you wouldn't mind, please update the patch to apply cleanly to 3.7 -- especially since STARTUPINFO now has an __init__ method. --

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1316 ___ Python tracker ___ ___

[issue30102] improve performance of libSSL usage on hashing

2017-04-19 Thread Christian Heimes
Christian Heimes added the comment: This small change also changes behavior of OpenSSL dramatically. What are your Python and OpenSSL versions? How did you profile the performance of the hashing functions? If OpenSSL_config() really improves performance on relevant platforms, then we should

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: Until a solution is found, I proposed to revert the change to "repair" buildbots. See also the python-ideas thread: [Python-ideas] Thread-safe generators https://mail.python.org/pipermail/python-ideas/2017-April/045427.html --

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e63af29c87b44bb7ada5783cd0ff6ee6d4f9c17c by Serhiy Storchaka in branch '3.5': [3.5] bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (GH-1096) (GH-1180) (#1182)

[issue30102] improve performance of libSSL usage on hashing

2017-04-19 Thread Gustavo Serra Scalet
Gustavo Serra Scalet added the comment: > Christian Heimes added the comment: > > This small change also changes behavior of OpenSSL dramatically. What > are your Python and OpenSSL versions? I tested by compiling my own python3 (8aaf499) against its parent (d6d344d) For python2, I made the

[issue30065] Insufficient validation in _posixsubprocess.fork_exec()

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1315 ___ Python tracker ___ ___

[issue30070] Fix errors handling in the parser module

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 39dedb6e1a18069ce8f5c8e6076e9d9ef9d6d515 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30070: Fixed leaks and crashes in errors handling in the parser module. (GH-1131). (#1184)

[issue30070] Fix errors handling in the parser module

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1314 ___ Python tracker ___ ___

[issue30104] Float rounding errors on AMD64 FreeBSD CURRENT Debug 3.x buildbot

2017-04-19 Thread STINNER Victor
New submission from STINNER Victor: Since the build 154, many tests fail on the AMD64 FreeBSD CURRENT Debug 3.x buildbot slave because of float rounding errors. Failing tests: * test_cmath * test_float * test_json * test_marshal * test_math * test_statistics * test_strtod

[issue30104] Float rounding errors on AMD64 FreeBSD CURRENT Debug 3.x buildbot

2017-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Interpreter Core, Tests nosy: +mark.dickinson ___ Python tracker ___

[issue30070] Fix errors handling in the parser module

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 952a05e4e2cf082b74a1676a2804f1f43a9b7702 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30070: Fixed leaks and crashes in errors handling in the parser module. (GH-1131). (#1185)

[issue28533] Replace asyncore

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: asyncore was modified to emit a DeprecationWarning: http://bugs.python.org/issue25002#msg279417 But then a lot of code starts with to fail -Werror. Copy of Martin Panter's msg279469: I normally run the tests with -Werror, and the failures I get are: *

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue to propose a different approach: https://github.com/python/cpython/pull/1191 replaces Random with SystemRandom and drops get_candidate_names(). @Serhiy: I hesitated to add you as a co-author, but I'm not sure that you like my approach :-)

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: > Remoe _get_candidate_names() and the global _name_sequence I understood the rationale behind _get_candidate_names() is to prevent generating the same name when _RandomNameSequence() uses random.Random. Since my change uses random.SystemRandom, I consider

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_threadedtempfile passed on Linux, but randomly failed on Windows. :( And _RandomNameSequence is used not only in tempfile. I suggest to wait until add a wrapper that makes generators thread-safe. Since it added we could restore the generator

[issue30100] WeakSet should all discard and remove on items that can have weak references

2017-04-19 Thread donkopotamus
donkopotamus added the comment: Just to add, I framed this slightly wrongly by using a list [] as an example, whereas my original motivating case was objects that are hashable but not weakly referenceable. (eg () ). So there are two cases to consider ... what to do in discard/remove etc

[issue30070] Fix errors handling in the parser module

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1317 ___ Python tracker ___ ___

[issue28533] Replace asyncore

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: > asyncore is still used in several tests and should be replaced. Here is the list of Python files using asyncore: haypo@selma$ grep -l asyncore $(find -name "*.py") ./Lib/asyncore.py ./Lib/asynchat.py ./Lib/test/test_smtpd.py ./Lib/test/test_asyncore.py

[issue30070] Fix errors handling in the parser module

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30065] Insufficient validation in _posixsubprocess.fork_exec()

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c97c1914f401359f2a7e6c8e0364e71ad9fb5bc8 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (GH-1110) (#1190)

[issue25002] Deprecate asyncore/asynchat

2017-04-19 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds good. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue30070] Fix errors handling in the parser module

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a79f4c219531c05fc8f670c1e4bbf12c081935d3 by Serhiy Storchaka in branch 'master': bpo-30070: Fixed leaks and crashes in errors handling in the parser module. (#1131)

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1311 ___ Python tracker ___ ___

[issue30065] Insufficient validation in _posixsubprocess.fork_exec()

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e2546172622dd52692cf0e26c2b931f942f345b6 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (GH-1110) (#1186)

[issue30065] Insufficient validation in _posixsubprocess.fork_exec()

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1318 ___ Python tracker ___ ___

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1319 ___ Python tracker ___ ___

[issue30105] Duplicated connection_made() call for some SSL connections

2017-04-19 Thread kyuupichan
New submission from kyuupichan: An asyncio SSL server frequently sees duplicated connection_made() calls for an incoming SSL connection. It does not happen to all SSL connections; perhaps 10-25% of them. It never happens to TCP connections. Here are some examples of logs from one I run. I

[issue29887] test_normalization doesn't work

2017-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1321 ___ Python tracker ___ ___

[issue30108] test_site modifies sys.path

2017-04-19 Thread STINNER Victor
New submission from STINNER Victor: See on Travis CI: https://travis-ci.org/python/cpython/jobs/223771666 Warning -- sys.path was modified by test_site Before: (47345855849656, ['', '/usr/local/lib/python37.zip', '/home/travis/build/python/cpython/Lib',

[issue30102] improve performance of libSSL usage on hashing

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: > This small change also changes behavior of OpenSSL dramatically. What do you mean by "dramatically"? What does a openssl.cnf configuration contain? Do other applications using OpenSSL call OPENSSL_config(NULL)? Since OPENSSL_config() accepts a filename,

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1308 ___ Python tracker ___ ___

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset f7e62cf8adfb8ab6a6a870903defe8ff218a0383 by Berker Peksag (Louie Lu) in branch 'master': bpo-30078: Add an example of passing a path to unittest (#1178) https://github.com/python/cpython/commit/f7e62cf8adfb8ab6a6a870903defe8ff218a0383 --

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +1327 ___ Python tracker ___ ___

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +1328 ___ Python tracker ___ ___

[issue19225] lack of PyExc_BufferError doc

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 5fb4bf91e78e128a22b5b58da179f09d0b307f2d by Berker Peksag (cocoatomo) in branch '3.6': bpo-19225: Remove duplicated description for standard warning categories (GH-1068)

[issue19225] lack of PyExc_BufferError doc

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 7e56fe35efe3aef0b9aac989255c4f13dfc01b09 by Berker Peksag (cocoatomo) in branch '3.5': bpo-19225: Remove duplicated description for standard warning categories (GH-1068)

[issue19225] lack of PyExc_BufferError doc

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 450a69c6a4bfee6a10cbcc0c43b221bb135689c8 by Berker Peksag (cocoatomo) in branch '2.7': bpo-19225: Remove duplicated description for standard warning categories (GH-1068)

[issue19225] lack of PyExc_BufferError doc

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the backport PRs! -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue24739] allow argparse.FileType to accept newline argument

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: I agree with paul j3. It would be nice to keep the current FileType API as is. The argparse documentation already encourages people to write their own custom types and I think this is a good use case for following the advice. Thanks for the report! --

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement versions: +Python 3.5 ___ Python tracker

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 596e714d79a22d1d53f26ae1a579dcd43f15865a by Berker Peksag in branch '3.6': bpo-30078: Add an example of passing a path to unittest (GH-1178) https://github.com/python/cpython/commit/596e714d79a22d1d53f26ae1a579dcd43f15865a --

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 6fb0f801d73b1e2794888772d016d978eccf52a6 by Berker Peksag in branch '3.5': bpo-30078: Add an example of passing a path to unittest (GH-1178) https://github.com/python/cpython/commit/6fb0f801d73b1e2794888772d016d978eccf52a6 --

[issue10379] locale.format() input regression

2017-04-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 6dbdedb0b18a5ca850ab8ce512fda24d5a9d0688 by Berker Peksag in branch 'master': bpo-10379: Add %char examples to locale.format() docs (GH-1145) https://github.com/python/cpython/commit/6dbdedb0b18a5ca850ab8ce512fda24d5a9d0688 --

[issue10379] locale.format() input regression

2017-04-19 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29887] test_normalization doesn't work

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: > The test should try to write the file in a temporary file, or simply skip the > test. I proposed https://github.com/python/cpython/pull/1196 to skip the test in that case. Creating a temporary file is more complex since the API doesn't work as a context

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-04-19 Thread Pavol Lisy
Pavol Lisy added the comment: Maybe I am wrong but don't we get another weird behavior? import sys.path # this is error now ModuleNotFoundError: No module named 'sys.path'; 'sys' is not a package So we probably expect same behavior here: import sys.path as foo But if we just

[issue25002] Deprecate asyncore/asynchat

2017-04-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: For the archaeologists of the future, smtpd.py is also deprecated in favor of aiosmtpd. http://aiosmtpd.readthedocs.io/en/latest/ -- ___ Python tracker

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1e62bf145b4865d03a29a5720a4eb84c321a9829 by Victor Stinner in branch 'master': bpo-30030: Revert f50354ad (tempfile) (#1187) https://github.com/python/cpython/commit/1e62bf145b4865d03a29a5720a4eb84c321a9829 --

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Victor. I was going to do this but was unable to do this because I was out of my developing environment. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue25002] Deprecate asyncore/asynchat

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: I suggest to close this issue and instead work on the the issue #28533: modify code using asyncore to use something else. -- ___ Python tracker

[issue30070] Fix errors handling in the parser module

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2a1bf0633cd0c55662df7875ee2b1654251adf6b by Serhiy Storchaka in branch '2.7': [2.7] [3.5] bpo-30070: Fixed leaks and crashes in errors handling in the parser module. (GH-1131). (GH-1185) (#1189)

[issue30065] Insufficient validation in _posixsubprocess.fork_exec()

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti, michael.foord, rbcollins stage: needs patch -> patch review ___ Python tracker

[issue30030] Simplify _RandomNameSequence

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This isn't a different approach and this doesn't work because generators are not thread-safe. -- ___ Python tracker

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-04-19 Thread Segev Finer
Segev Finer added the comment: Added the 4th version after review by eryksun (In rietveld). -- Added file: http://bugs.python.org/file46814/windows-subprocess-close-fds-v4.patch ___ Python tracker

[issue30106] test_asyncore: test_handle_write() fails in tearDown()

2017-04-19 Thread STINNER Victor
New submission from STINNER Victor: On the AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot, test_handle_write() of test_asyncore now fails on calling asyncore.close_all() in tearDown(). Moreover, since my commit 7b9619ae249ed637924d1c76687b411061753e5a, the following test_quick_connect() now

[issue30106] test_asyncore: test_handle_write() fails in tearDown()

2017-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1320 ___ Python tracker ___ ___

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-19 Thread STINNER Victor
New submission from STINNER Victor: Example of buildbot build which created a python.core file. Tests crashing Python on purpose should use test.support.SuppressCrashReport. I don't see which test can crash in the following list.

[issue30108] test_site modifies sys.path

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: Ah, I reproduced the bug: $ rmdir ~/.local/lib/python3.7/site-packages; ./python -m test test_site Run tests sequentially 0:00:00 [1/1] test_site Warning -- sys.path was modified by test_site Before: (140302199734024, ['', '/home/haypo/prog/GIT/perf',

[issue30108] test_site modifies sys.path

2017-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1322 ___ Python tracker ___ ___

[issue29887] test_normalization doesn't work

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset d13d54748d3a7db023d9db37223ea7d40bb8f8e3 by Victor Stinner in branch 'master': bpo-29887: test_normalization handles PermissionError (#1196) https://github.com/python/cpython/commit/d13d54748d3a7db023d9db37223ea7d40bb8f8e3 --

[issue30106] test_asyncore: test_handle_write() fails in tearDown()

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 11470b6dcdbc170779499a4a040b93c842a0d194 by Victor Stinner in branch 'master': bpo-30106: Fix tearDown() of test_asyncore (#1194) https://github.com/python/cpython/commit/11470b6dcdbc170779499a4a040b93c842a0d194 --

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Zbyszek Jędrzejewski-Szmek
Zbyszek Jędrzejewski-Szmek added the comment: If you can import the module that defines the parser, and get at the generated parser, this should be trivial to integrate with the build system. Something like: PYTHONPATH=. python3 -c 'import mymodule; p=mymodule.make_parser();

[issue29533] urllib2 works slowly with proxy on windows

2017-04-19 Thread Julia Dolgova
Julia Dolgova added the comment: I compared the behaviour of urllib with these browsers: Firefox("use system proxy" selected), Google Chrome, Yandex. And also Skype (requests to login.live.com). All of them are not doing DNS requests for proxy bypass handling as Marc expects. The result is

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-19 Thread crenwick
crenwick added the comment: > Feel free to suggest a better wording. > I think the only change that needs to be made is to make the existing message > say 'asyncio.Future' instead of just 'Future'. I hear ya. New commit in the PR reverts the TypeError I added, and changes the original

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
Louie Lu added the comment: > How to use this feature? > argparse is executed every time when the end user runs the program. > But generating a man page is the action that should be executed at > develop or build stage. > ... > How generating a man page should be invoked? For now, man page will

[issue30095] HTMLCalendar allow custom classes

2017-04-19 Thread Oz Tiram
Oz Tiram added the comment: ... Using class attributes would nice, also considering that the days CSS classes are defined as class attributes. I meant to write : Using class attributes would be nicer, also considering that the days CSS classes are defined as class attributes. --

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
Louie Lu added the comment: Attachment is the poc of generating man page via `print_manpage`: $ ./python poc_2.py > output && man ./output -- Added file: http://bugs.python.org/file46812/poc_2.py ___ Python tracker

[issue30100] WeakSet should all discard and remove on items that can have weak references

2017-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raising TypeError looks reasonable to me. > Operations with ordinal sets can raise TypeError > for unhashable values. I agree. TypeError looks the right exception in this case. -- ___ Python tracker

[issue30071] Duck-typing inspect.isfunction()

2017-04-19 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > So I expect that the case you 'care most about' already works. Yes, it works. That's the most ironic part of this issue: getfullargspec(func) works but packages like Sphinx will not call getfullargspec(func) because they do not detect that "func" is

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
Louie Lu added the comment: Sorry that I didn't figure out what you said in the previous msg. > provide a command-line interface for an end user I add a parameter that developer can switch command line option for man page, if the option is on, user can do this: ./python foo.py --manpage

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, because the compiler generates different arguments for the IMPORT_NAME opcode. -- ___ Python tracker ___

[issue30109] make reindent failed.

2017-04-19 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: -> Mariatta nosy: +Mariatta stage: -> patch review ___ Python tracker ___

[issue30108] test_site modifies sys.path

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm wondering if the user site directory should be removed in tearDownModule(). -- nosy: +serhiy.storchaka ___ Python tracker

[issue30109] make reindent failed.

2017-04-19 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1329 ___ Python tracker ___ ___

[issue30109] make reindent failed.

2017-04-19 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 58f3c9dc8f5626abe09ac9738c34f6ba99ce2972 by Mariatta in branch 'master': bpo-30109: Fix reindent.py (GH-1207) https://github.com/python/cpython/commit/58f3c9dc8f5626abe09ac9738c34f6ba99ce2972 -- ___

  1   2   >