[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2012-11-17 Thread Gregory P. Smith
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

[issue16491] try-except-raise-bug

2012-11-17 Thread Hans Larsen
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

[issue16491] try-except-raise-bug

2012-11-17 Thread Mark Dickinson
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

[issue16491] try-except-raise-bug

2012-11-17 Thread 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

[issue16470] Backport set and dictionary comprehensions in tutorial to 2.7

2012-11-17 Thread Roundup Robot
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 ___

[issue16470] Backport set and dictionary comprehensions in tutorial to 2.7

2012-11-17 Thread Ezio Melotti
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

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2012-11-17 Thread Thomas Kluyver
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.

[issue16489] importlib find_loader returns a loader for a non existent module

2012-11-17 Thread Xavier de Gaye
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

[issue15783] decimal.localcontext(None) fails when using the C accelerator module

2012-11-17 Thread Stefan Krah
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

[issue16491] try-except-raise-bug

2012-11-17 Thread Ramchandra Apte
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 ___

[issue16491] try-except-raise-bug

2012-11-17 Thread Martin v . Löwis
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

[issue16483] Make int(float('inf')) raise ValueError rather than OverflowError.

2012-11-17 Thread Ramchandra Apte
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 ___

[issue16483] Make int(float('inf')) raise ValueError rather than OverflowError.

2012-11-17 Thread Stefan Krah
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

[issue16483] Make int(float('inf')) raise ValueError rather than OverflowError.

2012-11-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16483 ___ ___

[issue16480] pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin, lib} to virtualenv/{bin, lib}

2012-11-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16480 ___ ___

[issue16465] dict creation performance regression

2012-11-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465 ___ ___

[issue15346] Tkinter extention modules have no documentation

2012-11-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15346 ___ ___

[issue16490] inspect.getargspec() and inspect.getcallargs() don't work for builtins

2012-11-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16490 ___ ___

[issue16487] Allow ssl certificates to be speficfied from memory rather than files.

2012-11-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16487 ___ ___

[issue16489] importlib find_loader returns a loader for a non existent module

2012-11-17 Thread Roundup Robot
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

[issue16487] Allow ssl certificates to be speficfied from memory rather than files.

2012-11-17 Thread Antoine Pitrou
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

[issue16492] Add a load_parents argument to importlib.find_loader()

2012-11-17 Thread Brett Cannon
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

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2012-11-17 Thread Serhiy Storchaka
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

[issue16489] importlib find_loader returns a loader for a non existent module

2012-11-17 Thread Brett Cannon
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

[issue9290] IDLE and Command line present different behavior for sys.stdin

2012-11-17 Thread Serhiy Storchaka
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).

[issue16490] inspect.getargspec() and inspect.getcallargs() don't work for builtins

2012-11-17 Thread Brett Cannon
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

[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-17 Thread Antoine Pitrou
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

[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-17 Thread Antoine Pitrou
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

[issue16480] pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin, lib} to virtualenv/{bin, lib}

2012-11-17 Thread Vinay Sajip
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

[issue16480] pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin, lib} to virtualenv/{bin, lib}

2012-11-17 Thread Vinay Sajip
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

[issue16490] inspect.getargspec() and inspect.getcallargs() don't work for builtins

2012-11-17 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- assignee: - larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16490 ___ ___ Python-bugs-list

[issue2775] Implement PEP 3108

2012-11-17 Thread Brett Cannon
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

[issue16490] inspect.getargspec() and inspect.getcallargs() don't work for builtins

2012-11-17 Thread Larry Hastings
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 ___

[issue15031] Split .pyc parsing from module loading

2012-11-17 Thread Brett Cannon
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

