¡@

Home 

python Programming Glossary: books.select

The same method for class and instance

http://stackoverflow.com/questions/7750896/the-same-method-for-class-and-instance

of that class called book . I want to be able to do both Books.select where '...' and book.select where '...' class Books def select.. Books def select obj where print obj where book Books Books.select where 'asdf' book.select where 'asdf' The above obviously doesn't.. most recent call last File test.py line 7 in module Books.select where 'asdf' TypeError select takes exactly 2 arguments 1 given..