Re: Namespaces

new topic     » goto parent     » topic index » view thread      » older message » newer message

Irv wrote:

> hr, min, sec  = date()[4..6]

The only reason that this isn't part of the Py grammar is because it's not
part of Euphoria. It's been discussed here before, and I don't recall it
getting an overwhelming reception.

My best complaint is that it looks odd, but that's no reason at all. It's
certainly consistant with it's use elsewhere. You should be able to write:

   {"foo", "bar", "grill"}[x]

which also looks a bit odd. But I've seen both used in Python, exactly in
this manner.

Maybe Robert could shed so light on this?

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu