Coding standard: Prefixing variables to indicate datatype
Hans Nowak
wurmy at earthlink.net
Sun Jan 19 14:32:09 EST 2003
Terry Reedy wrote:
[join method]
> And likewise, admitting that it is a bit ugly, at least to some,
> is no exclusion to thinking that it is very handy to have it
> directly available, just like its quasi-inverse, .split(),
> and with the same syntax.
If the join operation is done by calling a method on the separator, I would
expect the same on the split operation:
" ".split("a b c")
# should yield ["a", "b", "c"]
...but for some reason, that didn't make it into the design. ;-)
--
Hans (base64.decodestring('d3VybXlAZWFydGhsaW5rLm5ldA=='))
# decode for email address ;-)
The Pythonic Quarter:: http://www.awaretek.com/nowak/
Kaa:: http://www.awaretek.com/nowak/kaa.html
More information about the Python-list
mailing list