Re: [Python-3000] email libraries: use byte or unicode strings?

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [Python-3000] email libraries: use byte or unicode strings?

by Barry Warsaw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Nov 6, 2008, at 7:09 AM, Nick Coghlan wrote:

> So here's a question (speaking as someone that has never had to go  
> near
> the email module, and is unlikely to do so anytime soon): is this
> something that should hold up the release of Python 3.0?

Not if you're like Guido and want to get 3.0 out this year. ;)

> As I see it, there are 3 options:
> 1. Hold up 3.0 until you get an API for the email package that handles
> Unicode vs bytes issues gracefully
> 2. Drop the email package entirely from 3.0, iterate on a 3.0  
> version of
> it on PyPI for a while, then add the cleaned up version in 3.1
> 3. Keep the current version (issues and all) in 3.0, with fairly  
> strong
> warnings that the API may change in 3.1

At this point I think our only option is essentially 3, keep what we  
have warts and all.  When the precursor to the email package was being  
developed (at that time, called mimelib), it was initially done as a  
separate package and only folded into core when it was stable and  
fairly widely used.

For email-ng (or whatever we call it) we should follow the same  
guidelines.  Eventually email-ng will be folded back into the core and  
will replace the current email package.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBSRMl6HEjvBPtnXfVAQIw6AP8D1ie5tOyL+2nvemxE8pEHd4HrfudqTDu
xMHqi7QyT/EUfEsrK1lH4wqZhE76dbDlie6yGQWL6vrAsUPvo3xEDWCOie6+18D+
TO/G2s7jXtZeMXSXJFpCmVUE+kS2B4b5OJQgdHqQlJL5CyA3PhdeRrGMSyv38WDn
bjqASX5hCxI=
=bDTT
-----END PGP SIGNATURE-----
_______________________________________________
Email-SIG mailing list
Email-SIG@...
Your options: http://mail.python.org/mailman/options/email-sig/lists%40nabble.com

Parent Message unknown Re: [Python-3000] email libraries: use byte or unicode strings?

by Barry Warsaw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Nov 6, 2008, at 1:15 PM, Guido van Rossum wrote:

>> But if that's not the case, wouldn't it make more sense to keep  
>> email out of
>> the initial 3.0 release, rather than put a half-broken version in  
>> with
>> special "we can totally change the API for the next release"  
>> dispensation?
>
> Tough call. I'm inclined to give people *something* in 3.0 with the
> promise we'll fix it in 3.1, rather than withholding it altogether.

I think that's the right thing to do, because large parts of the API  
will be the same, and where ever it's possible, we should provide a  
migration path for the new API (e.g. DeprecationWarnings, etc.).

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBSRM7zXEjvBPtnXfVAQKlMQP/YxW+AWdFb83NC9mpL3uBZrNkEygKlcp6
IoyehmucOfCmPGp8dwCkw/BP9qCoKXkFyCnMbIuLOhbyzYfPsPD822voGjeLNb2O
bYPMoMSOdlUPJaV4trdGd3RR7KIYAwhXymWW1MxnkyfDZ1mNyRRJyR3SMPJiLZoL
/MDfrcchcGQ=
=z39Z
-----END PGP SIGNATURE-----
_______________________________________________
Email-SIG mailing list
Email-SIG@...
Your options: http://mail.python.org/mailman/options/email-sig/lists%40nabble.com