-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-133829: Update zipimport example to not mention Python 2.3 #133835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
842443e
38d41ad
93da900
72ff028
0b5e2a5
24788eb
b8eccf7
e7c93b9
b224d43
cff42fa
dc21001
548857f
7b5e7da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -188,17 +188,20 @@ Here is an example that imports a module from a ZIP archive - note that the | |||||
|
||||||
.. code-block:: shell-session | ||||||
|
||||||
$ unzip -l example.zip | ||||||
Archive: example.zip | ||||||
$ unzip -l example_archive.zip | ||||||
sobolevn marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
Archive: example_archive.zip | ||||||
Length Date Time Name | ||||||
-------- ---- ---- ---- | ||||||
8467 11-26-02 22:30 jwzthreading.py | ||||||
8467 05-11-25 12:29 example.py | ||||||
sharktide marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
8467 05-11-25 12:29 example.py | |
8467 01-01-00 12:34 example.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably best not so we will know (or people will notice) to update the example if we ever make breaking changes to zipimport. I don't think it is worth it, but it doesn't matter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand your comment. The code block here is for unzip
, where we're already inventing an archive for expository purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My phone has aggressive autocorrect and my misspelling resulted in unzip turning into zipimporter.
But on second thoughts, by keeping the time and date specific, we know what version of Python it was written in and if we ever change anything even methods we keep for expository purposes someone will notice and fix it.
I also don't think it matters that much :).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But on second thoughts, by keeping the time and date specific, we know what version of Python it was written in and if we ever change anything even methods we keep for expository purposes someone will notice and fix it.
I'm not sure I understand. If we break this (which is unlikely), we'll update the example anyway. Knowing when something was written generally doesn't have much maintenance benefit.
I think I agree with Adam -- it'd be better to make this clearer that it's an example and not supposed to be actual data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right.
Uh oh!
There was an error while loading. Please reload this page.