[issue1191964] asynchronous Subprocess

2014-04-04 Thread Josiah Carlson

Josiah Carlson added the comment:

All of the standard tests plus another few that I added all pass on Windows and 
Linux. I've got some cleanup and a couple more tests to add tomorrow, then I'll 
post a patch.

I ended up not using any overlapped IO cancellation in the Windows variant of 
communicate(), as there is no benefit to doing so, and the function is as 
re-entrant as the original.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2014-04-04 Thread Vinay Sajip

Vinay Sajip added the comment:

The release notes say about PEP 442 that "As part of this change, module 
globals are no longer forcibly set to None during interpreter shutdown in most 
cases". I haven't looked at the PEP in detail, so I'm not sure specifically 
what "most cases" means - so I played it safe.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21133] unittest discover should allow option to run each package separately

2014-04-04 Thread Michael Foord

Michael Foord added the comment:

This is only an issue if a test package pollutes its environment without 
cleaning up (puts mocks in place that it doesn't remove for example). Fixing 
this would require discover to use multiple processes to run tests, which isn't 
going to happen (at least not soon). A better fix is to have test clean up 
after themselves properly.

--
resolution:  -> wont fix
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Yes. Exactly.

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Raymond identified a need and a possible solution. The important part of my 
post was suggesting another possible solution. Please focus on that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

translate_script_ascii.py: the benchmark script used to test 
fast_translate.patch.

--
Added file: http://bugs.python.org/file34732/translate_script_ascii.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

fast_translate.patch: here is the real patch which optimize translating ASCII 
to ASCII. It's *much* faster:

---+-+---
Tests  | writerA |  fastA
---+-+---
replace none, length=10    |  710 ns (*) |  169 ns (-76%)
replace none, length=10**3 | 59.1 us (*) |  997 ns (-98%)
replace none, length=10**6 | 59.2 ms (*) |  805 us (-99%)
replace 10%, length=10 |  678 ns (*) |  187 ns (-72%)
replace 10%, length=10**3  | 58.7 us (*) | 1.02 us (-98%)
replace 10%, length=10**6  | 57.5 ms (*) |  817 us (-99%)
replace 50%, length=10 |  559 ns (*) |  188 ns (-66%)
replace 50%, length=10**3  | 43.6 us (*) | 1.02 us (-98%)
replace 50%, length=10**6  | 43.4 ms (*) |  811 us (-98%)
replace 90%, length=10 |  437 ns (*) |  187 ns (-57%)
replace 90%, length=10**3  | 32.4 us (*) | 1.02 us (-97%)
replace 90%, length=10**6  | 31.8 ms (*) |  805 us (-97%)
replace all, length=10 |  386 ns (*) |  121 ns (-69%)
replace all, length=10**3  | 27.3 us (*) |  955 ns (-96%)
replace all, length=10**6  | 27.2 ms (*) |  807 us (-97%)
---+-+---
Total  |  219 ms (*) | 4.05 ms (-98%)
---+-+---

I'm not sure yet that the patch doesn't make non-ASCII cases slower.

--
Added file: http://bugs.python.org/file34731/fast_translate.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread R. David Murray

R. David Murray added the comment:

Antoine, being polite never hurts.  Terry is a valuable member of the community 
and sure, he sometimes makes mistakes (or trusts the docs too much?).  So do 
the the rest of us.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19655] Replace the ASDL parser carried with CPython

2014-04-04 Thread Nick Coghlan

Nick Coghlan added the comment:

IIRC, that discussion was just about Python 2 vs Python 3. Can we get the
AST rebuild requirement dropped back to "python3" being 3.3+ for the time
being so we don't break Fedora?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> PS: Try being a bit more polite.

You could definitely do some research before posting erroneous 
statements (this one isn't difficult to check, as Alex showed). 
Especially when the other posters (Alex and Raymond) are a lot more 
competent than you on the topic at hand.

If you actually try to *reason* about it, there is no other way for:
x[k] += 

to work in the general case than to execute
x.__setitem__(k, x.__getitem__(k) + )

So, yes, the lookup is done twice, because it currently can't work 
otherwise.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17621] Create a lazy import loader mixin

2014-04-04 Thread Eric Snow

