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
380bad1b
Commit
380bad1b
authored
Sep 22, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add note about __getattribute__.
parent
e0b2d7ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Misc/NEWS
Misc/NEWS
+9
-0
No files found.
Misc/NEWS
View file @
380bad1b
...
...
@@ -19,6 +19,15 @@ Core
constructor, with the same signature as the builtin open() function.
file() is now the preferred way to open a file.
- In 2.2a3, *for new-style classes only*, __getattr__ was called for
every attribute access. This was confusing because it differed
significantly from the behavior of classic classes, where it was
only called for missing attributes. Now, __getattr__ is called only
if regular attribute access raises AttributeError; to catch *all*
attribute access, *for new-style classes only*, you can use
__getattribute__. If both are defined, __getattribute__ is called
first, and if it raises AttributeError, __getattr__ is called.
- In 2.2a3, __new__ would only see sequential arguments passed to the
type in a constructor call; __init__ would see both sequential and
positional arguments. This made no sense whatsoever any more, so
...
...
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