Skip to content

Instantly share code, notes, and snippets.

@jude90
Last active August 29, 2015 14:05
Show Gist options
  • Save jude90/bde695ac3a819c26a68a to your computer and use it in GitHub Desktop.
Save jude90/bde695ac3a819c26a68a to your computer and use it in GitHub Desktop.
python 笔记
python 属性的查找顺序是 __getattribute__ , __dict__ , __getattr__ .
一个接一个调用。在 __getattribute__ 中 调用对象的某个属性, 可能会引起递归。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment