Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pypy.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PyPy
pypy.org
Commits
97f33446
Commit
97f33446
authored
13 years ago
by
Armin Rigo
Browse files
Options
Downloads
Patches
Plain Diff
Clarify.
parent
76fea61e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compat.html
+3
-1
3 additions, 1 deletion
compat.html
source/compat.txt
+3
-1
3 additions, 1 deletion
source/compat.txt
with
6 additions
and
2 deletions
compat.html
+
3
−
1
View file @
97f33446
...
...
@@ -92,7 +92,9 @@
they just enable and disable the execution of finalizers. Also,
<tt
class=
"docutils literal"
>
gc.garbage
</tt>
always returns an empty list.
</p>
</li>
<li><p
class=
"first"
>
You can't attach a
<tt
class=
"docutils literal"
>
__del__
</tt>
method to a class after its creation.
</p>
<li><p
class=
"first"
>
You can't add a
<tt
class=
"docutils literal"
>
__del__
</tt>
method to an existing class; it
must be present in the class since the beginning, or else it
will not be automatically called when instances are freed.
</p>
</li>
<li><p
class=
"first"
>
You can't store non-string keys in type objects. Example
</p>
<div
class=
"syntax python"
><pre><span
class=
"k"
>
class
</span>
<span
class=
"nc"
>
A
</span><span
class=
"p"
>
(
</span><span
class=
"nb"
>
object
</span><span
class=
"p"
>
):
</span><br/>
<span
class=
"nb"
>
locals
</span><span
class=
"p"
>
()[
</span><span
class=
"mi"
>
42
</span><span
class=
"p"
>
]
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"mi"
>
3
</span><br/></pre></div>
...
...
This diff is collapsed.
Click to expand it.
source/compat.txt
+
3
−
1
View file @
97f33446
...
...
@@ -71,7 +71,9 @@
they just enable and disable the execution of finalizers. Also,
``gc.garbage`` always returns an empty list.
* You can't attach a ``__del__`` method to a class after its creation.
* You can't add a ``__del__`` method to an existing class; it
must be present in the class since the beginning, or else it
will not be automatically called when instances are freed.
* You can't store non-string keys in type objects. Example
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment