New TkinterTreectrl URL

2012-11-17 Thread klappnase
The TkinterTreectrl project has now permanently moved to sourceforge and can be found at http://tkintertreectrl.sourceforge.net . The TkinterTreectrl package wraps the treectrl tk extension (http://tktreectrl.sourceforge.net) for use with Python/Tkinter. The treectrl widget allows to create

Python Script for Colorizing Traceroute Output

2012-11-17 Thread Jordan Bylsma
I'm looking into writing a python script that colorizes particular hops when using traceroute. Anyone run across something like this? I don't think it would be extremely difficult to write but some example code would help. Basically particular hops in traceroute output would match a table as

Re: Python Script for Colorizing Traceroute Output

2012-11-17 Thread garabik-news-2005-05
Jordan Bylsma jordan.byls...@gmail.com wrote: I'm looking into writing a python script that colorizes particular hops when using traceroute. Anyone run across something like this? I don't think it would be extremely difficult to write but some example code would help. shameless

Re: Catching exceptions from Python 2.4 to 3.x

2012-11-17 Thread Steven D'Aprano
On Sat, 17 Nov 2012 14:26:43 +1100, Cameron Simpson wrote: On 17Nov2012 03:12, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: | Is there some other trick to grab the current exception from inside an | except block? sys.exc_info ? Thanks, that is just what I was looking for.

Re: latin1 and cp1252 inconsistent?

2012-11-17 Thread buck
On Friday, November 16, 2012 4:33:14 PM UTC-8, Nobody wrote: On Fri, 16 Nov 2012 13:44:03 -0800, buck wrote: IOW: Microsoft's embrace, extend, extinguish strategy has been too successful and now we have to deal with it. If HTML content is tagged as using ISO-8859-1, it's more likely that it's

Re: module trace and counts

2012-11-17 Thread Steven D'Aprano
On Sat, 17 Nov 2012 09:25:02 -0800, rh wrote: Is it for or range that is executed 8000 times when I for i in range(3,8000,2): I'm sorry, I don't understand that question. Is it for what? What it are you talking about? If you run the code: for i in range(3, 8000, 2): pass the `for`

Re: Python Interview Questions

2012-11-17 Thread chinjannisha
Hi I had one doubt.. I know very little bit of python .I wanted to know when to use list,tuple,dictionary and set? Please reply me asap thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Script for Colorizing Traceroute Output

2012-11-17 Thread wrw
Don't forget that most firewalls don't decrement) the time-to-live number, and unless you REALLY know what to look for, are invisible. -Bill On Nov 17, 2012, at 10:04 AM, Jordan Bylsma jordan.byls...@gmail.com wrote: I'm looking into writing a python script that colorizes particular hops when

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

2012-11-17 Thread wrw
On Nov 17, 2012, at 10:04 AM, Jordan Bylsma jordan.byls...@gmail.com wrote: I'm looking into writing a python script that colorizes particular hops when using traceroute. Anyone run across something like this? I don't think it would be extremely difficult to write but some example code would

Re: latin1 and cp1252 inconsistent?

2012-11-17 Thread Ian Kelly
On Sat, Nov 17, 2012 at 11:08 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Sat, Nov 17, 2012 at 9:56 AM, b...@yelp.com wrote: should is a wish. The reality is that documents (and especially URLs) exist that can be decoded with latin1, but will backtrace with cp1252. I see this as a sign

Re: latin1 and cp1252 inconsistent?

2012-11-17 Thread Ian Kelly
On Sat, Nov 17, 2012 at 9:56 AM, b...@yelp.com wrote: should is a wish. The reality is that documents (and especially URLs) exist that can be decoded with latin1, but will backtrace with cp1252. I see this as a sign that a small refactorization of cp1252 is in order. The proposal is to

Re: module trace and counts

