Michael Foord added the comment:
I'm happy with the check being removed.
The old behaviour was documented I believe - so there'd need to be
documentation changes to go with it. As the old behaviour is so un-useful I
don't think there are backward compatibility issues with changing it.
Changes by Cédric Krier cedric.kr...@b2ck.com:
--
nosy: +ced
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17998
___
___
Python-bugs-list mailing
Larry Hastings added the comment:
I'm downgrading this to deferred blocker. We'll make sure it happens before
Python 3.4.0, but there's no need to hold up Python 3.4a1 for this.
--
priority: release blocker - deferred blocker
___
Python tracker
Larry Hastings added the comment:
Okay, downgrading to deferred blocker.
--
priority: release blocker - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
Larry Hastings added the comment:
And this will hold up Python 3.4a1, as I can't close #13463 until this is
closed first. So I'm closing this as wontfix.
--
nosy: +larry
resolution: - wont fix
status: open - closed
___
Python tracker
Larry Hastings added the comment:
This was held up by #5302, so I just closed that one too as the same rule
applies.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13463
Larry Hastings added the comment:
Can I downgrade this to deferred blocker? That means we still need to deal
with it before the release, but we don't have to hold up Python 3.4a1 for it.
--
___
Python tracker rep...@bugs.python.org
Ronald Oussoren added the comment:
Updated the patch for PEP 442.
--
Added file: http://bugs.python.org/file31107/issue-18181-full-v4.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18181
Ronald Oussoren added the comment:
The attached patch removes the code that checks if Python Launcher is the
default application for opening python files.
--
Added file: http://bugs.python.org/file31108/issue-5262.txt
___
Python tracker
Antoine Pitrou added the comment:
It appears that a few (1-3) module dicts are not being purged because they
have been orphaned. (i.e. the module object was garbaged collected before
we check the weakref, but the module dict survived.)
Module globals can be kept alive by any function
New submission from Ronald Oussoren:
There are some issues with the Python Launcher application:
1) There is a useless 'Help' menu, the application does not
include help (removal is trivial and doesn't affect functionality)
2) The list of interpreters does not include the framework
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18608
___
___
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18214
___
___
Antoine Pitrou added the comment:
As for the __main__ dict, perhaps we're missing a decref somewhere.
Actually, it's not surprising. Blob's methods hold a reference to the __main__
globals, and there's still a Blob object alive in encodings.
If you replace the end of your script with the
Richard Oudkerk added the comment:
On 01/08/2013 10:59am, Antoine Pitrou wrote:
If you replace the end of your script with the following:
for name, mod in sys.modules.items():
if name != 'encodings':
mod.__dict__[__blob__] = Blob(name)
del name, mod, Blob
then at the end
Antoine Pitrou added the comment:
You might want to open a prompt and look at gc.get_referrers() for
encodings.mbcs.__dict__ (or another of those modules).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18214
Richard Oudkerk added the comment:
You might want to open a prompt and look at gc.get_referrers() for
encodings.mbcs.__dict__ (or another of those modules).
gc.get_referrers(sys.modules['encodings.mbcs'].__dict__)
[module 'encodings.mbcs' from
Tim Golden added the comment:
I propose to close this one: using Python 3.3 on Win7 I can successfully stat
NTFS Junctions. Is there any remaining issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18306
Richard Oudkerk added the comment:
I get different numbers from you. If I run ./python -v -c pass, most
modules in the wiping phase are C extension modules, which is expected.
Pretty much every pure Python module ends up garbage collected before
that.
The *module* gets gc'ed, sure. But
New submission from uglemat:
Today there are list comprehensions, set comprehensions, dict comprehensions
and then... there are generator expressions, which apparently was called
'generator comprehensions' in the original PEP, don't know why that was
changed. Some questions arises:
* Are
Roundup Robot added the comment:
New changeset f283589cb71e by Tim Golden in branch 'default':
Issue #9035: os.path.ismount now recognises volumes mounted below
http://hg.python.org/cpython/rev/f283589cb71e
--
nosy: +python-dev
___
Python tracker
New submission from Laurent Fournier:
Python 3.3.1 (with GCC 4.7.3) on Linux
print (.3-.1)
0.18
--
messages: 194050
nosy: Laurent.Fournier
priority: normal
severity: normal
status: open
title: wrong float minus op result
type: behavior
versions: Python 3.3
Martin v. Löwis added the comment:
I would be fine with it being build only in a debug build. The rationale for
the module is that it should test whether the header files actually compile
under the limited API (or whether e.g. some functions are exposed that rely on
unexposed structures). So
Martin v. Löwis added the comment:
Julien: I propose to resolve this issue in the same way as we have done
previously with analysis tools (with some unfortunate exceptions).
Somebody motivated enough (hopefully you) agrees to initially study the tool
output, and ideally also then agrees to
Laurent Fournier added the comment:
also with addition !
print (.05+.01)
0.065
--
title: wrong float minus op result - wrong float plus/minus op result
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18613
Nick Coghlan added the comment:
Changes in version 5:
- added a new reference pointing back to this tracker issue. I figure that's a
good precedent to set for future updates.
- I liked Barry's point about Don't break backwards compatility enough that I
moved it into its own paragraph ahead of
Antoine Pitrou added the comment:
Here (Linux) I get the following:
# purge/gc os.path 12
# purge/gc operator 50
# purge/gc io 49
# purge/gc _sysconfigdata 48
# purge/gc sysconfig 47
# purge/gc keyword 46
# purge/gc site 45
# purge/gc types 44
Also, do note that purge/gc after wiping can still
Nick Coghlan added the comment:
For the record, the thread where Thomas Wouters provided the feedback that led
to the current wording regarding imports:
http://mail.python.org/pipermail/python-dev/2013-July/127373.html
--
___
Python tracker
R. David Murray added the comment:
Well, you haven't done anything wrong, but I'm not sure what we can do in
response to the report. What how will the answer to the question serve you?
What will you know after getting the answer that you didn't know before getting
the answer? I'm trying
Eli Bendersky added the comment:
Ben, would you like to provide an updated patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12645
___
___
Eli Bendersky added the comment:
Quite a bit of encoding-related tests were added recently (by Serhiy, IIRC).
Unless there are objections or more specific test suggestions, I will close
this issue in a few days.
--
___
Python tracker
Eli Bendersky added the comment:
Serhiy, do you want to backport the buffer overflow fix to 2.7?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13612
___
Brett Cannon added the comment:
This is actually expected because that is just how floating point works in
programming (see http://en.wikipedia.org/wiki/Floating_point for all the gnarly
details).
If you want exact decimal arithmetic, use the decimal module (which got
significantly faster in
Changes by Nick Coghlan ncogh...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
___
Eli Bendersky added the comment:
Thanks for the report (Eric) and the patch (Alex). There are currently some
open bugs we need to handle first, so this is somewhat lower priority. I hope
to get to it before the 3.4 release.
--
___
Python tracker
Nick Coghlan added the comment:
Heh, I just realised a correct generator definition would have needed the
loop-and-a-half internally anyway:
def itervalues(x):
while True:
value = x.getvalue()
if not value:
break
yield value
--
uglemat added the comment:
Yeah I think the differences are pretty easy to comprehend. To be honest the
reason I came here is that I had an argument where someone commented on my code
(where I used a generator expression) saying something akin to list
comprehensions are nice, so I replied
Richard Oudkerk added the comment:
Also, do note that purge/gc after wiping can still be a regular
gc pass unless the module has been wiped. The gc could be triggered
by another module being wiped.
For me, the modules which die naturally after purging begins are
# purge/gc encodings.aliases
Roundup Robot added the comment:
New changeset 5258c4399f2e by Tim Golden in branch 'default':
issue9035: Prevent Windows-specific tests from running on non-Windows platforms
http://hg.python.org/cpython/rev/5258c4399f2e
--
___
Python tracker
Nick Coghlan added the comment:
PEP 8 now covers the developer side of things:
http://www.python.org/dev/peps/pep-0008/#public-and-internal-interfaces
A user facing counterpart describing our backwards compatibility policy is
still desirable. Updating PEP 5 wouldn't go astray, since that's
uglemat added the comment:
Is it right to correct someone and say that generator expressions are in fact
*not* generator expressions?
Ups, I meant Is it right to correct someone and say that generator expressions
are in fact *not* list comprehensions?
All these expressions and
Antoine Pitrou added the comment:
Also, do note that purge/gc after wiping can still be a regular gc
pass unless the module has been wiped. The gc could be triggered by
another module being wiped.
That said, I welcome any suggestions to improve things. The ultimate
reasons we need to purge
Barry A. Warsaw added the comment:
On Aug 01, 2013, at 12:19 PM, Nick Coghlan wrote:
I *didn't* make any changes in relation to Barry's comment about having the
commentary intermixed with the guidelines. I quite like the notion of
stripping PEP 8 down to just the essentials and having PEP 108
R. David Murray added the comment:
Well, it is the case that if you substitute a list comprehension for a
generator expression in arbitrary code, most of the time it would work but
occasionally it wouldn't, because the runtime behavior is different (lazy
production versus all-at-once
DLowell added the comment:
Is this issue still being worked on?
--
nosy: +DLowell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14130
___
___
Roundup Robot added the comment:
New changeset 7b165c7ab7ef by doko in branch 'default':
- Issue #18257: Fix readlink usage in python-config. Install the python
http://hg.python.org/cpython/rev/7b165c7ab7ef
--
nosy: +python-dev
___
Python tracker
Matthias Klose added the comment:
checked in a fix for the readlink issue, and Ronald's proposed solution for
Darwin. And documented for now, that we do have two versions of this script.
This works as long as you don't cross-build for Darwin or on Darwin.
--
New submission from Steven D'Aprano:
As per the discussion here:
http://mail.python.org/pipermail/python-ideas/2013-July/022419.html
\N{} escapes should support the Unicode code point notation U+ (where there
are four, five or six hex digits after the U+).
E.g. '\N{U+03BB}' = 'λ'
Richard Oudkerk added the comment:
Yes, I agree the patch is ok.
It would be would be much simpler to keep track of the module dicts if
they were weakrefable. Alternatively, at shutdown a weakrefable object
with a reference to the module dict could be inserted in to each module
dict. We
Tim Golden added the comment:
Fixed. Thanks for the patch
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9035
Guido van Rossum added the comment:
Thanks a bundle, Nick!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
___
___
Python-bugs-list mailing
Antoine Pitrou added the comment:
Ok, let's attack the rest separately then :)
And thanks a lot for testing!
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18214
___
New submission from Claudiu.Popa:
Both sndhdr.whathdr an sndhdr.what returns a tuple with various information,
while it could return a namedtuple. I attached a patched for this, with tests
as well.
--
components: Library (Lib)
files: sndhdr.patch
keywords: patch
messages: 194080
nosy:
Martin v. Löwis added the comment:
This is not true. Installing the modules into the SxS folder using the Merge
Module (msm) is also a recommended way of installing the DLLs.
I fail to see a problem in this report.
--
nosy: +loewis
___
Python
Martin v. Löwis added the comment:
Nobody has contributed a patch in five years, so it apparently is pretty hard.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3778
___
New submission from Derek Wilson:
ssl.get_server_certificate does not allow advanced options like what ciphers to
use (for ssl2 for instance) or SNI for virtual hosts with multiple ssl sites on
one IP address.
Adding **kwargs enables any current and future SSLSocket options to be passed
Roundup Robot added the comment:
New changeset 2a38e4da6ce8 by Martin v. Löwis in branch 'default':
Issue #18569: The installer now adds .py to the PATHEXT variable
http://hg.python.org/cpython/rev/2a38e4da6ce8
--
nosy: +python-dev
___
Python tracker
Martin v. Löwis added the comment:
Thanks for the patch. It works fine (with the expected limitation that you need
to restart running shells for this to take effect).
--
resolution: - fixed
status: open - closed
___
Python tracker
Guido van Rossum added the comment:
I think the current wording about line length makes it too easy to adopt 99
instead of 79. I propose to go back to 79 only, and add this before the
paragraph starting with The preferred way of wrapping long lines ...
Some teams strongly prefer a longer
Matthew Barnett added the comment:
I've attached a patch for this.
--
keywords: +patch
nosy: +mrabarnett
Added file: http://bugs.python.org/file31112/issue18614.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18614
New submission from Donald Stufft:
Currently the Python SSL module requires the full chain, including all
intermediaries, to be served in order to validate a TLS connection. This isn't
*wrong* however a number of folks have had issues trying to setup a custom PyPI
index in pip due to missing
Guido van Rossum added the comment:
See proposed patch at https://codereview.appspot.com/12269044/ .
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
___
Christian Heimes added the comment:
Thx!
Let's update the docs for 2.7 to 3.4 first.
For AIA intermediate cert retrieval we have to use OpenSSL's verify hook. It's
a pain to implement all necessary bits and hard to use, though. :(
--
nosy: +christian.heimes
versions: +Python 2.7,
Arfrever Frehtes Taifersar Arahesis added the comment:
The fix in 2.6, 2.7, 3.1 and 3.2 branches introduced UnboundLocalError
occurring when a non-None baseName parameter is passed.
At least a part of fa82071bb7e1 should be backported to 2.6, 2.7, 3.1 and 3.2
branches.
$ python2.7 -c 'import
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18517
___
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Interpreter Core, Library (Lib)
priority: normal - low
type: - enhancement
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18618
New submission from Antoine Pitrou:
Callbacks registered with atexit.register() are only called at shutdown of the
main interpreter. For some purposes (perhaps most of them, arguably), you
actually want to execute the callbacks at subinterpreter shutdown too.
--
messages: 194092
nosy:
Antoine Pitrou added the comment:
(note that weakref.finalize indirectly suffers from this problem)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18618
___
Larry Hastings added the comment:
You're talking about a new bug. Please open a new issue.
I'm closing this issue right now because I want to cut a Python 3.4 alpha
release tomorrow, and this bug is marked Python 3.4 and release blocker.
--
resolution: - fixed
status: open - closed
Larry Hastings added the comment:
I'm downgrading this to deferred blocker. I'm sure we'll get it fixed for
Python 3.4 final, but in the meantime there's no sense in holding up Python
3.4a1 for it.
--
priority: release blocker - deferred blocker
Arfrever Frehtes Taifersar Arahesis added the comment:
UnboundLocalError is effect of partially incorrect fix for this bug.
It is better to update Versions field.
--
resolution: fixed -
status: closed - open
versions: +Python 3.1 -Python 3.3, Python 3.4
Larry Hastings added the comment:
Thanks, Matthias! Now I can cut 3.4a1 on time. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
New submission from Antoine Pitrou:
atexit uses PEP 3121 module initialization, and by this scheme each
subinterpreter gets a separate module state. However, atexit's m_free doesn't
actually decref the callbacks: it only frees the callbacks array, thinking the
callbacks were already decref'ed
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
___
___
Tshepang Lekhonkhobe added the comment:
@Guido am glad for the patch; it's a nice compromise
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
___
Antoine Pitrou added the comment:
Here is a patch. It also enables GC on the atexit module.
--
keywords: +patch
Added file: http://bugs.python.org/file31113/atexit_leaks.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 71b63a32b1e3 by Antoine Pitrou in branch 'default':
Issue #18619: Fix atexit leaking callbacks registered from sub-interpreters,
and make it GC-aware.
http://hg.python.org/cpython/rev/71b63a32b1e3
--
nosy: +python-dev
Antoine Pitrou added the comment:
The patch was simple enough that I decided to push it as-is :)
Don't hesitate to make comments if you want, though.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python
Stephen Paul Chappell added the comment:
If my program needed to know if an object is iterable, it would be tempting to
define and call the following function instead of using
collections.abc.Iterable:
def iterable(obj):
try:
iter(obj)
except TypeError:
Roundup Robot added the comment:
New changeset 1c9aa4f68f2b by Antoine Pitrou in branch 'default':
Issue #18608: Avoid keeping a strong reference to the locale module inside the
_io module.
http://hg.python.org/cpython/rev/1c9aa4f68f2b
--
nosy: +python-dev
Antoine Pitrou added the comment:
Thanks Brett for reviewing. This is now pushed.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18608
Roundup Robot added the comment:
New changeset a381721299a3 by Antoine Pitrou in branch '3.3':
Issue #18589: fix hyperlinking of type slots (tp_*)
http://hg.python.org/cpython/rev/a381721299a3
New changeset 36ff479e429c by Antoine Pitrou in branch 'default':
Issue #18589: fix hyperlinking of
Roundup Robot added the comment:
New changeset bb546f6d8ab4 by Antoine Pitrou in branch '2.7':
Issue #18589: fix hyperlinking of type slots (tp_*)
http://hg.python.org/cpython/rev/bb546f6d8ab4
--
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18589
___
Antoine Pitrou added the comment:
Ok, the patch doesn't apply cleanly but looks good regardless.
(although I wonder whether you really reclaim significant stuff here: most C
extension dicts should be mostly references to C methods and types)
--
assignee: loewis -
nosy: +pitrou
type:
Antoine Pitrou added the comment:
I will still empty modules_by_index rather than Py_CLEAR it, though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10241
___
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10241
___
Roundup Robot added the comment:
New changeset 62658d9d8926 by Antoine Pitrou in branch 'default':
Issue #10241: Clear extension module dict copies at interpreter shutdown.
http://hg.python.org/cpython/rev/62658d9d8926
--
nosy: +python-dev
___
Python
Antoine Pitrou added the comment:
By the way, you may be interested to learn that the patch in issue10241 has
made things quite a bit better now: C extension modules can be collected much
earlier.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 0f17aed78168 by Antoine Pitrou in branch '2.7':
Fix tkinter regression introduced by the security fix in #16248.
http://hg.python.org/cpython/rev/0f17aed78168
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
That would give you a false positive, though. It would return True for the 'y'
in my example, which is not iterable. So Iterable's behavior here is an
example of the Python design rule resist the temptation to guess.
As Terry said, new classes should
Antoine Pitrou added the comment:
I've committed a fix to 2.7 (I hope it's really a fix, since I don't know how
to test it).
I'll let Benjamin and Barry decide whether to backport to 2.6 and 3.2.
As for 3.1, it's pretty much dead.
--
priority: release blocker - deferred blocker
stage:
New submission from Chris Curvey:
on http://docs.python.org/2/library/multiprocessing.html, there is a bit about
how to use a Pool properly, which looks like this
pool = Pool(processes=4) # start 4 worker processes
result = pool.apply_async(f, [10])
What this neglects to mention
Changes by Catalin Iacob iacobcata...@gmail.com:
--
nosy: +catalin.iacob
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
___
John Jefferies added the comment:
On 01/08/2013 12:09, Tim Golden wrote:
Tim Golden added the comment:
I propose to close this one: using Python 3.3 on Win7 I can successfully stat
NTFS Junctions. Is there any remaining issue?
--
___
Python
New submission from Antoine Pitrou:
The site module patches the builtins module unless Python is run with -S.
Unfortunately, this means the builtins dict then keeps the site module globals
alive until the end of interpreter shutdown, preventing the garbage collection
of many other objects or
Catalin Iacob added the comment:
In reply to msg168184, LIBDIR is set to include lib64 instead of lib because
openSUSE explicitly does it that way in their multilib implementation.
More specifically, the CONFIG_SITE environment variable is set to
/usr/share/site/x86_64-unknown-linux-gnu which
New submission from Michael Foord:
As reported at: http://code.google.com/p/mock/issues/detail?id=209
from unittest import mock
[107971 refs]
mock.mock_open
function mock_open at 0x10cff9d20
[107974 refs]
a = mock.mock_open()
[109965 refs]
a.reset_mock()
...
--
assignee:
Antoine Pitrou added the comment:
Reopening. This seems to produce segfaults on several of the buildbots, e.g.:
http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/8947
http://buildbot.python.org/all/builders/x86%20Windows%20Server%202003%20%5BSB%5D%203.x/builds/1257
Maciej Bliziński added the comment:
Here's the output. After that output -- it hangs.
== CPython 2.7.5 (default, Jul 30 2013, 01:41:03) [GCC 4.6.3]
== Solaris-2.9-sun4u-sparc-32bit-ELF big-endian
==
1 - 100 of 138 matches
Mail list logo