Raymond Hettinger
33ecffb65a
SF patch #969791 : Add nlargest() and nsmallest() to heapq.
2004-06-10 05:03:17 +00:00
Hye-Shik Chang
2d6783b4bc
SF #966375 : Fix typo (Reported by Kristian Ovaska)
2004-06-04 09:33:18 +00:00
Guido van Rossum
6dfed6c41f
Fix typo.
2004-06-03 13:56:05 +00:00
Michael W. Hudson
3151e18505
Small clarification.
2004-06-03 13:36:42 +00:00
Fred Drake
d6d35d954b
- fix typo reported by John Belmonte
...
- wrap a long line
2004-06-03 13:31:22 +00:00
Martin v. Löwis
77ca6c4c84
Warn abou missing mutate flag to ioctl. Fixes #696535 .
2004-06-03 12:47:26 +00:00
Andrew M. Kuchling
d783694dea
Remove old reminder
2004-06-02 15:33:59 +00:00
Martin v. Löwis
2a6ba9097e
Patch #963318 : Add support for client-side cookie management.
2004-05-31 18:22:40 +00:00
Raymond Hettinger
874ebd5c3d
Add weakref support to sockets and re pattern objects.
2004-05-31 03:15:02 +00:00
Raymond Hettinger
956e4f792f
Clarify when iter() is first called in generator expressions.
2004-05-20 22:59:26 +00:00
Raymond Hettinger
6e1fd2f208
Improved wording for generator expressions.
2004-05-19 22:30:25 +00:00
Raymond Hettinger
170a62221c
Add more docs for generator expressions.
...
* Put in a brief, example driven tutorial entry.
* Use better examples in whatsnew24.tex.
2004-05-19 19:45:19 +00:00
Raymond Hettinger
354433a59d
SF patch #872326 : Generator expression implementation
...
(Code contributed by Jiwon Seo.)
The documentation portion of the patch is being re-worked and will be
checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's
rationale for the design decisions on binding behavior (as described in
in his patch comments and in discussions on python-dev).
The test file, test_genexps.py, is written in doctest format and is
meant to exercise all aspects of the the patch. Further additions are
welcome from everyone. Please stress test this new feature as much as
possible before the alpha release.
2004-05-19 08:20:33 +00:00
Fred Drake
9f15b5c11c
add some notes about the changes to ConfigParser
2004-05-18 04:30:00 +00:00
Fred Drake
56fcc233d3
markup adjustments
2004-05-06 02:55:35 +00:00
Martin v. Löwis
456ab1d271
Swap public and system ID in start_doctype_decl. Fixes #780300 .
2004-05-06 01:54:36 +00:00
Fred Drake
9de0a2ba9d
fix two typos that turned text into markup
2004-03-20 08:13:32 +00:00
Raymond Hettinger
ade08ea8a8
Add news entries for the dictionary optimizations.
2004-03-18 09:48:12 +00:00
Raymond Hettinger
b7d05db0be
Optimize tuple_slice() and make further improvements to list_slice()
...
and list.extend(). Factoring the inner loops to remove the constant
structure references and fixed offsets gives speedups ranging from
20% to 30%.
2004-03-08 07:25:05 +00:00
Raymond Hettinger
dd80f76265
SF patch #910929 : Optimize list comprehensions
...
Add a new opcode, LIST_APPEND, and apply it to the code generation for
list comprehensions. Reduces the per-loop overhead by about a third.
2004-03-07 07:31:06 +00:00
Raymond Hettinger
31017aed36
SF #904720 : dict.update should take a 2-tuple sequence like dict.__init_
...
(Championed by Bob Ippolito.)
The update() method for mappings now accepts all the same argument forms
as the dict() constructor. This includes item lists and/or keyword
arguments.
2004-03-04 08:25:44 +00:00
Raymond Hettinger
79b5cf1129
Mention the optimization of list.extend().
2004-02-17 10:46:32 +00:00
Raymond Hettinger
ab517d2eac
Fine tune the speed/space trade-off for overallocating small lists.
...
The Py2.3 approach overallocated small lists by up to 8 elements.
The last checkin would limited this to one but slowed down (by 20 to 30%)
the creation of small lists between 3 to 8 elements.
This tune-up balances the two, limiting overallocation to 3 elements
(significantly reducing space consumption from Py2.3) and running faster
than the previous checkin.
The first part of the growth pattern (0, 4, 8, 16) neatly meshes with
allocators that trigger data movement only when crossing a power of two
boundary. Also, then even numbers mesh well with common data alignments.
2004-02-14 18:34:46 +00:00
Raymond Hettinger
238b267bf6
Lists are measured in elements not bytes.
2004-02-13 21:50:27 +00:00
Raymond Hettinger
7a6d297bda
* Note list optimizations
...
* Move an example out of a comment.
2004-02-13 19:00:07 +00:00
Fred Drake
ce3caf2e7a
minor markup improvements
2004-02-12 18:13:12 +00:00
Andrew M. Kuchling
fd0e494c98
Minor edits
2004-02-09 13:23:34 +00:00
Raymond Hettinger
756b3f3c15
* Move collections.deque() in from the sandbox
...
* Add unittests, newsitem, and whatsnew
* Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py
* Docs are forthcoming
2004-01-29 06:37:52 +00:00
Andrew M. Kuchling
5303a96808
Add CJK codecs
2004-01-18 15:55:51 +00:00
Raymond Hettinger
0c4102760c
SF Patch #864863 : Bisect C implementation
...
(Contributed by Dmitry Vasiliev.)
2004-01-05 10:13:35 +00:00
Raymond Hettinger
23a0f4ed21
Small correction to example
2004-01-05 08:15:20 +00:00
Raymond Hettinger
97ef8de92d
* Add various updates reflecting the last two weeks of checkins:
...
timeit, base64, MSVC++ 7.1 build, METH_COEXISTS, and optimizations.
* Put in a comment suggesting an improvement to the rsplit() example.
2004-01-05 00:29:57 +00:00
Fred Drake
b914ef0a33
list the Python Software Foundation on all the documents
2004-01-02 06:57:50 +00:00
Andrew M. Kuchling
44a31e1dab
Use 'input' as variable name, even though it shadows a built-in
...
Remove applications of rsplit() and random numbers
Typo fixes; minor tweaks
2004-01-01 18:33:34 +00:00
Raymond Hettinger
ed54d91ef5
Various fixups:
...
* Add comment on the future of the sets module.
* Change a variable from "input" to "data" to avoid shadowing a builtin.
* Added possible applications for str.rsplit() and itertools.tee().
* Repaired the example for sorted().
* Cleaned-up the example for operator.itemgetter().
2003-12-31 01:59:18 +00:00
Fred Drake
7c67cb8fba
markup fix
2003-12-30 17:17:17 +00:00
Andrew M. Kuchling
273069deec
Fix silly typo
2003-12-23 16:46:41 +00:00
Andrew M. Kuchling
35f2b05dca
Add various items
2003-12-18 13:28:13 +00:00
Raymond Hettinger
64958a15d7
Guido grants a Christmas wish:
...
sorted() becomes a regular function instead of a classmethod.
2003-12-17 20:43:33 +00:00
Andrew M. Kuchling
4612bc587b
Make example more readable
2003-12-16 20:59:37 +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
Andrew M. Kuchling
ad809556ba
Add groupby()
2003-12-06 23:19:23 +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
Raymond Hettinger
7e0282f1b1
Note the addition of set() and frozenset().
2003-11-24 07:14:54 +00:00
Andrew M. Kuchling
dff9dbdb38
Add two items
2003-11-20 22:22:19 +00:00
Andrew M. Kuchling
981a918575
Various edits
2003-11-13 21:33:26 +00:00
Raymond Hettinger
7d1dd04334
Fix typo
2003-11-12 16:42:10 +00:00
Raymond Hettinger
bc3cba2881
Explain the advantages of reversed.
2003-11-12 16:39:30 +00:00