Eric Snow added the comment:

Sweet!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1043134] Add preferred extensions for MIME types

2014-04-04 Thread David Lindquist

David Lindquist added the comment:

Anyone interested in picking this up, or at least commenting on the approach I 
suggested in the patch? Seems like an easy fix for a long-standing bug.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

"What the hell I am talking about" is what the doc says. 'd[key]' is written 
just once and "is evaluated just once".
https://docs.python.org/3/reference/simple_stmts.html#augmented-assignment-statements

PS: Try being a bit more polite.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Larry Hastings

Larry Hastings added the comment:

> I retract my veto.

You don't have a "veto".  Only Guido has that.

Anyhow you have yet to reply to Mr. Schwab's assertion:

> The emulator has always correctly implemented the insn.

If that's true, then I don't understand what this whole argument is about.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21150] Add quick links table to argparse docs

2014-04-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I have used both quick link tables and agree that more would be nice in spite 
of the added maintenance burden. The re module is one I would like to see 
indexed.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread mirabilos

mirabilos added the comment:

Andreas Schwab dixit:

>The fixed version is here: git://git.code.sf.net/p/aranym/code

That’s a source repository. I was asking for released tarballs
that have been packaged.

But clearly I have been outvoted by the m68k porters. So please
feel free to go ahead and break Debian/m68k on released ARAnyM.
I retract my veto.

bye,
//mirabilos
-- 
 exceptions: a truly awful implementation of quite a nice idea.
 just about the worst way you could do something like that, afaic.
 it's like anti-design.   that too… may I quote you on that?
 sure, tho i doubt anyone will listen ;)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21130] equivalent functools.partial instances should compare equal

2014-04-04 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> test needed
type: behavior -> enhancement
versions: +Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread mirabilos

mirabilos added the comment:

Stefan Krah dixit:

>If the asm instructions silently fail, I'd say add a test to ./configure
>that detects the broken versions of the emulator in question.

No, the problem is at runtime: Debian is a binary distro, and thus,
packages can get built and/or used on either ARAnyM, Amiga, Atari,
Macintosh, and in theory VME machines, and maybe Q40/Q60, and maybe
UAE (Amiga emulator).

bye,
//mirabilos
-- 
 exceptions: a truly awful implementation of quite a nice idea.
 just about the worst way you could do something like that, afaic.
 it's like anti-design.   that too… may I quote you on that?
 sure, tho i doubt anyone will listen ;)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21091] EmailMessage.is_attachment should be a method

2014-04-04 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo
versions: +Python 3.5 -Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21133] unittest discover should allow option to run each package separately

2014-04-04 Thread Éric Araujo

Éric Araujo added the comment:

> imports from previous unittests corrupt the namespace of subsequent unittests 
> and lead to failures
> (usually if there are mock objects in previously imported unit tests)

Can you tell more about this?  I haven’t run into this issue with large test 
suites that use mocks (and mock.path monkey-patching) heavily (probably because 
mock.patch is active for one test method only).

--
nosy: +eric.araujo, michael.foord
versions:  -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21145] Add the @cached_property decorator

2014-04-04 Thread Éric Araujo

Éric Araujo added the comment:

It could make sense to add clean, working recipes to e.g. the functools 
documentation.  The cached_property in the wiki uses a TTL, other like 
Pyramid’s reify decorator make properties that ensure the fget function is 
called only once per instance, and there may be subtly different variants out 
there.  I don’t know if there’s a universally useful variant that should be 
added to the sdlib right now.  (I don’t think a C implementation is needed.)

On a related note, the Python docs about desciptors may be missing entry-level 
explanations, as described here: 
http://me.veekun.com/blog/2012/05/23/python-faq-descriptors/

--
nosy: +eric.araujo, rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21150] Add quick links table to argparse docs

2014-04-04 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Éric Araujo

Éric Araujo added the comment:

Is this a duplicate of #809163 ?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Of course, "d[key] += 1" already solves the double lookup issue at the
> Python level.

What the hell are you talking about?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Alex Gaynor

Alex Gaynor added the comment:

d[key] += 1 still does two dict lookups, and invokes the hash function twice:

>>> class X(object):
...   def __hash__(self):
... print "hashed"
... return 0
...   def __eq__(self, other):
... return True
...
>>> d = {X(): 0}
hashed
>>> d[X()]
hashed
0
>>> d[X()] = 3
hashed
>>> d[X()] += 1
hashed
hashed

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

While the question is reasonable, I agree with Raymond's answer. As a python 
programmer, I would not like to see
   d.setitem_known_hash(key, hash, d.getitem_known_hash(key, hash) + 1)

Of course, "d[key] += 1" already solves the double lookup issue at the Python 
level. Moreover, it abbreviates the form, rather than expanding it, which is 
appropriate since it abbreviates the computation.

You could optimize get-set even more than the current proposal by saving a 
reference to the slot corresponding to a key rather than the hash that leads to 
a slot. Exposing a slot reference probably breaks encapsulation too much. This 
could be avoided by another alternative: add PyDict_Mod(ify)Item(mapping, key, 
func). It would combine get and set: find slot, get item, set func(item), and 
return whatever SetItem does on success/failure.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20942] _frozen_importlib should not have a __file__ attribute

2014-04-04 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
stage: patch review -> committed/rejected

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2014-04-04 Thread Maciej Szulik

Maciej Szulik added the comment:

You're right, I'll change this description removing 'This is equivalent...' 
sentence from description. I guess the same applies to 
time.strptime as well.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Thomas Heller

Changes by Thomas Heller :


--
nosy: +theller

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21158] Windows installer service could not be accessed (Python bug!)

2014-04-04 Thread R. David Murray

R. David Murray added the comment:

Sorry, I meant to delete that word 'minimal', since you have told us what you 
currently know, but I hit send before I did :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21158] Windows installer service could not be accessed (Python bug!)

2014-04-04 Thread R. David Murray

R. David Murray added the comment:

I think it would be helpful for you to email the python-list mailing list.  
Hopefully the people there can help you refine your problem report into 
something we can tackle.  The installer works fine for most people, so the 
first thing that we need in order to fix any such bug is to figure out how to 
reproduce it on some machine other than your own.

One of our windows devs might have some questions based on your minimal current 
description, but you are likely to get faster help from python-list, where 
there are a lot more people who use windows regularly than there are on the 
core team.

Please report any new information you discover here.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21158] Windows installer service could not be accessed (Python bug!)

2014-04-04 Thread Payden Comer

Payden Comer added the comment:

Then when installing the 32 bit. (image below:)

--
Added file: http://bugs.python.org/file34730/python bug 2.PNG

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21158] Windows installer service could not be accessed (Python bug!)

2014-04-04 Thread Payden Comer

Changes by Payden Comer :


--
title: Windows installer service could not be accessed -> Windows installer 
service could not be accessed (Python bug!)

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21158] Windows installer service could not be accessed

2014-04-04 Thread Payden Comer

New submission from Payden Comer:

I am VERY tech saavy, so don't give me an auto reply like I'm stupid (it's 
happened before). Sorry for the rude start! Anyhoo, This is the only program on 
my pc that does this, tried registry fixes, ms fixit, cmd, services, you named 
it I've (most likely) done it!

--
components: Installation
files: python bug.PNG
messages: 21
nosy: thecheater887
priority: normal
severity: normal
status: open
title: Windows installer service could not be accessed
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file34729/python bug.PNG

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-04-04 Thread Brett Cannon

Brett Cannon added the comment:

I envision making this happen would also allow for importlib to be updated to 
rely on __spec__ when possible, with the idea that sometime in the future we 
can deprecate pulling attributes from a module directly and shift to always 
working from __spec__.

--
assignee:  -> brett.cannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 70990e795657 by Victor Stinner in branch '3.4':
Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
http://hg.python.org/cpython/rev/70990e795657

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

> New changeset 95d4e8124c6a by Victor Stinner in branch 'default':
> Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
> http://hg.python.org/cpython/rev/95d4e8124c6a

It looks like _PyUnicode_TranslateCharmap() didn't work with error handler 
different than "strict", "replace", "ignore" and "xmlcharrefreplace": 
UnicodeTranslateError constructor crashed before my change.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 95d4e8124c6a by Victor Stinner in branch 'default':
Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
http://hg.python.org/cpython/rev/95d4e8124c6a

