Raymond Hettinger
1f65b472c3
SF bug #833957 : Ctrl+key combos stop working in IDLE
...
Make key combinations work with upper and lowercase as is the MS standard.
2004-08-17 08:01:19 +00:00
Raymond Hettinger
ba4e47db57
This file is no longer used in version 2.39.
...
Was supplanted by tointegral.decTest.
2004-08-17 06:56:25 +00:00
Raymond Hettinger
3ee3ed2e80
Add two new files and update remaining tests from the latest update of the
...
test suite in version 2.39 of dectest.zip.
2004-08-17 06:42:13 +00:00
Raymond Hettinger
d6c700a320
Revise max() and min() to comply with the 8/2/2004 update to the specification
...
(version 1.45):
The max and min operations follow the rules in the current IEEE 754 revision draft:
if one operand is a quiet NaN and the other is number, then the number is always returned
if both operands are finite and equal in numerical value then an ordering is applied:
if the signs differ then max returns the operand with the positive sign and
min returns the operand with the negative sign; if the signs are the same then
the exponent is used to select the result.
2004-08-17 06:39:37 +00:00
Raymond Hettinger
f63ba43733
* Dynamically build a list of files to be tested (necessary because
...
version 2.39 of dectest.zip adds some new test files and because
some existing test files were getting skipped).
* Remove two docstrings which cluttered unittest's output.
* Simplify a for-loop with a list comprehension.
2004-08-17 05:42:09 +00:00
Raymond Hettinger
8de636e2ae
SF bug #951482 : New module: doc versus action
...
Strengthen the warnings about creating bogus objects using the new module.
2004-08-17 02:31:55 +00:00
Raymond Hettinger
cb40ba1f5e
SF bug #805304 : super instances don't support item assignment
...
Document a nuance of super(). It is designed to work well with dotted
attribute lookup but not with equivalent implicit lookups using operators
or statements.
2004-08-17 02:21:45 +00:00
Skip Montanaro
6c06cd5ff9
fix a couple problems with the last patch picked up by Michael Hudson
2004-08-16 16:15:13 +00:00
Andrew M. Kuchling
7ec7584813
Typo fix
2004-08-16 16:12:23 +00:00
Barry Warsaw
06fa042034
Test cases and fixes for bugs described in patch #873418 : email/Message.py:
...
del_param fails when specifying a header.
2004-08-16 15:47:34 +00:00
Skip Montanaro
d4ff206906
Being bsd-based, darwin/macosx has the same limitation w.r.t. the "echo"
...
service.
2004-08-16 15:35:54 +00:00
Matthias Klose
2443d4ab5d
- pygettext.py: Generate POT-Creation-Date header in ISO format.
2004-08-16 12:10:12 +00:00
Matthias Klose
a2542bee59
The attached patch fixes FTBFS on GNU/k*BSD. The problem happens on GNU/k*BSD
...
because GNU/k*BSD uses gnu pth to provide pthreads, but will also happen on any
system that does the same.
python fails to build because it doesn't detect gnu pth in pthread
emulation. See C comments in patch for details.
patch taken from http://bugs.debian.org/264315
2004-08-16 11:35:51 +00:00
Raymond Hettinger
d3fe2395b4
Minor improvements to the threading introduction:
...
* Expand the example to show a join.
* Mention the use case of I/O running concurrent with a computational
thread.
* Be a tad more forceful about recommending Queue over other approaches
to synchonization.
* Eliminate discussion around having a single interpreter. This is a
more advanced discussion that belongs in the library reference and
in a section on extending and embedding.
2004-08-16 05:11:04 +00:00
Raymond Hettinger
84f107dd15
Minor formatting cleanup.
2004-08-16 01:45:34 +00:00
Raymond Hettinger
3258e72c82
* Uncomment the SyntaxError doctest after Tim demonstrated how.
...
* Remove unnecessary sys.PS2 prompt lines.
2004-08-16 01:35:28 +00:00
Raymond Hettinger
8df4e6b020
Fix punctuation typo.
2004-08-15 23:51:38 +00:00
Raymond Hettinger
2864b808c7
Add a notes section to the docs:
...
* Discuss representation error versus loss of significance.
* Document special values including qNaN, sNaN, +0, -0.
* Show the suprising display of non-normalized zero values.
2004-08-15 23:47:48 +00:00
Raymond Hettinger
5c8d29cb13
SF patch #872326 : generator expression implementation
...
(Contributed by Jiwon Seo.)
Add genexps to the reference manual.
2004-08-15 23:28:10 +00:00
Matthias Klose
2e829c0214
- Bug #891637 , patch #1005466 : fix inspect.getargs() crash on def foo((bar)).
2004-08-15 17:04:33 +00:00
Skip Montanaro
e5069019e7
Add get_history_item and replace_history_item functions to the readline
...
module. Closes patch #675551 . My apologies to Michal Vitecek for taking so
long to process this.
2004-08-15 14:32:06 +00:00
Skip Montanaro
f0d5f7917e
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
...
warning from GCC. Closes patch #1006629 .
2004-08-15 14:08:23 +00:00
Johannes Gijsbers
8d3b9dd09c
Quote \r\n correctly, remove random indentation (patch #1009384 ). Thanks
...
Cherniavsky Beni!
2004-08-15 12:23:10 +00:00
Brett Cannon
add33601c2
Correct the order of application for decorators. Meant to be bottom-up and not
...
top-down. Now matches the PEP.
2004-08-15 07:21:25 +00:00
Brett Cannon
31f8350f43
Fix incorrect comment for (struct compiling)->c_cellvars
2004-08-15 01:15:01 +00:00
Johannes Gijsbers
9e15dd6861
Let cgi.parse_header() properly unquote headers (patch #1008597 ).
2004-08-14 15:39:34 +00:00
Johannes Gijsbers
34c4120731
bug #989672 : pdb.doc and the help messages for the help_d and help_u methods
...
of the pdb.Pdb class gives have been corrected. d(own) goes to a newer frame,
u(p) to an older frame, not the other way around.
2004-08-14 15:19:28 +00:00
Johannes Gijsbers
4ec40648a5
bug #990669 : os.path.realpath() will resolve symlinks before normalizing the
...
path, as normalizing the path may alter the meaning of the path if it contains
symlinks.
Also add tests for infinite symlink loops and parent symlinks that need to be
resolved.
2004-08-14 15:01:53 +00:00
Johannes Gijsbers
f9a098efe1
Catch OSError raised when src or dst argument to os.path.samefile doesn't
...
exist.
2004-08-14 14:51:01 +00:00
Johannes Gijsbers
b112d6ed78
bug 990669: os.path.normpath may alter the meaning of a path if it contains
...
symbolic links. This has been documented in a comment since 1992, but is now in
the library reference as well.
2004-08-14 14:41:32 +00:00
Johannes Gijsbers
9d134b7386
bug #851123 : shutil.copyfile will raise an exception when trying to copy a file
...
onto a link to itself. Thanks Gregory Ball.
2004-08-14 14:03:03 +00:00
Johannes Gijsbers
68128715f2
Unwrap too-smart loop: we can't use `src` for both hard and symbolic links.
2004-08-14 13:57:08 +00:00
Johannes Gijsbers
46f1459860
Raise an exception when src and dst refer to the same file via a hard link or a
...
symbolic link (bug #851123 / patch #854853 , thanks Gregory Ball).
2004-08-14 13:30:02 +00:00
Johannes Gijsbers
404b06814c
Reset old locale after running tests. Not doing so broke
...
test_format/test_unicode in some circumstances (patch #1007539/bug #992078 ).
2004-08-14 10:56:54 +00:00
Tim Peters
7c399d3e68
Removed item about an asyncore patch that got backed out.
2004-08-13 22:34:14 +00:00
Tim Peters
83e259a2c2
Another microburst of snail-like progress.
2004-08-13 21:55:21 +00:00
Andrew M. Kuchling
9d499f2f96
Back out patch #982681
2004-08-13 20:06:57 +00:00
Brett Cannon
b3de2e13ba
'inspect' was not listing the functions in a module properly if the module was
...
reached through a symlink (was comparing path of module to path to function and
were not matching because of the symlink). os.path.realpath() is now used to
solve this discrepency.
Closes bug #570300 . Thanks Johannes Gijsbers for the fix.
2004-08-13 18:46:24 +00:00
Martin v. Löwis
08d786a608
Help compiling icons into an exe, for use with MSI advertisement.
2004-08-13 15:26:40 +00:00
Raymond Hettinger
cc0def1868
Convert weak iterators to generator form.
2004-08-13 07:12:45 +00:00
Tim Peters
bf9ac4bd89
Whitespace normalization.
2004-08-13 03:57:22 +00:00
Tim Peters
41a65ea7fe
Doctest has new traceback gimmicks in 2.4. While trying to document
...
them (which they are now), I had to rewrite the code to understand
it. This has got to be the most DWIM part of doctest -- but in context
is really necessary.
2004-08-13 03:55:05 +00:00
Neal Norwitz
f076953eb1
SF patch #1005778 , Fix seg fault if list object is modified during list.index()
...
Backport candidate
2004-08-13 03:18:29 +00:00
Fred Drake
39689c5c6a
make exception propogation more efficient; this avoids having Expat parse
...
the remaining data in the buffer (which it had done happily without reporting
any results)
this depends on a new feature in Expat added in 1.95.8
2004-08-13 03:12:57 +00:00
Fred Drake
d7ea55b1b8
include at least one example of an exception passing through pyexpat
2004-08-13 03:09:07 +00:00
Neal Norwitz
2e56c8a260
SF #1005913 , Patch to allow building of paper-*/dist.pdf by Jeff Epler
...
There were subsections without sections, so drop a sub.
2004-08-13 02:56:16 +00:00
Neal Norwitz
ee6511b309
Fix the version number in which changes were made
2004-08-13 02:34:06 +00:00
Tim Peters
7ea48ddd4f
Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is
...
implemented, just what it does.
2004-08-13 01:52:59 +00:00
Tim Peters
2603960525
Markup fiddling.
2004-08-13 01:49:12 +00:00
Tim Peters
8a3b69ca8f
Excruciatingly slow progress on the docs. Option flags / directive names
...
are documented now, and ripped out a bunch of "private name" convolutions.
2004-08-12 22:31:25 +00:00