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
Raymond Hettinger
607c00f792
Present each feature in terms of what makes it useful or desirable.
2003-11-12 16:27:50 +00:00
Andrew M. Kuchling
f7a6b67e5c
Add 'see also' section pointing to the PEP
2003-11-08 16:05:37 +00:00
Andrew M. Kuchling
1a420251cf
Add some recent changes
2003-11-08 15:58:49 +00:00
Andrew M. Kuchling
50a25709f2
Record an item I missed and bump the version number. [2.3 bugfix candidate.]
2003-10-23 18:08:03 +00:00
Andrew M. Kuchling
6aedcfcd1e
Add some more items
2003-10-21 12:48:23 +00:00
Andrew M. Kuchling
2fb4d51976
Document list.sort() changes
2003-10-21 12:31:16 +00:00
Walter Dörwald
f0dfc7ac5c
Fix a bunch of typos in documentation, docstrings and comments.
...
(From SF patch #810751 )
2003-10-20 14:01:56 +00:00
Gregory P. Smith
e94040a1ed
minor correction. python 2.3 was released with the bsddb module 4.1.6 not 4.1.1
2003-09-21 23:41:02 +00:00
Martin v. Löwis
c6bb6c0f8c
Patch #707167 : Pass dircache exceptions to the caller. Fixes #682813 .
...
Not backported because of behaviour change.
2003-09-20 15:52:21 +00:00
Andrew M. Kuchling
77ad829261
[Bug #780231 ] One of the changes described in the 2.3 "What's New" document
...
actually occurred in 2.2. Move the description to whatsnew22.tex.
[Bugfix candidate -- I'll backport to 2.3 (another 2.2 bugfix seems unlikely)
2003-08-29 17:49:26 +00:00
Andrew M. Kuchling
69f31eb80c
[Patch #739124 ] Add use_default_colors() to curses module
2003-08-13 23:11:04 +00:00
Fred Drake
ed0fa3da9f
boilerplate to start off "What's New in Python 2.4"
2003-07-30 19:14:09 +00:00
Andrew M. Kuchling
68a3294fc4
[Bug #779469 ] Fix error in example code
2003-07-30 11:55:06 +00:00
Andrew M. Kuchling
b34ba3f174
Bump version number; record 2.3 release date
2003-07-29 12:06:32 +00:00
Fred Drake
700c890631
Avoid a few 301 permanent redirects.
...
Part of SF patch #773007 .
2003-07-22 00:52:42 +00:00
Andrew M. Kuchling
0ceb9b1603
Change \code to \verb, because TeX merges the two dashes into a
...
hyphen, resulting in the output '-list-classifiers', not the correct
'--list-classifiers'. I've verified that the line is now correct
in the DVI, PDF, HTML, and ASCII versions.
2003-07-21 12:49:46 +00:00
Andrew M. Kuchling
95be8bdab7
Add introductory paragraphs
...
Remove comment about MacOS changes; I'm not going to have time to figure
out what they are
Move PEP 273 section into numeric order
2003-07-18 02:12:16 +00:00
Andrew M. Kuchling
6e73f9e5db
Add a few more items
2003-07-18 01:15:51 +00:00
Andrew M. Kuchling
8744f12a2f
Complete the rewrite pass; add a few more items; bump version number to 0.90; remove comment about draft status
2003-07-17 23:56:58 +00:00
Andrew M. Kuchling
aa9b39f910
Mention list.index; more small textual changes
2003-07-16 20:37:26 +00:00
Andrew M. Kuchling
c760c6c442
Add reminder list of things to document; mention sys.getcheckinterval() and socket.timeout exception
2003-07-16 20:12:33 +00:00
Andrew M. Kuchling
2cd773160d
Minor text changes; update bug/patch count (quite a jump!)
2003-07-16 14:44:12 +00:00
Fred Drake
15b3dba85e
Adjust description of the internationalized domain name encoding to
...
better accomodate the GNU info conversion.
2003-07-16 04:00:14 +00:00
Fred Drake
3605ae5966
In the description of enumerate(), the indexing operators should not
...
be included in the \var. This produced weird results in general, but
broke the GNU info conversion.
2003-07-16 03:26:31 +00:00
Raymond Hettinger
a685f52256
Fix missing parenthesis
2003-07-12 04:42:30 +00:00
Raymond Hettinger
8ccf4d751d
Missing markup.
2003-07-10 15:48:33 +00:00
Fred Drake
2884d6de15
Fix a variety of small markup nits.
2003-07-02 12:27:43 +00:00
Andrew M. Kuchling
28137a09d6
Don't mention __slots__ as a technique for error avoidance
2003-05-20 18:12:21 +00:00
Andrew M. Kuchling
8d17709c5c
Remove more markup from headers
2003-05-13 14:26:54 +00:00
Andrew M. Kuchling
433307b75d
[Bug #729297 ] Remove markup in section headers
2003-05-13 14:23:54 +00:00
Andrew M. Kuchling
fcf6b3ecde
Add list.insert() change for negative positions
...
Add ~ to MvL's last name
Fix use of all-caps for a name
Bump version number
2003-05-07 17:00:35 +00:00
Fred Drake
b876bcc561
work around mostly-minor formatting problems; the encodings.idna
...
example still doesn't come out quite right: a bug in the formatting
tools
2003-04-30 15:03:46 +00:00
Andrew M. Kuchling
035272be91
Add some more items
2003-04-24 16:38:20 +00:00
Andrew M. Kuchling
13b4c41748
Mention deprecation of rotor module
2003-04-24 13:23:43 +00:00
Andrew M. Kuchling
e36b690087
Mention the bz2 module
...
Various rewrites
2003-04-19 15:38:47 +00:00
Martin v. Löwis
faf71ea5b3
Fix spelling of cedillas.
2003-04-18 21:48:56 +00:00
Martin v. Löwis
281b2c6211
Patch #536883 : SimpleXMLRPCServer auto-docing subclass.
2003-04-18 21:04:39 +00:00
Martin v. Löwis
2548c730c1
Implement IDNA (Internationalized Domain Names in Applications).
2003-04-18 10:39:54 +00:00
Andrew M. Kuchling
b43f15e1ce
Add a name
2003-04-14 18:47:28 +00:00
Andrew M. Kuchling
d39078ba2d
Mention timeit module
...
Fix error in description of logging package's 'propagate'
Mention default arg to dict.pop()
Link to more module docs
(I wonder if I should adopt some convention such as linking the first
mention of all new modules to the LibRef?)
Various text changes
Bump version number and Python version
2003-04-13 21:44:28 +00:00
Andrew M. Kuchling
ba887bb04e
Use simpler import
2003-04-13 21:13:02 +00:00
Andrew M. Kuchling
a6b1c75b7a
Re-indent example; fix typo
2003-04-09 17:26:38 +00:00
Andrew M. Kuchling
a092ba1adc
Add PEP 307 section
2003-03-21 18:32:43 +00:00
Andrew M. Kuchling
a978e10676
Add PEP305 section
2003-03-21 18:10:12 +00:00
Andrew M. Kuchling
c71bb97e2f
Update datetime section a bit
2003-03-21 17:23:07 +00:00
Michael W. Hudson
43ed43bfc1
Take out my (long since disabled) POSIX signal mask handling code.
...
I'm not going to have the time or energy to get this working x-platform
-- anyone who does is welcome to the code!
2003-03-13 13:56:53 +00:00
Raymond Hettinger
5284b4474e
Add contributor name.
2003-03-09 07:19:38 +00:00
Skip Montanaro
959c7727f4
Add a little more verbiage about the bsddb module/package change. It's
...
clear from recent discussions on c.l.py that people are a bit confused about
the differences between the old bsddb, the new bssdb, the bsddb3/PyBSDDB
package and changes to file formats. Tried to clarify the issues.
2003-03-07 15:45:15 +00:00
Andrew M. Kuchling
563389fdee
Add updates for alpha2
2003-03-02 02:31:58 +00:00
Andrew M. Kuchling
41c3e00851
Expand itertools paragraph
2003-03-02 02:13:52 +00:00
Andrew M. Kuchling
c61402ba26
Update PyPI link
2003-02-26 19:00:52 +00:00
Fred Drake
cade71387e
Added a note about the new itertools module. (Omission noted by
...
Gerrit Holl in email to python-docs.)
2003-02-19 16:08:08 +00:00
Andrew M. Kuchling
3749507296
logging.warn() renamed to warning()
2003-02-19 13:46:18 +00:00
Andrew M. Kuchling
d87eeb9477
Add two acks; bump version number
2003-02-18 00:56:56 +00:00
Andrew M. Kuchling
7ee9b51ba5
[Bug #688261 ] Fix optparse example and output
2003-02-18 00:48:23 +00:00
Andrew M. Kuchling
acddabc6ec
[Bug #683416 ] Make PEP263 coverage a bit more explicit, and add it to the
...
porting section
2003-02-18 00:43:24 +00:00
Neal Norwitz
ada859c111
Remove duplicate word (rules)
2003-02-11 14:30:39 +00:00
Michael W. Hudson
3e245d800d
Add item pertaining to
...
[ 680429 ] __module__ broken for extension classes
2003-02-11 14:19:56 +00:00
Michael W. Hudson
065f5facea
Sundry very picky changes.
2003-02-10 19:24:50 +00:00
Andrew M. Kuchling
72df65ac0e
Add Neil's suggestions for avoiding this warning
2003-02-10 15:08:16 +00:00
Andrew M. Kuchling
b8a3905112
Update URL
2003-02-07 20:22:33 +00:00
Fred Drake
693aea2eb4
- make some links into the reference documentation relative for
...
off-line readers
- fix some minor typos and markup errors
2003-02-07 14:52:18 +00:00
Andrew M. Kuchling
80fd7851ac
Mention FutureWarning for large ints
2003-02-06 15:14:04 +00:00
Andrew M. Kuchling
b9ba4e6d75
[Bug #679251 ] Use correct constant name
2003-02-03 15:16:15 +00:00
Andrew M. Kuchling
a31bb379f8
Update register example
2003-01-27 16:36:34 +00:00
Fred Drake
aac8c58f0b
Various markup changes.
2003-01-17 22:50:10 +00:00
Raymond Hettinger
ee1bded046
Correct typos in example code.
2003-01-17 16:20:23 +00:00
Andrew M. Kuchling
a974b3939f
Move the date/time section into the modules section; it was in the
...
C API section by mistake
2003-01-13 19:09:03 +00:00
Andrew M. Kuchling
c1dd174682
Link to MRO article
...
Mention deprecation of string exceptions
2003-01-13 13:59:22 +00:00
Neal Norwitz
55d555f012
command doesn't work, but program does, not sure it's correct, though
2003-01-08 05:27:42 +00:00
Andrew M. Kuchling
d97b01cb82
Bump version number
2003-01-08 02:09:40 +00:00
Andrew M. Kuchling
674b0bfde6
Add tarfile module
2003-01-07 00:07:19 +00:00
Andrew M. Kuchling
ef893fe452
Add Tix and rexec changes
2003-01-06 20:04:17 +00:00
Greg Ward
aa1d3aa643
Spread the blame (err, I mean credit) for ossaudiodev around a bit.
2003-01-03 18:03:21 +00:00
Andrew M. Kuchling
5a22453d33
Write PEP 301 section
...
Mention difference between 2.2.2 and 2.3 True and False
2003-01-03 16:52:27 +00:00
Andrew M. Kuchling
87cebbf601
Add SSL support for imaplib; add empty PEP301 section
2003-01-03 16:24:28 +00:00
Raymond Hettinger
1618cedfac
Add contributor.
2003-01-03 10:41:50 +00:00
Andrew M. Kuchling
04b89950b0
Fix error in previous correction; thanks, Just!
2003-01-02 23:50:18 +00:00
Andrew M. Kuchling
d5ac8d0b39
Fix PEP 302 description; bump version number
2003-01-02 21:33:15 +00:00
Andrew M. Kuchling
9e86ad7072
Fix an example
2003-01-02 13:42:32 +00:00
Andrew M. Kuchling
f15fb2926b
Results of a rewrite pass
2002-12-31 18:34:54 +00:00
Andrew M. Kuchling
ae3bbf57bf
Add posix.loadavg()
...
Add some times
2002-12-31 14:03:45 +00:00
Andrew M. Kuchling
5095a47408
Add a hurriedly-written section on the datetime module
2002-12-31 02:48:59 +00:00
Andrew M. Kuchling
974ab9d865
Add lots of items.
...
The only thing missing now is the new date/time stuff.
2002-12-31 01:20:30 +00:00
Neal Norwitz
c7d8c68c65
Fix SF #658023 , "What's New in 2.3", s12, verbatim error
...
Remove space between \end {verbatim}
2002-12-24 14:51:43 +00:00
Andrew M. Kuchling
c4a3f413a7
Bump version number
2002-12-23 12:50:50 +00:00
Michael W. Hudson
cfd3884882
This is Richie Hindle's patch
...
[ 643835 ] Set Next Statement for Python debuggers
with a few tweaks by me: adding an unsigned or two, mentioning that
not all jumps are allowed in the doc for pdb, adding a NEWS item and
a note to whatsnew, and AuCTeX doing something cosmetic to libpdb.tex.
2002-12-17 16:15:34 +00:00
Andrew M. Kuchling
8e5b53b3d9
Rewrite to produce a complete sentence
2002-12-15 20:17:38 +00:00
Raymond Hettinger
45bda57c1d
Added missing markup.
...
Replaced British spelling of 'behaviour' with 'behavior'.
Noted the new optional argument in math.log(x [,base]).
2002-12-14 20:20:45 +00:00
Andrew M. Kuchling
6c50df2d90
Add Tkinter threading change
...
Fix markup errors
Rewrite a sentence
2002-12-13 12:53:16 +00:00
Andrew M. Kuchling
449a87d791
Various additions and changes suggested by Raymond Hettinger
2002-12-11 15:03:51 +00:00
Tim Peters
85f7f83d71
Added a word to the heapq description in response to user confusion.
2002-12-10 21:04:25 +00:00
Andrew M. Kuchling
b1e4bf9dc1
Bug #647387 : corrections to the logging section by Vinay Sanjip
2002-12-03 13:35:17 +00:00
Mark Hammond
8af50bcf40
_ssl.pyd available for Windows.
2002-12-03 06:13:35 +00:00
Andrew M. Kuchling
53262577eb
Add ossaudiodev; fix typo
2002-12-01 14:00:21 +00:00
Andrew M. Kuchling
b6f7959093
Fix value of 'propagate' (noted by Chris Reedy)
...
Rewrite paragraph
2002-11-29 19:43:45 +00:00
Walter Dörwald
fb97443e57
Fix typo.
2002-11-29 16:39:07 +00:00
Andrew M. Kuchling
b492fa9101
Mention dict.fromkeys()
...
Various edits
2002-11-27 19:11:10 +00:00
Andrew M. Kuchling
5ef2b214cd
Update e-mail address
2002-11-27 18:53:38 +00:00
Fred Drake
54fe3fdf77
Noted the support for resource exclusion for regrtest. Some people
...
use regrtest, so it might be interesting.
2002-11-26 22:07:35 +00:00
Martin v. Löwis
8c8aa5d666
Rename want_objects to wantobjects throughout, for consistency.
2002-11-26 21:39:48 +00:00
Michael W. Hudson
96bc3b4d74
This is not part of my patch
...
[ 635933 ] make some type attrs writable
but should have been!
News about the above.
2002-11-26 14:48:23 +00:00
Martin v. Löwis
39b48523e4
Report Tkinter changes.
2002-11-26 09:47:25 +00:00
Andrew M. Kuchling
9e7453dc71
Remove \module{} in link text to avoid HTML generation bug
2002-11-25 16:02:13 +00:00
Andrew M. Kuchling
495172c3b4
Add change to int() and OverflowError
...
Re-order the "porting" section to list items by decreasing significance
2002-11-20 13:50:15 +00:00
Andrew M. Kuchling
6f429c3d1c
Use \ulink instead of \citetitle; bump version number
2002-11-19 13:09:00 +00:00
Andrew M. Kuchling
669249ecd3
Add PyBSDDB update
2002-11-19 13:05:33 +00:00
Andrew M. Kuchling
88eed70fc8
Mention that the MRO algorithm changes in 2.3
2002-11-15 14:37:46 +00:00
Andrew M. Kuchling
b60ea3f01f
Mention change in MRO
2002-11-15 14:37:10 +00:00
Andrew M. Kuchling
24d5a5281a
Add section on Optik
2002-11-14 23:40:42 +00:00
Andrew M. Kuchling
366c10c5c0
Finish up the logging section
2002-11-14 23:07:57 +00:00
Andrew M. Kuchling
28f2f88c31
Add partial section on the logging package; not finished yet.
2002-11-14 14:14:16 +00:00
Fred Drake
5c4cf1587b
Normalize whitespace.
...
Fix a number of markup consistency buglets.
2002-11-13 14:59:06 +00:00
Andrew M. Kuchling
8a61f499dc
Fill out the 'Porting' section
...
Add random.sample()
2002-11-13 13:24:41 +00:00
Andrew M. Kuchling
cab94a19f6
Update text to refer to 2.2.2
...
Remove an XXX item: I'm not going to write a section on the email package
at this point
2002-11-12 18:59:20 +00:00
Andrew M. Kuchling
71dd790ad2
Remove extra word
2002-11-12 18:45:46 +00:00
Andrew M. Kuchling
bc5e3cc34f
Use personal e-mail address; update date; various small edits; add a name to acks
2002-11-05 00:26:33 +00:00
Andrew M. Kuchling
7a82b8c736
Bring back the patch/bug count paragraph.
...
Correct source of *strip() changes
Small rewrites.
2002-11-04 20:17:24 +00:00
Andrew M. Kuchling
dc3f7e12ee
Mention distutil changes
2002-11-04 20:05:10 +00:00
Martin v. Löwis
f607bdaa77
Add PyStructSequence_UnnamedField. Add stat_float_times.
...
Use integers in stat tuple, optionally floats in named fields.
2002-10-16 18:27:39 +00:00