Message117719
> Option 2 (the alternative Antoine suggested and I'm considering):
> - "decode" ... to str ...
> - ... objects are "encoded" back to actual bytes before
> they are returned
In this case, you have to be very careful to not mix str and bytes decoded to str using a pseudo-encoding. Dummy example: urljoin('unicode', b'bytes') should raise an error.
I don't care of the internals if you write tests to ensure that it is not possible to mix str and bytes with the public API. |
|
Date |
User |
Action |
Args |
2010-09-30 10:59:31 | vstinner | set | recipients:
+ vstinner, ncoghlan, pitrou, eric.smith, eric.araujo, r.david.murray |
2010-09-30 10:59:31 | vstinner | set | messageid: <1285844371.34.0.555090920821.issue9873@psf.upfronthosting.co.za> |
2010-09-30 10:59:30 | vstinner | link | issue9873 messages |
2010-09-30 10:59:29 | vstinner | create | |
|