Changes by Eli_B eli.boyar...@gmail.com:
--
nosy: +Eli_B
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17023
___
___
Python-bugs-list mailing list
STINNER Victor added the comment:
Here is a patch:
Issue #18932, selectors: Optimize the modify() method of selectors
Optimize also register() and unregister() methods of KqueueSelector: only call
kqueue.control() once.
--
keywords: +patch
Added file:
STINNER Victor added the comment:
I tested SelectSelector, PollSelector, EpollSelector on Linux. I ran tests on
FreeBSD, so also tested KqueueSelector. I didn't test DevpollSelector, but the
code should be identical to PollSelector (the API is the same).
--
STINNER Victor added the comment:
Guido wrote:
This still leaves case (1), where the FD is already bad when we register it.
I am actually fine with sometimes raising and sometimes not; I don't want to
pay the extra overhead of doing an fstat() or some other syscall just to verify
that it is
Giampaolo Rodola' added the comment:
_BaseSelectorImpl.modify() still calls unregister() and register(). To my
understanding the whole point of this proposal was to avoid that in order to
obtain the speedup and (possibly) avoid race conditions.
--
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23389
___
___
Python-bugs-list
STINNER Victor added the comment:
To find an invalid FD when select() fails with EBAD, we can use something
like:
http://ufwi.org/projects/nufw/repository/revisions/b4f66edc5d4dc837f75857f8bffe9015454fdebc/entry/src/nuauth/tls_nufw.c#L408
Oh, the link is dead. Copy/paste of the code:
---
/*
Changes by Gregory P. Smith g...@krypto.org:
--
assignee: - gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23390
___
___
Serhiy Storchaka added the comment:
Thanks to Martin's suggestions here is even more clean patch.
--
Added file: http://bugs.python.org/file38011/bytes_format_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23383
Steve Dower added the comment:
It's not supported. You'll need to get the Python 2.7 source code and rebuild
the binaries under Debug.
Python 3.5 will probably have the option to download and install debug versions
of the binaries, but Python 2.7 won't be getting this.
--
Serhiy Storchaka added the comment:
See also contiguity tests in Modules/binascii.c and Modules/_ssl.c,
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23376
___
Ezio Melotti added the comment:
Ok, so I'm closing this again.
Berker, can you add a link to this issue too on the pydotorg tracker?
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22963
Tim Golden added the comment:
Under the covers, subprocess is calling CreateProcess so there's really not
very much we can do here, short of writing our own PATH-handling.
As a matter of fact, passing shell=True will produce the desired effect. Since
the only thing this does is to run the
Serhiy Storchaka added the comment:
Thanks Antoine. Do you have objections Raymond? I'm going to provide similar
patch for MappingView.
More robust tests in updated patch.
--
assignee: - serhiy.storchaka
Added file: http://bugs.python.org/file38015/pickle_dictviews_2.patch
New submission from Sébastien Gallou:
Hi all,
I installed Python (2.7.9) as binaries under Windows. I have trouble trying to
compile my application embedding Python, in debug configuration. I have exactly
the same problem as described here :
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22995
___
___
Charles-François Natali added the comment:
Well, I'd like to see at least one benchmark.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18932
___
Sébastien Gallou added the comment:
Thanks Steve for your quick answer.
It's now clear for me.
I will then apply this workaround :
#ifdef PYTHON_USE_SOURCES
#include Python.h
#else
#if defined WIN32 defined _DEBUG
#undef _DEBUG // Undef _DEBUG to use only release version of
Serhiy Storchaka added the comment:
Ping.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20289
___
___
Python-bugs-list mailing list
Steve Dower added the comment:
Afraid not. The closest you can get is building in Release with full debug
symbols and no optimisations, which should al lest get you decent debugging.
However, you won't get the extra memory check patterns or assertions throughout
your code.
--
Steve Dower added the comment:
You'll also need to change your project to use the release version of the C
Runtime library and undefine _DEBUG throughout, otherwise you'll get conflicts
in things like memory allocators and alignment. It's not quite as simple as
choosing another lib.
Sébastien Gallou added the comment:
So there is no mean to build my application in debug mode without rebuilding
all Python ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23393
___
New submission from François Trahan:
When reaching the end of a script, there is no garbage collection done if
another thread is running.
If you have cyclic references between objects that would be elligible for
collection under one of which a __del__ would terminate that thread, execution
Sébastien Gallou added the comment:
Thanks Steve,
I will try to build it (hope it will not be too difficult...). If I don't
success, I will use your solution.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23393
STINNER Victor added the comment:
close_self_pipe_after_selector.patch only fixes test2.py, it doesn't fix the
general case: run the same event loop in two different event loops.
--
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: _UnixDefaultEventLoopPolicy should either create a new loop or
explicilty fail when get_event_loop() is called from a multiprocessing child
process - asyncio: support multiprocessing
___
STINNER Victor added the comment:
Benchmark on Fedora 21 (Linux 3.18.3, glibc 2.20, Python 3.5 rev 7494f3972726).
Original:
haypo@selma$ ./python -m timeit -s 'import os, selectors;
s=selectors.SelectSelector(); r,w=os.pipe(); s.register(r,
selectors.EVENT_READ)' 's.modify(r,
STINNER Victor added the comment:
Attached at_fork.patch: detect fork and handle fork.
* Add _at_fork() method to asyncio.BaseEventLoop
* Add _detect_fork() method to asyncio.BaseEventLoop
* Add _at_fork() method to selectors.BaseSelector
I tried to minimize the number of calls to
STINNER Victor added the comment:
This issue looks to be a duplicate of #21998.
handle-mp_unix2.patch looks more to a workaround than a real issue. When I
write asyncio code, I prefer to pass explicitly the loop, so get_event_loop()
should never be called. IMO the methods of the event loop
Berker Peksag added the comment:
Here's an updated patch. Thank you Serhiy.
--
Added file: http://bugs.python.org/file38017/issue20289_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20289
Roundup Robot added the comment:
New changeset 49f07942fbd7 by Ned Deily in branch '2.7':
Issue #23345: Prevent test_ssl failures with large OpenSSL patch level
https://hg.python.org/cpython/rev/49f07942fbd7
New changeset 52932cd7f003 by Ned Deily in branch '3.4':
Issue #23345: Prevent test_ssl
Ned Deily added the comment:
Fixed for 2.7.10, 3.4.3, and 3.5.0.
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23345
STINNER Victor added the comment:
See also the https://pypi.python.org/pypi/mpworker project
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22087
___
Antoine Pitrou added the comment:
Can you post a simple reproducer so that we can more easily see what you are
talking about? Thank you.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23394
New submission from Thomas Kluyver:
In tracking down an obscure error we were seeing, we boiled it down to this
test case for thread.interrupt_main():
import signal, threading, _thread, time
signal.signal(signal.SIGINT, signal.SIG_DFL) # or SIG_IGN
def thread_run():
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.r
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23264
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +haypo, neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23395
___
___
Python-bugs-list
New submission from John Boersma:
In the tutorial for 2.7.9, in the section on quotes and the escape character,
there is the following example text:
'Isn\'t, she said.'
'Isn\'t, she said.'
print 'Isn\'t, she said.'
Isn't, she said.
s = 'First line.\nSecond line.' # \n means newline
s #
John Boersma added the comment:
To clarify - this is in tutorial section 3.1.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23396
___
___
Piotr Jurkiewicz added the comment:
Does not work on Debian 7 Wheezy, kernel 3.2.65.
$ python test.py
('sending ', 0)
took 0.000s
('sending ', 1)
took 0.000s
('sending ', 2)
took 0.000s
('sending ', 3)
took 0.000s
('sending ', 4)
took 0.000s
('sending ', 5)
took 0.000s
('sending ', 6)
took
Roundup Robot added the comment:
New changeset 2bb5fa752bfc by Benjamin Peterson in branch '2.7':
remove parenthesis from print statement (closes #23396)
https://hg.python.org/cpython/rev/2bb5fa752bfc
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open - closed
Charles-François Natali added the comment:
It's a kernel bug closing (working fine on my Debian wheezy with a more recent
kernel BTW).
--
resolution: - third party
status: open - closed
___
Python tracker rep...@bugs.python.org
Berker Peksag added the comment:
The patch LGTM.
In Doc/library/argparse.rst:
- add_help=True)
+ allow_abbrev=True, add_help=True)
should be
add_help=True, allow_abbrev=True)
I'll add a release note and commit it. Thanks!
--
Roundup Robot added the comment:
New changeset 8957ff9776bd by Gregory P. Smith in branch '3.4':
Fixes issue23390: make profile-opt causes -fprofile-generate and related flags
https://hg.python.org/cpython/rev/8957ff9776bd
New changeset 9c46707e5526 by Gregory P. Smith in branch 'default':
Serhiy Storchaka added the comment:
Here is a patch which adds separate dict for interned strings (otherwise they
can be uninterned) and for bytes. It also slightly simplify the code.
--
Added file: http://bugs.python.org/file38012/marshal_refs_by_value_3.patch
Stefan Krah added the comment:
I think it's sufficient to test bytesiobuf_getbuffer() on
Linux and FreeBSD. The test just checks that the exception
is raised.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:
--
nosy: +piotr.dobrogost
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14965
___
___
Serhiy Storchaka added the comment:
And here is alternative patch which uses a hashtable.
Both patches have about the same performance for *.pyc files, but
marshal_hashtable.patch is much faster for duplicated values. Marshalling
[1000]*10**6, [1000.0]*10**6 and [1000.0j]*10**6 with version 3
Changes by Gregory P. Smith g...@krypto.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23390
___
Ent added the comment:
No I think it's better if you put up a separate patch. That way any questions
other reviewers will have, you will be better suited to answer them.
Cheers!
--
___
Python tracker rep...@bugs.python.org
50 matches
Mail list logo