Gregory P. Smith
d59fefb23a
update the getpass entry
2008-04-22 08:11:33 +00:00
Gregory P. Smith
19b4411181
Major improvements:
...
* Default to using /dev/tty for the password prompt and input before
falling back to sys.stdin and sys.stderr.
* Use sys.stderr instead of sys.stdout.
* print the 'password may be echoed' warning to stream used to display
the prompt rather than always sys.stderr.
* warn() with GetPassWarning when input may be echoed.
2008-04-22 08:08:41 +00:00
Neal Norwitz
8e0319d82a
Add Thomas Lee
2008-04-22 05:07:47 +00:00
Benjamin Peterson
3c399d1ad1
Various io doc updates
2008-04-22 02:16:03 +00:00
Mark Dickinson
7a3d8641a9
Make configure test for tanh(-0.) == -0. committed in r62447 actually
...
work. (The test wasn't properly linked with libm. Sigh.)
2008-04-22 00:54:27 +00:00
Benjamin Peterson
60ffcbe88b
Fix Sphinx warnings
2008-04-21 22:57:00 +00:00
Amaury Forgeot d'Arc
dd8d824a56
Issue 2665: On Windows, sys.stderr does not contain a valid file when running without a console.
...
It seems to work, but will fail at the first flush.
This causes IDLE to crash when too many warnings are printed.
Will backport.
2008-04-21 22:35:30 +00:00
Mark Dickinson
265d7384b9
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
...
apparently because tanh(-0.) loses the sign of zero on that platform.
If true, this is a bug in FreeBSD.
Added a configure test to verify this. I still need to figure out
how best to deal with this failure.
2008-04-21 22:32:24 +00:00
Gregory P. Smith
41e3018336
If sys.stdin is not a tty, fall back to default_getpass after printing
...
a warning instead of failing with a termios.error.
2008-04-21 21:31:08 +00:00
Jeroen Ruigrok van der Werven
aa3cadb01e
Windows x64 also falls under VER_PLATFORM_WIN32_NT.
2008-04-21 20:15:39 +00:00
Gregory P. Smith
fa1814e1b6
explicitly flush after the ... since there wasn't a newline
2008-04-21 17:46:40 +00:00
David Goodger
67ea002342
capitalization
2008-04-21 14:43:33 +00:00
David Goodger
09f57b7947
corrections ("reStructuredText" is one word)
2008-04-21 14:40:22 +00:00
Thomas Heller
b9dd8db8bf
Fix typo.
2008-04-21 13:46:55 +00:00
Benjamin Peterson
ad9f62953f
Moved Mark SummerField's io doc changes back to the trunk. (He will edit here in the future.)
2008-04-21 11:57:40 +00:00
Andrew M. Kuchling
57ce054c87
Add various items
2008-04-21 02:14:24 +00:00
Andrew M. Kuchling
89830c3ab1
Wording changes
2008-04-21 02:08:13 +00:00
Andrew M. Kuchling
64c6a0ef6e
Markup fix
2008-04-21 02:08:00 +00:00
Mark Dickinson
0da94c8a34
Silence 'r may be used uninitialized' compiler warning.
2008-04-21 01:55:50 +00:00
Andrew M. Kuchling
a5489d415e
Comment typo
2008-04-21 01:45:57 +00:00
Mark Dickinson
92483cd8da
math.atan2 is misbehaving on Windows; this patch
...
should fix the problem in the same way that
the cmath.phase problems were fixed.
2008-04-20 21:39:04 +00:00
Amaury Forgeot d'Arc
eac43afdc9
Correct an apparent refleak in test_pkgutil: zipimport._zip_directory_cache contains
...
info for all processed zip files, even when they are no longer used.
2008-04-20 21:02:21 +00:00
Mark Dickinson
d6d5148b44
Add test for tanh(-0.) == -0. on IEEE 754 systems
2008-04-20 20:38:48 +00:00
Mark Dickinson
c632301bd4
Even more fixes for alpha Tru64, this time for
...
the phase and polar methods.
2008-04-20 18:30:05 +00:00
Andrew M. Kuchling
2cede399ec
Move description of math module changes; various edits to description of cmath changes
2008-04-20 16:54:02 +00:00
Mark Dickinson
98c317a34d
Issue 2662: Initialize special value tables dynamically (i.e. when
...
cmath module is loaded) instead of statically. This fixes compile-time
problems on platforms where HUGE_VAL is an extern variable rather than
a constant.
Thanks Hirokazu Yamamoto for the patch.
2008-04-20 16:13:17 +00:00
Mark Dickinson
cec3f138d8
Yet more explicit special case handling to make
...
math.pow behave on alpha Tru64. All IEEE 754
special values are now handled directly; only
the finite**finite case is handled by libm.
2008-04-20 04:13:13 +00:00
Mark Dickinson
b2f7090239
FreeBSD doesn't follow C99 for modf(inf); so add explicit
...
special-value handling to math.modf code.
2008-04-20 01:39:24 +00:00
Mark Dickinson
9f99d70513
Report additional diagnostic information in
...
test_math, to help track down debian-alpha
buildbot failure.
2008-04-20 01:22:30 +00:00
Mark Dickinson
47a84aa978
Move asinh documentation to the proper place.
...
Remove meaningless 'in radians' from inverse
hyperbolic functions.
2008-04-19 21:49:22 +00:00
Mark Dickinson
48f7a4aabb
Correct documentation for math.pow;
...
0**nan is nan, not 0. (But nan**0 and 1**nan are 1.)
Also fix minor typo: 'quite NaN' -> 'quiet NaN'
2008-04-19 21:35:35 +00:00
Georg Brandl
1df986b403
Update template for newest Sphinx.
2008-04-19 21:28:38 +00:00
Mark Dickinson
53bd2e1a03
Document updates to math and cmath modules.
2008-04-19 20:31:16 +00:00
Benjamin Peterson
a7d09031a0
Complete documentation for errors argument of io's open and TextIOWrapper
2008-04-19 19:47:34 +00:00
Mark Dickinson
a1293eb65f
Additional special-case handling for math.pow.
...
Windows/VS2008 doesn't like (-1)**(+-inf).
2008-04-19 19:41:52 +00:00
Benjamin Peterson
53be57e8f8
Copy io documentation back from py3k branch so changes can be merged into it.
2008-04-19 19:34:05 +00:00
Mark Dickinson
e941d97d12
Additional tests for math.pow, and extra special-case
...
handling code in math.pow, in the hope of making all
tests pass on the alpha Tru64 buildbot.
2008-04-19 18:51:48 +00:00
Georg Brandl
c7bef37402
:func: et al. should *not* include the parens.
2008-04-19 17:00:14 +00:00
Georg Brandl
2fb8a53645
#2631 : clarify IMPORT_NAME semantics.
2008-04-19 16:59:16 +00:00
Georg Brandl
f801b0f04c
#2633 : clarify meaning of env parameter.
2008-04-19 16:58:49 +00:00
Georg Brandl
fb246c410b
#2634 : clarify meaning of env parameter to spawn/exec*e.
2008-04-19 16:58:28 +00:00
Georg Brandl
786ead684a
#2369 : clarify that copyfile() doesn't take a target directory.
2008-04-19 16:57:43 +00:00
Georg Brandl
734de68dd5
Fix-up docs for revision 62386.
2008-04-19 08:23:59 +00:00
Christian Heimes
e74c8f2879
Added kill, terminate and send_signal to subprocess.Popen
...
The bits and pieces for the Windows side were already in place. The POSIX side is trivial (as usual) and uses os.kill().
2008-04-19 02:23:57 +00:00
Christian Heimes
c873550737
Stupid me. Py_RETURN_NAN should actually return something ...
2008-04-18 23:49:11 +00:00
Christian Heimes
81ad6a185a
Added new files to Windows project files
...
More Windows related fixes are coming soon
2008-04-18 23:40:40 +00:00
Amaury Forgeot d'Arc
607bff1ebe
Some tests did not pass on repeated calls (regrtest -R::)
...
Perform additional cleanup, mostly deleting from sys.modules, or clearing the warnings registry.
2008-04-18 23:31:33 +00:00
Christian Heimes
6f34109384
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
...
The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
2008-04-18 23:13:07 +00:00
Benjamin Peterson
858a77099e
Fix indentation in sysmodule.c
2008-04-18 20:45:33 +00:00
Skip Montanaro
b131f0468f
resolve issue 2014
2008-04-18 20:35:46 +00:00