Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19005
___
Sam Lai added the comment:
I have a more realistic example of this bug. In the docstring for
distutils.LooseVersion, it says '1.5.1' and '3.2.p10' are both valid version
numbers. If instead of '3.2.p10', we use '1.5.p10', the following occurs -
v1 = LooseVersion('1.5.1')
v2 =
Changes by Anoop Thomas Mathew atm...@gmail.com:
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18981
___
Antoine Pitrou added the comment:
Serhiy, any benchmarks for your implementation? Does it slow down regular dicts?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18986
___
Marc Schlaich added the comment:
Yes, I could reproduce segfaults on Python 2.7 (looks like it is even worse
than on 2.6 where it appeared only randomly).
I was not quite accurate in my initial comment. I don't use any custom C
extensions but I'm using pygtk/gobject so it might be a bug
Changes by Lars Buitinck larsm...@gmail.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18999
___
___
Python-bugs-list
Lars Buitinck added the comment:
I don't really see the benefit of a context manager over an argument. It's a
power user feature anyway, and context managers (at least to me) signal cleanup
actions, rather than construction options.
--
___
Python
STINNER Victor added the comment:
I'll try that patch and keep you posted.
Cool, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18683
___
STINNER Victor added the comment:
ping? (for myself :-))
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14432
___
___
Python-bugs-list mailing
Marc Schlaich added the comment:
The generator.patch from #14432 didn't help. The other couldn't be applied to
2.7.
I have a core dump, should I upload it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18683
STINNER Victor added the comment:
I have a core dump, should I upload it?
The coredump is not useful if we cannot analyze it. Please open it in gdb, type
thread all apply where and copy/paste in a file and attach the file.
You may use set pagination off for easier copy/paste.
--
Richard Oudkerk added the comment:
By context I did not really mean a context manager. I just meant an object
(possibly a singleton or module) which implements the same interface as
multiprocessing.
(However, it may be a good idea to also make it a context manager whose
__enter__() method
Olivier Grisel added the comment:
The process pool executor [1] from the concurrent futures API would be suitable
to explicitly start and stop the helper process for the `forkserver` mode.
[1]
http://docs.python.org/3.4/library/concurrent.futures.html#concurrent.futures.ProcessPoolExecutor
Ethan Furman added the comment:
On 09/11/2013 02:39 PM, Tim Delaney wrote on PyDev:
I would think that retrieving the keys from the dict would return the
transformed keys (I'd
call them canonical keys).
The more I think about this the more I agree. A canonicaldict with a key
function
Ethan Furman added the comment:
True, but how big a deal is that?
For one, it seems questionable to have the presentation portion of the data be
part of the key.
For two, when presentation is important a separate list must be kept anyway to
preseed the dict; so just use that list to cycle
Antoine Pitrou added the comment:
Hello,
To discover a 32-bit interpreter running on a 64-bit system, we could
use
platform.architecture(), which returns
platform.architecture()
('32bit', 'ELF')
Just use (sys.maxsize 2**32).
What then, though? How do you turn '32bit' to
Lukas Wunner added the comment:
*ping*
Anybody, please consider applying the patch I've submitted August 8th so that
this issue gets fixed in Python 2.7's urllib.py.
Thanks so much.
--
___
Python tracker rep...@bugs.python.org
Olivier Grisel added the comment:
Richard Oudkerk: thanks for the clarification, that makes sense. I don't have
the time either in the coming month, maybe later.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18999
R. David Murray added the comment:
It would be simpler, but it would also be useless for the actual use case for
which this issue was opened.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18986
Antoine Pitrou added the comment:
R. David Murray added the comment:
You are conceptualizing this very differently. In our view, this
data structure is for cases where the original key is the most
important piece of information (about the keys). The transformation
in the lookup process
Stefan Behnel added the comment:
ping - I would like to see this fixed for alpha3, which is due in two weeks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18990
___
Amaury Forgeot d'Arc added the comment:
2. _PyVerify_fd(fd) is always true. Given the current definition:
#define _PyVerify_fd(fd) (_get_osfhandle(fd) = 0)
for those values of fd _get_osfhandle(fd) = 0, always.
Hum, are you sure this is the selected implementation?
- this code is only in 2.7
Antoine Pitrou added the comment:
Ethan, please don't post the same message *both* on the tracker
and on the mailing-list. I'm sure most people here also read
the ML thread.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
time.time() is sometimes used in performance critical code. Is
GetSystemTimePreciseAsFileTime() as fast as GetSystemTimeAsFileTime()?
Linux has the opposite: CLOCK_REALTIME_COARSE. This clock is less accurate but
may be faster.
http://lwn.net/Articles/342018/
Antoine Pitrou added the comment:
GetSystemTimePreciseAsFileTime() has very little overhead; the new function is
even a little faster than GetSystemTimeAsFileTime(), a call takes a few ten
nanoseconds.
from http://www.windowstimestamp.com/description#C_2
--
Serhiy Storchaka added the comment:
Thank you Neil. It is interesting.
Vose's alias method has followed disadvantages (in comparison with the roulette
wheel selection proposed above):
1. It operates with probabilities and uses floats, therefore it can be a little
less accurate.
2. It
Michael Foord added the comment:
Although I'm not certain the first test is invalid. It's testing a different
case than the second test. So if the first test passes it should be renamed
rather than removed. If it *fails* then I'd like to look at the behaviour and
specify (test) that.
Michael Foord added the comment:
Good catch - thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18993
___
___
Python-bugs-list mailing list
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15873
___
___
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:
--
nosy: +piotr.dobrogost
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8713
___
___
Serhiy Storchaka added the comment:
Here is less ugly patch (for argparse and optparse). Instead of prohibiting
wrapping at all for small width, it limits minimal width of formatted text. It
try first decrease the indent for help.
--
stage: test needed - patch review
Added file:
Richard Oudkerk added the comment:
There are lots of things that behave differently depending on the currently set
start method: Lock(), Semaphore(), Queue(), Value(), ... It is not just when
creating a Process or Pool that you need to know the start method.
Passing a context or start_method
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18993
___
___
New submission from Antoine Pitrou:
For whoever is interested: Windows 8 apparently has a new API named
GetSystemTimePreciseAsFileTime which returns the system API with a much better
resolution than GetSystemTimeAsFileTime does (The
GetSystemTimePreciseAsFileTime function retrieves the
R. David Murray added the comment:
You are conceptualizing this very differently. In our view, this data
structure is for cases where the original key is the most important piece of
information (about the keys). The transformation in the lookup process is
entirely in the service of looking
Ethan Furman added the comment:
Right, sorry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18986
___
___
Python-bugs-list mailing list
Vajrasky Kok added the comment:
The first test fails. I already tested it.
I think they test the same thing, what happens to the attribute of mock
instance if you delete it.
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
What about such output?
re.search('p((a)|(b))(c)?', 'unpack')
SRE Match object: [2: 5]: 'p'(('a')())('c')
Or may be ('p', [['a'], []], ['c']) if you prefer legal Python expression.
--
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18744
___
___
Serhiy Storchaka added the comment:
Antoine, what you say?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18682
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
LGTM.
--
assignee: - serhiy.storchaka
stage: - commit review
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18784
___
Roundup Robot added the comment:
New changeset 7aaba721ebc0 by Serhiy Storchaka in branch '3.3':
Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
http://hg.python.org/cpython/rev/7aaba721ebc0
New changeset 66ec8431032d by Serhiy Storchaka in branch 'default':
Issue
Serhiy Storchaka added the comment:
Thank you for your contribution Evgeny.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18784
Gregory P. Smith added the comment:
Brett wrote a pure python zipimporter in http://bugs.python.org/issue17630 :)
FWIW, the zipimport.c implementation (in 2.7) causes us serious pain when we've
got the stdlib in a .zip file and need to update that while there are running
python processes
44 matches
Mail list logo