Perl is worse! (was: Python is Wierd!)
Grant Edwards
nobody at nowhere.nohow
Fri Jul 28 01:22:56 EDT 2000
In article <io12ososq8or6t6lgdsclgp5eob5rs8cd7 at 4ax.com>, Ben Wolfson wrote:
>list() (and tuple()) only work on objects that actually have a sequence
>mapping makes a lot of sense and, to me, resolves the ambiguity in
>precisely the way I would expect.
Is 'sequence mapping' for list() an tuple() defined the same as for the
'for' statement: it has a get_item(i) method that returns either a value or
raises an exception?
--
Grant Edwards grante Yow! While I'm in
at LEVITTOWN I thought I'd
visi.com like to see the NUCLEAR
FAMILY!!
More information about the Python-list
mailing list