summaryrefslogtreecommitdiffstats
path: root/Demo/classes/Complex.py
Commit message (Collapse)AuthorAgeFilesLines
* More cleanup: Move some demos into a dedicated Tools/demo dir, move 2to3 ↵Georg Brandl2010-12-301-304/+0
| | | | demo to Tools, and remove all the other Demo content.
* Made minimal modifications to pass included testsAlexander Belopolsky2010-07-031-17/+7
|
* Merged revisions 78779 via svnmerge fromBenjamin Peterson2010-03-211-0/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78779 | benjamin.peterson | 2010-03-07 20:11:06 -0600 (Sun, 07 Mar 2010) | 1 line remove svn:executable from scripts without a shebang line ........
* Remove __long__ methods from UserString and from Demo/ classes.Mark Dickinson2009-01-111-6/+0
|
* 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