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