Martin v. Löwis
ccabed35ee
Patch #849350 : Update to document bool return values. Backported to 2.3.
2003-11-27 19:48:03 +00:00
Martin v. Löwis
94681fc4a3
Patch #849595 : Add socket.shutdown() constants.
2003-11-27 19:40:22 +00:00
Fred Drake
04bf7241e4
- clean up generated HTML
...
- make the output more XHTML friendly
2003-11-26 20:55:49 +00:00
Andrew M. Kuchling
2ce1d47e1e
Fix typo and mark-up; shorten text
2003-11-26 18:05:26 +00:00
Andrew M. Kuchling
670875644b
Fix typos
2003-11-26 18:03:48 +00:00
Raymond Hettinger
d4462300db
Nits from a review of the documentation update.
2003-11-26 17:52:45 +00:00
Neal Norwitz
72452650af
Add version changed doc for addition of fillchar to ljust/rjust/center
2003-11-26 14:54:56 +00:00
Raymond Hettinger
4f8f976576
Add optional fillchar argument to ljust(), rjust(), and center() string methods.
2003-11-26 08:21:35 +00:00
Raymond Hettinger
bd93b3ea8f
As discussed on python-dev, banish apply(), buffer(), coerce(), and
...
intern() to a separate region in the docs.
2003-11-25 21:48:21 +00:00
Raymond Hettinger
bc0f2ab9bb
Expose dict_contains() and PyDict_Contains() with is about 10% faster
...
than PySequence_Contains() and more clearly applicable to dicts.
Apply the new function in setobject.c where __contains__ checking is
ubiquitous.
2003-11-25 21:12:14 +00:00
Fred Drake
3972457de7
make the generated HTML more XHTML friendly
2003-11-25 16:21:00 +00:00
Kurt B. Kaiser
188e25f637
Fix a typo introduced at 1.21
...
M IOBinding.py
Backported to 23-maint
2003-11-25 05:01:00 +00:00
Raymond Hettinger
a38123e2fa
Factor out more duplicate code.
2003-11-24 22:18:49 +00:00
Raymond Hettinger
7e0282f1b1
Note the addition of set() and frozenset().
2003-11-24 07:14:54 +00:00
Kurt B. Kaiser
2303b1c19a
Keybindings with the Shift modifier now work correctly. So do bindings
...
which use the Space key. Limit unmodified user keybindings to the
function keys.
Python Bug 775353, IDLEfork Bugs 755647, 761557
Improve error handling during startup if there's no Tkinter.
M NEWS.txt
M PyShell.py
M config-keys.def
M configHandler.py
M keybindingDialog.py
Backport candidate.
2003-11-24 05:26:16 +00:00
Guido van Rossum
5f4e45d66f
Stop GCC warning about int literal that's so long that it becomes an
...
unsigned int (on a 32-bit machine), by adding an explicit 'u' to the
literal (a prime used to improve the hash function for frozenset).
2003-11-24 04:13:13 +00:00
Guido van Rossum
0bba722fff
Silence GCC warning when asserts are turned off.
2003-11-24 04:02:13 +00:00
Kurt B. Kaiser
c714d45bf5
Update NEWS.txt to include some items missed earlier. Update the
...
IDLE version to 1.1a0.
Modified Files:
NEWS.txt idlever.py
2003-11-24 03:23:16 +00:00
Raymond Hettinger
f5f41bf087
* Checkin remaining documentation
...
* Add more tests
* Refactor and neaten the code a bit.
* Rename union_update() to update().
* Improve the algorithms (making them a closer to sets.py).
2003-11-24 02:57:33 +00:00
Barry Warsaw
ceca5d2924
test_guess_all_types(): Use a more robust test for checking that
...
guess_all_extensions() returns (at least) what we expect. As Jeff
Epler suggests in
http://mail.python.org/pipermail/python-dev/2003-September/038264.html
We use a set to test the results. This fixes the test when
test_urllib2 is run before test_mimetypes.
2003-11-23 16:21:55 +00:00
Raymond Hettinger
49ba4c39c4
* Simplify hash function and add test to show effectiveness of the hash
...
function.
* Add a better test for deepcopying.
* Add tests to show the __init__() function works like it does for list
and tuple. Add related test.
* Have shallow copies of frozensets return self. Add related test.
* Have frozenset(f) return f if f is already a frozenset. Add related test.
* Beefed-up some existing tests.
2003-11-23 02:49:05 +00:00
Guido van Rossum
baf0f8f24d
- When method objects have an attribute that can be satisfied either
...
by the function object or by the method object, the function
object's attribute usually wins. Christian Tismer pointed out that
that this is really a mistake, because this only happens for special
methods (like __reduce__) where the method object's version is
really more appropriate than the function's attribute. So from now
on, all method attributes will have precedence over function
attributes with the same name.
2003-11-22 23:55:50 +00:00
Raymond Hettinger
bfd334a42d
Extend temporary hashability to remove() and discard().
...
Brings the functionality back in line with sets.py.
2003-11-22 03:55:23 +00:00
Tim Peters
5a5b243043
More words: gave more motivation, and added cautions about the special
...
dangers of trying to iterate over weak dicts.
2003-11-21 22:20:57 +00:00
Barry Warsaw
65367ca41e
Add a missing import. Closes SF # 816344.
2003-11-21 20:28:15 +00:00
Raymond Hettinger
19c2d77842
Allow temporary hashability for the __contains__ test.
...
(Requested by Alex Martelli.)
2003-11-21 18:36:54 +00:00
Raymond Hettinger
3fbec701ca
issubset() and issuperset() to work with general iterables
2003-11-21 07:56:36 +00:00
Raymond Hettinger
82d73dd459
Three minor performance improvements:
...
* Improve the hash function to increase the chance that distinct sets will
have distinct xor'd hash totals.
* Use PyDict_Merge where possible (it is faster than an equivalent iter/set
pair).
* Don't rebuild dictionaries where the input already has one.
2003-11-20 22:54:33 +00:00
Andrew M. Kuchling
dff9dbdb38
Add two items
2003-11-20 22:22:19 +00:00
Guido van Rossum
944a6c32d7
test_applesingle is an expected skip almost anywhere.
2003-11-20 22:11:29 +00:00
Tim Peters
403a203223
SF bug 839548: Bug in type's GC handling causes segfaults.
...
Also SF patch 843455.
This is a critical bugfix.
I'll backport to 2.3 maint, but not beyond that. The bugs this fixes
have been there since weakrefs were introduced.
2003-11-20 21:21:46 +00:00
Raymond Hettinger
901dc98316
test_applesingle is an expected skip on Win32
2003-11-20 19:02:02 +00:00
Jack Jansen
c09857ab78
Added some help to OSX/Dist/README.txt, plus all the information
...
from the OS9 readme that is still relevant.
Got rid of Distributions/readme.txt.
2003-11-20 13:50:28 +00:00
Walter Dörwald
4df306879b
Fix typo fix.
2003-11-20 13:38:01 +00:00
Jack Jansen
6402357d40
Talk about old code: removed a reference to THINK_C.
2003-11-20 13:33:48 +00:00
Jack Jansen
7107c1aff3
Got rid of macglue.h, replacing it by pymactoolbox.h where relevant.
...
Cleaned up various things in the toolbox modules.
2003-11-20 13:31:00 +00:00
Jack Jansen
3305d2487d
Got rid of macglue.h, moved the little bit that remains relevant
...
to pymactoolbox.h (where it should have been in the first place).
2003-11-20 13:28:19 +00:00
Jack Jansen
8d902aba1c
No longer used.
2003-11-20 13:27:33 +00:00
Jack Jansen
eddc1449ba
Getting rid of all the code inside #ifdef macintosh too.
2003-11-20 01:44:59 +00:00
Jack Jansen
4bae2d5e46
Getting rid of code dependent on GUSI or the MetroWerks compiler.
2003-11-19 22:52:23 +00:00
Jack Jansen
bc2fbc74ed
Getting rid of one more TARGET_API_MAC_OSX.
2003-11-19 22:43:57 +00:00
Martin v. Löwis
af7dc8d8b8
Patch #831747 : Add skip_accept_encoding parameter to putrequest.
2003-11-19 19:51:55 +00:00
Jack Jansen
a53f4eba19
Getting rid of code conditional on TARGET_API_MAC_*.
2003-11-19 16:34:04 +00:00
Jack Jansen
9588770e25
PyDoc_STR is always defined nowadays (and has been for quite some time:-)
2003-11-19 16:18:02 +00:00
Jack Jansen
e48cef7aba
Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
...
MacOS9isms.
2003-11-19 16:13:35 +00:00
Jack Jansen
10d176f77e
Get rid of MacOS9 support. Paths are still hard-coded, that'll be fixed
...
later.
2003-11-19 16:12:08 +00:00
Raymond Hettinger
70b9f499a3
Remove deprecation of sets.Set.update().
2003-11-19 15:52:14 +00:00
Jack Jansen
37249c5524
WITHOUT_FRAMEWORKS conditional code bites the dust: this was for
...
pre-carbon MacOS9 support.
2003-11-19 15:32:46 +00:00
Jack Jansen
f387e2d12b
Gone: all this functionality is now in the Carbon.File and Folder modules.
2003-11-19 15:30:41 +00:00
Jack Jansen
fb2765666f
Getting rid of support for the ancient Apple MPW compiler.
2003-11-19 15:24:47 +00:00