marc leconte

Show:

What's happening?

  • Comment: 'Number' does not work properly

    Hi, I have found a way to solve this. I'm not sure it does not add another bug somewhere else but it works for me. In the file typeclasses.py, I have changed this: ### Number #################################################### _numbers = [int, float, complex, long, bool] try: from decimal import Decimal _numbers.append(Decimal) del Decimal except ImportError: pass del _numbers.

    2009-01-04 15:46:20 UTC in Python typechecker

  • 'String' does not work properly

    Hello, I'm using typecheck 0.3.5 Python 2.5 Linux Ubuntu 8.04.1 And I have the same problem than tiagocoutinho _and_ another one with String: @accepts(String) def f(a): print a if __name__ == "__main__": f(2) The exception is not the one expected: typecheck.TypeCheckError: Argument a: for 2, missing attribute upper I would have expected something like...

    2008-12-31 23:00:57 UTC in Python typechecker

About Me

  • 2008-12-31 (10 months ago)
  • 2345130
  • tildebis (My Site)
  • marc leconte

Send me a message