Andrew M. Kuchling
8def876d36
[Bug #873146 ] Document pickletools module (haven't tested the LaTeX yet)
2004-08-07 16:53:59 +00:00
Michael W. Hudson
049e7aaa0f
Point out that the setdefault defaults the value to None. Inspired by
...
Michael Chermside's thinking about patch #748126 (the chief upshot of
which thinking was "reject it!").
2004-08-07 16:41:34 +00:00
Andrew M. Kuchling
cbbee6fed5
[Bug #984952 ] Include more material from PEP 307.
...
I haven't tried to include all the material on old-style classes using protocols 0,1. The details are lengthy; someone who knows
more about the pickle module should decide if they're important enough
to be in the docs or not.
2004-08-07 16:24:18 +00:00
Andrew M. Kuchling
14d535c3d4
[Bug #984952 ] Include some material from PEP 307
2004-08-07 15:49:24 +00:00
Andrew M. Kuchling
6f937b1c30
[Bug #998307 ] Use open() instead of file() in docs
2004-08-07 15:11:24 +00:00
Fred Drake
9bae19e8b1
fix two typos in markup
2004-08-07 14:28:37 +00:00
Andrew M. Kuchling
e30c4d4ddc
Add recent items
2004-08-07 13:58:02 +00:00
Andrew M. Kuchling
38dc2a6bf7
Simplify language
2004-08-07 13:24:12 +00:00
Andrew M. Kuchling
ac6428756a
Add string concat item
2004-08-07 13:13:31 +00:00
Andrew M. Kuchling
ba59be04fa
Bump version
2004-08-06 18:55:48 +00:00
Andrew M. Kuchling
34ed2b020a
Typo fix; use 'in-place' instead of 'inplace'
2004-08-06 18:55:09 +00:00
Raymond Hettinger
52a21b8e65
SF patch #980695 : efficient string concatenation
...
(Original patch by Armin Rigo).
2004-08-06 18:43:09 +00:00
Fred Drake
3f5c654deb
fix markup nit, typo
2004-08-06 03:34:20 +00:00
Fred Drake
6bd8e842e4
update to reflect the new significance of the "@" character
2004-08-05 21:11:27 +00:00
Phillip J. Eby
1884dda233
Warn that settrace() is implementation rather than language
...
definition, per Guido's request in off-list email.
2004-08-05 12:13:46 +00:00
Matthias Klose
4c8fa42aca
Doc/lib/libfuncs.tex: correct items in itemize
...
Doc/dist/dist.tex: avoid uncommenting the verbose environment (by the py2texi tool)
2004-08-04 23:18:49 +00:00
Vinay Sajip
1cf56d0b8a
Updated Logger.log() documentation to clarify that lvl parameter should be an integer.
2004-08-04 08:36:44 +00:00
Hye-Shik Chang
e9ddfbb412
SF #989185 : Drop unicode.iswide() and unicode.width() and add
...
unicodedata.east_asian_width(). You can still implement your own
simple width() function using it like this:
def width(u):
w = 0
for c in unicodedata.normalize('NFC', u):
cwidth = unicodedata.east_asian_width(c)
if cwidth in ('W', 'F'): w += 2
else: w += 1
return w
2004-08-04 07:38:35 +00:00
Fred Drake
f901abdd62
allow ctime(), gmtime(), and localtime() to take None as equivalent to an omitted arg
...
(closes SF bug #658254 , patch #663482 )
2004-08-03 17:58:55 +00:00
Fred Drake
d04573fef0
This allows additional commands to be provided for existing setup.py
...
scripts without modifying either the distutils installation or the
setup.py scripts of packages with which the new commands will be used.
Specifically, an option is added to distutils that allows additional
packages to be searched for command implementations in addition to
distutils.command. The additional packages can be specified on the
command line or via the installation or personal configuration files
already loaded by distutils.
For discussion, see the thread starting with:
http://mail.python.org/pipermail/distutils-sig/2004-August/004112.html
This closes SF patch #102241 .
2004-08-03 16:37:40 +00:00
Fred Drake
2be406bd9f
let's avoid the extra nesting where reasonable
2004-08-03 16:02:35 +00:00
Martin v. Löwis
9513e34ac4
Patch #823072 : add option to NOT use ~/.netrc in nntplib.NNTP().
2004-08-03 14:36:32 +00:00
Raymond Hettinger
70fcdb8be0
Document general mappings for the locals argument for exec and execfile().
2004-08-03 05:17:58 +00:00
Fred Drake
bec69f6a2e
fix a little lie ;-(
2004-08-02 23:05:25 +00:00
Neal Norwitz
7fdd92f31f
Fix typo though
2004-08-02 21:56:33 +00:00
Fred Drake
e72bd4d621
fix markup error
2004-08-02 21:50:26 +00:00
Fred Drake
0c84c7f915
start filling in documentation on extending distutils
2004-08-02 21:39:11 +00:00
Andrew M. Kuchling
77a602fbf2
Add PEP318
2004-08-02 13:48:18 +00:00
Andrew M. Kuchling
d91fcbe265
Add import change; add empty section for function decorators
2004-08-02 12:44:28 +00:00
Andrew M. Kuchling
1455f795e2
Update item
2004-08-02 12:09:58 +00:00
Raymond Hettinger
829d6c4138
Fix doubled word.
2004-08-02 08:36:07 +00:00
Anthony Baxter
c2a5a63654
PEP-0318, @decorator-style. In Guido's words:
...
"@ seems the syntax that everybody can hate equally"
Implementation by Mark Russell, from SF #979728 .
2004-08-02 06:10:11 +00:00
Tim Peters
fd7dc5169c
Typo repair.
2004-08-02 04:30:37 +00:00
Tim Peters
0c6199e8ed
Completed a sentence I left dangling.
2004-08-02 04:14:10 +00:00
Tim Peters
cfd575d398
PyImport_ImportModule, PyImport_ImportModuleEx, PyImport_ExecCodeModule:
...
in failure cases, incompletely initalized module objects are no longer
left behind in sys.modules.
2004-08-02 03:46:45 +00:00
Neal Norwitz
750f060ad7
SF bug #1001088 , incorrect reference to macro named foo
...
Backport candidate.
2004-08-01 22:36:40 +00:00
Fred Drake
63a5d0b1cf
re-wrap paragraphs containing long lines
2004-07-30 19:12:38 +00:00
Fred Drake
69013d070e
- document the termination condition for cmd.Cmd.cmdloop()
...
- document the use of the return value for cmd.Cmd.do_*() methods
2004-07-30 18:58:54 +00:00
Martin v. Löwis
479b7a7cdb
Fix typo.
2004-07-30 16:09:19 +00:00
Martin v. Löwis
8ddb638e43
Add closing methoddesc. Add versionadded. Rewrap.
2004-07-30 16:08:49 +00:00
Raymond Hettinger
f9fd0d7988
SF bug #997533 : "disjunct" should be "disjoint"
...
* Use plain wording in docs for id().
* Use normal quotation marks instead of single quotes in the description.
2004-07-29 06:06:34 +00:00
Neal Norwitz
f9f0b21653
SF #998170 , fix typo. Backport candidate
2004-07-29 03:48:59 +00:00
Skip Montanaro
6d3db7000e
Add missing doc for Py_True/Py_False. Use the correct macro to define
...
Py_RETURN_FALSE and Py_RETURN_TRUE.
2004-07-29 02:16:04 +00:00
Andrew M. Kuchling
671c506737
Add new encodings
2004-07-28 15:29:39 +00:00
Skip Montanaro
33ee76ae9e
A little boolean music if you please, maestro... (Not sure I have the
...
versionadded{} args quite right).
2004-07-28 14:17:04 +00:00
Neal Norwitz
bee417439e
Add versionadded info
2004-07-28 02:34:12 +00:00
Andrew M. Kuchling
ce4bae6170
Add an item
2004-07-27 12:13:25 +00:00
Martin v. Löwis
7b9190b8fc
Patch #998149 : imaplib deleteacl and myrights.
2004-07-27 05:07:19 +00:00
Andrew M. Kuchling
5785a1391e
Add some items
2004-07-26 19:28:46 +00:00
Andrew M. Kuchling
e03664ff22
Two typo fixes
2004-07-26 19:25:54 +00:00
Andrew M. Kuchling
e3e1ecacd5
[Bug #997166 ] Fix example
2004-07-26 18:52:48 +00:00
Fred Drake
fdccf1ad6e
fix information about what flag database files are opened with by default
2004-07-26 16:33:29 +00:00
Martin v. Löwis
cc0f93233a
Patch #605370 : Add description[s] for RFC 2980 compliance.
2004-07-26 12:40:50 +00:00
Martin v. Löwis
37ead8f1c3
Patch #997668 : Correct explanation of salts.
...
Will backport to 2.3.
2004-07-26 12:05:16 +00:00
Tim Peters
abba5c067d
Explain that most floats are actually integers. This is a common confusion
...
for people using floor(), ceil() and modf().
2004-07-26 05:12:01 +00:00
Tim Peters
9a729a1cc5
Typo in new docs.
2004-07-26 04:58:50 +00:00
Tim Peters
d6ef19309d
SF bugs 996748: os.environ documentation should indicate unreliability
...
Clarifed that os.environ is captured once; emphasized that it's better
to assign to os.environ than to call putenv() directly (the putenv()
docs said so, but the environ docs didn't).
2004-07-26 00:42:41 +00:00
Tim Peters
66bb6e661c
SF bug 996392: math and cmath docs don't specify radians
...
Major rewrite of the math module docs. Slapped in "radians" where
appropriate; grouped the functions into reasonable categories; supplied
many more words to address common confusions about some of the subtler
issues.
2004-07-24 23:00:24 +00:00
Thomas Heller
fe0808382b
Fix an uncorrect function prototype.
...
Will backport to release23-maint.
BTW: Shouldn't it read PY_LONG_LONG instead of 'long long' ?
2004-07-23 14:49:52 +00:00
Tim Peters
336689b9cc
A few trivial edits.
2004-07-23 02:48:24 +00:00
Raymond Hettinger
cab5b94592
SF bug #995983 and #995987 : Documentation nits.
2004-07-22 19:33:53 +00:00
Gustavo Niemeyer
7bd33c5e22
This change implements the following gettext features, as
...
discussed recently in python-dev:
In _locale module:
- bind_textdomain_codeset() binding
In gettext module:
- bind_textdomain_codeset() function
- lgettext(), lngettext(), ldgettext(), ldngettext(),
which return translated strings encoded in
preferred system encoding, if
bind_textdomain_codeset() was not used.
- Added equivalent functionality in translate()
function and catalog classes.
Every change was also documented.
2004-07-22 18:44:01 +00:00
Andrew M. Kuchling
c12527e2c7
[Bug #990524 ] Fix typo
2004-07-21 21:34:45 +00:00
Fred Drake
4ab0e9e541
revise wording to avoid confusion for non-native English speakers
...
(second occurance of the same wording)
2004-07-21 17:36:47 +00:00
Fred Drake
20938f57ba
revise wording to avoid confusion for non-native English speakers
2004-07-21 17:18:19 +00:00
Vinay Sajip
b4bf62f807
Added an extra example to the basic example section
2004-07-21 14:40:11 +00:00
Andrew M. Kuchling
0ad20f18fe
Update Decimal section to match the current module
2004-07-21 13:00:06 +00:00
Andrew M. Kuchling
65a333219f
Add PEP 331; add constancy of None; minor edits
2004-07-21 12:41:38 +00:00
Skip Montanaro
bf76075a4b
fix typo, highlight True/False correctly
2004-07-21 02:47:10 +00:00
Neal Norwitz
7728b4719e
SF #994605 , fcntl example is broken
...
The last call to fcntl (which wasn't changed) doesn't work for me, but
the first part works now.
Backport candidate.
2004-07-21 01:41:14 +00:00
Neal Norwitz
d96d1015ef
SF #918101 , allow files >= 8 GB using GNU extension
2004-07-20 22:23:02 +00:00
Martin v. Löwis
b0c319a905
Patch #993187 : Make rstrip doc similar to lstrip.
...
Backported to 2.3.
2004-07-19 16:34:01 +00:00
Neal Norwitz
76aa2eff4e
Get doc to build (add missing backslash)
2004-07-19 01:39:54 +00:00
Tim Peters
3d7d372ce3
Whitespace normalization, via reindent.py.
2004-07-18 06:25:50 +00:00
Hye-Shik Chang
2bb146f2f4
Bring CJKCodecs 1.1 into trunk. This completely reorganizes source
...
and installed layouts to make maintenance simple and easy. And it
also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004
and iso2022-jp-2004.
2004-07-18 03:06:29 +00:00
Hye-Shik Chang
910d8f1e89
Change CJK encoding aliases to their most popular variation of
...
hyphen and underscores in consistency of non-CJK aliases.
(Spotted by Mike Brown at SF #969415 )
2004-07-17 14:44:43 +00:00
Andrew M. Kuchling
e970d2a310
Add a definition (found in the Debian patches for 2.3.4)
2004-07-17 14:43:32 +00:00
Hye-Shik Chang
2b05248e8b
SF #990497 : Fix a trivial typo in sorted() example.
...
(Submitted by Daniel Pezely)
2004-07-17 13:53:48 +00:00
Andrew M. Kuchling
872dc5c457
Minor edits
2004-07-17 13:35:43 +00:00
Tim Peters
8ff9f9f4aa
Supply missing word in new datetime docs, aggravated by copy-paste-edit.
2004-07-17 01:42:26 +00:00
Jack Jansen
6c09a21f66
Fix for #795649 : explain how to use TextEdit for editing Python code.
2004-07-15 22:38:06 +00:00
Andrew M. Kuchling
0045717090
Add thread-local feature
2004-07-15 11:52:40 +00:00
Andrew M. Kuchling
23406894ea
Correct a paragraph: basicConfig() isn't actually new
2004-07-15 11:44:42 +00:00
Tim Peters
de8332171a
SF bug 990749: os constants missing
...
A LaTeX comment identified the 6 os.O_XXX constants the docs claimed
are available on Windows but aren't. The bug report listed the same 6.
Split these non-Windows constants into a different table with a possibly
correct "Availability:" claim.
2004-07-15 05:46:37 +00:00
Tim Peters
5960d80e11
s/it's/its/, s/NULL/NULL{}/, where appropriate.
2004-07-15 04:23:13 +00:00
Tim Peters
eda29306b3
Formalize that the Py_VISIT macro requires that the tp_traverse
...
implementation it's used in must give its arguments specific names.
2004-07-15 04:05:59 +00:00
Andrew M. Kuchling
89ba1fff17
Bump version; update date
2004-07-14 21:56:19 +00:00
Raymond Hettinger
9296023938
Improve examples for working with the context API.
2004-07-14 21:06:55 +00:00
Jim Fulton
d15dc06df0
Implemented thread-local data as proposed on python-dev:
...
http://mail.python.org/pipermail/python-dev/2004-June/045785.html
2004-07-14 19:11:50 +00:00
Jim Fulton
aa6389e13b
Documented the new Py_VISIT macro to simplify implementation of
...
tp_traverse handlers. (Tim made me do it. ;)
2004-07-14 19:08:17 +00:00
Jim Fulton
8c5aeaa277
Implemented a new Py_CLEAR macro. This macro should be used when
...
decrementing the refcount of variables that might be accessed as a
result of calling Python
2004-07-14 19:07:35 +00:00
Jim Fulton
7a0e8bc283
Updated documentation to:
...
- point out the importance of reassigning data members before
assigning thier values
- correct my missconception about return values from visitprocs. Sigh.
- mention the labor saving Py_VISIT and Py_CLEAR macros.
2004-07-14 19:07:24 +00:00
Guido van Rossum
8cec3ab0e4
- Bug #981530 : Fix UnboundLocalError in shutil.rmtree(). This affects
...
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
[I could've sworn I checked this in, but apparently I didn't, or it
got lost???]
2004-07-14 00:48:58 +00:00
Fred Drake
c0ed9c4956
clarify where \versionadded and \versionchanged should be placed when
...
they are used
2004-07-13 21:04:26 +00:00
Tim Peters
e45d5a3b00
Claifications: visit procs are supplied by the core, users aren't
...
expected to write their own. A NULL "object" must not be passed to
the visit callback. A non-zero return from a visit proc isn't
necessarily an error return (and it doesn't matter to the tp_traverse
code *what* it might signify, their only job is to return it).
2004-07-13 17:18:10 +00:00
Fred Drake
0751d554c0
generalize a bit; no need to mention my user id directly
2004-07-13 17:08:10 +00:00
Andrew M. Kuchling
2a510ce119
Wordsmithing
2004-07-13 14:03:31 +00:00
Brett Cannon
71868e74d6
Add another point in the "Restrictions" section about how the handling of FTP
...
URLs will seemingly succeed to read a URL that points to a file whose
permissions you do not have to read.
Backport candidate once everyone agrees with the wording.
2004-07-13 00:48:42 +00:00
Vinay Sajip
20f42c433b
Fixed minor bugs in the example configuration file
2004-07-12 15:48:04 +00:00
Raymond Hettinger
d7c7115926
Small elaboration and typo fixes.
2004-07-12 13:22:14 +00:00
Raymond Hettinger
ca1a775ab9
Fix markup.
2004-07-12 13:00:45 +00:00
Anthony Baxter
1869df1154
another note for amk
2004-07-12 08:15:37 +00:00
Tim Peters
5af0e41482
Bug #788520 : Queue class has logic error when non-blocking
...
I don't agree it had a bug (see the report), so this is *not* a candidate
for backporting, but the docs were confusing and the Queue implementation
was old enough to vote.
Rewrote put/put_nowait/get/get_nowait from scratch, to use a pair of
Conditions (not_full and not_empty), sharing a common mutex. The code
is 1/4 the size now, and 6.25x easier to understand. For blocking
with timeout, we also get to reuse (indirectly) the tedious timeout
code from threading.Condition. The Full and Empty exceptions raised
by non-blocking calls are now easy (instead of nearly impossible) to
explain truthfully: Full is raised if and only if the Queue truly
is full when the non-blocking put call checks the queue size, and
similarly for Empty versus non-blocking get.
What I don't know is whether the new implementation is slower (or
faster) than the old one. I don't really care. Anyone who cares
a lot is encouraged to check that.
2004-07-12 00:45:14 +00:00
Tim Peters
183dabcd73
SF patch 986010: add missing doc for datetime C API, from
...
Anthony Tuininga.
This is a derived patch, taking the opportunity to add some organization
to the now-large pile of datetime-related macros, and to factor out
tedious repeated text.
Also improved some clumsy wording in NEWS.
2004-07-11 19:26:19 +00:00
Kurt B. Kaiser
e246508779
Add FAQ on non-GNU make error. Update copyright date to 2004.
2004-07-11 16:40:31 +00:00
Fred Drake
2363e8fece
Added documentation for the "smtpd" module.
...
Closes SF bug #450803 .
2004-07-11 16:25:25 +00:00
Raymond Hettinger
88e8e34ab0
Style nit.
2004-07-11 13:20:11 +00:00
Raymond Hettinger
44dc13bf3e
Fix decimal write-up nits.
2004-07-11 12:49:47 +00:00
Raymond Hettinger
65df07bf23
Minor improvements, fixups and wording changes everywhere.
2004-07-11 12:40:19 +00:00
Kurt B. Kaiser
ad5206fc02
Clarify requirement for GNU make
2004-07-11 04:10:14 +00:00
Kurt B. Kaiser
8932b41669
Patch 851752 (fixes bug 820583)
...
Patch by John J Lee
Reviewed by Jeff Epler / KBK
Doc built OK.
urlopen() may return None if no handler handles the request.
Also clarify what install_opener does.
M liburllib2.tex
2004-07-11 02:13:17 +00:00
Brett Cannon
cd77dd6321
Fix minor error in example.
2004-07-10 23:06:07 +00:00
Brett Cannon
711e7d97e4
Add PyArg_VaParseTupleAndKeywords(). Document this function and
...
PyArg_VaParse().
Closes patch #550732 . Thanks Greg Chapman.
2004-07-10 22:20:32 +00:00
Brett Cannon
91cc5cd188
Clarify docs for inspect.getargspec() that the fourth value is None when there
...
are no default arguments for the function.
2004-07-10 21:13:06 +00:00
Andrew M. Kuchling
3a2418a1d6
[Patch #969900 ] Various corrections and updates to cookielib docs
2004-07-10 18:41:28 +00:00
Andrew M. Kuchling
300ce19592
[Patch #972310 ] Apply correction to docs
2004-07-10 18:28:33 +00:00
Raymond Hettinger
21f9fce968
Fix typo.
2004-07-10 16:11:03 +00:00
Andrew M. Kuchling
099bd524a4
[Bug 949832] Fix example; edit sentence
2004-07-10 16:01:10 +00:00
Raymond Hettinger
bf4406971c
Improve Context construction and representation:
...
* Rename "trap_enablers" to just "traps".
* Simplify names of "settraps" and "setflags" to just "traps" and "flags".
* Show "capitals" in the context representation
* Simplify the Context constructor to match its repr form so that only
the set flags and traps need to be listed.
* Representation can now be run through eval().
Improve the error message when the Decimal constructor is given a float.
The test suite no longer needs a duplicate reset_flags method.
2004-07-10 14:14:37 +00:00
Andrew M. Kuchling
d9dfe0213f
Remove a few elderly sentences
2004-07-10 13:48:54 +00:00
Andrew M. Kuchling
ff8113f8d0
Replace example with simpler alternative using PyGILState_{Ensure,Require). Can someone please confirm this change is OK?
2004-07-10 13:42:52 +00:00
Andrew M. Kuchling
371d98ab15
[Bug #987835 ] Add documentation from PEP 311. (Untested TeX code.)
2004-07-10 13:31:18 +00:00
Raymond Hettinger
0d278b861e
SF bug #987486 : fix typo.
2004-07-10 11:15:56 +00:00
Raymond Hettinger
682be2249d
SF bug 988387: markup nits.
2004-07-10 11:11:15 +00:00
Anthony Baxter
5da4c83a6b
reminder for amk
2004-07-09 16:16:46 +00:00
Raymond Hettinger
5aa478badf
Module and tests:
...
* Map conditions to related signals.
* Make contexts unhashable.
* Eliminate used "default" attribute in exception definitions.
* Eliminate the _filterfunc in favor of a straight list.
Docs:
* Eliminate documented references to conditions that are not signals.
* Eliminate parenthetical notes such as "1/0 --> Inf" which are no
longer true with the new defaults.
2004-07-09 10:02:53 +00:00
Raymond Hettinger
97c9208c6c
Incorporate Facundo's suggestions.
2004-07-09 06:13:12 +00:00
Raymond Hettinger
9499658b61
Add a link to the decimal module docs.
2004-07-09 06:00:32 +00:00
Skip Montanaro
2b2795ac6d
show how easy it is to manipulate individual columns - from a request on
...
c.l.py
2004-07-08 19:49:10 +00:00
Raymond Hettinger
081483cd42
Fix markup and nits.
2004-07-08 09:33:00 +00:00
Raymond Hettinger
536f76b25a
Fix markup, typos, and nits.
2004-07-08 09:22:33 +00:00
Fred Drake
63a0191c8a
Deal with macros that have to be replaced with simple text; only a
...
couple of these are currently found in index data, but these should
all be handled in the same way.
Closes SF bug #952737 .
2004-07-08 03:56:12 +00:00
Vinay Sajip
e3c330b42a
Replaced some tabs with spaces in verbatim section.
2004-07-07 15:59:49 +00:00
Andrew M. Kuchling
ee5e4cd899
[Bug #984017 ] Incorrect prototype, fixed by Timothy Stranex
2004-07-07 13:07:47 +00:00
Andrew M. Kuchling
bcefe698b0
Add logging changes
2004-07-07 13:01:53 +00:00
Tim Peters
74979664d0
Typo repair.
2004-07-07 02:32:36 +00:00
Raymond Hettinger
2f55eb4cca
Demonstrate how to round final result.
2004-07-06 01:55:14 +00:00
Raymond Hettinger
10959b1c2a
Expand examples to show polymorphism
2004-07-05 21:13:28 +00:00
Raymond Hettinger
77e13b4ead
Simplify examples.
2004-07-05 20:27:53 +00:00
Raymond Hettinger
c4f93d4410
Doc tested the recipes.
2004-07-05 20:17:13 +00:00
Raymond Hettinger
9c719bafbf
Fix typo
2004-07-05 18:56:03 +00:00
Raymond Hettinger
d84efb3d93
* Added missing info on construction from a tuple.
...
* Added a recipe section.
2004-07-05 18:41:42 +00:00
Raymond Hettinger
8de63a206e
Add decimal docs to the core.
2004-07-05 05:52:03 +00:00
Andrew M. Kuchling
71432f1db6
Various edits
2004-07-05 01:40:07 +00:00
Andrew M. Kuchling
3bf85f1ae8
Various edits
2004-07-05 01:37:07 +00:00
Andrew M. Kuchling
3b7909160e
Bump version #; write introductory para
2004-07-04 16:39:40 +00:00
Andrew M. Kuchling
d0b6d9d892
More additions
2004-07-04 15:35:00 +00:00
Nicholas Bastin
068979cdd6
Textual change to make the doc reflect reality
2004-07-04 04:47:40 +00:00
Andrew M. Kuchling
d4be86cb09
Write another section
2004-07-04 01:44:04 +00:00
Andrew M. Kuchling
c8f8a814e2
Rewrite two sections
2004-07-04 01:26:42 +00:00
Vinay Sajip
a13c60b810
Moved example section up to just after the section on Logger objects, and changed it to use the new basicConfig() API
2004-07-03 11:45:53 +00:00
Fred Drake
0a4dd390bf
Make weak references subclassable:
...
- weakref.ref and weakref.ReferenceType will become aliases for each
other
- weakref.ref will be a modern, new-style class with proper __new__
and __init__ methods
- weakref.WeakValueDictionary will have a lighter memory footprint,
using a new weakref.ref subclass to associate the key with the
value, allowing us to have only a single object of overhead for each
dictionary entry (currently, there are 3 objects of overhead per
entry: a weakref to the value, a weakref to the dictionary, and a
function object used as a weakref callback; the weakref to the
dictionary could be avoided without this change)
- a new macro, PyWeakref_CheckRefExact(), will be added
- PyWeakref_CheckRef() will check for subclasses of weakref.ref
This closes SF patch #983019 .
2004-07-02 18:57:45 +00:00
Raymond Hettinger
214b1c3aae
SF Bug #215126 : Over restricted type checking on eval() function
...
The builtin eval() function now accepts any mapping for the locals argument.
Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing
down the normal case. My timings so no measurable impact.
2004-07-02 06:41:07 +00:00
Skip Montanaro
78bace7442
add cp866 row
2004-07-02 02:14:34 +00:00
Brett Cannon
d88471f432
Change signatures for arguments to "s" and friends to be the proper ``const
...
char *`` instead of just ``char *``. Also added the mentioning of "const" in
some places where it was left out even when the signature already stated the
fact.
Closes bug #980925 .
2004-07-01 20:55:42 +00:00
Walter Dörwald
ac1075a645
Document that encode() and decode() raise UnicodeError
...
instead of ValueError.
Add a note about error handling schemes added by PEP 293.
2004-07-01 19:58:47 +00:00
Skip Montanaro
ecf7a52bb8
link to the codecs page from the "".encode() description.
2004-07-01 19:26:04 +00:00
Fred Drake
1b89656d70
add omitted markup
2004-07-01 14:26:31 +00:00
Raymond Hettinger
68a37ac841
* Fix typos.
...
* Format an example so that the identation is more obvious.
* Add a section on the decimal module to the Brief Tour Part II.
2004-07-01 12:56:54 +00:00
Raymond Hettinger
0fff62f9cd
Move Decimal from the sandbox into production.
2004-07-01 11:52:15 +00:00
Skip Montanaro
2ccf5d689b
use file() in preference to open()
2004-06-30 21:06:45 +00:00
Michael W. Hudson
d5cf143482
Check in the updated version of patch #957240 , which doesn't rely
...
on the marshalling characteristics of infinities.
2004-06-30 09:02:33 +00:00
Fred Drake
96b935e643
fix handling when a proper getopt(1) is available; the "--"
...
end-of-options marker wasn't recognized
2004-06-29 14:39:06 +00:00
Andrew M. Kuchling
6d3a0d2dff
[Bug #948970 ] Add PyExc_* symbols to index.
...
(I ran this through texcheck, but don't have LaTeX installed on this machine and therefore haven't
verified that the changes are accepted by LaTeX.)
2004-06-29 13:52:14 +00:00
Andrew M. Kuchling
7dd8fda49f
[Bug #978556 ] Update SHA spec URL; bugfix candidate
2004-06-29 13:35:01 +00:00
Brett Cannon
a031a0870d
Add a missing space.
2004-06-29 04:14:02 +00:00
Brett Cannon
289e4cba1c
Changed applicable use of ``char *`` declarations that are passed into
...
PyArg_ParseTuple() to ``const char *`` to match the recommendation made in
section 1.3 and to support better coding habits.
Section 1.8 ("Keyword Parameters for Extension Functions") and it's coding
example were not touched since it is stems from an accredited source and thus
did not want to step on anyone's toes.
2004-06-29 03:48:23 +00:00
Barry Warsaw
11b91a0ea3
Added socket.getservbyport(), and make its second argument and that of
...
getservbyname() optional. Update the tests and the docs.
2004-06-28 00:50:43 +00:00
Martin v. Löwis
ef82d2fdfe
Patch #923098 : Share interned strings in marshal.
2004-06-27 16:51:46 +00:00
Brett Cannon
634893d1a3
Mention Py_RETURN_NONE when introducing the idiom of how to have a function
...
return Py_None.
2004-06-27 04:28:00 +00:00
Brett Cannon
555a96475d
Clarify sentence at end of Intermezzo section stating that PyMODINIT_FUNC will
...
be discussed later by saying it is the function return type of the sample code
to make spotting it easier.
2004-06-26 23:10:32 +00:00
Fred Drake
ec6229e352
Make distutils "install --home" support all platforms.
2004-06-25 23:02:59 +00:00
Fred Drake
b86aa99eb9
move the note about the bsddb185 module above the "See also" box; that
...
should always go last in the relevant section's main content, but
before child sections
2004-06-24 06:03:59 +00:00
Tim Peters
9ddf40b4e1
SF patch 876130: add C API to datetime module, from Anthony Tuininga.
...
The LaTeX is untested (well, so is the new API, for that matter).
Note that I also changed NULL to get spelled consistently in concrete.tex.
If that was a wrong thing to do, Fred should yell at me.
2004-06-20 22:41:32 +00:00
Raymond Hettinger
28224f897a
Improve the documented advice on how to best use heapq.heapreplace().
2004-06-20 09:07:53 +00:00
Thomas Heller
dd6d207cf8
Fix an obvious typo (It *is* a typo, or not?)
2004-06-18 17:31:23 +00:00
Thomas Heller
a42bc21ef8
The 'distributing python modules' manual now has an index.
2004-06-18 08:27:36 +00:00
Thomas Heller
949f66141b
Fix typo - the module is named distutils.util.
2004-06-18 06:55:28 +00:00
Fred Drake
964c798a94
Use getopt where possible, so this supports option letters that get
...
jammed together on thos platforms.
2004-06-17 22:04:17 +00:00
Brett Cannon
3706855d11
Add apparently missing word for InvalidStateError definition.
...
Closes bug #973901 . Thanks Brian Gough.
2004-06-17 21:34:05 +00:00
Fred Drake
9e1ac2496f
- add link to the downloadable package in the generated email
...
- misc. changes
2004-06-17 18:36:54 +00:00
Fred Drake
0083c920f2
make the tarball available for download instead of throwing it away
2004-06-17 17:19:12 +00:00
Michael W. Hudson
9e151d149e
add missing closing quote.
2004-06-17 13:29:11 +00:00
Martin v. Löwis
64af6c545c
Comment that getfilesystemencoding returns mbcs even on NT+. Fixes #964870 .
2004-06-16 04:53:46 +00:00
Raymond Hettinger
aefde435ef
Reverse argument order for nsmallest() and nlargest().
...
Reads better when the iterable is a generator expression.
2004-06-15 23:53:35 +00:00
Fred Drake
40333ceeac
add a pointer to the Distutils Cookbook
2004-06-14 22:07:50 +00:00
Raymond Hettinger
b67ad7e671
Patch #826074 : cmath.log optional base argument, fixes #823209
...
(Contributed by Andrew Gaul.)
2004-06-14 07:40:10 +00:00
Martin v. Löwis
ad21945d03
Back out #957240 .
2004-06-14 04:58:42 +00:00
Neal Norwitz
965eeca630
SF bug #970042 , lockf() signature uses len, doc refers to length (use length, same as docstring)
2004-06-13 21:11:03 +00:00
Raymond Hettinger
2e3dfaf707
Install C version of heapq.nsmallest().
2004-06-13 05:26:33 +00:00
Raymond Hettinger
2e6694086f
Minor wording and spacing nits.
2004-06-12 07:59:40 +00:00
Raymond Hettinger
34809170e5
Complete the list of weakreferencable objects.
2004-06-12 06:56:44 +00:00
Fred Drake
0eb32a65b0
Add support for package data.
...
This is basically the support for package data from Phillip Eby's
setuptools package. I've changed it only to fit it into the core
implementation rather than to live in subclasses, and added
documentation.
2004-06-11 21:50:33 +00:00
Raymond Hettinger
33ecffb65a
SF patch #969791 : Add nlargest() and nsmallest() to heapq.
2004-06-10 05:03:17 +00:00
Thomas Heller
7d019664d7
Defining Py_GCC_ATTRIBUTE finds even some more undocumented functions.
2004-06-09 18:50:54 +00:00
Thomas Heller
4369b59b6d
Public Python functions are nowadays marked PyAPI_FUNC, not DL_IMPORT.
2004-06-09 18:38:20 +00:00
Fred Drake
da4513a88b
make a reference to the SimpleHTTPServer module a hyperlink to the
...
docs
2004-06-09 14:50:19 +00:00
Martin v. Löwis
737ea82a5a
Patch #774665 : Make Python LC_NUMERIC agnostic.
2004-06-08 18:52:54 +00:00
Fred Drake
7f35404b7b
- markup fix
...
- explain Python/ceval.c from what; lots of people don't use a source
distro any more
2004-06-08 14:01:27 +00:00
Martin v. Löwis
bdec50f027
Feature request #935915 : Add os.path.devnull.
2004-06-08 08:29:33 +00:00
Martin v. Löwis
f30d60edbc
Patch #510695 : Add TSC profiling for the VM.
2004-06-08 08:17:44 +00:00
Neil Schemenauer
d68d3ee3dd
Note that memory returned by PyBuffer_New is not specifically aligned.
...
Closes SF bug #472568 .
2004-06-08 02:58:50 +00:00
Raymond Hettinger
d348193ff2
Add genexps to the glossary.
2004-06-07 21:52:47 +00:00
Andrew M. Kuchling
44cbfd7819
[Bug #953177 ] Mention .getlist(); text from Paul Moore
2004-06-06 23:28:23 +00:00
Tim Peters
0b4d1ee29d
SF 964876 mapping a 0 length file
...
Document that it can't be done on Windows.
2004-06-06 16:51:46 +00:00
Phillip J. Eby
de48307f76
Added documentation to address SF bug #963246 : limitations on multiple
...
inheritance in Python when a C type is one of the bases.
2004-06-06 15:59:18 +00:00
Nicholas Bastin
cfa157d808
Doc fix for SF #962633 .
2004-06-06 01:17:52 +00:00
Andrew M. Kuchling
e1ca355425
[Bug #918710 ] Add paragraph to clarify docs
2004-06-05 19:25:30 +00:00
Andrew M. Kuchling
1b50b43bee
[Bug #936837 ] Add missing word
2004-06-05 19:00:55 +00:00
Hye-Shik Chang
2d6783b4bc
SF #966375 : Fix typo (Reported by Kristian Ovaska)
2004-06-04 09:33:18 +00:00
Fred Drake
22ec5c3639
if we must argue over the/they, we can just remove the unecessary word
2004-06-03 17:19:25 +00:00
Fred Drake
175d18840a
avoid backticks in examples; use repr() instead
2004-06-03 16:23:23 +00:00
Raymond Hettinger
2d1a2aa117
Fix typo: the-->they
2004-06-03 14:13:04 +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
Martin v. Löwis
9bc4f2def3
Drop claims that Unicode always means UCS-2. Fixes #881861 .
2004-06-03 09:55:28 +00:00
Martin v. Löwis
4a9b8069e0
Document string methods that are locale-dependent. Fixes #935749 .
...
Will backport to 2.3.
2004-06-03 09:47:01 +00:00
Martin v. Löwis
eac324b90b
Patch #957240 : Add count parameter to asyncore.loop.
2004-06-03 09:18:35 +00:00
Hye-Shik Chang
974ed7cfa5
- SF #962502 : Add two more methods for unicode type; width() and
...
iswide() for east asian width manipulation. (Inspired by David
Goodger, Reviewed by Martin v. Loewis)
- Move _PyUnicode_TypeRecord.flags to the end of the struct so that
no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)
2004-06-02 16:49:17 +00:00
Andrew M. Kuchling
d783694dea
Remove old reminder
2004-06-02 15:33:59 +00:00
Martin v. Löwis
9c322fbe36
The expression list in inheritance is not optional. Fixes #960448 .
...
Will backport to 2.3.
2004-06-02 12:59:59 +00:00
Martin v. Löwis
477c85631a
Move grammar rule for lambda_form into section on lambdas. Fixes #964525 .
2004-06-02 12:54:33 +00:00
Martin v. Löwis
13ff116ac7
Fix typo reported in #964592 . Will backport to 2.3.
2004-06-02 12:48:20 +00:00
Martin v. Löwis
dd07e59eee
Document PyModule_AddIntConstant to take a long. Fixes #962471 .
...
Will backport to 2.3.
2004-06-02 12:45:27 +00:00
Martin v. Löwis
e440e47e91
Patch #957398 : Add public API for Generator Object/Type.
2004-06-01 15:22:42 +00:00
Raymond Hettinger
e148595504
Fixup spacing in an example.
2004-05-31 22:53:25 +00:00
Tim Peters
2f50e90818
SF patch 959726: sdist versus SVN
...
The disutils sdist command now ignores .svn directories.
2004-05-31 19:27:59 +00:00
Martin v. Löwis
92816de18e
Patch #932930 : suggest the use of rawstrings for backslashes.
2004-05-31 19:01:00 +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
027bb633b6
Add weakref support to sockets and re pattern objects.
2004-05-31 03:09:25 +00:00
Raymond Hettinger
4ccf336e56
Fill-in the introductory paragraph for the library tour.
2004-05-26 13:57:54 +00:00
Raymond Hettinger
846865bba6
Add a further tour of the standard library.
2004-05-26 13:52:59 +00:00
Raymond Hettinger
a8aebcedf9
Follow official recommendation for domain names in examples.
2004-05-25 16:08:28 +00:00
Skip Montanaro
79cddc56b3
stupid, stupid, stupid... raw_input() already supports readline() if the
...
readline module is loaded.
2004-05-24 14:20:16 +00:00
Skip Montanaro
b98a8ba14d
Add example that uses readline.readline().
2004-05-23 19:06:41 +00:00
Skip Montanaro
0dc23101a0
Exposed readline() function from the readline module.
2004-05-23 17:46:50 +00:00
Raymond Hettinger
e36894da3a
Updated to reflect new types.
2004-05-22 16:38:11 +00:00
Raymond Hettinger
956e4f792f
Clarify when iter() is first called in generator expressions.
2004-05-20 22:59:26 +00:00
Piers Lauder
8bc81fc5c7
Added description for authenticate and namespace
2004-05-20 12:12:58 +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
82903148a8
ConfigParser:
...
- read() method returns a list of files parsed successfully
- add tests, documentation
(closes SF patch #677651 )
2004-05-18 04:24:02 +00:00
Fred Drake
b4c6091984
ConfigParser:
...
- DuplicateSectionError is only raised by add_section()
(closes SF bug #830449 )
2004-05-18 03:56:51 +00:00
Fred Drake
abc086fb0d
ConfigParser:
...
- don't allow setting options to non-string values; raise TypeError
when the value is set, instead of raising an arbitrary exception
later (such as when string interpolation is performed)
- add tests, documentation
(closes SF bug #810843 )
2004-05-18 03:29:52 +00:00
Fred Drake
bc12b01d83
ConfigParser:
...
- ensure that option names in interpolations are handled by
self.optionxform in the same way that other references to option
names
- add tests, documentation
(closes SF bug #857881 , patch #865455 )
2004-05-18 02:25:51 +00:00