Gabriel Nistor added the comment:
Thanks for the fast reply. The explanation seems valid, but the behavior is not
consistent with other high level languages, and also with plain reasoning. I
have a big java background experience and I am now with python for almost 3
years doing really hard
Serhiy Storchaka added the comment:
Feel free to change the patch as you see fit.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
___
Serhiy Storchaka added the comment:
LGTM.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17080
___
___
Python-bugs-list
New submission from lvroyce:
We create our customised manager which will fork child process with
baseManager. Because we registered SIGCHLD to reap the zombie for manager, we
found this causes baseManager raise RemoteError when called twice.(Test script
attached.)
After look at
Roundup Robot added the comment:
New changeset 6074530b526f by Serhiy Storchaka in branch '2.7':
Issue #1783: Remove declarations of nonexistent private variables.
http://hg.python.org/cpython/rev/6074530b526f
New changeset 349419bb6283 by Serhiy Storchaka in branch '3.2':
Issue #1783: Remove
Serhiy Storchaka added the comment:
Thank you for the report, Jukka Laurila.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1783
Ronald Oussoren added the comment:
The attached patch is a very rough prototype which seems to work (but wasn't
tested beyond running pydoc on a number of function(-like) objects.
With the patch the documentation for a callable defined in C but with a
__signature__ property shows argument
Changes by Richard Oudkerk shibt...@gmail.com:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17097
___
___
Python-bugs-list mailing
Changes by Stan Seibert s...@mtrr.org:
--
nosy: +Stan.Seibert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8713
___
___
Python-bugs-list mailing
New submission from Brett Cannon:
E.g. _frozen_importlib, builtins, signal.
--
components: Interpreter Core
messages: 181078
nosy: brett.cannon, theller
priority: normal
severity: normal
stage: test needed
status: open
title: Set __loader__ on modules imported by the C level
type:
New submission from Brett Cannon:
If __loader__ is None then ValueError is raised, but if it is not defined then
AttributeError is raised instead. Probably should harmonize around ValueError
even in the missing attribute case since __loader__ = None is equivalent to the
attribute not
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17098
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17099
___
___
R. David Murray added the comment:
Well, it is consistent with plain reasoning if you remember that (a) python is
a dynamic language and (b) python assignments do not return values (this is a
core principle in the language design), which means that (c) the chained
assignment form is a
Ram Rachum added the comment:
Does fixing this ticket require anything more than making a change in the
string that Python uses for this exception?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17032
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17098
___
___
Python-bugs-list mailing
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17099
___
___
Python-bugs-list mailing
Éric Araujo added the comment:
Let’s stay friends here :) Why not remove the existing patches here, export
the 8 changesets as patches, attach them here, let people comment? (I’m not
keen on having discussion outside of our system)
--
___
Python
Brett Cannon added the comment:
Should probably check the state of sys.modules in importlib._bootstrap._setup()
and see if the missing modules are there and then just retroactively set
__loader__ to BuiltinImporter (as is already done in that function for sys and
_imp):
Brett Cannon added the comment:
Should mention that this is probably no harder than changing a key getattr()
call to None (as pointed out by Nick).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17099
Changes by Brett Cannon br...@python.org:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17099
___
___
Python-bugs-list mailing
Brett Cannon added the comment:
Blog post I wrote explaining what I plan to do:
http://sayspy.blogspot.ca/2013/02/remember-to-use-super-in-your-abcs.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17093
New submission from Antoine Pitrou:
It can be useful to rotate an OrderedDict (for example when managing a circular
playlist). I haven't found any efficient way to do so from user code, without
poking at the internals.
Actually, I envision three methods:
OrderedDict.rotate(self, n):
Benjamin Ash added the comment:
Hi,
I am still seeing this issue even with the patches applied. I see 100% CPU
utilization, and strace shows the process is in same kind of select() loop as
msg139899.
Any help would be greatly appreciated.
Thanks,
-ben
strace output:
select(4, [3], [3],
Philip Thiem added the comment:
As an alternative, see http://bugs.python.org/issue10845
It contains a patch for the 3.X series which fixes the infinity loop.
Applying it to the 2.X series will fix the issue and make a change the
documentation unnecessary.
--
nosy: +pthiem
Philip Thiem added the comment:
Actually sorry, now that I reread the details a second time, I'm not sure that
is this the same deal. I'll just file a separate bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8094
New submission from Philip Thiem:
http://bugs.python.org/issue10845 also applies to the 2.X series.
this is multiprocessing on windows has issues with __main__.py
--
components: Windows
messages: 181090
nosy: pthiem
priority: normal
severity: normal
status: open
title: Multiprocessing
Changes by Philip Thiem ptth...@gmail.com:
--
title: Multiprocessing on Windows - __main__.py Multiprocessing on Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17101
___
Brett Cannon added the comment:
All cases but signal can be fixed by importlib._bootstrap._setup() by simply
iterating over sys.modules and setting __loader__. Nice and simple. Thanks,
abstraction!
The problem is signal who gives the finger to abstraction. That module gets
imported directly
Éric Araujo added the comment:
Barry, I read that passage in the PEP to explain why the default style uses
${}, but the bug here is about a Template class with an overriden placeholder
pattern.
--
nosy: +eric.araujo
___
Python tracker
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17069
___
___
Ezio Melotti added the comment:
Because this is a patch for the devguide, so we cannot use Rietveld for the
review.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17069
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 05747d3bcd9c by Brett Cannon in branch '3.3':
Issue #17098: Make sure every module has __loader__ defined.
http://hg.python.org/cpython/rev/05747d3bcd9c
New changeset 1f1a1b3cc416 by Brett Cannon in branch 'default':
Issue #17098: all modules
Brett Cannon added the comment:
OK, so my solution for signal worked. All fixed now. If any other modules pop
up with __loader__ not set from now on it's because they cheated on import. =)
--
assignee: - brett.cannon
resolution: - fixed
status: open - closed
Éric Araujo added the comment:
LGTM.
--
nosy: +eric.araujo
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17035
___
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17099
___
___
Python-bugs-list
Éric Araujo added the comment:
I have a busy week-end ahead but I could sneak a little time for this.
--
nosy: +doerwalter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16555
___
Glenn Linderman added the comment:
I think Bryant's request is reasonable, for consistency in functionality. If
line oriented operations are allowed on binary files, then a binary newline
value should be permitted at the time of open.
I think, for handling binary files, that it would also be
R. David Murray added the comment:
Anything we do here is a new feature.
I have no objection to adding features in this area myself, but I will note
that I was shot down for proposing (in another issue) that the newline
attribute for text files be allowed to be an arbitrary string.
Bryant added the comment:
While my original description of this issue discussed arbitrary strings, I'd
like to limit the scope of this issue down to just supporting the newline
parameter to builtin.open() for binary files, just as it's supported for
regular files. This adds no real new
Roundup Robot added the comment:
New changeset 0c5fa35c9f12 by Gregory P. Smith in branch '3.2':
Fixes Issue #6972: The zipfile module no longer overwrites files outside of
http://hg.python.org/cpython/rev/0c5fa35c9f12
New changeset 483488a1dec5 by Gregory P. Smith in branch '3.3':
Fixes Issue
Brett Cannon added the comment:
Looks like I spoke too soon. I realized I had not written a test so I did it
quickly and it turns out that while this is fixed for 3.3 it isn't for 3.4.
--
status: closed - open
___
Python tracker
Changes by Gregory P. Smith g...@krypto.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17098
___
___
Python-bugs-list
R. David Murray added the comment:
Well, it's a feature by our policy, since it currently works as documented.
Probably the first thing would be to get the opinion of someone who works on
the IO module, so I've nosied Antoine. Note that this was obviously a
conscious design decision, as it
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17100
___
___
Python-bugs-list
Thomas Heller added the comment:
I have only tried my code with 3.4; but still get problems with the modules
'builtins' and '_frozenimportlib'.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17098
Ralf Schmitt added the comment:
does anyone know if the same issue has been fixed in the tarfile module?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
Roundup Robot added the comment:
New changeset a5e7b38caee2 by Gregory P. Smith in branch '2.7':
Additional fix for Issue #12268: The io module file object writelines() methods
http://hg.python.org/cpython/rev/a5e7b38caee2
New changeset 2fd669aa4abc by Gregory P. Smith in branch '3.2':
STINNER Victor added the comment:
Oh, so we can now implement a version of writelines() using writev()!
2013/2/1 Roundup Robot rep...@bugs.python.org:
Roundup Robot added the comment:
New changeset a5e7b38caee2 by Gregory P. Smith in branch '2.7':
Additional fix for Issue #12268: The io
Gregory P. Smith added the comment:
it was easier to just take care of auditing the write calls as part of this
given the code change was directly related to it.
On Python 2.7 most of the write calls in the builtin file object
(Objects/fileobject.c) rather than the new io module use the libc
Changes by Gregory P. Smith g...@krypto.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12268
___
Roundup Robot added the comment:
New changeset 4a4688b865ff by Brett Cannon in branch '3.3':
Add a test for fix of issue #17098
http://hg.python.org/cpython/rev/4a4688b865ff
New changeset 19ea454ccdf7 by Brett Cannon in branch '3.3':
Issue #17098: Be more stringent of setting __loader__ on
Brett Cannon added the comment:
OK, 3.3 and 3.4 now have tests and verify everything is working fine.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17098
___
Brett Cannon added the comment:
OK, rewrote that blog post as Thomas pointed out my thinking was worrying about
stuff I shouldn't be:
http://sayspy.blogspot.ca/2013/02/remember-to-use-super-in-your-abcs.html
--
___
Python tracker
Thomas Heller added the comment:
I confirm that the bug is fixed, my test-code works now (a modulefinder using
importlib instead of imp to find modules).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17098
Thomas Heller added the comment:
Thanks for the very fast fix Brett :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17098
___
___
Brett Cannon added the comment:
And as part of this I need to update the docstrings to mention default
reactions.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17093
___
Brett Cannon added the comment:
Is this still an issue in (at least) 3.4 with the new I/O exceptions? And I
feel like there was another bug about this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13192
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13184
___
___
Python-bugs-list
Brett Cannon added the comment:
Did you still plan to write this code, Nick? Or were you just thinking about
loud and don't need this bug here anymore?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13306
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8623
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13819
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13829
___
___
Python-bugs-list
Brett Cannon added the comment:
Did you want to commit this patch yourself, Eric, since you have commit privs
now?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13124
___
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4010
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset d64e0cf5f1a7 by Ned Deily in branch '2.7':
Issue #16256: OS X installer now sets correct permissions for doc directory.
http://hg.python.org/cpython/rev/d64e0cf5f1a7
New changeset e8a1b5757067 by Ned Deily in branch '3.2':
Issue #16256: OS X
Brett Cannon added the comment:
Over time I have fixed this issue in various patches.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8754
___
Brett Cannon added the comment:
This would tie into PEP 432 at this point.
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12919
___
Ned Deily added the comment:
Thanks for the report and the patch. Committed for 2.7.4, 3.2.4, and 3.3.1.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.2, Python 3.3, Python 3.4
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14285
___
___
Python-bugs-list
Brett Cannon added the comment:
I'm closing this again as 3.3 actually starts up faster than 3.2 thanks to
importlib so this slowdown is no longer noticeable.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
I still think it would be a good feature to offer, but have no plans to
write it myself.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13306
___
Brett Cannon added the comment:
This is no longer a problem:
import imp
import collections
import collections.abc
module 'collections.abc' from
'/Users/bcannon/Developer/repo/cpython/py3k/Lib/collections/abc.py'
--
assignee: - brett.cannon
resolution: - out of date
status: open -
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12598
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13473
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14689
___
___
Python-bugs-list
Brett Cannon added the comment:
Turns out this was used in the wild and has now been fixed to be useful. =)
--
resolution: - works for me
status: open - closed
superseder: - importlib.machinery.ExtensionFileLoader cannot load several
modules from the same shared object
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12937
___
___
Python-bugs-list
Brett Cannon added the comment:
Would this still be useful to do? Thanks to my latest import talk I have
experience with graphviz but I don't want to waste my time if people don't need
it.
--
assignee: larry -
___
Python tracker
Brett Cannon added the comment:
Since you got this with a clean run and I had dev_in_a_box.py work for me in
November I'm closing this.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10342
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15369
___
___
Python-bugs-list
Éric Araujo added the comment:
Great!
--
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8754
___
___
Christopher Barker added the comment:
On Fri, Feb 1, 2013 at 2:08 PM, Ned Deily rep...@bugs.python.org wrote:
Thanks for the report and the patch. Committed for 2.7.4, 3.2.4, and 3.3.1.
Did I actually submit a patch? but thanks to you for getting it done
-- and all else you do for pythonmac.
Antoine Pitrou added the comment:
I think readline() is quite clear in its current intent (it reads a line, which
conventionally is delimited by '\n').
We mau want to add another method, say read_until_delimiter(), but it's not the
same as readline() ;-) I think it would be best for it to be
Ramchandra Apte added the comment:
Will attach patch when I get free (10 hours from now)
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17100
___
New submission from Gregory P. Smith:
Create a malicious .tar file with entries containing absolute or relative paths
and the tarfile module happily uses them as is without sanity checking.
filed in response to http://bugs.python.org/issue6972 which fixed the zipfile
module for this.
I'm
Gregory P. Smith added the comment:
yes, tarfile appears to have the same problem.
http://bugs.python.org/issue17102 filed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
Changes by Gregory P. Smith g...@krypto.org:
--
title: baseManager serve_client() not check EINTR when recv request -
multiprocessing BaseManager serve_client() does not check EINTR on recv
___
Python tracker rep...@bugs.python.org
Eric Snow added the comment:
Are you thinking of issue 15833?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13192
___
___
Python-bugs-list
Eric Snow added the comment:
Yeah, at some point I will. :) I've been pretty focused on implementing a
C-OrderedDict, which I'm (hopefully) wrapping up pretty soon. Once that
happens I'm going to revisit a bunch of the open tickets I have. If you want
to push this sooner than that, feel
Changes by Ralf Schmitt python-b...@systemexit.de:
--
nosy: +schmir
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17102
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 2274f3196a44 by Ned Deily in branch '2.7':
Issue #15587: Enable Tk high-resolution text rendering on Macs with
http://hg.python.org/cpython/rev/2274f3196a44
New changeset 7dfd84021494 by Ned Deily in branch '3.2':
Issue #15587: Enable Tk
Antoine Pitrou added the comment:
In 3.3 and 3.4, exceptions are not silenced anymore:
import resource
resource.setrlimit(resource.RLIMIT_NOFILE, (2, 100))
import encodings.idna
Traceback (most recent call last):
File stdin, line 1, in module
File frozen importlib._bootstrap, line 1584,
Ned Deily added the comment:
I've updated the plists for both IDLE.app and the framework Python.app to
enable the high-resolution rendering. That should affect IDLE.app and bin/idle
and any other Tkinter-based program, as long as they all are being run from a
framework build of Python such
Serhiy Storchaka added the comment:
It is trivial.
def rotate(od, n):
for i in range(n):
k, v = od.popitem(False)
od[k] = v
And those functions look too specialized.
--
nosy: +serhiy.storchaka
___
Python tracker
Serhiy Storchaka added the comment:
Michael, what's the status of your contributor form?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16601
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17102
___
___
1 - 100 of 101 matches
Mail list logo