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
5bc8cf14
Commit
5bc8cf14
authored
Dec 06, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additions based on 0.1 comments
parent
4eeae24e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
9 deletions
+31
-9
lib/python/Interface/CHANGES.txt
lib/python/Interface/CHANGES.txt
+10
-0
lib/python/Interface/README.txt
lib/python/Interface/README.txt
+20
-8
lib/python/Interface/release.sh
lib/python/Interface/release.sh
+1
-1
No files found.
lib/python/Interface/CHANGES.txt
0 → 100644
View file @
5bc8cf14
Interface package change history
Release 0.1.1
This release includes some changes to the documentation to reflect
comments made on 0.1.
Release 0.1
This was the initial release.
lib/python/Interface/README.txt
View file @
5bc8cf14
...
...
@@ -245,7 +245,14 @@ Details
Tim Peter's has expressed the desire to provide abstract
implementations in an interface definitions, where, presumably, an
abstract implementation uses only features defined by the
interface. For example:
interface.
Perhaps if a method definition has a body (other than a doc
string) then the corresponding method in the defered class
will not be defered. This would not be hard to do in CPython
if I cheat and sniff at method bytecodes.
For example:
class ListInterface(Interface.Standard.MutableSequence):
...
...
@@ -256,10 +263,14 @@ Details
"add a value to the end of the object"
self.append(v)
Perhaps if a method definition has a body (other than a doc
string) then the corresponding method in the defered class
will not be defered. This would not be hard to do in CPython
if I cheat and sniff at method bytecodes.
ListBase=ListInterface.defered()
class ListImplementer(Listbase):
def append(self, v): ...
In this example, we can create a base class, ListBase, that provides an
abstract implementation of 'push' and an implementation of append
that raises an error if not overridden.
Standard interfaces
...
...
@@ -279,9 +290,6 @@ Details
type(1L),
(AbritraryPrecision, BitNumber, Signed))
Issues
o What should the objects that define attributes look like?
...
...
@@ -291,6 +299,10 @@ Issues
Note that we've made a first cut with 'Attribute' and
'Method' objects.
Note that the information contained in a non-method attribute
object might contain the attribute value's interface as well as
other information, such as an attribute's usage.
o There are places in the current implementation that use
'isinstance' that should be changed to use interface
checks.
...
...
lib/python/Interface/release.sh
View file @
5bc8cf14
...
...
@@ -12,7 +12,7 @@ for f in `cat pyfiles`; do
cp
$f
"
$M
-
$R
/Interface/"
done
for
f
in
README.txt test.py
;
do
for
f
in
README.txt
CHANGES.txt
test.py
;
do
cp
$f
"
$M
-
$R
/"
done
...
...
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