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: -
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
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
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
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
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
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
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
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
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
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
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):
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
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
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
___
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
___
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
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
___
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
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
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
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
___
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
___
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
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
Changes by Memeplex carlosjosep...@gmail.com:
--
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13812
___
___
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
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
--
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
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
Changes by Alexandre Conrad alexandre.con...@gmail.com:
--
nosy: +aconrad
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23517
___
___
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
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
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
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
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
___
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
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
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.
--
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
___
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
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)
Changes by Jon Brandvein jon.brandv...@gmail.com:
--
nosy: +brandjon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24948
___
___
Python-bugs-list
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
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
___
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
___
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
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(),
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
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
___
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
___
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.
--
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
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/
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
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
___
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
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
58 matches
Mail list logo