[issue24943] Simplifying os.exec*

2015-08-27 Thread R. David Murray
R. David Murray added the comment: The functions in the os module are (for the most part) thin wrappers around OS apis (mostly posix). The 8 function reflect the posix functions. If you want a convenience interface, use the subprocess module. -- nosy: +r.david.murray resolution: -

[issue24945] Expose Py_TPFLAGS_ values from Python

2015-08-27 Thread Erik Bray
New submission from Erik Bray: Although admittedly rare, I've on more than one occasion wanted to inspect the tp_flags of a given class. It seems silly to me that although tp_flags is exposed to Python via type.__flags__, I then have to go rummaging around in Include/object.h in order to

[issue24945] Expose Py_TPFLAGS_ values from Python

2015-08-27 Thread Erik Bray
Erik Bray added the comment: Alternatively (or additionally) it would be nice if type.__flags__ were some PyStructSequence-based type (though as a subtype of int for backwards compat). -- ___ Python tracker rep...@bugs.python.org

[issue3548] subprocess.pipe function

2015-08-27 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Oh, I see... The pipes module uses os.system and os.popen to execute commands under a /bin/sh environment. So you are proposing to re-implement it with subprocess in order to execute commands without shell and, also, extend by accepting argv-style

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Yann Sionneau
Yann Sionneau added the comment: All right, here is the new patch then. -- Added file: http://bugs.python.org/file40275/multibind3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23630

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Yury Selivanov
Yury Selivanov added the comment: How am I supposed to handle the method being called with a Mock'ed getaddrinfo? Why would you call it that way? Are regular asyncio users going to mock it in their production/test code? If the only case for using mocks there are asyncio unittests -- just

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks! The only remaining question is is it OK that we can specify more than one host but only one port? Guido, Victor? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23630

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I think this is fine. I think the use case for multiple hosts is very different than that for multiple ports, so I see no reason to link the two features, and multiple ports hasn't been requested. The patch has a long line and the new docstring looks

[issue3548] subprocess.pipe function

2015-08-27 Thread R. David Murray
R. David Murray added the comment: Exactly like the string pipes API, but cmd would be a list of arguments instead of a string. That would then become the argument list to the subprocess stage. It is an interesting question whether we'd want to allow mixing stage types. I'd say no (at least

[issue24790] Idle: improve stack viewer

2015-08-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 514f5d610175 by Terry Jan Reedy in branch '2.7': Issue #24790: correct typo noticed by Eric Smith https://hg.python.org/cpython/rev/514f5d610175 New changeset 213ae5626493 by Terry Jan Reedy in branch '3.4': Issue #24790: correct typo noticed by

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Yann Sionneau
Yann Sionneau added the comment: All right, thanks. I fixed everything but the thing about getaddrinfo being Mock'ed. How am I supposed to handle the method being called with a Mock'ed getaddrinfo? -- ___ Python tracker rep...@bugs.python.org

[issue24946] Tkinter tests that fail on linux in tiling window manager

2015-08-27 Thread Terry J. Reedy
New submission from Terry J. Reedy: Serhiy, Florian emailed this to me in response to my pydev post on Linux gui tests. I'll let you decide if you think anything needs to be done. from Florian FWIW, those tests seem to fail when using a tiling window manager (herbstluftwm):

[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-08-27 Thread Mark Roseman
Mark Roseman added the comment: Attached uipreferences.py, which is a newer and more complete version of the one in prefs-wip.patch -- Added file: http://bugs.python.org/file40276/uipreferences.py ___ Python tracker rep...@bugs.python.org

[issue17781] optimize compilation options

2015-08-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note this patch is likely wrong, as it doesn't add the optimization options to the linker invocation. According to the gcc does, To use the link-time optimizer, -flto and optimization options should be specified at compile time and during the final link. So

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: The traditional solution is to rewrite the sentence so the name is not the first word. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23630 ___

[issue3548] subprocess.pipe function

2015-08-27 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Sure. I'll leave this issue for a while before others can emit their opinions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3548 ___

[issue19905] Add 128-bit integer support to ctypes

2015-08-27 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- dependencies: +Add 128-bit integer support to struct stage: - needs patch versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19905

[issue19904] Add 128-bit integer support to struct

2015-08-27 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- stage: - needs patch versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19904 ___

[issue13812] multiprocessing package doesn't flush stderr on child exception

2015-08-27 Thread R. David Murray
R. David Murray added the comment: You should open a new issue. Bonus if you can supply a unit test and patch :) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13812

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-27 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: The profile merging is necessary in case you want to use a pure clang compiler or you use GCC in OSX. For example, a general profiling action using clang will result in at least one binary profile. For our case, when using regrtest, we will have multiple

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Yury Selivanov
Yury Selivanov added the comment: Yeah, I think this is fine. I think the use case for multiple hosts is very different than that for multiple ports, so I see no reason to link the two features, and multiple ports hasn't been requested. OK! The patch has a long line and the new docstring

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you explain what the profile-merging thing is achieving? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24915 ___

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Also, I guess you'll need a branch that tracks what's going into 3.6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23630 ___

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Yann Sionneau
Yann Sionneau added the comment: About the missing capitalization, I omitted it because it's the argument's name. But I can resubmit with it being capitalized. I forgot to run flake8, sorry! -- ___ Python tracker rep...@bugs.python.org

[issue13812] multiprocessing package doesn't flush stderr on child exception

2015-08-27 Thread Memeplex
Memeplex added the comment: I would like to reopen this issue because of the following, very related, behavior. Try this: ``` import multiprocessing as mp import time def g(): time.sleep(100) def f(): mp.Process(target=g).start() 1/0 mp.Process(target=f).start() ``` It won't

[issue13812] multiprocessing package doesn't flush stderr on child exception

2015-08-27 Thread Memeplex
Changes by Memeplex carlosjosep...@gmail.com: -- versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13812 ___ ___

[issue23630] support multiple hosts in create_server/start_server

2015-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: It can't go into 3.5.1 (a bugfix release) because it is a new feature (however small), and asyncio is not provisional in 3.5 (only in 3.4). -- ___ Python tracker rep...@bugs.python.org

[issue24947] asyncio-eventloop documentation grammar (minor)

2015-08-27 Thread tagatac
New submission from tagatac: amongst which in the Base Event Loop subsection of the docs does not really describe a list of facilities. amongst which are would be better, but including conveys the same thing more succinctly. https://docs.python.org/3/library/asyncio-eventloop.html --

[issue17781] optimize compilation options

2015-08-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can test for yourself by passing `CFLAGS=-flto -O3 LDFLAGS=-flto -O3` to ./configure (using gcc). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17781

[issue24948] Multiprocessing not timely flushing stack trace to stderr

2015-08-27 Thread Memeplex
New submission from Memeplex: Related to but not the same than https://bugs.python.org/issue13812. Try this: ``` import multiprocessing as mp import time def g(): time.sleep(100) def f(): mp.Process(target=g).start() 1/0 mp.Process(target=f).start() ``` It won't show the

[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly

2015-08-27 Thread Alexandre Conrad
Changes by Alexandre Conrad alexandre.con...@gmail.com: -- nosy: +aconrad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23517 ___ ___

[issue24947] asyncio-eventloop documentation grammar (minor)

2015-08-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf15066861fc by Zachary Ware in branch '3.4': Issue #24947: Fix grammar in asyncio doc https://hg.python.org/cpython/rev/cf15066861fc New changeset 563d6f9fecfe by Zachary Ware in branch '3.5': Issue #24947: Merge 3.4

[issue24947] asyncio-eventloop documentation grammar (minor)

2015-08-27 Thread Zachary Ware
Zachary Ware added the comment: Fixed, thanks for the report and patch! -- nosy: +zach.ware versions: +Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24947

[issue21192] Idle: Print filename when running a file from editor

2015-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Now that Larry Hastings has posted directions for handling changes pulled into 3.5.0, I will soon commit the attached, or something close, and add a pull request. -- keywords: +patch Added file: http://bugs.python.org/file40278/@restart.diff

[issue24948] Multiprocessing not timely flushing stack trace to stderr

2015-08-27 Thread Memeplex
Memeplex added the comment: One possible fix to multiprocessing/process.py: try: self.run() exitcode = 0 finally: util._exit_function() --- self.run() exitcode = 0 274a272

[issue13812] multiprocessing package doesn't flush stderr on child exception

2015-08-27 Thread Memeplex
Memeplex added the comment: http://bugs.python.org/issue24948 I posted a tentative solution there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13812 ___

[issue17781] optimize compilation options

2015-08-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, the gain for LTO+PGO (with -flto -O3) over PGO alone seems to be between 0% and 10% for most benchmarks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17781

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2015-08-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset a90c6d608b85 by Robert Collins in branch '3.4': Issue #21112: Fix regression in unittest.expectedFailure on subclasses. https://hg.python.org/cpython/rev/a90c6d608b85 New changeset ac3f1a6b1de2 by Robert Collins in branch '3.5': Issue #21112: Fix

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2015-08-27 Thread Robert Collins
Robert Collins added the comment: 2.7 is sufficiently different that I haven't backported this there - plus the report said it was introduced in 3.4. If someone can show this doesn't work in 2.7 and also supply a patch, we could apply it there. --

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2015-08-27 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21112 ___

[issue24949] Identifier lookup in a multi-level package is flakey

2015-08-27 Thread Bob Hossley
New submission from Bob Hossley: This seems like a bug to me, but it may be a recognized limitation even though I couldn't find any documentation suggesting that my tests should not work reliably. I see no reason why my tests should not work reliably. I have reliably reproduced the

[issue2786] Names in function call exception should have class names, if they're methods

2015-08-27 Thread Robert Collins
Robert Collins added the comment: Here are some options. a) Don't make the new thing public - instead export within Python.exe the existing private symbol _...withNames. Pros: no change to public API. Cons: extension modules using the public API cannot make these sorts of errors clearer. b)

[issue24948] Multiprocessing not timely flushing stack trace to stderr

2015-08-27 Thread Jon Brandvein
Changes by Jon Brandvein jon.brandv...@gmail.com: -- nosy: +brandjon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24948 ___ ___ Python-bugs-list

[issue24949] Identifier lookup in a multi-level package is flakey

2015-08-27 Thread Martin Panter
Martin Panter added the comment: It sounds like you are trying to do a plain “import email”, and then expect all the submodules under that package to work, including “email.mime.nonmultipart”. That is not how it works. I understand the submodules and subpackages are only initialized if you

[issue24950] FAIL: test_posixpath when $HOME=/

2015-08-27 Thread Felix Yan
Changes by Felix Yan felixonm...@archlinux.org: -- title: FAIL: test_expanduser when $HOME=/ - FAIL: test_posixpath when $HOME=/ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24950 ___

[issue24950] FAIL: test_expanduser when $HOME=/

2015-08-27 Thread Felix Yan
Changes by Felix Yan felixonm...@archlinux.org: -- title: FAIL: test_posixpath when $HOME=/ - FAIL: test_expanduser when $HOME=/ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24950 ___

[issue24950] FAIL: test_expanduser when $HOME=/

2015-08-27 Thread Felix Yan
New submission from Felix Yan: test_expanduser in test.test_posixpath.PosixPathTest fails when the users $HOME being exactly /, after the patch in issue17809 was introduced. test test_posixpath failed -- Traceback (most recent call last): File

[issue24950] FAIL: test_expanduser when $HOME=/

2015-08-27 Thread Felix Yan
Felix Yan added the comment: btw, there seems to be a relevant failure in test_pathlib as well: test test_pathlib failed -- Traceback (most recent call last): File /build/python/src/Python-3.5.0rc2/Lib/test/test_pathlib.py, line 2015, in test_expanduser self.assertEqual(p1.expanduser(),

[issue24944] traceback when using tempfile module on windows

2015-08-27 Thread STINNER Victor
STINNER Victor added the comment: Hi, do you have a file called fcntl.py in your project? Try: import fcntl fcntl.__file__ '/usr/lib64/python2.7/lib-dynload/fcntlmodule.so' This module should be available on Windows. -- nosy: +haypo ___ Python

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-27 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com: Added file: http://bugs.python.org/file40274/python3.6-pgo-v05.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24915 ___

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-27 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com: Added file: http://bugs.python.org/file40273/python2.7-pgo-v05.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24915 ___

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-27 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I fixed the files after the review. Regarding the PROFILE_OPT_OLD line, I think that it is better to keep also the old task used for PGO, until clear evidence and measurements that regrtest is performing better on other architectures exists. --

[issue24944] traceback when using tempfile module on windows

2015-08-27 Thread Hassan El Karouni
New submission from Hassan El Karouni: Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import tempfile tempfile.mkstemp() Traceback (most recent call last): File stdin, line 1, in module File

[issue24934] django_v2 benchmark not working in Python 3.6

2015-08-27 Thread Florin Papa
Florin Papa added the comment: I have modified the Django-1.8.zip archive to extract to Django-1.8 directory. To apply the patch please follow these steps: hg clone https://hg.python.org/benchmarks cd benchmarks/ copy django_v3.patch to the current directory and Django-1.8.zip to the lib/

[issue24943] Simplifying os.exec*

2015-08-27 Thread Sworddragon
New submission from Sworddragon: I'm seeing in the documentation 8 different os.exec* functions that differ only slightly. I think from the way they are differing they could also all be merged into 1 function which could look like this: os.exec(file, args, env, use_path) - file is the path

[issue24934] django_v2 benchmark not working in Python 3.6

2015-08-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Both the fix and the v3 benchmark sound good to me. Note I haven't tried them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24934 ___

[issue24789] ctypes doc string

2015-08-27 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Updated create_string_buffer docstring to create_string_buffer(aBytes, anInteger) - character array. -- keywords: +patch nosy: +matheus.v.portela Added file: http://bugs.python.org/file40279/issue24789_ctypes_doc_string.patch

[issue24949] Identifier lookup in a multi-level package is flakey

2015-08-27 Thread R. David Murray
R. David Murray added the comment: It should not be the case that email.mime.nonmultipart gets imported unless you import it explicitly. I can't reproduce your case of trying to access its __file__ attribute and having it succeed the second time. There must be something unusual about your