Thanks guys for your urgent responses.
Gregg
- Original Message -
From: "Brian Quinlan" <[EMAIL PROTECTED]>
To: "'Gregg Ward'" <[EMAIL PROTECTED]>
Sent: Saturday, April 28, 2001 12:48 PM
Subject: RE: Newbie question - Python interpreter using a lot of memory when
using range
> range(0
I've installed AS-Python on my Mandrake-7.2 Linux. It's now in
/usr/local/ActivePython-2.0/ . How do I set up a PYTHONPATH variable
(and what should it include) in my bash world in order to use my own
modules?
Lb
___
ActivePython mailing list
[EMAIL
Gregg Ward wrote:
>
>
>
> Does the interpreter actually generate an individual value for everything in
> the range 0-999?
Yes. There is a function called "xrange" that does not generate the
individual values. range is faster for small lists. xrange is better for
large ones.
--
Take a
> for i in range(0,999) :
> pass
> end=time.time()
> print end-start
>
> If I change the top of the range to 99, the interpreter only uses
about
> 14Mb.
>
> Does the interpreter actually generate an individual value for everything
in
> the range 0-999?
Yes, the range function create
> Hi, I'm a newbie to Python and I would like to know if someone can explain
> to me why the following script starts using in excess of 80Mb of memory,
> when the for loop is running:
>
> import sys
> import time
>
> start=time.time()
> for i in range(0,999) :
Python actually creates a list o
Hi, I'm a newbie to Python and I would like to know if someone can explain
to me why the following script starts using in excess of 80Mb of memory,
when the for loop is running:
import sys
import time
start=time.time()
for i in range(0,999) :
pass
end=time.time()
print end-start
If I chang
- Original Message -
From: "Markus Daniel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 4:20 PM
Subject: 3 problems with v210
> Bug 1:
> Pythonwin.exe (Build 210, Win2k, no seperate TCL installation) crashes
> when typing this:
>
> >>>
Bug 1:
Pythonwin.exe (Build 210, Win2k, no seperate TCL installation) crashes
when typing this:
>>> import sys
>>> sys.modules
Bug 2:
Installer installed "Advanced Developmend" - pack ,without permission.
Bug 3:
Python is not as an AX-Scripting-Language registered.
--
Markus Daniel
PGP-Key
search on www.google.com for:
functional programming python
link#3 = >
http://gnosis.cx/publish/programming/charming_python_13.html
There are vaious ways to link to David Mertz's excellent articles, on IBM,
on his home page and elsewhere. The links at IBM are erratically organized.
Sometimes v
Somebody recently had an article on functional programming and Python. The
article talked about a module for fp too. Anybody know about this article and
where I might find it? Unfortunately, SEAFS: Search Engines Are For... in this
case
LB
___
Act
Hello,everyone:
In fact,the time that I begin to study Python was about one year ago,when I was
still working in an ICP company.They give me an order to modify the mailman,which is a
opensource of mailing list.That's really great.I was very attracted to the
modularization of that and adm
i've added a string to mssccprj.scc :
Database = "\\Alpha\SS_Sources\"
( "\\Alpha\SS_Sources\" is our sources database path )
And vss.CheckoutFile, called directly, works now.
But when I open a "checkin'd" file in pythonwin and try to edit it
a message shown : "Document is read-only, and
12 matches
Mail list logo