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
c1b89700
Commit
c1b89700
authored
Mar 16, 2005
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
J1m: /lib/Component/ExtensionClass should be removed afaik
parent
09545b1d
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
5220 deletions
+0
-5220
lib/Components/ExtensionClass/setup.py
lib/Components/ExtensionClass/setup.py
+0
-93
lib/Components/ExtensionClass/src/Acquisition.c
lib/Components/ExtensionClass/src/Acquisition.c
+0
-1572
lib/Components/ExtensionClass/src/ExtensionClass.c
lib/Components/ExtensionClass/src/ExtensionClass.c
+0
-3555
No files found.
lib/Components/ExtensionClass/setup.py
deleted
100644 → 0
View file @
09545b1d
#!/usr/bin/env python
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
#
##############################################################################
"""Support for Python classes implemented in C
A lightweight mechanism has been developed for making Python
extension types more class-like. Classes can be developed in an
extension language, such as C or C++, and these classes can be
treated like other python classes:
- They can be sub-classed in python,
- They provide access to method documentation strings, and
- They can be used to directly create new instances.
An example class shows how extension classes are implemented and how
they differ from extension types.
Extension classes provide additional extensions to class and
instance semantics, including:
- A protocol for accessing subobjects "in the context of" their
containers. This is used to implement custom method types
and "environmental acquisition":Acquisition.html.
- A protocol for overriding method call semantics. This is used
to implement "synchonized" classes and could be used to
implement argument type checking.
- A protocol for class initialization that supports execution of a
special '__class_init__' method after a class has been
initialized.
Extension classes illustrate how the Python class mechanism can be
extended and may provide a basis for improved or specialized class
models.
"""
# Setup file for ExtensionClass
# setup.py contributed by A.M. Kuchling <amk1@bigfoot.com>
from
distutils.core
import
setup
from
distutils.extension
import
Extension
ExtensionClass
=
Extension
(
name
=
'ExtensionClass'
,
sources
=
[
'src/ExtensionClass.c'
])
Acquisition
=
Extension
(
name
=
'Acquisition'
,
sources
=
[
'src/Acquisition.c'
])
ComputedAttribute
=
Extension
(
name
=
'ComputedAttribute'
,
sources
=
[
'src/ComputedAttribute.c'
])
MethodObject
=
Extension
(
name
=
'MethodObject'
,
sources
=
[
'src/MethodObject.c'
])
Missing
=
Extension
(
name
=
'Missing'
,
sources
=
[
'src/Missing.c'
])
MultiMapping
=
Extension
(
name
=
'MultiMapping'
,
sources
=
[
'src/MultiMapping.c'
])
Record
=
Extension
(
name
=
'Record'
,
sources
=
[
'src/Record.c'
])
ThreadLock
=
Extension
(
name
=
'ThreadLock'
,
sources
=
[
'src/ThreadLock.c'
])
setup
(
name
=
"ExtensionClass"
,
version
=
"1.3"
,
description
=
"Support for Python classes implemented in C"
,
maintainer
=
"Zope Corporation"
,
maintainer_email
=
"zodb-dev@zope.org"
,
url
=
"http://www.zope.com"
,
ext_modules
=
[
ExtensionClass
,
Acquisition
,
ComputedAttribute
,
MethodObject
,
Missing
,
MultiMapping
,
ThreadLock
,
Record
],
headers
=
[
"src/ExtensionClass.h"
],
long_description
=
__doc__
)
lib/Components/ExtensionClass/src/Acquisition.c
deleted
100644 → 0
View file @
09545b1d
This diff is collapsed.
Click to expand it.
lib/Components/ExtensionClass/src/ExtensionClass.c
deleted
100644 → 0
View file @
09545b1d
This diff is collapsed.
Click to expand it.
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