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 chris.jerdonek
Recipients berker.peksag, chris.jerdonek, demian.brecht, martin.panter, orsenthil, rbcollins, soilandreyes
Date 2018-07-31.14:10:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533046223.0.0.56676864532.issue22852@psf.upfronthosting.co.za>
In-reply-to
Content
I just learned of this issue. Rather than adding has_netloc, etc. attributes, why not use None to distinguish missing values as is preferred above, but add a new boolean keyword argument to urlparse(), etc. to get the new behavior (e.g. "allow_none" to parallel "allow_fragments")?

It seems like this would be more elegant, IMO, because it would lead to the API we really want. For example, the ParseResult(), etc. signatures and repr() values would be simpler. Changing the default value of the new keyword arguments would also provide a clean and simple deprecation pathway in the future, if desired.
History
Date User Action Args
2018-07-31 14:10:23chris.jerdoneksetrecipients: + chris.jerdonek, orsenthil, rbcollins, berker.peksag, martin.panter, demian.brecht, soilandreyes
2018-07-31 14:10:23chris.jerdoneksetmessageid: <1533046223.0.0.56676864532.issue22852@psf.upfronthosting.co.za>
2018-07-31 14:10:22chris.jerdoneklinkissue22852 messages
2018-07-31 14:10:22chris.jerdonekcreate