Gregory P. Smith added the comment:
I'm running into this on 2.7.3 with code that worked fine on 2.6.5.
The problem appears to be caused by a 'Host' http header that has a unicode
type for the hostname:port value.
Encoding header values makes sense though I haven't yet examined the patch in
New submission from Hans Larsen:
Med venlig hilsen:
Hans Larsen
Galgebakken Sønder 4-11A
DK-2620 Albertslund
Danmark/Danio
I has found a bug in Python3.3 on Windows!
Why are all 3 try-statements equal?
I don’t see a “..During handling of above exception, another exception occured:
...”
Where is
Mark Dickinson added the comment:
Please could you give a coherent description of the behaviour you think is a
bug. Include: (1) what you did, (2) what results you got (including
tracebacks for exceptions), (3) what results you expected to get.
--
nosy: +mark.dickinson
Mark Dickinson added the comment:
Here's the contents of the .rtf file:
PythonWin 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit
(AMD64)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for
further copyright information.
try:
... 1/0
Roundup Robot added the comment:
New changeset 2e2e7f398864 by Ezio Melotti in branch '2.7':
#16470: mention set and dict comprehension in the tutorial. Patch by Yongzhi
Pan.
http://hg.python.org/cpython/rev/2e2e7f398864
--
nosy: +python-dev
___
Ezio Melotti added the comment:
Fixed, thanks for the patch!
I also rephrased the sentence on 3.x.
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Thomas Kluyver added the comment:
It seems pretty arbitrary and newcomer-unfriendly to decide that Python doesn't
support running setup.py inside IDLE.
Exhibit A: confused newcomer trying to install distribute, getting unhelpful
error message.
Xavier de Gaye added the comment:
I was bitten by this behavior while, new to the importlib library, I
was trying to understand if one has to call recursively find_loader
for a dotted module name (in the way it must be done when using
imp.find_module), since the documentation on find_loader is
Stefan Krah added the comment:
New patch with docs. I've eliminated the unused context arg from canonical(). I
can't possibly imagine that anyone uses it (or
that anyone uses canonical() at all for that matter).
--
Added file: http://bugs.python.org/file28009/issue15783-all-2.diff
Ramchandra Apte added the comment:
Also, please report bugs in English.
(read the devguide to learn more)
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16491
___
Martin v. Löwis added the comment:
That looks like a bug/missing feature in PythonWin to me, which doesn't print
__context__ properly. Note: I haven't tested PythonWin to confirm.
Hans: is the output also incorrect in IDLE, or a command line shell? If no,
then this isn't a bug in Python
Ramchandra Apte added the comment:
+1 on OverflowError being a subclass of ValueError
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16483
___
Stefan Krah added the comment:
I don't particularly like OverflowError in any situation where the
potential overflow is detected *before* it actually happens. This is
another example:
x = [1]*
Traceback (most recent call last):
File stdin, line 1, in module
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16483
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16480
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16465
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15346
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16490
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16487
___
___
Roundup Robot added the comment:
New changeset 358be7742377 by Brett Cannon in branch '3.3':
Issue #16489: Make it clearer that importlib.find_loader() requires
http://hg.python.org/cpython/rev/358be7742377
New changeset ba1d7447bd1b by Brett Cannon in branch 'default':
Merge fix for #16489
Antoine Pitrou added the comment:
Can't right now. It's only relevant for pcbuild anyway so you can test
it for Unix if you want without fear. Don't worry, I always give my
patches a cleanup before committing them.
I don't want to review a patch if you tell me that it has problematic stuff
New submission from Brett Cannon:
To make using importlib.find_loader() easier, there should be a flag that says
to automatically import all parent packages for the desired submodule so as to
not force the user to do it::
def find_loader(name, path=None, *, load_parents=False): ...
That
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - duplicate
status: open - pending
superseder: - IDLE and Command line present different behavior for sys.stdin
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
I clarified the wording in 3.3 and default. I also opened issue #16492 to add a
keyword-only argument to find_loader() to have it import parent packages for
you if you so desire.
--
resolution: invalid - fixed
stage: - committed/rejected
Serhiy Storchaka added the comment:
Since all previous changes were dispense with tests, I don't see why it should
become an obstacle for this patch. Please review. This patch provides a
simple and reliable solution for some other issues (mentioned in msg172685
issues and issue12967).
Brett Cannon added the comment:
So at this point you should use inspect.signature(), not getfullargspec().
With that you could do this if you either allowed setting the __signature__
attribute and then provided code that would set it, made __signature__ a
property that returned the Signature
Antoine Pitrou added the comment:
Here is a patch for 3.x. It unify behavior of Python and C
implementations and unify behavior on 32- and 64-bit platforms. For
backward compatibility Pickler can pickle up to 2G data, but Unpickler
can unpickle up to 4G on 64-bit.
I agree the right
Antoine Pitrou added the comment:
I'd like to add that anyone wanting to serialize large data will certainly be
using _pickle (or its ancestor cPickle), since using pickle.py is probably
excruciatingly slow. Meaning we should favour preserving _pickle/cPickle's
behaviour over preserving
Vinay Sajip added the comment:
as far as I know virtualenv does not create links for local/bin and friends
either.
AFAIK it never used to, but it seems to do so since 1.6.3, in an attempt to fix
a problem with the posix_local install scheme. I just tested with virtualenv
1.6.4, and when I
Vinay Sajip added the comment:
Whoops, mouse glitch led to components being wrongly set.
--
components: +Library (Lib) -2to3 (2.x to 3.x conversion tool), Benchmarks,
Build, Cross-Build, ctypes
___
Python tracker rep...@bugs.python.org
Changes by Larry Hastings la...@hastings.org:
--
assignee: - larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16490
___
___
Python-bugs-list
Brett Cannon added the comment:
I think we are as close as we are going to get with PEP 3018 being implemented.
if profile/cProfile ever get merged that is great (issue #16492), but I'm not
holding my breath and thus I am closing this issue.
--
dependencies: -Merge profile/cProfile
Larry Hastings added the comment:
I'm working on a solution for this--expect an announcement on c.l.p-d in, oh, a
week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16490
___
Brett Cannon added the comment:
Another name for the method I thought of last night was
parse_bytecode_container().
People like that more? That would lead to new terminology to distinguish
bytecode ala dis module compared to bytecode file format ala importlib that
makes it clear that what is
Serhiy Storchaka added the comment:
The issue is not only in difference between Python and C implementations, but
also between 32-bit and 64-bit.
pickle.py on 32-bit accepts data up to 2G.
pickle.py on 64-bit accepts data up to 2G.
_pickle.c on 32-bit accepts data up to 2G.
_pickle.c on 64-bit
Roundup Robot added the comment:
New changeset 333fe4c4897a by Ezio Melotti in branch '2.7':
#16420: document a way to escape metacharacters in glob/fnmatch.
http://hg.python.org/cpython/rev/333fe4c4897a
New changeset 168f36c2b5ea by Ezio Melotti in branch '3.2':
#16420: document a way to
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
Removed message: http://bugs.python.org/msg175755
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16420
___
Martin v. Löwis added the comment:
IMO, the right solution is to finish PEP 3154, and support large strings in the
format.
For the time being, I'd claim that signed length in the existing
implementations are just a bug, and that unsigned lengths are the intended
semantics of these opcodes. I
New submission from Brett Cannon:
Looks like Georg added the flag in 2010 after Python 2.7 was already out, so
this doesn't need to be backported.
The possible values are:
-1 : optimization level the interpreter is already executing with
0 : no optimization
1 : -O
2 : -OO
--
Ezio Melotti added the comment:
Finalized!
--
assignee: docs@python - ezio.melotti
priority: high - normal
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Kushal Das added the comment:
I will submit a patch if no one is working on it.
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16493
___
Brett Cannon added the comment:
We might want an keyword-only 'optimize' argument that maps to the compile()
function's 'optimize' argument.
--
dependencies: +Document the 'optimize' argument to compile()
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Here is a patch for 3.x which extends supported size to 4G on 64-bit.
--
Added file: http://bugs.python.org/file28010/pickle_nonportable_size.patch
___
Python tracker rep...@bugs.python.org
New submission from Brett Cannon:
With issue #15031 providing a way to take a bytecode file and get a code object
out of it, there should probably be a comparable method that takes a code
object and a path stats dict and returns the bytes to write out to a file.
This could also be a slight
Changes by Brett Cannon br...@python.org:
--
title: Method on importlib.SourceLoader for creating bytecode file
format/container - Add a ethod on importlib.SourceLoader for creating bytecode
file format/container
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
title: Add a ethod on importlib.SourceLoader for creating bytecode file
format/container - Add a method on importlib.SourceLoader for creating
bytecode file format/container
___
Python tracker
Serhiy Storchaka added the comment:
Thank you, Ezio. Can we now continue with issue8402?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16240
___
Brett Cannon added the comment:
I've decided against this as issues #15031 and #16494 will alleviate the need
to expose these functions.
--
dependencies: -Split .pyc parsing from module loading
resolution: - rejected
status: open - closed
___
Brett Cannon added the comment:
The story of impports from the C level is much more sane than back in the 2.6
days thanks to PyImport_Import, PyImport_ImportModuleLevelObject, and
PyImport_ImportModuleLevel.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open
Ezio Melotti added the comment:
The workaround is now documented.
I'm still not sure if this should still be added, or if it should be closed as
rejected now that the workaround is documented.
A third option would be adding it as a recipe in the doc, given that the whole
functions boils down
Brett Cannon added the comment:
What exactly is blocking this? From looking on PyPI it seems Jinja2, Pygments,
and Sphinx have all been ported to Python 3 at this point. Is it a matter of
porting any custom code in Doc/ to Python 3 and then updating the Makefile to
grab Python 3 versions of
Brett Cannon added the comment:
Closing as works for me due to lack of reply from OP.
--
resolution: - works for me
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15292
Changes by Brett Cannon br...@python.org:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15623
___
___
Python-bugs-list
Brett Cannon added the comment:
Should we just close this, Barry?
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13572
___
Brett Cannon added the comment:
This still an issue?
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4347
___
___
Changes by Brett Cannon br...@python.org:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4182
___
Roundup Robot added the comment:
New changeset d51665f9a416 by Ezio Melotti in branch 'default':
#11981: remove duplicate line. Patch by Johan Euphrosine.
http://hg.python.org/cpython/rev/d51665f9a416
--
nosy: +python-dev
___
Python tracker
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: - ezio.melotti
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
At some point this was fixed in importlib.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6526
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16456
___
___
Brett Cannon added the comment:
A quick search through typeobject.c in 2.7 didn't show any PyErr_WarnPy3k calls
that didn't have their return value checked or propagated.
--
resolution: - out of date
status: open - closed
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2744
___
Brett Cannon added the comment:
Been longer than a weekend. =)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8585
___
___
Python-bugs-list
Terry J. Reedy added the comment:
Thomas, please re-read the messages starting msg145215 where it was decided
that this is not an issue about setup.py in particular. There appears to now
only be a problem if IDLE is run without a subprocess, and that option may
disappear in 3.4 as unneeded.
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue850482
___
___
Python-bugs-list
Brett Cannon added the comment:
Never heard back from OP.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9761
___
Antoine Pitrou added the comment:
By the way, without looking too much at the patch, I think it would be cleaner
to let the certificate functions accept file-like objects, rather than adding
keydata/certdata arguments.
--
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1539925
___
___
Python-bugs-list
Antoine Pitrou added the comment:
OTOH, I also think that it won't matter much in practive: if you try to
unpickle a string with more than 2GiB on a 32-bit system, chances are
really high that you run out of memory.
Agreed. I think this issue is mostly about 64-bit systems, even though we
Terry J. Reedy added the comment:
Even though the title of #9290 says stdin, the patches are for all std**
streams, so should cover this.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12967
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12967
___
___
Éric Araujo added the comment:
I had forgotten that README.Emacs was moved to the devguide. Adding doc about
Vim support can be another bug report. Thanks.
--
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
Xavier de Gaye added the comment:
Thanks, this is great!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16489
___
___
Python-bugs-list mailing
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.3, Python 3.4 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8585
___
Éric Araujo added the comment:
A patch and test making sure that pydoc generates the right URIs for upper-case
modules would help.
--
assignee: docs@python -
nosy: +eric.araujo -docs@python
stage: - needs patch
title: Missing/broken documentation redirect for
Roundup Robot added the comment:
New changeset d6cd283bb4c2 by Ezio Melotti in branch '3.3':
#16157: fix links in the whatsnew files.
http://hg.python.org/cpython/rev/d6cd283bb4c2
New changeset 9a08c9443c54 by Ezio Melotti in branch 'default':
#16157: merge with 3.3.
Ezio Melotti added the comment:
This should be fixed now.
I linked to http://hg.python.org/cpython/file/3.2/Misc/NEWS for the 3.2
whatsnew and to http://docs.python.org/3.3/whatsnew/changelog.html and
http://docs.python.org/3.4/whatsnew/changelog.html for 3.3 and 3.4 respectively.
--
Mark Dickinson added the comment:
There's still a case where the return value isn't properly propagated: it's
the one marked by an 'XXX' in the source.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8627
Changes by Brett Cannon br...@python.org:
--
versions: -Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8585
___
Ezio Melotti added the comment:
There's also a Sphinx warning that should be fixed:
3.3/Doc/library/functions.rst:955: WARNING: undefined label: dir_fd (if the
link has no caption the label must precede a section header)
--
nosy: +ezio.melotti
___
Mark Dickinson added the comment:
It's line 3912 in the current source. The warning is always cleared, which is
the wrong thing to do if warnings should be turned into exceptions.
--
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
I can't find it, Mark, after searching through every XXX marker in a 2.7
checkout of Objects/typeobject.c .
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8627
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
dependencies: +upgrade to sphinx 1.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10224
___
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8787
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1545463
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2953
___
___
Python-bugs-list
Jan Duzinkiewicz added the comment:
Ok, didn't knew much about importlib, I can work on a patch but have a few
questions/suggestions:
1. For importlib, simply referencing the Using on Windows guide imo won't be
ok - the importlib sources show that the key being used is
Roundup Robot added the comment:
New changeset 27c20650aeab by Antoine Pitrou in branch 'default':
Issue #14631: Add a new :class:`weakref.WeakMethod` to simulate weak references
to bound methods.
http://hg.python.org/cpython/rev/27c20650aeab
--
nosy: +python-dev
Antoine Pitrou added the comment:
Committed, thank you!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14631
Mark Dickinson added the comment:
To clarify, here's the bug: the following code should raise an exception, but
doesn't:
iwasawa:cpython mdickinson$ ./python.exe -3
Python 2.7.3+ (2.7:333fe4c4897a, Nov 17 2012, 18:01:00)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type help, copyright,
Serhiy Storchaka added the comment:
Patch updated.
--
Added file: http://bugs.python.org/file28011/tkinter_quoting_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15861
___
Antoine Pitrou added the comment:
Hello,
Here are some comments about the patches:
1) poplib_01_socket_shutdown_v3.diff: looks fine to me
2) poplib_02_server_capabilities_v3.diff:
- please try to follow PEP 8 (i.e. `capa = {}` not `capa={}`)
- I think the capa() result should be a dict
Roundup Robot added the comment:
New changeset e9af9b1ca67e by Mark Dickinson in branch 'default':
Issue #16451: Refactor to remove duplication between range and slice in slice
index computations.
http://hg.python.org/cpython/rev/e9af9b1ca67e
--
nosy: +python-dev
Mark Dickinson added the comment:
For the refactoring, see issue #16451
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14794
___
___
Changes by Mark Dickinson dicki...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16451
___
Antoine Pitrou added the comment:
I agree that restoring the string interning behaviour would be a good thing.
However, I don't agree that supporting recursive objects and instantiation is
useful. marshal is specialized for code objects, and you shouldn't find any
recursive constants there.
Serhiy Storchaka added the comment:
Would with source = self.extractfile(tarinfo): work?
No. extractfile() can return an instance of custom class. But in 3.x this not
used at all.
Here are patches for 2.7 and 3.x.
--
keywords: +patch
Added file:
Roundup Robot added the comment:
New changeset 47ae836aa221 by Antoine Pitrou in branch 'default':
Issue #2771: !!
http://hg.python.org/test/rev/47ae836aa221
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset c7ce91756472 by Antoine Pitrou in branch '2.7':
Issue #15379: Fix passing of non-BMP characters as integers for the charmap
decoder (already working as unicode strings).
http://hg.python.org/cpython/rev/c7ce91756472
--
Antoine Pitrou added the comment:
Thanks for the backport, committed!
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15379
___
1 - 100 of 150 matches
Mail list logo