New changeset 03b1dd29b327 by Victor Stinner in branch 'default':
Issue #21118: Use _PyUnicodeWriter API in str.translate() to simplify and
http://hg.python.org/cpython/rev/03b1dd29b327

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Brett Cannon

Brett Cannon added the comment:

imp.find_module() might also best be updated to point out that 
importlib.import_module() exists for those cases where a replacement for 
sys.path is not necessary.

As for imp.load_module(), it might also be best to admit that import is simply 
not structured to work like imp.find_module()/imp.load_module() used to assume 
and to not try to force a replacement into importlib where it would be better 
for someone on PyPI to come up with a replacement; stdlib doesn't have to be 
everything to everyone, especially now that import is fully exposed in Python 
code (imp exists mainly because import used to be behind a veil of C code).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21088] curses addch() argument position reverses in Python3.4.0

2014-04-04 Thread Ned Deily

Changes by Ned Deily :


--
nosy:  -ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20998] fullmatch isn't matching correctly under re.IGNORECASE

2014-04-04 Thread Matthew Barnett

Matthew Barnett added the comment:

> > -(!ctx->match_all || ctx->ptr == state->end)) {
> > +ctx->ptr == state->end) {
> 
> Why this check is not needed anymore?
> 
After stepping through the code for that regex that fails, I concluded 
that the condition shouldn't depend on ctx->match_all at that point 
after all.

> > -status = SRE(match)(state, pattern + 2*prefix_skip);
> > +status = SRE(match)(state, pattern + 2*prefix_skip, 
> state->match_all);
> 
> > -status = SRE(match)(state, pattern + 2);
> > +status = SRE(match)(state, pattern + 2, state->match_all);
> 
> state->match_all is used but it is never initialized.

I thought I'd initialised it in all the places it's used.

I admit that I find the code a little hard to follow at times... :-(

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Brett Cannon

Brett Cannon added the comment:

Sorry, that should have been importlib.util.find_spec().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Brett Cannon

New submission from Brett Cannon:

imp.find_module() should point to importlib.find_spec() instead of 
find_loader(). As for imp.load_module() I've started a discussion on import-sig 
on how to best handle that.

--
assignee: brett.cannon
components: Documentation
messages: 215547
nosy: brett.cannon, eric.snow, ncoghlan
priority: normal
severity: normal
status: open
title: Update imp docs for a PEP 451 world
versions: Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
assignee:  -> giampaolo.rodola
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20998] fullmatch isn't matching correctly under re.IGNORECASE

2014-04-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Both patch are almost equivalent (my patch is much simpler but perhaps 
Matthew's approach is more correct in long perspective).

Unfortunately Rietvield doesn't work with Matthew's patch, so I have added my 
comments here.

> -(!ctx->match_all || ctx->ptr == state->end)) {
> +ctx->ptr == state->end) {

Why this check is not needed anymore?

> -status = SRE(match)(state, pattern + 2*prefix_skip);
> +status = SRE(match)(state, pattern + 2*prefix_skip, 
state->match_all);

> -status = SRE(match)(state, pattern + 2);
> +status = SRE(match)(state, pattern + 2, state->match_all);

state->match_all is used but it is never initialized.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17621] Create a lazy import loader mixin

2014-04-04 Thread Brett Cannon

Brett Cannon added the comment:

I went ahead and committed. I realized I could loosen the "no create_module()" 
requirement, but I think it could lead to more trouble than it's worth so I 
left it as-is for now. If people says it's an issue we can revisit it.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21128] testing stdlib and compatibility with pypy

2014-04-04 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-04-04 Thread Brett Cannon

Changes by Brett Cannon :


--
type: behavior -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21128] testing stdlib and compatibility with pypy

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b56341a49eab by Benjamin Peterson in branch '2.7':
make temporary read-only files writable, so rmtree can remove them (#21128)
http://hg.python.org/cpython/rev/b56341a49eab

New changeset 6f1ac58207cc by Benjamin Peterson in branch '2.7':
properly explicitly close file (#21128)
http://hg.python.org/cpython/rev/6f1ac58207cc

New changeset d7a37a1f2ca9 by Benjamin Peterson in branch '2.7':
explicitly close file object (#21128)
http://hg.python.org/cpython/rev/d7a37a1f2ca9

New changeset 9fd33a504b58 by Benjamin Peterson in branch '3.4':
make temporary read-only files writable, so rmtree can remove them (#21128)
http://hg.python.org/cpython/rev/9fd33a504b58

New changeset 78e75181d87f by Benjamin Peterson in branch 'default':
merge 3.4 (#21128)
http://hg.python.org/cpython/rev/78e75181d87f

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-04-04 Thread Brett Cannon

New submission from Brett Cannon:

importlib.abc.InspectLoader.source_to_code exists on InspectLoader because 
InspectLoader.get_code() uses it. But there is technically no reason to leave 
it there and not simply move it up to importlib.abc.Loader(). There is also no 
reason to not make it a staticmethod so that one can use it without worrying 
about abstractmethod overrides.

--
assignee: brett.cannon
components: Library (Lib)
messages: 215544
nosy: brett.cannon
priority: low
severity: normal
stage: test needed
status: open
title: Consider moving importlib.abc.InspectLoader.source_to_code() to 
importlib.abc.Loader
type: behavior
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17621] Create a lazy import loader mixin

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 52b58618199c by Brett Cannon in branch 'default':
Issue #17621: Introduce importlib.util.LazyLoader.
http://hg.python.org/cpython/rev/52b58618199c

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

Oh, I tested the wrong patch :-( Here is the updated benchmark summary:

---+--+---
Summary| original | writer
---+--+---
replace none, length=10|  5.65 us (*) |5.53 us
replace none, length=10**3 |   489 us (*) | 475 us
replace none, length=10**6 |   487 ms (*) | 476 ms
replace 10%, length=10 |  5.47 us (*) |5.25 us
replace 10%, length=10**3  |   455 us (*) | 447 us
replace 10%, length=10**6  |   455 ms (*) | 447 ms
replace 50%, length=10 |  4.71 us (*) |  4.42 us (-6%)
replace 50%, length=10**3  |   372 us (*) |   352 us (-5%)
replace 50%, length=10**6  |   371 ms (*) |   352 ms (-5%)
replace 90%, length=10 |  3.88 us (*) |  3.53 us (-9%)
replace 90%, length=10**3  |   293 us (*) |   270 us (-8%)
replace 90%, length=10**6  |   293 ms (*) |   271 ms (-7%)
replace all, length=10 |  3.58 us (*) | 3.24 us (-10%)
replace all, length=10**3  |   263 us (*) |  236 us (-10%)
replace all, length=10**6  |   262 ms (*) |  235 ms (-10%)
---+--+---
Total  | 1.87 sec (*) |   1.78 sec
---+--+---

str.translate() is a little bit faster with translate_writer.patch, but I don't 
really care if it's not faster, it's just to cleanup to code.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> - drop optimizations for error handlers different than "ignore" because there 
> is no unit tests for them, and str.translate() uses "ignore". It's safer to 
> drop untested optimization.

It is unsafe to do such nontrivial modifications for untested code.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

translate_writer_bench.txt: full output of the micro-benchmark.

--
Added file: http://bugs.python.org/file34728/translate_writer_bench.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

translate_script.py: microbenchmark for str.translate() with various length, 
charsets (ASCII, latin1, UCS2, UCS4) and percentage of replacement. Result:

---+--+-
Summary    | original |   writer
---+--+-
replace none, length=10    |  5.65 us |  5.67 us
replace none, length=10**3 |   489 us |   486 us
replace none, length=10**6 |   487 ms |   484 ms
replace 10%, length=10 |  5.47 us |  5.48 us
replace 10%, length=10**3  |   455 us |   455 us
replace 10%, length=10**6  |   455 ms |   455 ms
replace 50%, length=10 |  4.71 us |   4.7 us
replace 50%, length=10**3  |   372 us |   374 us
replace 50%, length=10**6  |   371 ms |   373 ms
replace 90%, length=10 |  3.88 us |  3.93 us
replace 90%, length=10**3  |   293 us |   297 us
replace 90%, length=10**6  |   293 ms |   295 ms
replace all, length=10 |  3.58 us |  3.59 us
replace all, length=10**3  |   263 us |   262 us
replace all, length=10**6  |   262 ms |   261 ms
---+--+-
Total  | 1.87 sec | 1.87 sec
---+--+-

It's exactly the same with translate_writer.patch.

--
Added file: http://bugs.python.org/file34727/translate_script.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2014-04-04 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

If datetime.date.strptime(date_string, format) validates format, then it is 
*not* equivalent to date(*(time.strptime(date_string, format)[0:3])), is it?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21155] asyncio: calling _UnixSelectorEventLoop.create_unix_server(sock=..., path=...) must fail

2014-04-04 Thread STINNER Victor

New submission from STINNER Victor:

_UnixSelectorEventLoop.create_unix_server() can be called with path *and* sock. 
In this case, the sock parameter is ignored.

Attached patch changes the method to raise a ValueError, to have the same 
behaviour than create_connection().

--
files: unix.patch
keywords: patch
messages: 215536
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio: calling _UnixSelectorEventLoop.create_unix_server(sock=..., 
path=...) must fail
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34726/unix.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21119] asyncio create_connection resource warning

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

BaseEventLoop.create_datagram_endpoint() and 
_UnixSelectorEventLoop.create_unix_server() have the same bug.

close2.patch fixes these methods but also modify socketpair() to ensure that 
the 2 sockets are closed on error.

I didn't audit the whole asyncio module.

Note: BaseEventLoop.create_server() uses a different approach: a "completed" 
flag with a try/finally block.

--
Added file: http://bugs.python.org/file34725/close2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21119] asyncio create_connection resource warning

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

Here is a patch for Python 3.5. It should be applied to Python 3.4 too.

--
keywords: +patch
nosy: +gvanrossum, haypo, yselivanov
versions: +Python 3.5
Added file: http://bugs.python.org/file34724/create_connection_close.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21090] File read silently stops after EIO I/O error

2014-04-04 Thread STINNER Victor

STINNER Victor added the comment:

> Python 2.7 uses C fopen() and fread(), so what happens probably is that 
> fread() silences the error.

I see that file_read() checks ferror() if fread() returned 0. I would nice to 
run the test in strace and attach the output of strace to see if the EIO is 
returneded by the kernel at least.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21090] File read silently stops after EIO I/O error

2014-04-04 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21088] curses addch() argument position reverses in Python3.4.0

2014-04-04 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21136] fractions.Fraction.__pow__ does unneeded renormalization

