Message265030
Thank you Luiz for your testing.
> __main__:1: DeprecationWarning: Use of '' is deprecated
It is bad that a warning is emitted for default value.
> Will bytes be deprecated if used as a default_schema?
No, only using empty bytes schema with string url is deprecated (because it works now). Using non-empty bytes schema with string url just causes an error.
> Shouldn't it complain that the types are different?
This special case is left for compatibility with wrappers.
> __main__:1: DeprecationWarning: Use of [] is deprecated
The warning should not be emitted for the value that the user did not provide.
If go by the way of strong deprecation, the patch needs reworking. But this is a way of overcomplication.
Since as pointed Antti, only using str, bytes and bytearray is documented, I think we can ignore the breakage for other types. |
|
Date |
User |
Action |
Args |
2016-05-06 20:52:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, orsenthil, r.david.murray, martin.panter, ztane, demian.brecht, luiz.poleto |
2016-05-06 20:52:39 | serhiy.storchaka | set | messageid: <1462567959.24.0.232116413135.issue22234@psf.upfronthosting.co.za> |
2016-05-06 20:52:39 | serhiy.storchaka | link | issue22234 messages |
2016-05-06 20:52:38 | serhiy.storchaka | create | |
|