[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-17 Thread Serhiy Storchaka
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

[issue16420] PEP 249 (DB-API 2.0) converted to reStructuredText

2012-11-17 Thread Roundup Robot
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

[issue16420] PEP 249 (DB-API 2.0) converted to reStructuredText

2012-11-17 Thread Ezio Melotti
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 ___

[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-17 Thread Martin v . Löwis
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

[issue16493] Document the 'optimize' argument to compile()

2012-11-17 Thread Brett Cannon
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 --

[issue16240] Document a way to escape metacharacters in glob/fnmatch

2012-11-17 Thread Ezio Melotti
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

[issue16493] Document the 'optimize' argument to compile()

2012-11-17 Thread Kushal Das
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 ___

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-17 Thread Brett Cannon
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

[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-17 Thread Serhiy Storchaka
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

[issue16494] Method on importlib.SourceLoader for creating bytecode file format/container

2012-11-17 Thread Brett Cannon
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

[issue16494] Add a ethod on importlib.SourceLoader for creating bytecode file format/container

2012-11-17 Thread Brett Cannon
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

[issue16494] Add a method on importlib.SourceLoader for creating bytecode file format/container

2012-11-17 Thread Brett Cannon
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

[issue16240] Document a way to escape metacharacters in glob/fnmatch

2012-11-17 Thread Serhiy Storchaka
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 ___

[issue16213] Expose private functions in marshal used by importlib

2012-11-17 Thread Brett Cannon
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 ___

[issue667770] import C API mess

2012-11-17 Thread Brett Cannon
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

[issue8402] Add a function to escape metacharacters in glob/fnmatch

2012-11-17 Thread Ezio Melotti
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

[issue10224] Build 3.x documentation using python3.x

2012-11-17 Thread Brett Cannon
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

[issue15292] import hook behavior documentation improvement

2012-11-17 Thread Brett Cannon
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

[issue15623] Init time relative imports no longer work from __init__.so modules

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15623 ___ ___ Python-bugs-list

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2012-11-17 Thread Brett Cannon
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 ___

[issue4347] Circular dependency causes SystemError when adding new syntax

2012-11-17 Thread Brett Cannon
Brett Cannon added the comment: This still an issue? -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4347 ___ ___

[issue4182] warnings.warn shows the wrong filename and line number for stacklevel of 0

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4182 ___

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2012-11-17 Thread Roundup Robot
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

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2012-11-17 Thread Ezio Melotti
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

[issue6526] importlib.import_module affects permissions of .pyc files subsequently created by import

2012-11-17 Thread Brett Cannon
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 ___

[issue16456] UnicodeDecodeError thrown for 'encode' operation on string

2012-11-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16456 ___ ___

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2012-11-17 Thread Brett Cannon
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

[issue2744] Fix test_cProfile

2012-11-17 Thread Brett Cannon
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 ___

[issue8585] zipimporter.find_module is untested

2012-11-17 Thread Brett Cannon
Brett Cannon added the comment: Been longer than a weekend. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8585 ___ ___ Python-bugs-list

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2012-11-17 Thread Terry J. Reedy
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.

[issue850482] Enhance frame handing in warnings.warn()

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue850482 ___ ___ Python-bugs-list

[issue9761] stale .pyc files aren't cleaned out

2012-11-17 Thread Brett Cannon
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 ___

[issue16487] Allow ssl certificates to be speficfied from memory rather than files.

2012-11-17 Thread Antoine Pitrou
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

[issue1539925] warnings in interactive sessions

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1539925 ___ ___ Python-bugs-list

[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-17 Thread Antoine Pitrou
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

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2012-11-17 Thread Terry J. Reedy
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

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2012-11-17 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12967 ___ ___

[issue9893] Removing the Misc/Vim/ files

2012-11-17 Thread Éric Araujo
É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

[issue16489] importlib find_loader returns a loader for a non existent module

2012-11-17 Thread Xavier de Gaye
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

[issue8585] zipimporter.find_module is untested

2012-11-17 Thread Terry J. Reedy
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 ___

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2012-11-17 Thread Éric Araujo
É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

[issue16157] Irrelevant references to Misc/News

2012-11-17 Thread Roundup Robot
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.

[issue16157] Irrelevant references to Misc/News

2012-11-17 Thread Ezio Melotti
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. --

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2012-11-17 Thread Mark Dickinson
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

[issue8585] zipimporter.find_module is untested

2012-11-17 Thread Brett Cannon
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 ___

[issue13424] Add examples for open’s new opener argument

2012-11-17 Thread Ezio Melotti
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 ___

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2012-11-17 Thread Mark Dickinson
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

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2012-11-17 Thread Brett Cannon
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

[issue10224] Build 3.x documentation using python3.x

2012-11-17 Thread Ezio Melotti
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 ___

[issue8787] warnings inside PyRun_SimpleString() display argv[1]

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8787 ___ ___ Python-bugs-list

[issue1545463] New-style classes fail to cleanup attributes

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1545463 ___ ___ Python-bugs-list

[issue2953] _zip_directory_cache untested and undocumented

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___ ___ Python-bugs-list

[issue16386] imp.find_module does not specify registry key it searches on windows

2012-11-17 Thread Jan Duzinkiewicz
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

[issue14631] Instance methods and WeakRefs don't mix.

2012-11-17 Thread Roundup Robot
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

[issue14631] Instance methods and WeakRefs don't mix.

2012-11-17 Thread Antoine Pitrou
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

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2012-11-17 Thread Mark Dickinson
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,

[issue15861] ttk.Treeview unmatched open brace in list

2012-11-17 Thread Serhiy Storchaka
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 ___

[issue4473] POP3 missing support for starttls

2012-11-17 Thread Antoine Pitrou
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

[issue16451] Remove duplication between slice_indices and compute_slice_indices

2012-11-17 Thread Roundup Robot
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

[issue14794] slice.indices raises OverflowError

2012-11-17 Thread Mark Dickinson
Mark Dickinson added the comment: For the refactoring, see issue #16451 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14794 ___ ___

[issue16451] Remove duplication between slice_indices and compute_slice_indices

2012-11-17 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16451 ___

[issue16475] Support object instancing and recursion in marshal

2012-11-17 Thread Antoine Pitrou
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.

[issue16477] tarfile fails to close file handles in case of exception

2012-11-17 Thread Serhiy Storchaka
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:

[issue2771] Test issue

2012-11-17 Thread Roundup Robot
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

[issue15379] Charmap decoding of no-BMP characters

2012-11-17 Thread Roundup Robot
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 --

[issue15379] Charmap decoding of no-BMP characters

2012-11-17 Thread Antoine Pitrou
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   2   >