Seite 1 von 1

Ein kleines/grosses Problem mit min() und max()

Verfasst: Mittwoch 24. November 2004, 14:22
von Slalomsk8er
Irgend wie blicke ich da nicht durch:

Code: Alles auswählen

Traceback (most recent call last):
  File "C:\test\shadow001.py", line 75, in ?
    max = max(illumination_invariant_img)
TypeError: 'float' object is not callable
>>> max(6,8)
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in ?
    max(6,8)
TypeError: 'float' object is not callable
>>> float
<type 'float'>
>>> 
Wird daraus jemand schlau?

Dominik

Verfasst: Mittwoch 24. November 2004, 15:13
von Slalomsk8er
Das kann man wohl als blackout von mir sehen :oops:

Ich darf meine Variable nicht max nennen, sonst funktioniert max() nicht mehr!

Es ist immer gut, seine Dummheit selber zu bekämpfen.

Dominik

Verfasst: Mittwoch 24. November 2004, 22:59
von oenone
notfalls kannst du per __builtins__.max auf die urspruengliche max-funktion zugreifen.

auf bald
oenone