This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients demian.brecht, luiz.poleto, martin.panter, orsenthil, r.david.murray, serhiy.storchaka, ztane
Date 2016-05-06.20:52:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462567959.24.0.232116413135.issue22234@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-06 20:52:39serhiy.storchakasetrecipients: + serhiy.storchaka, orsenthil, r.david.murray, martin.panter, ztane, demian.brecht, luiz.poleto
2016-05-06 20:52:39serhiy.storchakasetmessageid: <1462567959.24.0.232116413135.issue22234@psf.upfronthosting.co.za>
2016-05-06 20:52:39serhiy.storchakalinkissue22234 messages
2016-05-06 20:52:38serhiy.storchakacreate