2012-11-17 Thread Dave Angel
On 11/17/2012 12:25 PM, rh wrote: Is it for or range that is executed 8000 times when I for i in range(3,8000,2): Nothing is executed 8000 times. I figure it at 3998 times. Anyway, neither the for nor the range is executed multiple times. Deciphering this depends on whether this is Python 2.x

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

2012-11-17 Thread Roy Smith
In article mailman.3774.1353175657.27098.python-l...@python.org, w...@mac.com wrote: On Nov 17, 2012, at 10:04 AM, Jordan Bylsma jordan.byls...@gmail.com wrote: I'm looking into writing a python script that colorizes particular hops when using traceroute. Anyone run across something like

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

2012-11-17 Thread Chris Angelico
On Sun, Nov 18, 2012 at 5:38 AM, Roy Smith r...@panix.com wrote: In article mailman.3774.1353175657.27098.python-l...@python.org, w...@mac.com wrote: Don't forget that most firewalls don't decrement) the time-to-live number, and unless you REALLY know what to look for, are invisible.

Re: latin1 and cp1252 inconsistent?

2012-11-17 Thread Nobody
On Sat, 17 Nov 2012 08:56:46 -0800, buck wrote: Given that the only differences between the two are for code points which are in the C1 range (0x80-0x9F), which should never occur in HTML, parsing ISO-8859-1 as Windows-1252 should be harmless. should is a wish. The reality is that documents

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

2012-11-17 Thread Jordan Bylsma
For this case the firewalls DO respond to TTL(in most cases) and will show in a traceroute. The objective here is to colorize particular devices to easily see what type of devices traffic would traverse across the network. I would be using a database of device hostnames that when they match in

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

2012-11-17 Thread Chris Angelico
On Sun, Nov 18, 2012 at 6:59 AM, Jordan Bylsma jordan.byls...@gmail.com wrote: For this case the firewalls DO respond to TTL(in most cases) and will show in a traceroute. The objective here is to colorize particular devices to easily see what type of devices traffic would traverse across the

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

2012-11-17 Thread Steven D'Aprano
On Sun, 18 Nov 2012 09:00:10 +1100, Chris Angelico wrote: [...] I've never used the program, though, so I have no idea how good it is. All I've done is download the tar.gz and glance over a few bits (the licence, mainly - which is mostly-GPL). Mostly GPL? You mean not GPL. I really wish

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

2012-11-17 Thread Chris Angelico
On Sun, Nov 18, 2012 at 12:18 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 18 Nov 2012 09:00:10 +1100, Chris Angelico wrote: [...] I've never used the program, though, so I have no idea how good it is. All I've done is download the tar.gz and glance over a few bits

Re: module trace and counts

2012-11-17 Thread Steven D'Aprano
On Sat, 17 Nov 2012 13:37:23 -0500, Dave Angel wrote: On 11/17/2012 12:25 PM, rh wrote: Is it for or range that is executed 8000 times when I for i in range(3,8000,2): Nothing is executed 8000 times. I figure it at 3998 times. Off by one. py len(range(3, 8000, 2)) 3999 -- Steven --

Re: module trace and counts

2012-11-17 Thread Dave Angel
On 11/17/2012 08:30 PM, Steven D'Aprano wrote: On Sat, 17 Nov 2012 13:37:23 -0500, Dave Angel wrote: On 11/17/2012 12:25 PM, rh wrote: Is it for or range that is executed 8000 times when I for i in range(3,8000,2): Nothing is executed 8000 times. I figure it at 3998 times. Off by one. py

[OFF] Convert GMap Encoded Polyline string to a set of coordinates

2012-11-17 Thread leonardo
Hi, How to convert GMap Encoded Polyline string to a set of coordinates ? I need it to calculate the distance between a coordinate and a line in a Django app. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: error importing smtplib

2012-11-17 Thread Dieter Maurer
Eric Frederich eric.freder...@gmail.com writes: ... So I'm guessing the problem is that after I log in, the process has a conflicting libssl.so file loaded. Then when I try to import smtplib it tries getting things from there and that is where the errors are coming from. The question

[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. --

  1   2   >