Gustavo Niemeyer
2cbdc2a461
Cleaning up recursive pieces left in the reorganization.
2003-12-13 20:32:08 +00:00
Raymond Hettinger
5469324cde
Note that \var{ppos} values are not consecutive and should not be altered.
2003-12-13 19:48:41 +00:00
Raymond Hettinger
438e02dfc8
* Refactor set.__contains__()
...
* Use Py_RETURN_NONE everywhere.
* Fix-up the firstpass check for the tp_print slot.
2003-12-13 19:38:47 +00:00
Raymond Hettinger
0deab62704
Refactor set.discard() and set.remove().
2003-12-13 18:53:18 +00:00
Raymond Hettinger
6a8bbdbe7b
Improve argument checking speed.
2003-12-13 15:21:55 +00:00
Raymond Hettinger
dc5ae11abf
Use dictionary specific looping idiom where possible.
...
Simplifies and speeds-up the code.
2003-12-13 14:46:46 +00:00
Raymond Hettinger
0c66967e3d
Simplify previous checkin -- a new function was not needed.
2003-12-13 13:31:55 +00:00
Raymond Hettinger
d3ae6729e7
Use PyDict_Contains() instead of PySequence_Contains().
2003-12-13 11:58:56 +00:00
Raymond Hettinger
8f5cdaa784
* Added a new method flag, METH_COEXIST.
...
* Used the flag to optimize set.__contains__(), dict.__contains__(),
dict.__getitem__(), and list.__getitem__().
2003-12-13 11:26:12 +00:00
Raymond Hettinger
feb78c94fa
Expand the groupby() example to:
...
* show that it is typically used with sorted data,
* highlight commonalities with SQL's groupby and Unix's uniq,
* demonstrate valid uses for the default identity function,
* add some excitement by suggesting the range of possibilities.
2003-12-12 13:13:47 +00:00
Fred Drake
1f84ed0d8a
fix typo and join two paragraphs
2003-12-11 19:45:53 +00:00
Walter Dörwald
b167b04a2e
Add tests to test_weakref.py to bring code coverage in _weakref.c up to 100%.
...
Port test_md5.py to PyUnit.
(Written by Neal Norwitz; from SF patch 736962)
(Backport candidate)
2003-12-11 12:34:05 +00:00
Brett Cannon
35415da67c
Fix broken link (closes bug #852236 ). Thanks to Fedor Baart for bug file and
...
finding proper link.
2003-12-11 04:37:24 +00:00
Raymond Hettinger
bbd290ab8d
Revert previous change which didn't make sense the next day :-)
2003-12-10 15:22:23 +00:00
Jack Jansen
0b565a6e42
- Renamed OSA.ComponentInstance to OSA.OSAComponentInstance. It is not
...
a real subtype of Cm.ComponentInstance right now, it turns out that is
too difficult.
- OSA.OSAComponentInstance initializer does accept a Cm.ComponentInstance
instance, though, so at least things are becoming useable.
2003-12-10 15:18:18 +00:00
Hye-Shik Chang
19cb193244
Fix memory error treatment correctly. Going to dsu_fail causes
...
deallocating garbage pointers; saved_ob_item and empty_ob_item.
(Reviewed by Raymond Hettinger)
2003-12-10 07:31:08 +00:00
Raymond Hettinger
e807da807c
Update to use python ints and int/long unification.
2003-12-10 01:58:52 +00:00
Jack Jansen
73b94da93f
Wrapper modules for _Launch and _OSA weren't added yet. Fixed.
2003-12-09 15:07:01 +00:00
Jack Jansen
2e20a63bc9
Make this module Python 2.3 compatible, and add a setup script that allows
...
it to be built for that python.
2003-12-09 15:06:18 +00:00
Jack Jansen
2af4ce8f30
Made this module compatible with Python2.3, and added a temporary setup
...
script that allows it to be built for that Python.
2003-12-09 14:51:21 +00:00
Walter Dörwald
1dde95dffa
Move list and tuple tests from test_types.py to their own scripts:
...
test_tuple.py and test_list.py. Common tests for tuple, list and UserList
are shared (in seq_tests.py and list_tests.py). Port tests to PyUnit.
(From SF patch #736962 )
2003-12-08 11:38:45 +00:00
Thomas Heller
6b70f8b91d
Sigh. dsp files must be marked as binary files for cvs, otherwise
...
MSVC isn't able to read them. Thanks to David Rushby.
2003-12-08 09:31:52 +00:00
Jack Jansen
c8607b76f0
Revamped framework search path handling for MacOSX. This should allow
...
two framework builds (in /Library and /System/Library) to coexist
with distutils linking against the right one.
Should be backported to 2.3, but getting Apple-supplied Python to pick
up these fixes is going to be non-trivial.
2003-12-08 01:10:12 +00:00
Jack Jansen
48e02e4c39
forward port of 1.136.6.2:
...
$(prefix) wasn't communicated to Mac/OSX/Makefile for all targets. Fixed.
2003-12-07 21:52:07 +00:00
Just van Rossum
001734ca7f
fixed long standing typo
2003-12-07 18:11:51 +00:00
Raymond Hettinger
ff294fea40
SF patch #855195 : fix typos
...
(Contributed by George Yoshida.)
2003-12-07 13:00:25 +00:00
Raymond Hettinger
e180307c10
Fix missing paren.
2003-12-07 12:49:48 +00:00
Raymond Hettinger
295530585b
Fix double hyphen markup.
2003-12-07 12:46:16 +00:00
Raymond Hettinger
2619c9ec89
SF patch #838938 : Typos in the docs (Extending/Embedding + Python/C API)
...
(Contributed by Florent Rougon.)
2003-12-07 11:40:17 +00:00
Raymond Hettinger
e3d5f98180
Put str() in alphabetical order.
2003-12-07 11:24:03 +00:00
Raymond Hettinger
a4ce2f5116
SF bug #855317 : unittest: 5.3.9 Getting Extended Error Information
...
The example code did not work and could not easily be made to work.
Since the docs were already complex and the feature was not used
(it took two years for the errors to surface), we decided to dedocument
it entirely, leaving unittest cleaner than before.
2003-12-07 10:48:03 +00:00
Andrew M. Kuchling
ad809556ba
Add groupby()
2003-12-06 23:19:23 +00:00
Andrew M. Kuchling
db7dcffa27
Edit description a bit
2003-12-06 22:29:43 +00:00
Raymond Hettinger
b7a10d1bc5
Incorporate suggestions from Aahz.
2003-12-06 20:12:00 +00:00
Raymond Hettinger
d25c1c6351
Implement itertools.groupby()
...
Original idea by Guido van Rossum.
Idea for skipable inner iterators by Raymond Hettinger.
Idea for argument order and identity function default by Alex Martelli.
Implementation by Hye-Shik Chang (with tweaks by Raymond Hettinger).
2003-12-06 16:23:06 +00:00
Steve Purcell
b8d5f245b7
Variation of Thomas Heller's patch (722638) for improving readability
...
of test failure output.
Irrelevant traceback levels are pruned from formatted traceback strings.
2003-12-06 13:03:13 +00:00
Raymond Hettinger
ff6dd0b7d0
SF bug #844123 : "up" instead of "down" in turtle module documentation
2003-12-06 01:35:56 +00:00
Jack Jansen
67ff6d9930
Finished update to UH 3.4.2.
2003-12-06 00:00:17 +00:00
Jack Jansen
da78a5d5b6
Finished update to universal header 3.4.2.
2003-12-05 23:59:37 +00:00
Jack Jansen
5a4071ac91
Reverting to previous version, which works. And I don't really care about
...
the new waste functionality because it's probably going to be dropped
anyway.
2003-12-05 23:51:54 +00:00
Thomas Heller
c7501d52ef
distutils compilers now compile source files in the same order as they
...
are passed to the compiler.
2003-12-05 20:28:07 +00:00
Thomas Heller
9436a75e4d
Compile the files in the same order they are passed to the compiler.
...
Use case: Sometimes 'compiling' source files (with SWIG, for example)
creates additionl files which included by later sources. The win32all
setup script requires this.
There is no SF item for this, but it was discussed on distutils-sig:
http://mail.python.org/pipermail/distutils-sig/2003-November/003514.html
2003-12-05 20:12:23 +00:00
Fred Drake
f96dd83bb4
- fix markup in the bool() description
...
- note the behavior of bool() with no arg in the main body of the
description
2003-12-05 18:57:00 +00:00
Fred Drake
713ade69c5
Add news about removal of the PendingDeprecationWarning from apply().
2003-12-05 17:43:47 +00:00
Fred Drake
d75ede3238
Remove the PendingDeprecationWarning from apply(). apply() will
...
remain deprecated in the documentation.
2003-12-05 17:34:27 +00:00
Raymond Hettinger
f62444ab16
Fix links and typos.
2003-12-05 07:53:50 +00:00
Raymond Hettinger
ec3402f287
Fix typo
2003-12-05 06:39:54 +00:00
Raymond Hettinger
bd3a240e6d
Fix typos.
2003-12-04 22:17:49 +00:00
Thomas Heller
7425c3876b
The Windows build number for 2.3.3c1 is 50.
2003-12-04 20:36:53 +00:00
Raymond Hettinger
f477c88450
SF bug #849662 . Dramatically, improve comparison speed for "if shl == None".
2003-12-04 20:04:09 +00:00