Re: [Python-Dev] Accessing source code in zipped packages

2008-12-02 Thread Georg Brandl
Alexander Belopolsky schrieb: About a month ago, I submitted two patches that address Pdb and doctest inability to load source code from modules with custom loaders such as modules loaded from zip files: http://bugs.python.org/issue4201 http://bugs.python.org/issue4197 The patches are very simp

[Python-Dev] Accessing source code in zipped packages

2008-12-02 Thread Alexander Belopolsky
About a month ago, I submitted two patches that address Pdb and doctest inability to load source code from modules with custom loaders such as modules loaded from zip files: http://bugs.python.org/issue4201 http://bugs.python.org/issue4197 The patches are very simple, basically calls to linecache

Re: [Python-Dev] Attribute error: providing type name

2008-12-02 Thread Steve Holden
Nick Coghlan wrote: > Martin v. Löwis wrote: >> Alex Martelli wrote: >> I think the standard exception hierarchy should grow additional standard >> fields. E.g. AttributeError should have attributes 'type','name', or >> perhaps even 'object','name'. TypeError should have attributes >> 'expected', '

[Python-Dev] Tomorrow's releases

2008-12-02 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I believe we are on track for releasing Python 3.0 final and 2.6.1 tomorrow. There is just one release blocker for 3.0 left -- Guido needs to finish the What's New for 3.0. This is bug 2306. So that Martin can have something to work with when

Re: [Python-Dev] Attribute error: providing type name

2008-12-02 Thread Nick Coghlan
Martin v. Löwis wrote: > Alex Martelli wrote: > I think the standard exception hierarchy should grow additional standard > fields. E.g. AttributeError should have attributes 'type','name', or > perhaps even 'object','name'. TypeError should have attributes > 'expected', 'actual' (or, again, 'expect

Re: [Python-Dev] Move encoding_decl to the top of Grammar/Grammar?

2008-12-02 Thread Thomas Lee
Here's the corresponding tracker issue: http://bugs.python.org/issue4347 I've uploaded a patch there anyway, since I'm going to need this stuff working for a presentation I'm giving tomorrow. Cheers, T Thomas Lee wrote: Hi all, Currently, Parser/parsetok.c has a dependency on graminit.h. T