Re: Prothon on CPython intrepreter? [PROTHON]

Paul Prescod <[email protected]> Tue, 10 Aug 2004 22:24:40 -0700
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
When your parser sees:

  * "abc"

It generates a Unicode object instead of an 8-bit object.

When your parser sees:

def bar(x=expression()): pass

it converts to something like:

def bar(x=ProthonNoValueProvided):
    if x==ProthonNoValueProvided:
        x = expression()

You could also define a new kind of function object to sit alongside the 
Python function object.

Mark Hahn wrote:

> 
>>-----Original Message-----
>>From: Paul Prescod [mailto:[email protected]] 
>>Sent: Tuesday, August 10, 2004 9:47 PM
>>To: Mark Hahn
>>Subject: Re: Prothon on CPython intrepreter? [PROTHON]
>>
>>
>>Why wouldn't you keep your variant upward compatible with 
>>CPython so it 
>>could parse Python code and run Python bytecodes? Then you get a much 
>>bigger standard library.
> 
> 
> How could we do that and still fix all the Python problems?  Things like
> separate strings, late eval of default params, etc. would make this
> impossible, wouldn't it?
> 
>