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 gavin, massimosala, serhiy.storchaka, xtreak
Date 2020-04-16.16:38:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587055127.53.0.862332410783.issue40271@roundup.psfhosted.org>
In-reply-to
Content
If add such option to zipfile.is_zipfile(), why not add it to other functions? There are many tens or hundreds of functions and methods in the stdlib which accept a file path. Adding such option to all of them is not practical. And zipfile.is_zipfile() does not look special.

Also, there are other options which you may want to add to zipfile.is_zipfile(). What about expandvars()? Or support URIs with the file:/// scheme? Or maybe someone want to replace ~ with the project directory instead of the home directory.

It is better to provide functions for every tiny feature and combine them as you want than add an infinite number of options to all functions.
History
Date User Action Args
2020-04-16 16:38:47serhiy.storchakasetrecipients: + serhiy.storchaka, xtreak, gavin, massimosala
2020-04-16 16:38:47serhiy.storchakasetmessageid: <1587055127.53.0.862332410783.issue40271@roundup.psfhosted.org>
2020-04-16 16:38:47serhiy.storchakalinkissue40271 messages
2020-04-16 16:38:47serhiy.storchakacreate