10 Commits

Author SHA1 Message Date
Sergey B Kirpichev 8778568951 Avoid using ";" in doctests, esp with side effects
The new CPython repl hide all output, except for the last statement.
See https://github.com/python/cpython/issues/131217.
2025-05-01 10:41:48 +03:00
Sergey B Kirpichev 5ec9d07dee Reorganize imports in doctests (no star imports) 2023-05-09 07:27:20 +03:00
Sergey B Kirpichev 57efbdc101 Drop resetting globals (mp.prec and so on) in doctests 2023-04-20 12:55:47 +03:00
Christian Clauss 6489ed3bc1 Fix pycodestyle errors E703, E712, E713 (#665) 2023-03-28 10:29:30 +03:00
Ondřej Čertík 89c636f5dc Normalize line endings 2014-04-14 12:49:26 -06:00
Fredrik Johansson 0f6ac516fa fix most doctests failing in py3 2011-01-09 17:47:36 +00:00
Fredrik Johansson d6a6afcdbd python 3-compatible print statements (not fully verified yet) 2011-01-08 22:38:25 +00:00
Fredrik Johansson 27eab13de6 convert line endings in trunk to unix format; rebuild docs 2010-07-28 20:09:06 +00:00
Fredrik Johansson 9366157598 added mp.pretty=True option to make print unnecessary for interactive use 2009-07-01 17:48:21 +00:00
Fredrik Johansson 76056a2366 Began converting functions into methods of the mp object.
It becomes possible to work with multiple simultaneous contexts (although this is not fully working yet). So far mptypes.py and functions.py have been converted.

Some minor bugs (mostly precision and conversion inconsistencies) were fixed along the way.

Docstrings in functions.py were also moved to a separate file to provide better overview.
2009-04-30 20:44:30 +00:00