Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Explained the pattern for special methods compatibility.

  • Loading branch information...
commit bfe25de42993fdbfccd4759f48ac6694e1ed32d9 1 parent 5306285
Aymeric Augustin authored April 19, 2013

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  docs/topics/python3.txt
3  docs/topics/python3.txt
@@ -317,6 +317,9 @@ Division
317 317
         def __idiv__(self, other):  # Python 2 compatibility
318 318
             return type(self).__itruediv__(self, other)
319 319
 
  320
+Special methods are looked up on the class and not on the instance to reflect
  321
+the behavior of the Python interpreter.
  322
+
320 323
 .. module: django.utils.six
321 324
 
322 325
 Writing compatible code with six

0 notes on commit bfe25de

Please sign in to comment.
Something went wrong with that request. Please try again.