Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0a928dc
Commit
e0a928dc
authored
Jan 20, 2000
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some broken links.
parent
72ca1b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Demo/metaclasses/index.html
Demo/metaclasses/index.html
+3
-3
No files found.
Demo/metaclasses/index.html
View file @
e0a928dc
...
...
@@ -27,7 +27,7 @@ allowing the Python class syntax to be used to define other class-like
entities. Don Beaudry has used this in his infamous
<A
HREF=
"http://maigret.cog.brown.edu/pyutil/"
>
MESS
</A>
package; Jim
Fulton has used it in his
<A
HREF=
"http://www.digicool.com/
papers/ExtensionClass.html
"
>
Extension
HREF=
"http://www.digicool.com/
releases/ExtensionClass/
"
>
Extension
Classes
</A>
package. (It has also been referred to as the ``Don
Beaudry
<i>
hack
</i>
,'' but that's a misnomer. There's nothing hackish
about it -- in fact, it is rather elegant and deep, even though
...
...
@@ -62,7 +62,7 @@ type of the base class is callable.''
<P>
(Types are not classes, by the way. See questions 4.2, 4.19 and in
particular 6.22 in the
<A
HREF=
"http://
grail.cnri.reston.va.us
/cgi-bin/faqw.py"
>
Python FAQ
</A>
HREF=
"http://
www.python.org
/cgi-bin/faqw.py"
>
Python FAQ
</A>
for more on this topic.)
<P>
...
...
@@ -193,7 +193,7 @@ C = B.__class__('C', (B,), {'a': 1, 'b': 2})
This is exactly the same as before except that instead of type(B),
B.__class__ is invoked. If you have read
<A
HREF=
"http://
grail.cnri.reston.va.us
/cgi-bin/faqw.py?req=show&file=faq06.022.htp"
"http://
www.python.org
/cgi-bin/faqw.py?req=show&file=faq06.022.htp"
>
FAQ question 6.22
</A>
you will understand that while there is a big
technical difference between type(B) and B.__class__, they play the
same role at different abstraction levels. And perhaps at some point
...
...
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