[issue16372] Initialization strange behavior

2012-10-31 Thread Wojciech Danilo
New submission from Wojciech Danilo: Hi! I'm using Python for several years and now I'm writing in Python 3 for the first time. I think I found a strange bug in it. Lets concider the code in the attachement. In the 33 line there is construction of new instance of class Res

[issue16372] Initialization strange behavior

2012-10-31 Thread Wojciech Danilo
Wojciech Danilo added the comment: Wow, I was using Python so long and I didn't know about it. Is there any paper discussing why this feature is better than storing "cache" as global variable / as class "private" parameter? -- _

[issue16372] Initialization strange behavior

2012-10-31 Thread Wojciech Danilo
Wojciech Danilo added the comment: Thank you! -- ___ Python tracker <http://bugs.python.org/issue16372> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16851] ismethod and isfunction methods error

2013-01-03 Thread Wojciech Danilo
New submission from Wojciech Danilo: Hi! I think this behaviour is bug. Lets concider the following code: import inspect class X(object): def a(self):pass def b(self):pass def c(self):pass print(inspect.getmembers(X, predicate=inspect.ismethod)) print(inspect.getmembers(X