[Python-3000] PEP 3108: Standard Library Reorganization

Barry Warsaw barry at python.org
Wed Jan 3 20:05:35 CET 2007


-----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-----


More information about the Python-3000 mailing list