2014-04-04 Thread Mark Dickinson

Mark Dickinson added the comment:

LGTM.  (For real this time :-).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2014-04-04 Thread Devin Jeanpierre

Devin Jeanpierre added the comment:

Please don't take my word for it, but my understanding is that this issue 
doesn't apply to 3.4+ since module globals are no longer set to None during 
interpreter shutdown. (So all the checks against None could even be deleted.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19655] Replace the ASDL parser carried with CPython

2014-04-04 Thread Eli Bendersky

Eli Bendersky added the comment:

On Fri, Apr 4, 2014 at 6:10 AM, Serhiy Storchaka wrote:

>
> Serhiy Storchaka added the comment:
>
> Now make fails when system Python is older than 3.4.
>
>
This is why the .h & .c files are checked in - someone just building Python
doesn't need them regenerated at all. Only if one wants to *modify the
AST*, he'll need an up-to-date Python. Otherwise we'll have to stick to the
"oldest Python possible" for every script we use internally. I think this
was discussed on the mailing list(s) at some point.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10976] json.loads() raises TypeError on bytes object

2014-04-04 Thread Hanxue Lee

Hanxue Lee added the comment:

This seems to be an issue (bug?) for Python 3.3 When calling json.loads() with 
a byte array, this is the error

json.loads(response.data, 'latin-1')

TypeError: can't use a string pattern on a bytes-like object


When I decode the byte array to string

json.loads(response.data.decode(), 'latin-1')

I get this error

TypeError: bytes or integer address expected instead of str instance

--
nosy: +Hanxue.Lee

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b1f5b5d7997f by Victor Stinner in branch 'default':
Issue #21076: sigpending() is not available on Windows
http://hg.python.org/cpython/rev/b1f5b5d7997f

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21117] inspect.signature: inaccuracies for partial functions

2014-04-04 Thread Yury Selivanov

Yury Selivanov added the comment:

Any comments on the patch?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset df5120efb86e by Victor Stinner in branch 'default':
Issue #21076: the C signal module has been renamed to _signal
http://hg.python.org/cpython/rev/df5120efb86e

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15139] Speed up threading.Condition wakeup

2014-04-04 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20942] _frozen_importlib should not have a __file__ attribute

2014-04-04 Thread Brett Cannon

Changes by Brett Cannon :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20942] _frozen_importlib should not have a __file__ attribute

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fef890bd60b1 by Brett Cannon in branch '3.4':
Issue #20942: PyImport_ImportFrozenModuleObject() no longer sets
http://hg.python.org/cpython/rev/fef890bd60b1

New changeset a11ec7aaac10 by Brett Cannon in branch 'default':
merge of fix for issue #20942
http://hg.python.org/cpython/rev/a11ec7aaac10

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2014-04-04 Thread Georg Brandl

Georg Brandl added the comment:

The repository is http://hg.python.org/cpython.

If you make a patch, please set the appropriate values in Doc/conf.py, not the 
makefiles.

--
nosy: +georg.brandl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21154] Small fix in 2.7.6 lang ref

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6809b434752a by Benjamin Peterson in branch '2.7':
note that the hash of an arbitrary object is only derived from its address 
(closes #21154)
http://hg.python.org/cpython/rev/6809b434752a

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2014-04-04 Thread Jonas Wagner

Jonas Wagner added the comment:

I confirm that this also works with my self-compiled Clang 3.4. -export_dynamic 
was the missing option.

Is a good place to document this?

Otherwise, I think this issue can be closed. Thanks a lot for the help!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/4131/steps/compile/logs/stdio

gcc -pthread   -Xlinker -export-dynamic -o Modules/_testembed 
Modules/_testembed.o libpython3.5dm.a -lpthread -ldl  -lutil   -lm  
libpython3.5dm.a(config.o):(.data+0x18): undefined reference to `PyInit_signal'
collect2: ld returned 1 exit status
make: *** [Modules/_testembed] Error 1

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15139] Speed up threading.Condition wakeup

2014-04-04 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

In our 2.7 branches, this approach has been superseded with a natively 
impolemented _Condition class.  This is even more efficient.  It is available 
if the underlying Lock implementation is based on pthread locks (not 
semaphores).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c9239171e429 by Giampaolo Rodola' in branch 'default':
fix #21076: turn signal module constants into enums
http://hg.python.org/cpython/rev/c9239171e429

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16475] Support object instancing and recursion in marshal

2014-04-04 Thread Kristján Valur Jónsson

Changes by Kristján Valur Jónsson :


--
resolution:  -> fixed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13968] Support recursive globs

2014-04-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
keywords: +needs review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19655] Replace the ASDL parser carried with CPython

2014-04-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Now make fails when system Python is older than 3.4.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21154] Small fix in 2.7.6 lang ref

2014-04-04 Thread Armin Rigo

New submission from Armin Rigo:

The docs still say that the default __hash__() is equal to id(), but that's not 
the case since Python 2.7.

--
assignee: docs@python
components: Documentation
files: lang-ref-fix.diff
keywords: patch
messages: 215517
nosy: arigo, docs@python
priority: normal
severity: normal
status: open
title: Small fix in 2.7.6 lang ref
versions: Python 2.7
Added file: http://bugs.python.org/file34723/lang-ref-fix.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19505] OrderedDict views don't implement __reversed__

2014-04-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Done. Thank you Raymond for your review.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue20636] Better repr for tkinter widgets

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 66770f126c71 by Serhiy Storchaka in branch 'default':
Issue #20636: Improved the repr of Tkinter widgets.
http://hg.python.org/cpython/rev/66770f126c71

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19505] OrderedDict views don't implement __reversed__

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cee010fecdf5 by Serhiy Storchaka in branch 'default':
Issue #19505: The items, keys, and values views of OrderedDict now support
http://hg.python.org/cpython/rev/cee010fecdf5

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17522] Add api PyGILState_Check

2014-04-04 Thread Kristján Valur Jónsson

Changes by Kristján Valur Jónsson :


--
resolution:  -> fixed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I tried using the --install-script hook of the bdist_rpm command to update the 
INSTALLED_FILES listing to wrap them in quotes, but that doesn't help: 
http://paste.jaraco.com/uNMrQ

I also delved into the RPM docs, which don't provide any guidance other than to 
put one file per line.

I now believe that this is a bug in RPM and there's nothing that can be done in 
distutils to work around the issue.

--
Added file: http://bugs.python.org/file34722/issue21153.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17969] multiprocessing crash on exit

2014-04-04 Thread Kristján Valur Jónsson

Changes by Kristján Valur Jónsson :


--
resolution:  -> wont fix

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8410] Fix emulated lock to be 'fair'

2014-04-04 Thread Kristján Valur Jónsson

Changes by Kristján Valur Jónsson :


--
resolution:  -> rejected

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8410] Fix emulated lock to be 'fair'

2014-04-04 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Closing this issue.
It is largely superseded.  For our Python 2.7 branches, we have a custom "GIL" 
lock which can have different inherent semantics from the common "Lock".  In 
particular, we can implement a "fair" PyGIL_Handoff() function to be used to 
yield the GIL to a waiting thread.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17969] multiprocessing crash on exit

2014-04-04 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Closing this as won-t fix.  Exiting with running threads is a can of worms.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16475] Support object instancing and recursion in marshal

2014-04-04 Thread Kristján Valur Jónsson

Changes by Kristján Valur Jónsson :


--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17522] Add api PyGILState_Check

2014-04-04 Thread Kristján Valur Jónsson

Changes by Kristján Valur Jónsson :


--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21130] equivalent functools.partial instances should compare equal

2014-04-04 Thread Thomas Heller

Thomas Heller added the comment:

My usecase is: I create kind of bound methods with functools.partial.

Apologies for the confusion by using the word 'equivalent'; what I mean is that 
partial instances should (IMO) compare equal when they contain the same 
function and args/keywords which compare equal.

I guess functools.partialmethod has the same problem and I would suggest the 
same fix/enhancement but I have not used them yet because I have to write 
python2/3 compatible code.

Anyway; if this behaviour is not seen as a bug then it is probably python-ideas 
material, but I'm too tired to start a discussion there atm.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Jason R. Coombs

Jason R. Coombs added the comment:

The attached script (issue21153.py) replicates the failure in a Unix 
environment with the 'rpm' command present.

--
Added file: http://bugs.python.org/file34721/issue21153.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Jason R. Coombs

New submission from Jason R. Coombs:

In https://bitbucket.org/pypa/setuptools/issue/178, Eduard reported an issue 
that setuptools fails to install due to files in its structure with spaces in 
the filenames. These files have been around for some time (over two years in 
Distribute), but are now revealing a limitation in bdist_rpm.

The aforementioned ticket demonstrates the issue, and I will be providing a 
script to replicate the failure shortly.

--
components: Distutils
messages: 215508
nosy: dstufft, eric.araujo, jason.coombs
priority: normal
severity: normal
status: open
title: bdist_rpm fails if project contains files with spaces in the names
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2014-04-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b6deab7204e6 by Vinay Sajip in branch '2.7':
Issue #21149: Improved thread-safety in logging cleanup during interpreter 
shutdown.
http://hg.python.org/cpython/rev/b6deab7204e6

New changeset b5c91b61991a by Vinay Sajip in branch '3.4':
Issue #21149: Improved thread-safety in logging cleanup during interpreter 
shutdown.
http://hg.python.org/cpython/rev/b5c91b61991a

New changeset 76689a706900 by Vinay Sajip in branch 'default':
Closes #21149: Improved thread-safety in logging cleanup during interpreter 
shutdown.
http://hg.python.org/cpython/rev/76689a706900

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21128] testing stdlib and compatibility with pypy

2014-04-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm wondering why resource warnings are not raised in CPython?

./python -Werror -bb -m test.regrtest -uall test_argparse test_file 
test_httpservers

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Andreas Schwab

Andreas Schwab added the comment:

There is nothing that fails.  The emulator has always correctly implemented the 
insn.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2014-04-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The PSF is not the author of the docs. Perhaps something like "Python 
documentation authors".

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >