-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi list,
I'm writing a little module to calculate the size of given objects, I
just need a few little pointers to get the thing into a useful shape.
Code here: http://dev.gentoo.org/~port001/Code/PySizeof/
The points I'm confused about are:
1. My m
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Astan Chee wrote:
> I was thinking of threads but I just simply want to terminate a (global)
> function after it has been running for more than 5 minutes regardless of
> state.
> I was assuming I needed threads because it can calculate time elapsed
> (
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Byte wrote:
> How can I make the following code:
>
> from random import random
>
>
>
> def stuff(a, mx):
> x = 2
> while x == 2:
> x = random()
> if x == mx: print x
> else: print 'No luck,', x
> x = 2
>
> S
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ronny Mandal wrote:
> Assume we have a class Foo, and instance called bar.
>
> a variable called baz1 has the value 3.0, baz2 is uninitialized
>
> Is there a way of reflecting the variable with such syntax:
>
> print bar[], where var_index is a numb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
abcd wrote:
> i want to create a CGI script which simply prints out values given via
> the URL (such as when a GET is performed).
>
> So if I have a script named, foo.cgi and I access it by going to:
>
> http://www.somesite.com/cgi-bin/foo.cgi?na