Re: [Python-Dev] Localized Type Inference of Atomic Types in Python
Hi Brett, On Tue, May 24, 2005 at 04:11:34PM -0700, Brett C. wrote: > My thesis, "Localized Type Inference of Atomic Types in Python", was > successfully defended today for my MS in Computer Science at the California > Polytechnic State University, San Luis Obispo. Congratulations ! Nitpickingly... thanks for the references to Psyco, though I should add that Psyco has been supporting more than just ints and strings since shortly after my first e-mail to python-dev about it (in 2001 I think) :-) it actually knows more or less about all common built-in types. A bientot, Armin ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] AST manipulation and source code generation
I wrote something like this (called pyunparse) a little while ago. It's not the cleanest code in the world, but it worked for my original use case (debugging Logix, which uses python ASTs as an IR): http://www.pycs.net/users/445/stories/7.html Cheers, /arg On May 24, 2005, at 9:56 AM, Jeremy Hylton wrote: > On 5/24/05, Ka-Ping Yee <[EMAIL PROTECTED]> wrote: > > >> Would there be any interest in extending the compiler package with >> tools >> for AST transformations and for emitting Python source code from >> ASTs? >> >> > > Sure. Eventually, we'll have to figure out how to unify the compiler > package AST and the ast-branch AST, but don't let that delay you now. > > > >> I was experimenting with possible translations for exception chaining >> and wanted to run some automated tests, so i started playing around >> with the compiler package to do source-to-source transformations. >> Then i started working on a way to do template-based substitution of >> ASTs and a way to spit source code back out, and i'm wondering if >> that might be good for experimenting with future Python features. >> >> (If there's already stuff out there for doing this, let me know -- >> i don't intend to duplicate existing work.) >> >> > > I don't know of any existing work, but it certainly sounds useful. > > Jeremy > ___ > Python-Dev mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/andy% > 40andygross.org > > ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] AST manipulation and source code generation
Ka-Ping, FWIW, I've also got an implementation, which is based on the parser module rather than the compiler module. Much simpler, imo, but whitespace isn't preserved (could be perhaps?). Anyway, take it or leave it. Links follow. chad - Subversion repository: http://svn.zetadev.com/repos/public/ASTutils/ The relevant method is 'ast2text' in ASTutils.py: http://svn.zetadev.com/repos/public/ASTutils/tags/0.2.0/ASTutils.py API documentation for this method: http://www.zetadev.com/software/ASTutils/latest/api/public/ASTutils.ASTutils-class.html#ast2text API documentation root: http://www.zetadev.com/software/ASTutils/latest/api/ ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Localized Type Inference of Atomic Types in Python
Armin Rigo wrote: > Hi Brett, > > On Tue, May 24, 2005 at 04:11:34PM -0700, Brett C. wrote: > >>My thesis, "Localized Type Inference of Atomic Types in Python", was >>successfully defended today for my MS in Computer Science at the California >>Polytechnic State University, San Luis Obispo. > > > Congratulations ! > > Nitpickingly... thanks for the references to Psyco, though I should add > that Psyco has been supporting more than just ints and strings since > shortly after my first e-mail to python-dev about it (in 2001 I think) > :-) it actually knows more or less about all common built-in types. > Crap, sorry! That is what I get for taking someone's word instead of digging into it myself. -Brett ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Weekly Python Patch/Bug Summary
Patch / Bug Summary
___
Patches : 342 open ( +3) / 2839 closed ( +1) / 3181 total ( +4)
Bugs: 936 open ( -2) / 4974 closed (+12) / 5910 total (+10)
RFE : 189 open ( +2) / 159 closed ( +2) / 348 total ( +4)
New / Reopened Patches
__
optparse documentation bug fixes (2005-05-18)
http://python.org/sf/1204347 opened by Barry A. Warsaw
Bugfix for signal-handler on x64 Platform (2005-05-20)
http://python.org/sf/1205436 opened by André Fritzsche
updates for the compiler package (2005-05-21)
http://python.org/sf/1206077 opened by Stelios
An URL for UnicodeData File Format 3.2 has changed. (2005-05-24)
http://python.org/sf/1207985 opened by Darek Suchojad
Patches Closed
__
workaround deprecated ostat structure in (2005-05-17)
http://python.org/sf/1203329 closed by loewis
New / Reopened Bugs
___
Documentation error? (2005-05-18)
http://python.org/sf/1204734 opened by John Eikenberry
urllib has spurious print statement (2005-05-20)
http://python.org/sf/1205544 opened by Stuart Wray
Compile fails on Darwin8 with --with-cxx=g++ (2005-05-20)
http://python.org/sf/1205568 opened by Robert M. Zigweid
wrong location for math lib with --prefix (2005-05-20)
http://python.org/sf/1205736 opened by Thomas Richter
IDLE 1.0.5 (Python 2.3.5) crashes under Windows (2005-05-21)
http://python.org/sf/1206232 opened by Torsten Bronger
weakref cannot handle bound methods (in contrast to docu) (2005-05-22)
http://python.org/sf/1206537 opened by Raik Gruenberg
class property fset not working (2005-05-24)
http://python.org/sf/1207379 opened by Master_Jaf
installer ignores changed installation directory (2005-05-24)
http://python.org/sf/1207466 opened by Blubb Fallo
Issue in grammar (2005-05-24)
http://python.org/sf/1207501 opened by venkat manian
Issue in grammar (2005-05-24)
CLOSED http://python.org/sf/1207509 opened by venkat manian
Bugs Closed
___
Problem with recursion in dict (crash with core dump) (2005-05-13)
http://python.org/sf/1201456 closed by vys
Windows msi installer fails on virtual drives (2005-05-12)
http://python.org/sf/1200287 closed by loewis
urllib2 authentication redirection error(?) (2004-11-21)
http://python.org/sf/1070735 closed by allanbwilson
No documentation for urllib2 exception classes (2004-04-29)
http://python.org/sf/944407 closed by fresh
file("foo", "wU") is silently accepted (2004-06-05)
http://python.org/sf/967182 closed by montanaro
UnboundLocalError in cgitb.py (2003-12-16)
http://python.org/sf/861340 closed by montanaro
Python 2.4.1 Installer ended prematurely (2005-05-11)
http://python.org/sf/1199947 closed by loewis
xml.dom.minidom.Node.removeChild() doesn't remove (2005-03-06)
http://python.org/sf/1157901 closed by mkempka
csv writer bug on windows (2004-04-29)
http://python.org/sf/944890 closed by montanaro
Importing anydbm generates exception if _bsddb unavailable (2003-05-02)
http://python.org/sf/731501 closed by montanaro
Explicit interp reference during build fails (2003-07-08)
http://python.org/sf/768068 closed by montanaro
Issue in grammar (2005-05-24)
http://python.org/sf/1207509 closed by mwh
New / Reopened RFE
__
Let shift operators take any integer value (2005-05-19)
http://python.org/sf/1205239 opened by David Albert Torpey
Right Click Context Menu (2005-05-24)
http://python.org/sf/1207589 opened by Mike Foord
Clipboard Cleared on Close (2005-05-24)
http://python.org/sf/1207592 opened by Mike Foord
Bottom Scroll Bar (2005-05-24)
http://python.org/sf/1207613 opened by Mike Foord
RFE Closed
__
enhancing os.chown functionality (2005-05-12)
http://python.org/sf/1200804 closed by loewis
"replace" function should accept lists. (2005-04-17)
http://python.org/sf/1184678 closed by loewis
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
