-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jan 3, 2007, at 1:44 PM, Josiah Carlson wrote:
> What about:
>
> 'hello world'.encode.base64()
>
> Then incorrectly named encodings can raise an attribute error. Users
> can discover what they can encode/decode their objects to via dir
> (obj.encode),
> etc.
That's better. I'm not sure it's a total win over what we have now,
unless you're thinking that the mapping between .encode.<whatever>
and .encode('whatever') is automatic.
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iQCVAwUBRZv+f3EjvBPtnXfVAQLNGAQAt8fggwFX6g7RUGaZ7o8UYQ+WjDkKKxx5
bp6CtZ058jTn5wXoHl6NXzaRkxbuaNgTYrrbZ/s1XQlad9uhMJsYWY7wFJm5DaHk
kO1fM5afVCpIOJXHcl1T9Jh9Y8HF4T+cdtybAGo/iO42LLrCWBga1CZqeHFV8VpR
Ru+s+sB50DU=
=8RZM
-----END PGP SIGNATURE-----
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com