Re: [Tutor] Listing available variables

2009-12-25 Thread Albert-Jan Roskam
one} >>> locals().keys() ['a', 'c', 'b', '__builtins__', '__name__', '__doc__'] >>> Cheers!! Albert-Jan ~~ In the face of ambiguity, refuse the temptation to guess. ~~

Re: [Tutor] Listing available variables

2009-12-25 Thread Lie Ryan
On 12/25/2009 6:50 PM, Mkhanyisi Madlavana wrote: How do I list all the available variables in python. for example if I say: a = range(10) b = 16 c = "" (some variables) z = ["this","that","none"] I then need a command that will list the variables I assigned like: some_command a, b, c,

[Tutor] Listing available variables

2009-12-24 Thread Mkhanyisi Madlavana
How do I list all the available variables in python. for example if I say: >>>a = range(10) >>>b = 16 >>>c = "" ... (some variables) >>>z = ["this","that","none"] I then need a command that will list the variables I assigned like: >>>some_command a, b, c, ... (some variables), z Regards Mkhanyisi