Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PEP 544: Protocols#224

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gvanrossum merged 40 commits intopython:masterfromilevkivskyi:protocols
Mar 18, 2017
Merged
Changes from1 commit
Commits
Show all changes
40 commits
Select commitHold shift + click to select a range
3fa3e48
Collect various ideas
ilevkivskyiMar 5, 2017
51b0ca0
Some formatting and reordering
ilevkivskyiMar 5, 2017
993f7b3
Add some examples
ilevkivskyiMar 5, 2017
e384336
Add planned link templates
ilevkivskyiMar 6, 2017
7ea5d41
Add links + minor changes
Mar 6, 2017
cdcf62f
Polishing rationale
Mar 6, 2017
1ffed9b
Some more reshuffling and formatting
Mar 6, 2017
72ceae6
Add more examples
Mar 6, 2017
6bea2e8
Add more examples to existing approaches
Mar 6, 2017
d5972c3
Typos, reordering, and few more details (backport)
ilevkivskyiMar 6, 2017
57d375f
Update list of protocols in typing
ilevkivskyiMar 6, 2017
9d4d685
Defining protocols plus minor changes and formatting
ilevkivskyiMar 7, 2017
82258d5
Explicitly declaring implementation and other changes
ilevkivskyiMar 7, 2017
5d9fb7c
More polishing
ilevkivskyiMar 7, 2017
a6e6d9e
Edit rejected/postponed ideas
ilevkivskyiMar 7, 2017
3175013
Runtime things, reorder links
ilevkivskyiMar 7, 2017
cbff669
Runtime decorator
ilevkivskyiMar 7, 2017
dfccd06
Backward compatible part and last bits
Mar 8, 2017
60f4d52
Some clarifications
ilevkivskyiMar 9, 2017
60e7f7f
Add links in text
ilevkivskyiMar 9, 2017
c90aa1c
Caption style, add cross-refs
Mar 9, 2017
b008de1
Remove redundant links; + minor changes
ilevkivskyiMar 10, 2017
02cca5c
One more tiny change
ilevkivskyiMar 10, 2017
7d89b6b
Merge remote-tracking branch 'upstream/master' into protocols
ilevkivskyiMar 10, 2017
0f3732a
Copyediting changes
JelleZijlstraMar 10, 2017
95fbf58
Merge pull request #1 from JelleZijlstra/patch-2
ilevkivskyiMar 10, 2017
cb65bff
Rename PEP with a valid number to get the build running
ilevkivskyiMar 10, 2017
817bf2f
Reflow to 79 characters
ilevkivskyiMar 10, 2017
2d89ba9
fix typo
JelleZijlstraMar 10, 2017
0efcbff
Some grammar tweaks
brettcannonMar 10, 2017
ebd4b17
Merge pull request #3 from brettcannon/patch-1
ilevkivskyiMar 10, 2017
0de36be
Implement Guido's idea of EIBTI plus minor comments
ilevkivskyiMar 11, 2017
767c58b
Fix typo
ilevkivskyiMar 11, 2017
efc3154
Make implementation enforcement optional; fix order of Protocolbase
ilevkivskyiMar 12, 2017
7d714c3
Add missing @abstractmethod decorators
ilevkivskyiMar 13, 2017
d4ab050
Minor clarification
ilevkivskyiMar 13, 2017
d9d21c2
Implement Jukka's and David's comments; few more minor things
ilevkivskyiMar 16, 2017
4dfbfb2
Implement most comments by Łukasz; few more to do
ilevkivskyiMar 17, 2017
d51420e
More changes in response to comments
Mar 18, 2017
f6240c8
Remove one reamining 'All'
ilevkivskyiMar 18, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
One more tiny change
  • Loading branch information
@ilevkivskyi
ilevkivskyi committedMar 10, 2017
commit02cca5c9086a5edba911da32856e03339804df66
6 changes: 3 additions & 3 deletionspep-05xx.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -186,9 +186,9 @@ approaches related to structural subtyping in Python and other languages:
protocols. The main goal of this proposal is to support such behavior
statically. In addition, to allow users achieving (if necessary) such
runtime behavior for user defined protocols, a simple class decorator
``@runtime`` can be provided that automatically adds a ``__subclasshook__``
that mimics the one in ``collections.abc``, see detailed `discussion`_
below.
``@runtime`` can be provided that automatically adds a
``__subclasshook__()``that mimics the one in ``collections.abc``,
see detailed `discussion`_below.

* TypeScript [typescript]_ provides support for user defined classes and
interfaces. Explicit implementation declaration is not required,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp