Created
June 30, 2012 20:53
-
-
Save jan-matejka/3025470 to your computer and use it in GitHub Desktop.
__method_argument
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| class A: | |
| def __init__(self, __ke=None): | |
| print __ke | |
| class B: | |
| def __init__(self, **kw): | |
| print kw | |
| B(__ke=1) | |
| A(__ke=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment