summaryrefslogtreecommitdiffstats
path: root/Demo/classes/Complex.py
Commit message (Collapse)AuthorAgeFilesLines
* Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about ↵Collin Winter2007-07-171-15/+15
| | | | lingering print statements.
* - patch #1600346 submitted by Tomer FilibaJack Diederich2006-11-281-1/+1
| | | | | | - Renamed nb_nonzero slots to nb_bool - Renamed __nonzero__ methods to __bool__ - update core, lib, docs, and tests to match
* Remove sys.exc_type, sys.exc_value, sys.exc_tracebackNeal Norwitz2006-03-171-1/+1
|
* * Fix error in definition of Im() which returned self instead of 0Raymond Hettinger2005-04-091-19/+14
| | | | | | | | | | | | | | | | for non-complex arguments. * Replace type() comparisons with isinstance() checks. * Replace apply() calls with equivalent syntactic form. * Simplify __hash__ definition to hash the underlying tuple. * Use math.hypot() for more robust computation of __abs__(). * Use sorted() instead of the multi-step keys/sort/iter. * Update comment on the cmath module.
* Patch #1177597: Correct various bugs, add comments.Martin v. Löwis2005-04-091-9/+36
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-4/+4
| | | | From SF patch #852334.
* Run these demo scripts through reindent.py to give them 4-space indents. ↵Andrew M. Kuchling2003-04-241-209/+209
| | | | I've verified that their output is unchanged.
* Fix the test for pow() -- no more TypeErrors are raised!Guido van Rossum1997-12-091-2/+2
|
* Added note about Python's support of complex numbers.Guido van Rossum1996-07-301-1/+11
| | | | Added exp(z).
* totally redone for new overloading schemeGuido van Rossum1994-10-081-60/+263
|
* *** empty log message ***Guido van Rossum1993-12-171-10/+22
|
* Initial revisionGuido van Rossum1992-08-131-0/+73