Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
0466d24e
Commit
0466d24e
authored
Sep 19, 2000
by
Ken Manheimer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some spelling corrections.
parent
90782cb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
lib/python/Interface/README.txt
lib/python/Interface/README.txt
+12
-12
No files found.
lib/python/Interface/README.txt
View file @
0466d24e
...
...
@@ -49,7 +49,7 @@ Details
Interfaces can be created in several ways. The class statement
can be used with one or more interfaces provided as base classes.
This approach is convenient, syntactically, although it is a
little mis
s
leading, since interfaces are *not* classes. A minimal
little misleading, since interfaces are *not* classes. A minimal
interface that can be used as a base is Interface.Base.
You can also call Interface.new:
...
...
@@ -123,9 +123,9 @@ Details
where I1, I2, and I3 are interfaces.
Classes may provide (default) assertions for their instances
(and subclass instances). The usual inherit
e
nce rules apply.
(and subclass instances). The usual inherit
a
nce rules apply.
Note that the definition of interface assertions makes composition
of interfaces straightforw
o
rd. For example:
of interfaces straightforw
a
rd. For example:
class A:
...
...
@@ -203,7 +203,7 @@ Details
When a class statement is used to define an interface, method
definitions may be provided. These get converted to Method
objects during interface creation. For examle:
objects during interface creation. For exam
p
le:
class I1(Interface.Base):
...
...
@@ -240,15 +240,15 @@ Details
Attempts to call methods inherited from a deferred class will
raise Interface.BrokenImplementation exceptions.
Trial baloon: abstract implementations
Trial bal
l
oon: abstract implementations
Tim Peter
'
s has expressed the desire to provide abstract
implementations in
an
interface definitions, where, presumably, an
Tim Peters has expressed the desire to provide abstract
implementations in interface definitions, where, presumably, an
abstract implementation uses only features defined by the
interface.
Perhaps if a method definition has a body (other than a doc
string) then the corresponding method in the deferred class
string)
,
then the corresponding method in the deferred class
will not be deferred. This would not be hard to do in CPython
if I cheat and sniff at method bytecodes.
...
...
@@ -275,9 +275,9 @@ Details
Standard interfaces
The module Interface.Standard defines interfaces for standard
python ob
n
jects.
python objects.
This module
,
and the modules it uses need a lot more work!
This module and the modules it uses need a lot more work!
Handling existing built-in types
...
...
@@ -310,6 +310,6 @@ Issues
o When the interface interfaces are finalized, C implementations
will be highly desirable for performance reasons.
o Alot more work is needed on the standard interface hierarchy.
o A
lot more work is needed on the standard interface hierarchy.
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment