default behavior

David Niergarth jdnier at
Thu Aug 12 22:28:26 CEST 2010

Peter Otten <__pete... at> wrote:
> >>> 1 .conjugate()

This is a syntax I never noticed before. My built-in complier (eyes)
took one look and said: "that doesn't work." Has this always worked in
Python but I never noticed? I see other instance examples also work.

  >>> '1' .zfill(2)
  >>> 1.0 .is_integer()

and properties

  >>> 1.0 .real

Curiously, this works

More information about the Python-list mailing list