Re: 20050111: list basics

2005-01-12 Thread Abigail
print 'nested list is', Dumper [EMAIL PROTECTED]; Rubbish. That's not a nested list. @b is an *ARRAY*, whose third element is a *REFERENCE* to another *ARRAY*. :: # to extrat element from nested list, :: $c = $b[2]->[1]; :: print '$b[2]=>[1] is', $c

Re: [perl-python] 20050112 while statement

2005-01-13 Thread Abigail
t know Perl, but now it turns out, you don't know Python either. Go away. Abigail -- package Z;use overload'""'=>sub{$b++?Hacker:Another}; sub TIESCALAR{bless\my$y=>Z}sub FETCH{$a++?Perl:Just} $,=$";my$x=tie+my$y=>Z;print$y,$x,$y,$x,"\n";#Abigail -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] 20050117, filter, map

2005-01-17 Thread Abigail
d post these all as part of the same thread? Just killfile him, and stop replying. Remember, don't feed the trolls. Abigail -- my $qr = qr/^.+?(;).+?\1|;Just another Perl Hacker;|;.+$/; $qr =~ s/$qr//g; print $qr, "\n"; -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] 20050127 traverse a dir

2005-01-28 Thread Abigail
ird, learn Perl (optional). :) Just leave the third option out. Let him learn Python. We don't want him. ;-) Abigail -- sub f{sprintf'%c%s',$_[0],$_[1]}print f(74,f(117,f(115,f(116,f(32,f(97, f(110,f(111,f(116,f(104,f(0x65,f(114,f(32,f(80,f(101,f(114,f(0x6c,f(32, f(0x48,f(97,f(

Re: [perl-python] 20050127 traverse a dir

2005-01-28 Thread Abigail
Skip Montanaro ([EMAIL PROTECTED]) wrote on CLXVIII September MCMXCIII in news:[EMAIL PROTECTED]>: __ __ abigail> @@ No. Second, learn Python. Third, learn Perl (optional). :) __ __ abigail> Just leave the third option out. Let him learn Python. We don't __

Re: I am giving up perl because of assholes on clpm -- switching to Python

2007-07-25 Thread Abigail
because you don't like the people in rec.food.drink.coffee. Abigail -- perl -wle 'print "Prime" if (0 x shift) !~ m 0^\0?$|^(\0\0+?)\1+$0' -- http://mail.python.org/mailman/listinfo/python-list

Noob raw_input question

2010-02-24 Thread Abigail
Yesterday I downloaded and installed Python 3.1 and working through some examples but I have hit a problem >>> a = raw_input("Enter a number" ) Traceback (most recent call last): File "", line 1, in a = raw_input("Enter a number" ) NameError: name 'raw_input' is not defined>>>a = raw_input

Re: Noob raw_input question

2010-02-24 Thread Abigail
Thank You -- http://mail.python.org/mailman/listinfo/python-list