Roundup Robot added the comment:
New changeset 426a7046cdb0 by Ned Deily in branch '2.7':
Issue #20939: Use www.example.com instead of www.python.org to avoid test
http://hg.python.org/cpython/rev/426a7046cdb0
New changeset 31e42208eb99 by Ned Deily in branch '3.4':
Issue #20939: Backout
Roundup Robot added the comment:
New changeset b533cc11d114 by Ned Deily in branch '3.4':
Issue #20939: remove stray character from comment
http://hg.python.org/cpython/rev/b533cc11d114
New changeset ff27cb871b16 by Ned Deily in branch 'default':
Issue #20939: merge from 3.4
Changes by Ned Deily n...@acm.org:
--
assignee: - ned.deily
nosy: +ned.deily
stage: - needs patch
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21069
___
Christian Bachmaier added the comment:
Sorry guys, library loading of a freezed binary is different to interpreter
mode. This is a bug in freeze, or at least an undocumented missing feature of
freeze. This is no side discussion.
And, in Python 3.2 this was working! As described above, just
Martin v. Löwis added the comment:
Christian: Please understand that it was not helpful to post into this issue.
The issue discussed here is separate from the issue you are having. We prefer a
strict one issue at a time policy in this tracker.
So when this issue gets closed because
STINNER Victor added the comment:
Hi, I have a project called astoptimizer which does the same job than the
CPython peephole optimizer, but it is implemented in Python.
To avoid this issue (create an huge object and then discard it because it is
too large), I have a check_binop_cst function
Roundup Robot added the comment:
New changeset adf1e04478b4 by Ned Deily in branch '3.4':
Issue #21069: Temporarily use www.google.com while investigating
http://hg.python.org/cpython/rev/adf1e04478b4
New changeset 8d4cace71113 by Ned Deily in branch 'default':
Issue 21069: merge from 3.4
Tobias Klausmann added the comment:
Hi!
On Tue, 25 Mar 2014, Tuomas Savolainen wrote:
Created a patch that adds notice of using shell=True and iterable to the
documentation. Please do comment if the formatting is wrong (this my first
documentation patch).
I'd use articles, i.e. and a
Marc-Andre Lemburg added the comment:
Christian, please open a separate ticket for your problem.
This ticket is about getting freeze, the tool itself, working,
not any other issue you may find with the resulting frozen binary.
Thanks,
--
Marc-Andre Lemburg
eGenix.com
--
Ned Deily added the comment:
After pushing the changes for Issue20939, many of the buildbots started
experiencing the test_fileno failure using www.example.com. The interesting
thing is that not all of them do, including my primary development system (OS X
10.9) which is why I didn't see a
Ned Deily added the comment:
I've pushed the changes to 2.7, 3.4, and default. That has exposed a new
intermittent failure of test_fileno in test.test_urllibnet (see Issue21069).
I'll leave this issue open until that is resolved. And I'll leave it up to the
respective release managers to
Ned Deily added the comment:
After looking at why the 2.7 version of the test does not fail, the problem
became apparent. In 2.7, test_errno tests urlopen() of the original deprecated
urllib module. In 3.x, the test was ported over but now uses urlopen() of
urllib.request which is based on
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21069
___
Wichert Akkerman added the comment:
I can reproduce this on Both OSX 10.9 and Ubuntu 12.04:
import mimetypes
mimetypes.guess_extension('image/jpeg')
'.jpe'
mimetypes.init()
mimetypes.guess_extension('image/jpeg')
'.jpeg'
The same thing happens for Python 3.4:
Python 3.4.0rc3 (default, Mar
R. David Murray added the comment:
Also, the see below sentence is missing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20344
___
___
Wichert Akkerman added the comment:
Here is a related question on SO:
http://stackoverflow.com/questions/352837/how-to-add-file-extensions-based-on-file-type-on-linux-unix
--
nosy: +wichert
___
Python tracker rep...@bugs.python.org
Tuomas Savolainen added the comment:
Corrected the spelling of the patch.
--
Added file: http://bugs.python.org/file34635/20344_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20344
New submission from Brandon Rhodes:
In Python 3, fileinput.input() returns str lines whether the data is
coming from stdin or from a list of files on the command line. But if
input(mode='rb') is specified, then its behavior becomes inconsistent:
lines from stdin are delivered as already-decoded
Antoine Pitrou added the comment:
Not only is a lot of memory allocated but it also eats quite a bit of CPU time.
--
nosy: +pitrou
stage: - needs patch
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21074
Brett Cannon added the comment:
So as-is, this won't help with startup as we already make sure that no
unnecessary modules are loaded during startup. But one way we do that is
through local imports in key modules, e.g. os.get_exec_path(). So what we could
consider is instead of doing a local
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: -yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20739
___
___
Roundup Robot added the comment:
New changeset 0a8e3c910c0a by Yury Selivanov in branch 'default':
inspect.signature: Make Signature and Parameter picklable. Closes #20726
http://hg.python.org/cpython/rev/0a8e3c910c0a
--
nosy: +python-dev
resolution: - fixed
stage: -
Roundup Robot added the comment:
New changeset c2b94f891c88 by Yury Selivanov in branch 'default':
inspect.signature: Use enum for parameter kind constants. Closes #19573
http://hg.python.org/cpython/rev/c2b94f891c88
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
STINNER Victor added the comment:
Why not backporting this change to Python 3.4? Would it break something?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20726
___
Antoine Pitrou added the comment:
Picklability is more of a new feature than a bugfix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20726
___
New submission from Giampaolo Rodola':
Relevant discussion + BDFL approval:
https://mail.python.org/pipermail/python-ideas/2014-March/027286.html
Patch (not tested on Windows) is in attachment.
--
components: Library (Lib)
files: signals.patch
keywords: patch
messages: 214959
nosy:
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Added file: http://bugs.python.org/file34637/signals.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Removed file: http://bugs.python.org/file34637/signals.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
Guido van Rossum added the comment:
OK, somebody please review this (not me).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
___
Changes by Guido van Rossum gu...@python.org:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
___
Roundup Robot added the comment:
New changeset 8a4e44473fdd by Yury Selivanov in branch 'default':
inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373
http://hg.python.org/cpython/rev/8a4e44473fdd
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
___
Python-bugs-list
Yury Selivanov added the comment:
If nobody has any objections on this, I'm going to commit this in 3.5 soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20334
___
New submission from Garrett Grimsley:
A circle is supposed to draw upon a click event, but if speed is set to 0 it
appears that the circle fails to draw and all existing lines are erased.
A screenshot of the behavior with radius = 20 can be seen here:
http://i.imgur.com/y7z87AN.png This state
Roundup Robot added the comment:
New changeset bcc77493249c by Yury Selivanov in branch 'default':
asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668
http://hg.python.org/cpython/rev/bcc77493249c
--
nosy: +python-dev
resolution: - fixed
stage: -
Eric Snow added the comment:
Thanks, Yury!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17373
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset 3f9a81297b39 by Yury Selivanov in branch 'default':
inspect.signature: Improve repr of Signature and Parameter. Closes #20378
http://hg.python.org/cpython/rev/3f9a81297b39
--
nosy: +python-dev
resolution: - fixed
stage: test needed -
New submission from Yuriy Taraday:
We're going to use BaseManager for simple secure local RPC and for the secure
part we can't use pickle, so we have to use serializer argument to switch to
xmlrpclib.
We need to be sure that argument won't go away so we need it to be documented
and supported
Brett Cannon added the comment:
Is there any reason it isn't documented, Richard? And are there proper tests?
--
nosy: +brett.cannon, sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21078
New submission from Brandon Rhodes:
Most attachments (in my inbox, at least) specify a filename, and thus
have a Content-Disposition header that looks like:
Content-Disposition: attachment; filename=attachment.gz
In fact, this sample header was generated by the new add_attachment()
method in
Guido van Rossum added the comment:
I think this is reasonable to also commit to the 3.4 branch so it will appear
in 3.4.1.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20668
___
Brandon Rhodes added the comment:
Oh - this also, happily, explains why iter_attachments() is ignoring
all of the attachments on my email: because it internally relies upon
is_attachment to make the decision. So this fix will also make
iter_attachments() usable!
--
Brandon Rhodes added the comment:
Okay, having looked at the source a bit more it would probably make
more sense to use _splitparam() instead of doing the split manually.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21079
Éric Araujo added the comment:
Not sure if 3.2 is still open to security fixes.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18709
___
Brandon Rhodes added the comment:
Given that methods like get_param() already exist for pulling data out of
the right-hand-side of the ';' in a parameterized email header, would it
be amiss for EmailMessage to also have a method that either returns
everything to the left of the semicolon, or
Antoine Pitrou added the comment:
hg annotate shows it dates back to 4f0b7acffc7d by Guido, with the following
diff:
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -150,6 +150,10 @@
C API
-
+- PyThreadState_GetDict() was changed not to raise an exception or
+
Antoine Pitrou added the comment:
(but you're right, we could add a comment explaining this)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21073
___
Guido van Rossum added the comment:
No, I haven't changed my mind. Feel free to add a comment explaining this. :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21073
___
R. David Murray added the comment:
That facility already mostly exists. The bug is that the code in question
doesn't use it.
m['Content-Disposition'].content_disposition
'attachment'
m['Content-Disposition'].params
{'filename': 'attachment.gz'}
On the other hand, looking at that it is
Brett Cannon added the comment:
Just the synopsis lines for the modules.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21063
___
___
Angad Singh added the comment:
Interested in taking this up as my first patch -
@brett - are you only talking about the :synopsis: or the occurrence of This
module at the beginning of the description as well?
-angad
--
nosy: +angad
___
Python
Angad Singh added the comment:
Not a lot of occurrences if I only look at the synopsis. Attaching a diff.
Also saw a weird This subpackage in apiref.rst line 1767. Fix that too?
--
keywords: +patch
Added file: http://bugs.python.org/file34639/this_module_doc_fix.patch
Brett Cannon added the comment:
Sure, if you are just looking for This module you won't find very many
instances. The bug is more about doing a sweep through *every* module's
synopsis and just cleaning them up to read better. The this module instance
for linecache is just an example of why a
Roundup Robot added the comment:
New changeset 07984815003f by Yury Selivanov in branch '3.4':
asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668
http://hg.python.org/cpython/rev/07984815003f
--
___
Python tracker
Yury Selivanov added the comment:
Guido, good idea. Committed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20668
___
___
Python-bugs-list
Charles-François Natali added the comment:
This patch can't be reviewed: please re-generate without --git.
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
Roundup Robot added the comment:
New changeset 3de2e729d0fb by Yury Selivanov in branch 'default':
inspect: Fix getcallargs() to raise correct TypeError
http://hg.python.org/cpython/rev/3de2e729d0fb
New changeset 070dfca74610 by Yury Selivanov in branch '3.4':
inspect: Fix getcallargs() to
Yury Selivanov added the comment:
Fixed for 3.4.1 and 3.5.
Thank you Jeremiah!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20816
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
___
Python-bugs-list
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18932
___
Roundup Robot added the comment:
New changeset 35302cc4fc93 by Yury Selivanov in branch 'default':
inspect: Fix getcallargs() to fail correctly if more than 3 args are missing.
http://hg.python.org/cpython/rev/35302cc4fc93
New changeset 9f06cbb7962b by Yury Selivanov in branch '3.4':
inspect:
Yury Selivanov added the comment:
Fixed for 3.4.1 and 3.5.
Thanks for the contribution!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20817
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Added file: http://bugs.python.org/file34640/signals.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
R. David Murray added the comment:
Here's patch.
--
keywords: +patch
Added file: http://bugs.python.org/file34641/is_attachment.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21079
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Removed file: http://bugs.python.org/file34640/signals.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Added file: http://bugs.python.org/file34642/signals.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
Guido van Rossum added the comment:
Why can't this be fixed in 3.4.1? It isn't an API change.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18932
___
Giampaolo Rodola' added the comment:
This time I made it without --git but that didn't help either.
Not sure what to do. :-\
Note: the devguide recommends using --git BTW:
http://docs.python.org/devguide/committing.html
Should that be changed?
--
Yury Selivanov added the comment:
So... should we expose two keyword only parameters for
Signature.from_callable() and signature():
- 'follow_wrapped=True' to follow __wrapped__ chains;
- 'keep_bound_arg=False' to skip/include first bound arg?
--
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Removed file: http://bugs.python.org/file34642/signals.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
New submission from STINNER Victor:
With the current asyncio API, it's not possible to implement the shell command
ls | wc -l in Python: connect the stdin of a consumer to the stdin of a
producer.
--
messages: 214994
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity:
R. David Murray added the comment:
I was going to open new issue for adding 'value', but looking at the parsing
code I see why I didn't add one. The way the new parser works it really wants
to know the actual structure of the value, it doesn't have a good way to treat
it as generic. We
Guido van Rossum added the comment:
How do you do that with the subprocess module, and why doesn't that work with
asyncio?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21080
___
Brandon Rhodes added the comment:
Understood. I wonder where in the documentation the ability to get the content
disposition should wind up? I am almost tempted to suggest a
get_content_disposition() method that parallels get_content_type(), mostly to
avoid having to document the asymmetry
Josh Rosenberg added the comment:
It's not part of the PEP, but what happens with the new syntax if there is an
existing exception context? Some utilities (e.g. functools.lru_cache) use
dict.get over a try/except because they operate under the assumption that they
may be invoked within an
STINNER Victor added the comment:
How do you do that with the subprocess module
Something like that:
---
import subprocess
ls = subprocess.Popen([ls, -1], stdout=subprocess.PIPE)
wc = subprocess.Popen([wc, -l], stdin=ls.stdout)
ls.wait()
wc.wait()
---
and why doesn't that work with asyncio?
Guido van Rossum added the comment:
Oh, I see. Given that it is possible to do using event loop methods, why don't
you write up a complete implementation and then propose to add that to the
asyncio.subprocess module?
--
___
Python tracker
Josh Rosenberg added the comment:
There is a similar, (unfixed?) bug, #14156, in argparse as well. Seems like a
common failing in the move to Python 3; std*.buffer was introduced, but none of
the places that use it were updated, so they all became str only.
--
nosy: +josh.rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14156
___
___
R. David Murray added the comment:
Well, that's why is_attachment exists. I wouldn't be averse to adding
get_content_disposition if nobody objects, though.
The attributes are on the headers because the data really is attributes of the
parsed headers, but the more useful user API is the
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Added file: http://bugs.python.org/file34643/signals2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
Giampaolo Rodola' added the comment:
OK, it appears it works now. Sorry for the notification noise.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
___
Brandon Rhodes added the comment:
I agree that is_attachment supports the most common use-case of people who need
to inspect the content disposition!
But people implementing heavyweight tools and email clients might additionally
need to distinguish between a MIME part whose disposition is
Roundup Robot added the comment:
New changeset 74faca1ac59c by Ned Deily in branch '2.7':
Issue #6676: Ensure a meaningful exception is raised when attempting
http://hg.python.org/cpython/rev/74faca1ac59c
New changeset 9e3fc66ee0b8 by Ned Deily in branch '3.4':
Issue #6676: Ensure a meaningful
STINNER Victor added the comment:
Oh, I see. Given that it is possible to do using event loop methods, why
don't you write up a complete implementation and then propose to add that to
the asyncio.subprocess module?
I don't know that a whole new implementation is needed. I guess that a
Thomas Wouters added the comment:
The implementation in the patch preserves the exception context. It's probably
the thing that took the most code, and it's why there's two new opcodes in the
patch :) It's covered in the tests, too.
--
___
Python
Ned Deily added the comment:
If there are no objections, I'd like to commit this cleanup soon. It should
make things a bit easier for people testing IDLE from development builds on OS
X and fix some long-standing bugs when linking with the Tk X11 variant on OS X.
--
nosy:
Guido van Rossum added the comment:
But how is the first call supposed to know that you don't want a StreamReader?
Or the second that you do want one? Maybe we need a new constant instead of
PIPE that means leave it hanging?
--
___
Python tracker
Terry J. Reedy added the comment:
If I understand the Bindings.py patch, the fragility changed from If you edit
menudefs, edit the Mac block that follows to If you change (e sections of)
menudefs, edit macosxSupport.overrideRootMenu. That seems like a wash to me,
except for the narrowing down
Ned Deily added the comment:
Applied for release in 3.5.0, 3.4.1 and 2.7.7. Thanks, everyone!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.5 -Python 3.3
___
Python tracker
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21080
___
___
New submission from Jean Christophe André:
In Python version 2.x and at least 3.2 there no Vietnamese encoding support for
TCVN 5712:1993.
This encoding is currently largely used in Vietnam and I think it would be
usefull to add it to the python core encodings.
I already wrote some codec
Thomas Kluyver added the comment:
For future reference, cx_Freeze ships its own copy of ModuleFinder, so it
doesn't depend on the stdlib copy. This issue was fixed there some time around
the release of Python 3.3.
I realised recently that this is based on code in the stdlib, and I've been
R. David Murray added the comment:
OK. If you would be willing to open a feature request for that, that would be
great.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21079
___
Nikolaus Rath added the comment:
I'm attaching a patch that enables TextIOWrapper to work with bytes-like
objects from the underlying file descriptor.
The code changes are pretty small, without introducing any significant
additional complexity.
For streams providing bytes objects, this patch
Changes by Nikolaus Rath nikol...@rath.org:
Removed file: http://bugs.python.org/file34645/issue21057.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21057
___
Changes by Nikolaus Rath nikol...@rath.org:
Added file: http://bugs.python.org/file34646/issue21057.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21057
___
Roundup Robot added the comment:
New changeset f551740c26b6 by Ned Deily in branch '2.7':
Issue #17654: Ensure IDLE menus are customized properly on OS X for
http://hg.python.org/cpython/rev/f551740c26b6
New changeset 67a7a49e7b78 by Ned Deily in branch '3.4':
Issue #17654: Ensure IDLE menus
Ned Deily added the comment:
Thanks for the review, Terry. The reasons for moving the menders changes are
two. As noted in the comments, the menudefs were being customized early in
IDLE initialization before calling Tk to create the root object and, therefore,
we did not know at that point
Ethan Furman added the comment:
Results from the first two tests in my test script:
--
'WithOut' object has no attribute 'not_here'
looking up not_here
looking up huh
'With' object has no attribute 'not_here'
--
stage: test needed - patch
1 - 100 of 104 matches
Mail list logo