Re: Compiler Error for build Python -3.3.0 (Suggestions)

2012-10-22 Thread Christian Heimes
Am 22.10.2012 23:31, schrieb Joe Davis: >The version of Python I have on my old Solaris boxes is old and > isn't supported and dosn't have all the modules that I need.I have > downloaded the new 3.3 version and have been trying to compile it and > have no luck: > > After running the ./conf

Re: Compiler Error for build Python -3.3.0 (Suggestions)

2012-10-22 Thread MRAB
On 2012-10-22 22:31, Joe Davis wrote: The version of Python I have on my old Solaris boxes is old and isn't supported and dosn't have all the modules that I need.I have downloaded the new 3.3 version and have been trying to compile it and have no luck: After running the ./configure comm

Re: compiler with python

2010-03-07 Thread Mark Lawrence
Alf and Steven Howe, please don't top post, it makes it all but impossible to follow a thread. Darn!:) Mark Lawrence. Alf P. Steinbach wrote: Since Mohamed is talking about compilation I think it's more likely he's talking about an intermediate program represention based on quad tuples like

Re: compiler with python

2010-03-07 Thread Stefan Behnel
mohamed issolah, 06.03.2010 14:07: I want to create a compiler which transform a code like pascal code (that what I do in C) to "quad" In C, I use BISON and FLEX tools. Hi, please stop starting new threads for the same topic. Instead, reply to responses you get. Stefan -- http://mail.pytho

Re: compiler with python

2010-03-06 Thread Alf P. Steinbach
Since Mohamed is talking about compilation I think it's more likely he's talking about an intermediate program represention based on quad tuples like (OP, DESTINATION, ARG1, ARG2) Cheers, - Alf * Steven Howe: Is it possible he's talking about a 'quad core'? as in a CPU? In that case I thi

Re: compiler with python

2010-03-06 Thread Steven Howe
Is it possible he's talking about a 'quad core'? as in a CPU? In that case I think he wants to optimize a python program for a multiprocessor core with four processors. sph On 03/06/2010 07:56 AM, Dave Angel wrote: mohamed issolah wrote: 2010/3/6 Dave Angel mohamed issolah wrote: hey,

Re: compiler with python

2010-03-06 Thread Dave Angel
mohamed issolah wrote: 2010/3/6 Dave Angel mohamed issolah wrote: hey, How can I construct a compiler with python just for informatiom ., I have habit to construct it with C language, sorry for my english ;-) You need to tell us what you're really trying to do, what tool

Re: compiler with python

2010-03-06 Thread Dave Angel
mohamed issolah wrote: hey, How can I construct a compiler with python just for informatiom ., I have habit to construct it with C language, sorry for my english ;-) You need to tell us what you're really trying to do, what tools you're willing to use, and probably why you want it. And if

Re: Compiler malware rebutted

2009-11-13 Thread Aahz
In article , David M. Besonen wrote: >On 11/13/2009 3:26 PM, Aahz wrote: >> >> Ken Thompson's classic paper on bootstrapped malware >> finally gets a rebuttal: >> >> http://lwn.net/Articles/360040/ > >thanks for pointing this out. Actually, I found out about it on panix.chat ;-) -- Aahz (a...@

Re: Compiler malware rebutted

2009-11-13 Thread David M. Besonen
On 11/13/2009 3:26 PM, Aahz wrote: > Ken Thompson's classic paper on bootstrapped malware > finally gets a rebuttal: > > http://lwn.net/Articles/360040/ thanks for pointing this out. -- david -- http://mail.python.org/mailman/listinfo/python-list

Re: compiler package vs parser

2009-04-20 Thread Robin Becker
Kay Schluehr wrote: I realize that I probably ought to be trying this out with the newer ast stuff, but currently I am supporting code back to 2.3 and there's not much hope of doing it right there without using the compiler package. You might consider using the *builtin* parser module and forge

Re: compiler package vs parser

2009-04-17 Thread Kay Schluehr
> I realize that I probably ought to be trying this out with the newer ast > stuff, > but currently I am supporting code back to 2.3 and there's not much hope of > doing it right there without using the compiler package. You might consider using the *builtin* parser module and forget about the co

Re: compiler package vs parser

2009-04-17 Thread Gabriel Genellina
En Fri, 17 Apr 2009 10:55:46 -0300, Scott David Daniels escribió: Robin Becker wrote: def func(D): for k in D: exec '%s=D[%r]' % (k,k) print i, j, k print locals() print i, j, k if __name__=='__main__': func(dict(i=1,j=33)) end p.py the compiler package en

Re: compiler package vs parser

2009-04-17 Thread Scott David Daniels
Robin Becker wrote: If I have messed that up then there should be some easy fix, otherwise if pycodegen is somehow not getting the semantics of the the variables i,j correct is there some way I can fix that def func(D): for k in D: exec '%s=D[%r]' % (k,k) print i, j,

Re: compiler package vs parser

2009-04-17 Thread Aahz
In article , Robin Becker wrote: > >My analysis of the problem is that in > > start p.py >def func(D): > for k in D: > exec '%s=D[%r]' % (k,k) > print i, j, k > print locals() > print i, j, k > >if __name__=='__main__': > func(dict(i=1,j=33)) > end p.py > >the

Re: compiler package vs parser

2009-04-17 Thread Robin Becker
Kay Schluehr wrote: On 16 Apr., 11:41, Robin Becker wrote: Is the compiler package actually supposed to be equivalent to the parser module? No. The parser module creates a concrete parse tree ( CST ) whereas the compiler package transforms this CST into an AST for subsequent computations. In

Re: compiler package vs parser

2009-04-16 Thread Robin Becker
Kay Schluehr wrote: On 16 Apr., 11:41, Robin Becker wrote: Is the compiler package actually supposed to be equivalent to the parser module? No. The parser module creates a concrete parse tree ( CST ) whereas the compiler package transforms this CST into an AST for subsequent computations. In

Re: compiler package vs parser

2009-04-16 Thread Kay Schluehr
On 16 Apr., 11:41, Robin Becker wrote: > Is the compiler package actually supposed to be equivalent to the parser > module? No. The parser module creates a concrete parse tree ( CST ) whereas the compiler package transforms this CST into an AST for subsequent computations. In more recent versio

Re: compiler package vs parser

2009-04-16 Thread Robin Becker
Robin Becker wrote: Aahz wrote: In article , Robin Becker wrote: Is the compiler package actually supposed to be equivalent to the parser module? Before I poke my nose into this, what versions of Python have you tried? I'm using 2.6. I just checked and it's the same in 2.5. -- Robin Bec

Re: compiler package vs parser

2009-04-16 Thread Robin Becker
Aahz wrote: In article , Robin Becker wrote: Is the compiler package actually supposed to be equivalent to the parser module? Before I poke my nose into this, what versions of Python have you tried? I'm using 2.6. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: compiler package vs parser

2009-04-16 Thread Aahz
In article , Robin Becker wrote: > >Is the compiler package actually supposed to be equivalent to the >parser module? Before I poke my nose into this, what versions of Python have you tried? -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ "If you think it's exp

Re: Compiler, ast and forwards/backwards compatibility

2008-10-09 Thread Orestis Markou
On Wed, Oct 8, 2008 at 9:14 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> The documentation for the ast module states that it "helps to find out >> programmatically what the current grammar looks like". I can't find >> any reference (even when reading the code) on how you should go about >> t

Re: Compiler, ast and forwards/backwards compatibility

2008-10-08 Thread Martin v. Löwis
> My confusion starts with the fact that I'm not sure if all Python 2.4 > code is going to be syntactically valid 2.6 code. That's not so much a matter of confusion, but of careful research. I *think* all code that is syntactically correct in 2.4 is also syntactically correct in 2.6 - but only be

Re: Compiler, ast and forwards/backwards compatibility

2008-10-08 Thread Martin v. Löwis
> The documentation for the ast module states that it "helps to find out > programmatically what the current grammar looks like". I can't find > any reference (even when reading the code) on how you should go about > this, other than checking the sys.version number and reading up on the > changes.

Re: Compiler, ast and forwards/backwards compatibility

2008-10-07 Thread Terry Reedy
Orestis Markou wrote: On Tue, Oct 7, 2008 at 5:39 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: Orestis Markou wrote: Hello, I'm the developer of PySmell ( http://github.com/orestis/pysmell ), a static analysis/intellisense provider for Python. I am targeting Python 2.4 code so I'm using the comp

Re: Compiler, ast and forwards/backwards compatibility

2008-10-07 Thread Orestis Markou
On Tue, Oct 7, 2008 at 5:39 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > Orestis Markou wrote: >> >> Hello, >> >> I'm the developer of PySmell ( http://github.com/orestis/pysmell ), a >> static analysis/intellisense provider for Python. I am targeting >> Python 2.4 code so I'm using the compiler pa

Re: Compiler, ast and forwards/backwards compatibility

2008-10-07 Thread Terry Reedy
Orestis Markou wrote: Hello, I'm the developer of PySmell ( http://github.com/orestis/pysmell ), a static analysis/intellisense provider for Python. I am targeting Python 2.4 code so I'm using the compiler package. I've been toying around yesterday with the ast module in Python 2.6 and it seems

Re: Compiler or stg. to get exe!

2007-12-28 Thread Bruno Desthuilliers
SMALLp a écrit : > Hy! > I have question. After short goggling, I haven't found anything good. So > my question is: > I wrote a program in python and i Get .py files and some .pyc in working > folder. Now i want program tu run under windows, so i need to get exe > files or something. Strictly s

Re: Compiler or stg. to get exe!

2007-12-28 Thread Martin Blume
"SMALLp" schrieb > I have question. After short goggling, I haven't found > anything good. So my question is: > I wrote a program in python and i Get .py files and some > .pyc in working folder. Now i want program tu run under > windows, so i need to get exe files or something. > If python is

Re: Compiler or stg. to get exe!

2007-12-28 Thread Christian Heimes
SMALLp wrote: > Hy! > I have question. After short goggling, I haven't found anything good. So > my question is: > I wrote a program in python and i Get .py files and some .pyc in working > folder. Now i want program tu run under windows, so i need to get exe > files or something. > And what do

Re: compiler module bug?

2007-10-21 Thread Brian Blais
On Oct 21, 2007, at Oct 21:2:05 PM, Gabriel Genellina wrote: The parseFile function does exactly that, along with this comment: thanks! bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais -- http://mail.python.org/mailman/listinfo/python-list

Re: compiler module bug?

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 14:33:00 -0300, Brian Blais <[EMAIL PROTECTED]> escribió: > On Oct 21, 2007, at Oct 21:1:15 PM, Gabriel Genellina wrote: >> The comment itself is not a problem; but the last line in the >> source must >> end in a newline. > > then, even if it is known problem, the docs are w

Re: compiler module bug?

2007-10-21 Thread Brian Blais
On Oct 21, 2007, at Oct 21:1:15 PM, Gabriel Genellina wrote: En Sun, 21 Oct 2007 13:36:46 -0300, Brian Blais <[EMAIL PROTECTED]> escribi�: I am experiencing a problem with the compiler module. Is this a bug, or am I doing something wrong? I think it's a well-known fact... it seems like a

Re: compiler module bug?

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 13:36:46 -0300, Brian Blais <[EMAIL PROTECTED]> escribi�: > I am experiencing a problem with the compiler module. Is this a bug, > or am I doing something wrong? I think it's a well-known fact... > it seems like a comment at the end breaks the parse command, but not > pars

Re: Compiler Python

2007-09-12 Thread Bjoern Schliessmann
Bruno Desthuilliers wrote: > Bjoern Schliessmann a écrit : >> I'm not really about the syntax of your question, ^(sure) > > lol !-) ;) It wasn't mean ironically, I really forgot the "sure". Regards, Björn -- BOFH excuse #322: Your Pentium has a heating problem - try coolin

Re: Compiler Python

2007-09-11 Thread Bruno Desthuilliers
Bjoern Schliessmann a écrit : > anton a wrote: > >>Someone knows since as I can obtain the information detailed about >>the compiler of Python? (Table of tokens, lists of productions of >>the syntactic one , semantic restrictions...) > > > I'm not really about the syntax of your question, lol !

Re: Compiler Python

2007-09-11 Thread Martin v. Löwis
> Someone knows since as I can obtain the information detailed about the > compiler of Python? (Table of tokens, lists of productions of the > syntactic one , semantic restrictions...) The EBNF grammar is in Grammar/Grammar; this also implies the list of tokens. Another list of tokens in Include/t

Re: Compiler Python

2007-09-11 Thread Bjoern Schliessmann
anton a wrote: > Someone knows since as I can obtain the information detailed about > the compiler of Python? (Table of tokens, lists of productions of > the syntactic one , semantic restrictions...) I'm not really about the syntax of your question, but I'd try looking at the source code. Regards

Re: Compiler-AST-Walk-Visitor: Any Examples or Documentation?

2007-03-23 Thread Bill Mill
On Mar 23, 1:10 pm, Efrat Regev <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to write something that will translate Python code to > pseudo-code (for teaching purposes). Googling around indicated that the > compiler module is pertinent, especially creating a visitor to walk the > ge

Re: Compiler for external modules for python

2006-07-24 Thread J�r�me Le Bougeant
VS2003 : http://vecchio56.free.fr/VCToolkitSetup.exe > Hello: > I have interesting external modules that I want to incorporate to > python 2.4.3 and python 2.5b2 also. Some of them requires C/C++ > compiler. I work with Win XP Sp2 and have installed VC2005 express (I > do not know if the compiler

Re: Compiler for external modules for python

2006-07-22 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > Under this circumstances I tried to find the VC7 compiler from > microsoft sites, however it deflect to the new version of VS2005, so I > "lost the cord and the goat" . > I do not know what to do. Does anybody has some guidelines about this > matter? You need to use VS 2

Re: Compiler

2005-02-16 Thread Harlin
Easy, easy... Use py2exe: http://starship.python.net/crew/theller/py2exe/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiler

2005-02-15 Thread Fredrik Lundh
"Roch " <[EMAIL PROTECTED]> wrote: > I am begenning to study python programing language and I was > wondering how do I make an executable code with the interpreter > ...like if i have my code in a text file. if you have your code in a text file and you want to run it, just run the "python" in

Re: Compiler

2005-02-15 Thread Roch ....
Hi  I am begenning to study python programing language and I was wondering how do I make an executable code with the interpreter ...like if i have my code in a text file.   thank you Roch -- http://mail.python.org/mailman/listinfo/python-list

RE: Compiler benefits (was: The Industry choice)

2005-01-03 Thread Batista, Facundo
Title: RE: Compiler benefits (was: The Industry choice) [EMAIL PROTECTED] #- I think your point was that the checking present in modern Fortran #- compilers, or PyCheckers, but absent from core Python, is a net #- benefit.  That I grant.  I'm reluctant to argue for a change in #- P