Blogger is a blog publishing tool from Google for easily sharing your thoughts with the world. Blogger makes it simple to post text, photos and video onto your personal or team blog.
Ragu_Bharadwaj@ vrtx.com (Ragu) writes:
[color=blue]
> Is there a limit to the # of lines that can be in a Python program?[/color]
I can't seem to find one, although trying to run a million line file
got the OOM killer into action...
Cheers,
mwh
--
ZAPHOD: OK, so ten out of ten for style, but minus several million
for good thinking, eh?
-- The Hitch-Hikers Guide to the Galaxy, Episode 2
Ragu:[color=blue]
> Is there a limit to the # of lines that can be in a Python program?[/color]
Many years ago there was a limit of 64K lines, because of how
the line number opcode worked in Python. Only machine
generated Python code ever ran into that limit.
That limit was removed in .. 1.5? Can't find mention of
the fix in my cursory search.
"Lawrence Oluyede" <raims@dot.co m> wrote in message
news:bi2lbm$3v6 fr$1@ID-128383.news.uni-berlin.de...[color=blue]
> Ragu wrote:
>[color=green]
> > Is there a limit to the # of lines that can be in a Python program?[/color]
>
> No AFAIK.
> The only limitation is the common sense, nobody wants to drown into[/color]
comments[color=blue]
> :)
>
> --
> Lawrence "Rhymes" Oluyede
> http://loluyede.blogspot.com
> rhymes@NOSPAMmy self.com[/color]
Probably no fear of drowning in comments. It seems that many peole who
write seemingly excesslively long source code files do not want to waste
disk space or processing time on something so useless as comments.
Ragu wrote:[color=blue]
> Is there a limit to the # of lines that can be in a Python program?[/color]
The free version from python.org is limited to 500 lines per module.
I'll gladly sell you Python Enterprise 2003, which has no lines of code
limits at all and where code size is only limited by available memory.
The current price is EUR 250 per seat or EUR 5000 for a site-license.
One year of free support via Usenet (comp.lang.pyth on) is included.
On Thu, 21 Aug 2003 15:22:30 +0200, rumours say that Gerhard Häring
<gh@ghaering.de > might have written:
[color=blue]
>Ragu wrote:[color=green]
>> Is there a limit to the # of lines that can be in a Python program?[/color]
>
>The free version from python.org is limited to 500 lines per module.
>I'll gladly sell you Python Enterprise 2003, which has no lines of code
>limits at all and where code size is only limited by available memory.
>
>The current price is EUR 250 per seat or EUR 5000 for a site-license.
>One year of free support via Usenet (comp.lang.pyth on) is included.[/color]
Really? A few years ago, when I bought Python for the first time, the
entry price I paid was my right hand and rights on my firstborn. Things
have changed...
Microsoft Python: bringing innovation to higher levels at a friendly
price.
--
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.
Christos "TZOTZIOY" Georgiou <tzot@sil-tec.gr> writes:
[color=blue]
> On Thu, 21 Aug 2003 17:25:51 GMT, rumours say that "Andrew Dalke"
> <adalke@mindspr ing.com> might have written:
>[color=green]
> >Many years ago there was a limit of 64K lines, because of how
> >the line number opcode worked in Python. Only machine
> >generated Python code ever ran into that limit.[/color]
>
> What is the width of JUMP opcode offsets? If it is 16 bit, is there a
> chance that someday somebody is going to write such a large basic block
> that their program will fail?[/color]
I'm pretty sure that limit has been lifted too (in the 2.0 timeframe?
Not sure). I think you can have basic blocks the full 2^32 bytes long
now :-)
Cheers,
mwh
--
Check out the comments in this source file that start with:
# Oh, lord help us.
-- Mark Hammond gets to play with the Outlook object model
Comment