I recently started playing with Python about 3 days now (Ex Perl guy) and
wanted some input on style and structure of what I'm doing before I really
start picking up some bad habits here is a simple test tool I wrote to validate
home dirs on my system.
Please evaluate and let me know what could
: Random module missing?
On Wed, Sep 23, 2009 at 5:00 PM, Brown, Rodrick wrote:
> I seen some documentation about random.random() but my version seems to be
> broken?
>
> Python 2.3.4 (#1, Jul 16 2009, 07:03:37) [GCC 3.4.6 20060404 (Red Hat
> 3.4.6-11)] on linux2 Type "help&quo
I seen some documentation about random.random() but my version seems to be
broken?
Python 2.3.4 (#1, Jul 16 2009, 07:03:37)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
>>> dir(random)
['__builtins__', '
How could I do the following check in Python
In Perl I could do something like if ((defined($a)) { ... }
I tried if var is not None:
However this doesn't seem to work as described.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list