Michael Foord
98e7b7644b
Issue 7832: renaming unittest.TestCase.assertSameElements to assertItemsEqual and changing behaviour
2010-03-20 03:00:34 +00:00
Sean Reifscheider
b2efeff4a5
Fixing the file call in the rfc822.Message replacement example.
2010-03-20 00:05:42 +00:00
Sean Reifscheider
95ce1fcf8b
Adding an example of reproducing the rfc822.Message() parsing.
2010-03-19 23:19:55 +00:00
Collin Winter
001a3952c9
Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT.
...
Patch by Reid Kleckner!
2010-03-18 21:54:01 +00:00
Florent Xicluna
735885428d
#8155 : Preserve backward compatibility for test_support.check_warnings(). Add regression tests.
2010-03-18 19:51:47 +00:00
Vinay Sajip
2060e42206
Issue #8162 : logging: Clarified docstring and documentation for disable function.
2010-03-17 15:05:57 +00:00
Georg Brandl
65db5872b0
#8137 : add iso-8859-16 to the standard encodings table.
2010-03-14 09:55:08 +00:00
Florent Xicluna
88db6f402e
Minor documentation updates for xml.etree.
2010-03-14 01:22:09 +00:00
Florent Xicluna
a231e45fb1
Add the keyword argument "method=None" to the .write() method and the tostring/tostringlist functions.
...
Update the function, class and method signatures, according to the new convention.
2010-03-13 20:30:15 +00:00
Florent Xicluna
583302c54e
Update some parts of the xml.etree documentation.
2010-03-13 17:56:19 +00:00
Georg Brandl
45534cec26
Update for new download location.
2010-03-13 13:41:58 +00:00
Georg Brandl
e82110f3a5
Change/fix handling of docs download location: for daily builds, put them right next to the HTML.
2010-03-13 13:39:46 +00:00
Georg Brandl
fce7b86807
Bump externals versions for doc build.
2010-03-13 10:54:12 +00:00
Georg Brandl
3446583976
Add Makefile targets for automatic doc build. Add script that will be used for daily build.
2010-03-13 10:12:39 +00:00
Ezio Melotti
93dd9b808e
#8011 : use exc.tb_lineno instead of traceback.tb_lineno() and pep8ify variable names.
2010-03-13 01:21:34 +00:00
Ezio Melotti
c4785a7547
fix broken links
2010-03-13 00:15:36 +00:00
Georg Brandl
f6d3674599
Fix warnings from "make check".
2010-03-12 10:02:03 +00:00
Georg Brandl
554272743a
Get rid of backticks.
2010-03-12 09:57:43 +00:00
Vinay Sajip
ecfa08fdf8
Issue #8117 : Updated NEWS entry and added to logging documentation.
2010-03-12 09:16:10 +00:00
Benjamin Peterson
9cf41d0c9d
normalize shebang lines to #!/usr/bin/env python
2010-03-11 22:33:25 +00:00
Florent Xicluna
3e8c189faa
Issue #6472 : The xml.etree package is updated to ElementTree 1.3. The cElementTree module is updated too.
2010-03-11 14:36:19 +00:00
Raymond Hettinger
9bd3508530
Add nicer docstrings to namedtuples().
...
Provides better tooltips and looks better in help().
2010-03-09 09:01:46 +00:00
Raymond Hettinger
08090bf36a
Improve the basic example.
...
* Show both the decorator and regular form for assertRaises()
* Use assertTrue() instead of assertIn() to teach useful minimal subset of the API
2010-03-09 08:44:18 +00:00
Georg Brandl
d22557cf0a
Fix typo.
2010-03-08 16:28:40 +00:00
Andrew M. Kuchling
fed15766f9
Add various items
2010-03-08 12:00:39 +00:00
Florent Xicluna
cf741ceb69
Fix syntax: "rc != None" -> "rc is not None"
2010-03-08 10:58:12 +00:00
Georg Brandl
0d4bfec134
#8044 : document Py_{Enter,Leave}RecursiveCall functions.
2010-03-07 21:32:06 +00:00
Georg Brandl
38c72030db
#8039 : document conditional expressions better, giving them their own section.
2010-03-07 21:12:28 +00:00
Georg Brandl
303e675940
#8085 : The function is called PyObject_NewVar, not PyObject_VarNew.
2010-03-07 20:58:31 +00:00
Florent Xicluna
fc8a1ed70e
Refresh the documentation for the test.test_support module.
2010-03-07 19:14:12 +00:00
Mark Dickinson
154b7ad07e
Issue #1530559 : When packing a non-integer with any integer conversion
...
code using struct.pack, attempt to convert to an integer first using
the argument's __int__ method (if present). Also raise a
DeprecationWarning for any such usage of __int__.
This fixes a regression from 2.6, where some (but not all) integer
conversion codes already used __int__.
2010-03-07 16:24:45 +00:00
Georg Brandl
21e99f4924
#5341 : more built-in vs builtin fixes.
2010-03-07 15:23:59 +00:00
Benjamin Peterson
a7fa0324fb
settscdump is definitely an implementation detail
2010-03-06 03:13:33 +00:00
Gerhard Häring
3bbb67273a
Merged code from pysqlite 2.6.0.
2010-03-05 09:12:37 +00:00
R. David Murray
3f3330f388
Fix documentation of email.Message.get_filename to match
...
the fix applied in Issue 7082.
2010-03-04 17:34:05 +00:00
Benjamin Peterson
ac80c157c7
rephrase
2010-03-03 21:28:25 +00:00
Lars Gustäbel
6458104188
Issue #7232 : Add support for the context manager protocol
...
to the TarFile class.
2010-03-03 11:55:48 +00:00
Benjamin Peterson
c516d199ec
fix Sphinx warnings
2010-03-03 02:04:24 +00:00
Benjamin Peterson
90c5802e6b
edit for style
2010-03-03 01:55:09 +00:00
Georg Brandl
d2decd9965
Add some x-refs.
2010-03-02 22:17:38 +00:00
Benjamin Peterson
a39e966e97
set svn:eol-style
2010-03-02 22:05:59 +00:00
Michael Foord
abe6331cca
Link correction in documentation.
2010-03-02 14:22:15 +00:00
Andrew M. Kuchling
ab21f75ff1
Add an item
2010-03-02 13:55:33 +00:00
Steven Bethard
e9330e7941
Initial commit of the argparse library, based on argparse 1.1.
...
Docs still need some updating to make getopt and optparse match the wording promised in the PEP.
There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.
2010-03-02 08:38:09 +00:00
Andrew M. Kuchling
fe6f07c0ac
#7637 : avoid repeated-concatenation antipattern in example
2010-03-01 20:11:57 +00:00
Andrew M. Kuchling
66dab172fe
#7191 : describe more details of wbits parameter
2010-03-01 19:51:43 +00:00
Andrew M. Kuchling
f8af7b46fd
#7637 : update discussion of minidom.unlink() and garbage collection
2010-03-01 19:45:21 +00:00
Gregory P. Smith
3c699d334a
Adds c_ssize_t to ctypes. issue 6729.
2010-03-01 04:56:12 +00:00
Gregory P. Smith
e6390a1503
Adds the hashlib.algorithms attribute. See issue7418.
2010-03-01 02:01:47 +00:00
Ezio Melotti
68beef6633
Pep8ify test names in the examples.
2010-02-28 03:11:07 +00:00
Georg Brandl
37212ed489
Link to http://www.python.org/dev/workflow/ from bugs page.
2010-02-27 14:58:08 +00:00
Ezio Melotti
8dd547f689
Fix missing parenthesis.
2010-02-27 13:50:35 +00:00
Ezio Melotti
84424f1532
typo: __next__ -> next
2010-02-26 23:27:06 +00:00
Andrew M. Kuchling
9aeeffa929
#7407 : specify default maxsize value; patch by Floris Bruynooghe
2010-02-26 13:22:50 +00:00
Senthil Kumaran
c994186dad
Fixing issue5475 : urllib2.getproxies not documented
2010-02-26 00:47:05 +00:00
Eric Smith
271b7e1abb
Issue #7928 : Document str.format element_index better.
2010-02-25 14:26:33 +00:00
Eric Smith
de8b2ac332
Issue #5965 : Add documentation for parts of format specification language.
2010-02-25 14:14:35 +00:00
Dirkjan Ochtman
e4c74e1ea2
Issue #8004 : add a serve target to the Doc Makefile.
2010-02-24 04:12:11 +00:00
Dirkjan Ochtman
2d78070f63
Issue #7733 : add explicit reference in asyncore docs.
2010-02-24 04:00:52 +00:00
Georg Brandl
6ae19ade64
#8000 : fix deprecated directive. What a shame to lose that glorious issue number to such a minor bug :)
2010-02-23 21:33:17 +00:00
Dirkjan Ochtman
8614817875
Fix #1537721 : add writeheader() method to csv.DictWriter.
...
Reviewed by skip.montanaro and thomas.wouters.
2010-02-23 21:09:52 +00:00
Jack Diederich
1605b3316f
fixup markup error
2010-02-23 17:23:30 +00:00
Tarek Ziadé
1e069eeab7
added a note on shutil new APIs
2010-02-23 05:20:22 +00:00
Tarek Ziadé
48cc8dc958
added make_archive (and secondary APIs) to shutil
2010-02-23 05:16:41 +00:00
Andrew M. Kuchling
f2055ae43d
Remove Tools/modulator, a reference to it in the docs, and a screenshot of it.
...
(I asked the BDFL first, and he approved removing it. The last actual bugfix
to Tools/modulator was in 2001; since then all changes have been search-and-replace:
string methods, whitespace fixes, etc.)
2010-02-22 21:04:02 +00:00
Jack Diederich
8f48f4c5f6
fixes issue #7530 , serve_forever()
2010-02-22 18:17:16 +00:00
Mark Dickinson
f5be4e612c
Clarify description of three-argument pow for Decimal types: the exponent of the result is always 0.
2010-02-22 15:40:28 +00:00
Andrew M. Kuchling
dfd0148909
#6414 : clarify description of processor endianness.
...
Text by Alexey Shamrin; I changed 'DEC Alpha' to the more relevant 'Intel Itanium'.
2010-02-22 15:13:17 +00:00
Andrew M. Kuchling
6b2bd05b16
#7794 : describe 2.6 support for executing directories and zip archives
2010-02-22 14:53:17 +00:00
Andrew M. Kuchling
25d6ddd38b
#7076 : mention SystemRandom class near start of the module docs; reword change description for clarity. Noted by Shawn Ligocki.
2010-02-22 02:29:10 +00:00
Andrew M. Kuchling
c7337b8b3a
Re-word
2010-02-22 02:08:45 +00:00
Mark Dickinson
82b34c5dbe
Issue #5211 : Fix complex type to avoid implicit calls to
...
complex.__coerce__. Thanks Meador Inge for the patch.
2010-02-21 12:57:35 +00:00
Vinay Sajip
61afd2694b
logging: Documented warnings module integration.
2010-02-19 23:53:17 +00:00
Georg Brandl
74cbd664d2
#7967 : PyXML is no more.
2010-02-19 19:36:08 +00:00
Fred Drake
cc43b56960
- apply patch from issue 7005
...
- add corresponding documentation
2010-02-19 05:24:30 +00:00
Mark Dickinson
6d8effb1fc
Issue #7633 : Context method in the decimal module (with the exception
...
of the 'canonical' and 'is_canonical' methods) now consistently accept
integer arguments wherever a Decimal instance is accepted. Thanks
Juan José Conti for the patch.
2010-02-18 14:27:02 +00:00
Andrew M. Kuchling
e41e4db259
Add various items
2010-02-18 14:16:48 +00:00
R. David Murray
6dfe66298b
Make the references to Popen in the description of Call
...
and check_call into links.
2010-02-16 17:55:26 +00:00
Eric Smith
cef34099b5
Remove incorrect apostrophe.
2010-02-15 11:55:38 +00:00
Georg Brandl
f0f6bd6332
#7926 : fix-up wording.
2010-02-14 13:38:12 +00:00
Georg Brandl
4a670c5572
#7926 : fix stray parens.
2010-02-14 08:18:23 +00:00
Ezio Melotti
a68f7b8a0d
#7921 : fix links. Patch by Brian Curtin.
2010-02-14 02:50:23 +00:00
Ezio Melotti
6164d7ac84
#7907 : fix wrong function name in doc. Patch by Brian Curtin.
2010-02-11 23:50:57 +00:00
R. David Murray
7c29f071d5
Issue 5754: tweak shelve doc wording to make it clearer that even when
...
writeback=True values are written to the backing store when assigned to
the shelf. Add test to confirm that this happens. Doc patch and added
test by Robert Lehmann. I also fixed the cross references to the sync
and close methods.
2010-02-11 01:38:42 +00:00
Michael Foord
db43b5a1f5
Issue 7893 and Issue 7588
2010-02-10 14:25:12 +00:00
Michael Foord
7b5aa463f9
Doc fix for unittest.
2010-02-08 23:15:22 +00:00
Michael Foord
fe6349c965
Make assertMultiLineEqual the default for comparing unicode strings.
2010-02-08 22:41:16 +00:00
Ezio Melotti
1247775afa
Fix typo
2010-02-08 22:22:41 +00:00
Antoine Pitrou
dde96e6dd6
Clarify and correct description for ccbench and iobench.
2010-02-08 20:25:47 +00:00
Andrew M. Kuchling
0e7123fbd4
Add two items; move a subsection
2010-02-08 13:22:24 +00:00
Andrew M. Kuchling
9e483ef66d
Move distutils into its own subsection; add various items
2010-02-08 01:35:35 +00:00
Ronald Oussoren
dd25e86cf4
Issue 6003: ZipFile.writestr "compression_type" argument
2010-02-07 20:18:02 +00:00
Georg Brandl
dc3694bee0
Rename "exc_value" attribute on assertRaises context manager to "exception".
2010-02-07 17:02:22 +00:00
Ronald Oussoren
ab3f5cbabd
A number of APIs in macostools cannot work in 64-bit mode because they
...
use Carbon APIs that aren't available there.
This patch disables tests for the affected entrypoints in macostools and
mentions this in the documentation.
In theory it is possible to replace the implementation by code that does
work in 64-bit mode, but that would require further updates to the Carbon
wrappers because the modern APIs aren't wrapped properly.
2010-02-07 11:38:28 +00:00
Georg Brandl
6f82cd309c
#5341 : fix "builtin" where used as an adjective ("built-in" is correct).
2010-02-06 18:44:44 +00:00
Georg Brandl
b79dc307ad
Review sysconfig docs.
2010-02-06 10:23:16 +00:00
Georg Brandl
1c7c7304a3
#7864 : make deprecation notices a bit clearer.
2010-02-06 10:08:21 +00:00
Michael Foord
ba7732ea6a
Minor doc change.
2010-02-05 23:28:12 +00:00
Michael Foord
fb0844bcc8
Adding versionadded to test skipping section of unittest documentation.
2010-02-05 21:45:12 +00:00
Michael Foord
1f3fa8ae68
Example of using assertRaises as a context manager in the unittest documentation.
2010-02-05 21:07:38 +00:00
Michael Foord
1c43001cf3
Closes issue 7030.
2010-02-05 20:52:14 +00:00
Barry Warsaw
b1e66ee651
Resolve bug 7847 by including documentation for -J, -U, and -X under "Options
...
you shouldn't use".
2010-02-05 18:45:25 +00:00
Vinay Sajip
0e6e97d9ad
Issue #7851 : logging: clarification on logging configuration files.
2010-02-04 20:23:45 +00:00
Ezio Melotti
85ee3e1b1e
Use correct assert* methods in the examples.
2010-02-04 20:06:38 +00:00
Nick Coghlan
7dfc9e1cd4
Issue 6760: Clarify args handling for subprocess.Popen. Patch by Chris Rebert
2010-02-04 12:43:58 +00:00
Eric Smith
b3c548845a
Corrected list of attributes exposed by sys.getwindowsversion.
2010-02-03 14:17:50 +00:00
R. David Murray
f8f42075df
Explicitly mention the default value for formatdate's usegmt parameter.
2010-02-03 13:36:23 +00:00
Andrew M. Kuchling
17ae2ba78f
Add various items
2010-02-03 02:19:14 +00:00
Tarek Ziadé
2b21069955
added a note in the whatsnew file for sysconfig
2010-02-02 23:39:40 +00:00
Tarek Ziadé
1b93fc1077
first version of the sysconfig module documentation
2010-02-02 22:27:58 +00:00
Andrew M. Kuchling
039c899388
Add various items
2010-02-01 02:04:26 +00:00
Michael Foord
e70c72c06b
Minor modification to unittest documentation.
2010-01-31 19:59:26 +00:00
Georg Brandl
979d79cd31
Fix-up ftplib documentation:
...
move exception descriptions to toplevel, not inside a class
remove attribution in "versionadded"
spell and grammar check docstring of FTP_TLS
2010-01-31 18:51:49 +00:00
Benjamin Peterson
3fd2db9074
move distutils.rst to different toc
2010-01-31 18:09:34 +00:00
Georg Brandl
53ffca5afb
#7802 : fix invalid example (heh).
2010-01-30 17:57:48 +00:00
Ezio Melotti
91d26b43c9
Use the correct markup for args
2010-01-30 13:27:05 +00:00
Ezio Melotti
99af64820a
Relocate a couple of stars and remove redundant backticks
2010-01-30 13:08:54 +00:00
Mark Dickinson
a36507c64c
Issue #7767 : Add new C-API function PyLong_AsLongLongAndOverflow, a
...
long long variant of PyLong_AsLongAndOverflow. Patch by Case Van
Horsen.
2010-01-30 10:08:33 +00:00
Victor Stinner
75d3fb1ebb
#7801 : fix xmlrpclib binary example, open the picture in binary mode
2010-01-30 02:00:26 +00:00
Ezio Melotti
7b4e02c862
#7765 : typos
2010-01-27 20:25:11 +00:00
Jesse Noller
654ade3e6a
Issue #6963 : Added maxtasksperchild argument to multiprocessing.Pool
2010-01-27 03:05:57 +00:00
Eric Smith
096d0bf8b1
Fix type on getwindowsversion documentation. Thanks Taggnostr.
2010-01-27 00:55:16 +00:00
Eric Smith
ee931b7253
Issue #7766 : Change sys.getwindowsversion() return value to a named tuple and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type.
2010-01-27 00:28:29 +00:00
Facundo Batista
47b66590f6
Added a note about Event.is_set() syntax being new to 2.6
2010-01-25 06:15:01 +00:00
Georg Brandl
c3b0cd75b2
#7725 : fix referencing issue.
2010-01-23 08:47:54 +00:00
Georg Brandl
6878ee8d43
#7762 : fix refcount annotation of PyUnicode_Tailmatch().
2010-01-23 08:43:31 +00:00
Ezio Melotti
77a64e7159
#7746 : rephrase a sentence
2010-01-21 20:50:57 +00:00
Benjamin Peterson
9179dab3f4
data descriptors do not override the class dictionary if __get__ is not defined
...
Adjust documentation and add a test to verify this behavior.
See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for
discussion.
2010-01-18 23:07:56 +00:00
Georg Brandl
42eaded701
Fix internal reference.
2010-01-17 23:33:53 +00:00
Georg Brandl
6cbb7f945a
#7699 : improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such.
2010-01-17 08:42:30 +00:00
Ezio Melotti
5afe42b69b
remove wrong markup
2010-01-16 19:36:42 +00:00
Antoine Pitrou
5a9112c0cc
Issue #2846 : Add support for gzip.GzipFile reading zero-padded files.
...
Patch by Brian Curtin.
2010-01-13 14:32:10 +00:00
Ezio Melotti
d0ff51c43f
#7685 : typo
2010-01-13 00:25:03 +00:00
Alexandre Vassalotti
b227f47b2b
Added documentation for dictionary views fixer.
2010-01-12 18:25:33 +00:00
Alexandre Vassalotti
69eb51697c
Issue #1967 : Backport dictionary views.
2010-01-11 23:17:10 +00:00
Alexandre Vassalotti
b646547bb4
Issue #2333 : Backport set and dict comprehensions syntax.
2010-01-11 22:36:12 +00:00
R. David Murray
0e207dff31
Issue #7119 : document that a program-generated Message object
...
tree may be mutated when serialized.
2010-01-10 17:41:28 +00:00
Brett Cannon
6fdd3dcb6a
DeprecationWarning is now silent by default.
...
This was originally suggested by Guido, discussed on the stdlib-sig mailing
list, and given the OK by Guido directly to me. What this change essentially
means is that Python has taken a policy of silencing warnings that are only
of interest to developers by default. This should prevent users from seeing
warnings which are triggered by an application being run against a new
interpreter before the app developer has a chance to update their code.
Closes issue #7319 . Thanks to Antoine Pitrou, Ezio Melotti, and Brian Curtin
for helping with the issue.
2010-01-10 02:56:19 +00:00
Alexandre Vassalotti
ee936a2130
Issue #2335 : Backport set literals syntax from Python 3.x.
2010-01-09 23:35:54 +00:00
Georg Brandl
8360b21270
#7422 : make it clear that getargspec() only works on Python functions.
2010-01-09 09:47:11 +00:00
Georg Brandl
96aa3ca242
#7653 : clarify how the PythonPath registry key should look like.
2010-01-07 21:48:47 +00:00
Georg Brandl
54fd8ae0a3
Fix description for Py_GetPath(); it sounded like it always returned sys.path.
2010-01-07 20:54:45 +00:00
Mark Dickinson
bdd863d062
Eric Smith was missing fro m the issue 7117 whatsnew attribution.
2010-01-07 09:28:29 +00:00
Georg Brandl
705a358265
#5950 : document that zip files with comments are unsupported in zipimport.
2010-01-06 18:26:08 +00:00
Ezio Melotti
b9c3ed4f82
#3340 : document print/get_usage and print/get_version
2010-01-04 21:43:02 +00:00
Ezio Melotti
81982566aa
fixed markup errors
2010-01-04 09:00:11 +00:00
Ezio Melotti
722a8a95b7
:stmt: -> :keyword:
2010-01-03 09:09:55 +00:00
Ezio Melotti
5129ed38c3
#7618 : fix highlight of code blocks
2010-01-03 09:01:27 +00:00
Gregory P. Smith
9d3252154f
issue3972: HTTPConnection and HTTPSConnection now support a
...
source_address parameter.
Also cleans up an annotation in the socket documentation.
2010-01-03 02:06:07 +00:00
Gregory P. Smith
79a3eb1058
Adds an optional source_address parameter to socket.create_connection().
...
For use by issue3972.
2010-01-03 01:29:44 +00:00
Andrew M. Kuchling
7f8ebdbad5
Add a few items
2010-01-03 01:15:21 +00:00
Gregory P. Smith
b56fb12b74
Correct documentation for s* z* and w*, the argument that should be passed
...
is the address of a Py_buffer, not a Py_buffer *.
2010-01-02 21:29:54 +00:00
Mark Dickinson
5a485c188e
Clarify that the rect, phase and polar functions work with radians.
2010-01-02 14:29:52 +00:00
Ezio Melotti
9db77468bc
more copyright year updates
2010-01-01 04:16:42 +00:00
Brett Cannon
f31d1a0577
Add some missing command-line options to the main list. All but -V were already
...
documented. Left -V undocumented for now (and -U was already undocumented).
2010-01-01 01:44:57 +00:00
Benjamin Peterson
ae9a0a0f27
add another advancement
2009-12-31 16:49:37 +00:00
Andrew M. Kuchling
a7f594712e
Add various items
2009-12-31 16:38:53 +00:00
Andrew M. Kuchling
91e0db8404
Add some items
2009-12-31 16:17:05 +00:00
Benjamin Peterson
0f02d3933b
check if the attribute is set before deleting it with T_OBJECT_EX ( fixes #7604 )
...
Also, add a note to the docs about the better behavior of T_OBJECT_EX as
compared to T_OBJECT.
2009-12-30 19:34:10 +00:00
Georg Brandl
b7953f00b1
We only support Windows NT derivatives now.
2009-12-30 19:03:00 +00:00
Georg Brandl
e5ee7e38e8
#7602 : improve "clean" and "checkout" targets now that all tools are in externals.
2009-12-30 18:36:09 +00:00
Georg Brandl
5a5fee8ce3
#7487 : update Pygments version.
2009-12-30 18:32:50 +00:00
Georg Brandl
95049f2561
Use new Pygments version.
2009-12-30 16:21:26 +00:00
Ezio Melotti
569e61f351
#5511 : Added the ability to use ZipFile as a context manager. Patch by Brian Curtin.
2009-12-30 06:14:51 +00:00
Andrew M. Kuchling
3c8a24e6d9
Add various items
2009-12-29 23:41:04 +00:00
Georg Brandl
fa1ffb69c4
#7595 : fix typo in argument default constant.
2009-12-29 21:09:17 +00:00
Andrew M. Kuchling
b4a4f5167b
Various additions
2009-12-29 20:10:16 +00:00
Georg Brandl
c2aad8ad15
Fix wrong markup.
2009-12-29 11:25:38 +00:00
Georg Brandl
a25658b755
Improve markup of ctypes docs.
2009-12-29 11:06:31 +00:00
Georg Brandl
d2ff48602a
#7569 : clarification about c_char_p.
2009-12-29 10:34:34 +00:00
Benjamin Peterson
0d19eaf1eb
document new fix_callable behavior
2009-12-28 20:51:17 +00:00
Georg Brandl
66d8d69cd8
#7404 : remove reference to non-existing example files.
2009-12-28 08:48:24 +00:00
Georg Brandl
740cdc3a9f
#7033 : add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptions a docstring.
2009-12-28 08:34:58 +00:00
Georg Brandl
fe8df4fa35
#7586 : fix typo.
2009-12-28 08:01:59 +00:00
Georg Brandl
1686f3499f
#7577 : fix signature of PyBuffer_FillInfo().
2009-12-28 07:59:05 +00:00
Ezio Melotti
1ac1c39aca
Updated sys.flags table in Doc
2009-12-25 02:12:01 +00:00
Ezio Melotti
9c236bfb9f
Added markup and default arg, fixed example
2009-12-24 02:54:53 +00:00
Senthil Kumaran
f9a21f43c4
Fix for Issue7570: Error in urllib2 example.
2009-12-24 02:18:14 +00:00
Brett Cannon
ca2dc4798b
Make a word plural.
2009-12-22 02:37:37 +00:00
Mark Dickinson
e31d300664
Issue #7528 : Backport PyLong_AsLongAndOverflow from py3k to trunk.
...
Thanks Case Van Horsen for the patch.
2009-12-21 11:21:25 +00:00
Benjamin Peterson
1c2353b0d9
builtin-ins -> builtins
2009-12-20 15:23:22 +00:00
Georg Brandl
6ab5d083f2
#7381 : subprocess documentation and library docstring consistency fixes.
2009-12-20 14:33:20 +00:00
Georg Brandl
819a8fa0f6
Small indentation fix.
2009-12-20 14:28:05 +00:00
Georg Brandl
0cedb4bffa
#7495 : backport Programming FAQ review to trunk.
2009-12-20 14:20:16 +00:00
Senthil Kumaran
0732fd952b
Document the headers parameter for set_tunnel.
2009-12-20 07:29:31 +00:00
Ezio Melotti
062d2b52f3
#7388 : "python".capitalize() in the Doc
2009-12-19 22:41:49 +00:00
Antoine Pitrou
e812d29b52
Issue #7545 : improve documentation of the `buffering` argument in io.open().
2009-12-19 21:01:10 +00:00
Georg Brandl
d86e9d7616
#7480 : remove tautology.
2009-12-19 18:20:18 +00:00
Georg Brandl
c51d1f0862
#7479 : add note about function availability on Unices.
2009-12-19 18:16:31 +00:00
Georg Brandl
27d19030c6
#7493 : review of Design FAQ by Florent Xicluna.
2009-12-19 17:43:33 +00:00
Georg Brandl
670e5969cb
#7521 : remove Py_GetBuildNumber(), which was removed in favor of Py_GetBuildInfo().
2009-12-19 17:34:32 +00:00
Georg Brandl
8b10f13aaf
#7527 : use standard versionadded tags.
2009-12-19 17:30:28 +00:00
Mark Dickinson
5ff37ae14b
Issue #3366 : Add error function and complementary error function to
...
math module.
2009-12-19 11:07:23 +00:00
Vinay Sajip
0c6a0e3318
Issue #7529 : logging: Minor correction to documentation.
2009-12-17 14:52:00 +00:00
Mark Dickinson
9cae178f21
Issue #3366 : Add expm1 function to math module. Thanks Eric Smith for
...
testing on Windows.
2009-12-16 20:13:40 +00:00
Benjamin Peterson
bf306cadd6
adverb
2009-12-15 03:25:27 +00:00
R. David Murray
96228739c5
Clarify phrasing that explains that there are currently two branches.
2009-12-14 02:50:32 +00:00
Tarek Ziadé
4f786b20ab
reorganized the distutils doc a bit : the MANIFEST.in template system has its own section now. This is easier to find and follow
2009-12-13 23:24:13 +00:00
Benjamin Peterson
db9352f00f
avoid having to update this statement all the time
2009-12-13 21:15:31 +00:00
Benjamin Peterson
3e6eb59790
add 2.6.x point releases
2009-12-13 14:18:08 +00:00
Mark Dickinson
9be87bc992
Issue #3366 : Add lgamma function to math module.
2009-12-11 17:29:33 +00:00
Raymond Hettinger
a5fd24e97d
Add a reverse() method to collections.deque().
2009-12-10 06:42:54 +00:00
Tarek Ziadé
a939ecd95b
Issue #7457 : added a read_pkg_file method to distutils.dist.DistributionMetadata so we can read back PKG-INFO files
2009-12-08 08:56:49 +00:00
Andrew M. Kuchling
8f254e7f6e
Typo fix; grammar fix
2009-12-08 02:37:05 +00:00
Philip Jenvey
2627553afa
#7177 : clarify the potential PIPE deadlock warnings
2009-12-03 02:25:54 +00:00
Antoine Pitrou
30b3b35cba
Issue #7333 : The `posix` module gains an `initgroups()` function providing
...
access to the initgroups(3) C library call on Unix systems which implement
it. Patch by Jean-Paul Calderone.
2009-12-02 20:37:54 +00:00
Andrew M. Kuchling
5a73ff81f1
Markup fixes
2009-12-02 14:27:11 +00:00
Georg Brandl
8d8f874c19
Fix versions and spacing.
2009-11-28 11:11:50 +00:00
Gregory P. Smith
761ae0b8cc
fix typo
2009-11-27 17:51:12 +00:00
Martin v. Löwis
50ea4565bd
Issue #6508 : Add posix.{getresuid,getresgid,setresuid,setresgid}.
2009-11-27 13:56:01 +00:00
Antoine Pitrou
acbe3bdbab
Issue #6845 : Add restart support for binary upload in ftplib. The
...
`storbinary()` method of FTP and FTP_TLS objects gains an optional `rest`
argument. Patch by Pablo Mouzo.
(note: the patch also adds a test for the rest argument in retrbinary())
2009-11-27 13:18:34 +00:00
Georg Brandl
2600a33219
#7400 : typo.
2009-11-26 20:48:25 +00:00
Antoine Pitrou
e236c3c8c2
Forgot to add a `versionadded` tag
2009-11-25 23:03:22 +00:00
Antoine Pitrou
bcfaf8007d
Issue #5788 : `datetime.timedelta` objects get a new `total_seconds()` method returning
...
the total number of seconds in the duration. Patch by Brian Quinlan.
2009-11-25 22:59:36 +00:00
Mark Dickinson
6b87f117ca
Fix some documentation examples involving the repr of a float.
2009-11-24 14:27:02 +00:00
Mark Dickinson
9dd5e16c5d
Issue #7117 , continued: Remove substitution of %g-style formatting for
...
%f-style formatting, which used to occur at high precision. Float formatting
should now be consistent between 2.7 and 3.1.
2009-11-23 20:54:09 +00:00
Georg Brandl
faa25999a3
#7345 : fix arguments of formatyear().
2009-11-23 19:53:19 +00:00
Mark Dickinson
f058d2dc08
Issue #7369 : Fibonacci series should start at 0 in tutorial example.
2009-11-23 16:39:05 +00:00
Jesse Noller
6c3767445c
issue5738: The distribution example was confusing, and out of date. It's too large to include inline in the docs as well. It belongs in an addons module outside the stdlib. Removing.
2009-11-21 14:01:56 +00:00
R. David Murray
4823961596
Issue 7363: fix indentation in socketserver udpserver example.
2009-11-20 13:29:43 +00:00
Raymond Hettinger
9eac119ba8
Fix docstrings for itertools combinatoric functions.
2009-11-19 01:22:04 +00:00
Antoine Pitrou
c029942ea0
Mention Giampolo R's new FTP TLS support in the what's new file
2009-11-18 20:20:46 +00:00
Georg Brandl
1136ff541e
Fix markup.
2009-11-18 20:05:15 +00:00
Georg Brandl
8c18a47e77
upcase Python
2009-11-18 19:39:14 +00:00
Georg Brandl
0516f81386
Make separate section for deprecations in 2.7 whatsnew.
2009-11-18 18:52:35 +00:00
Georg Brandl
a17f60242f
Make separate section for deprecations in 2.6 whatsnew.
2009-11-18 18:52:23 +00:00
Georg Brandl
d3571c8d59
#7302 : fix link.
2009-11-16 16:44:05 +00:00
Antoine Pitrou
ccd5e02d2b
Issue #2054 : ftplib now provides an FTP_TLS class to do secure FTP using
...
TLS or SSL. Patch by Giampaolo Rodola'.
2009-11-15 17:22:09 +00:00
Mark Dickinson
82864d1ab1
Issue #7228 : Add '%lld' and '%llu' support to PyFormat_FromString,
...
PyFormat_FromStringV and PyErr_Format.
2009-11-15 16:18:58 +00:00
Antoine Pitrou
d5b34d4597
Issue #4969 : The mimetypes module now reads the MIME database from
...
the registry under Windows. Patch by Gabriel Genellina.
2009-11-15 14:10:48 +00:00
Nick Coghlan
49868cb686
Issue #6816 : expose the zipfile and directory execution mechanism to Python code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation.
2009-11-15 07:30:34 +00:00
Georg Brandl
b6fb8dcbce
Fix terminology.
2009-11-14 11:50:51 +00:00
Benjamin Peterson
cde5115f26
use Sphinx 0.6.3
2009-11-13 23:11:54 +00:00
Benjamin Peterson
2fb77bd6f5
revert r76243; I was right, actually :)
2009-11-13 22:56:00 +00:00
Benjamin Peterson
c4a346cc55
never mind about eval mode in this case
2009-11-13 22:17:17 +00:00
Benjamin Peterson
e36199b49d
fix several compile() issues by translating newlines in the tokenizer
2009-11-12 23:39:44 +00:00
Ezio Melotti
c4cd6d3765
fix highlight in the datetime example
2009-11-12 09:10:02 +00:00
Georg Brandl
7232d41569
Give the profile module a module directive.
2009-11-12 08:29:46 +00:00
Raymond Hettinger
610326d48a
Show example of how to make a sorted dictionary
2009-11-10 19:35:55 +00:00
R. David Murray
890643843d
Update the FAQ entry that explains that assignments in the local scope
...
shadow variables in the outer scope (issue 7290).
2009-11-10 18:58:02 +00:00
R. David Murray
a5dcf2125f
Remove redundant sentence.
2009-11-09 14:18:14 +00:00
Benjamin Peterson
0ac6942a76
discuss how to use -p
2009-11-09 04:10:53 +00:00
Georg Brandl
1a22e87a30
#7271 : fix typo.
2009-11-07 08:26:07 +00:00
Georg Brandl
efc285880c
#7259 : show correct equivalent for operator.i* operations in docstring; fix minor issues in operator docs.
2009-11-04 07:38:12 +00:00
Georg Brandl
a6714b2887
#7256 : add versionadded tags for functions copied from cgi.
2009-11-03 18:34:27 +00:00
Mark Dickinson
5b54432b1d
Fix doc typo reported by Arfrever.
2009-11-03 16:26:14 +00:00
Skip Montanaro
6418577bb5
typo (space-o?)
2009-11-03 02:43:59 +00:00
Mark Dickinson
09823a2e21
Deprecate PyOS_ascii_strtod and PyOS_ascii_atof, and document the replacement function PyOS_string_to_double.
2009-10-31 09:42:39 +00:00
Antoine Pitrou
2c970a2ba2
Remove official documentation entry for thread._count() and make the
...
docstring more descriptive instead.
2009-10-30 22:19:09 +00:00
Antoine Pitrou
59c44f36e0
Issue #7222 : Make thread "reaping" more reliable so that reference
...
leak-chasing test runs give sensible results. The previous method of
reaping threads could return successfully while some Thread objects were
still referenced. This also introduces a new private function:
:func:hread._count().
2009-10-30 17:07:08 +00:00
Vinay Sajip
a7d44001b1
Issue 7199: Documentation made slightly more consistent w.r.t. logging level enumeration.
2009-10-28 23:28:16 +00:00
Tarek Ziadé
40b998b05d
Fixed #1180 : Option to ignore ~/.pydistutils.cfg in Distutils
2009-10-27 23:06:10 +00:00
Georg Brandl
5098bc9448
Fix a strange mis-edit.
2009-10-27 15:10:22 +00:00
Mark Dickinson
da8652d920
Issue #7117 (backport py3k float repr) continued:
...
Add sys.float_repr_style attribute ('short' if short float
repr is in used; 'legacy' otherwise).
2009-10-24 14:01:08 +00:00
Mark Dickinson
bb28285ea2
Issue #7117 : Prepare for backport of py3k float repr.
...
Add the Python/dtoa.c file containing the main algorithms;
add corresponding include file and include in Python.h;
include license information for Python/dtoa.c;
add dtoa.c and dtoa.h to Makefile.
2009-10-24 12:13:30 +00:00
Georg Brandl
5460ff9d9f
Fix markup.
2009-10-24 10:04:19 +00:00
Fred Drake
d617cba62d
add further note about what's passed to optionxform
2009-10-23 13:04:51 +00:00
Georg Brandl
dc0205296b
#7188 : fix optionxform() docs.
2009-10-23 08:14:44 +00:00
Georg Brandl
60bae6f123
Make printout margin important.
2009-10-22 16:20:55 +00:00
Georg Brandl
07de4fc978
Add proper references.
2009-10-22 16:17:05 +00:00
Georg Brandl
d1bed8e5ef
#6977 : getopt does not support optional option arguments.
2009-10-22 15:54:35 +00:00
Georg Brandl
76d6d4a010
#7156 : document curses as Unix-only.
2009-10-22 15:52:15 +00:00
Georg Brandl
f4ffae2b2a
#7035 : improve docs of the various <method>_errors() functions, and give them docstrings.
2009-10-22 15:42:32 +00:00
Georg Brandl
030d65811f
Reorder __slots__ fine print and add a clarification.
2009-10-22 15:27:24 +00:00
Georg Brandl
c5026f8a7b
#7088 : document new functions in signal as Unix-only.
2009-10-22 15:04:09 +00:00
Georg Brandl
2eee1d4df1
#6324 : membership test tries iteration via __iter__.
2009-10-22 15:00:06 +00:00
Georg Brandl
6c14e587f5
Use "impl-detail" directive where applicable.
2009-10-22 11:48:10 +00:00
Georg Brandl
3954d21cc5
Fix stylesheet for multi-paragraph impl-details.
2009-10-22 11:36:50 +00:00
Georg Brandl
f5f7c66a01
Allow short form with text as argument.
2009-10-22 11:28:23 +00:00
Georg Brandl
d032912ac1
Document new directive.
2009-10-22 11:28:06 +00:00
Georg Brandl
a054722778
Make it more robust.
2009-10-22 11:01:46 +00:00
Georg Brandl
08be2e2f35
Add a new directive marking up implementation details and start using it.
2009-10-22 08:05:04 +00:00
Georg Brandl
4ebf80734d
Fix duplicate target.
2009-10-22 07:56:56 +00:00
Georg Brandl
ceb32af23f
Fix markup.
2009-10-22 07:56:02 +00:00
Georg Brandl
0968fd679b
Fix punctuation.
2009-10-22 07:05:48 +00:00
Benjamin Peterson
ff81cb812d
rewrite to be nice to other implementations
2009-10-22 02:36:47 +00:00
Georg Brandl
cf842ad418
#7170 : fix explanation about non-weakrefable builtin types.
2009-10-21 07:15:59 +00:00
Benjamin Peterson
eb7c377659
clarify buffer arg #7178
2009-10-20 21:55:17 +00:00
Benjamin Peterson
e047d7953f
use property api
2009-10-20 03:14:10 +00:00
Eric Smith
c12781abcb
Issue #7169 : Document PyFloat_AsString and PyFloat_AsReprString, and note that they are unsafe and deprecated.
2009-10-19 14:38:14 +00:00
Georg Brandl
11abfe640f
Fix missing word.
2009-10-18 07:58:12 +00:00
Senthil Kumaran
83f1ef681f
Fix a typo.
2009-10-18 01:58:45 +00:00
Senthil Kumaran
45a505f7e7
Fix for Issue7155 - urllib do not document default use of system proxy configuration
2009-10-18 01:24:41 +00:00
Georg Brandl
9b4e5820cb
#7116 : str.join() takes an iterable.
2009-10-14 18:48:32 +00:00
Georg Brandl
647e9d2652
#7126 : os.environ changes *do* take effect in subprocesses started with os.system().
2009-10-14 15:57:46 +00:00
Georg Brandl
5ffa146fde
Fix markup.
2009-10-13 18:10:59 +00:00
Andrew M. Kuchling
5c4e6ebbf5
Various link, textual, and markup fixes
2009-10-13 16:11:49 +00:00
Andrew M. Kuchling
7fe65a0a94
Link to PEP
2009-10-13 15:49:33 +00:00
Benjamin Peterson
526bec21d0
platform we don't care about
2009-10-12 01:26:07 +00:00
Georg Brandl
a4314c2b21
Fix broken links found by "make linkcheck". scipy.org seems to be done right now, so I could not verify links going there.
2009-10-11 20:16:16 +00:00
Georg Brandl
6728c5a762
Add the Python FAQ lists to the documentation. Copied from sandbox/faq. Many thanks to AMK for the preparation work.
2009-10-11 18:31:23 +00:00
Vinay Sajip
1c77b7f84c
Issue #7086 : Added TCP support to SysLogHandler and tidied up some anachronisms in the code.
2009-10-10 20:32:36 +00:00
Mark Dickinson
d5a713ec30
Issue #7051 : Clarify behaviour of 'g' and 'G'-style formatting.
2009-10-08 20:02:25 +00:00
Andrew M. Kuchling
85ea4bf781
Remove two notes
2009-10-05 22:45:39 +00:00
Andrew M. Kuchling
fa6a4271c1
Backport r73983: Document the thousands separator.
2009-10-05 22:42:56 +00:00
Andrew M. Kuchling
b6f0128c63
Use standard comma punctuation; reword some sentences in the docs
2009-10-05 22:32:48 +00:00
Andrew M. Kuchling
400054e59e
Reword sentence
2009-10-05 22:31:11 +00:00
Andrew M. Kuchling
5a9c40b21c
Add various items
2009-10-05 22:30:22 +00:00
Andrew M. Kuchling
915b1206f2
Note side benefit of socket.create_connection()
2009-10-05 21:25:35 +00:00
Andrew M. Kuchling
f6e3d7d585
Document 'skip' parameter to constructor
2009-10-05 21:25:03 +00:00
Andrew M. Kuchling
f5852f59d9
Fix narkup
2009-10-05 21:24:35 +00:00
Andrew M. Kuchling
3fab04078d
Wording fix
2009-10-05 21:24:20 +00:00
Mark Dickinson
530df33eac
Issue #7028 : Add note to hex() builtin docs pointing to float.hex().
2009-10-03 10:14:34 +00:00
Tarek Ziadé
1b48671ef1
#6516 added owner/group support for tarfiles in Distutils
2009-10-02 23:49:48 +00:00
Georg Brandl
f895cf5d33
#7031 : Add TestCase.assertIsInstance and negated method.
2009-10-01 20:59:31 +00:00
Antoine Pitrou
c9062ca308
Sync the 2.x `io` docs with py3k, with a small note as to the distinction
...
between bytes streams and text streams.
2009-10-01 17:08:03 +00:00
Gregory P. Smith
657024cd26
Mention issue6972 in extractall docs about overwriting things outside of
...
the supplied path.
2009-09-29 21:56:31 +00:00
Philip Jenvey
8b9020458a
#5329 : fix os.popen* regression from 2.5: don't execute commands as a sequence
...
through the shell. also document the correct subprocess replacement for this
case
patch from Jean-Paul Calderone and Jani Hakala
2009-09-29 19:10:15 +00:00
Raymond Hettinger
13305f681b
Issue 7008: Better document str.title and show how to work around the apostrophe problem.
2009-09-29 18:53:24 +00:00
Mark Dickinson
b93fff0a57
Issue #3366 : Add gamma function to math module.
...
(lgamma, erf and erfc to follow).
2009-09-28 18:54:55 +00:00
Michael Foord
17565e5b7b
Documentation improvement for load_tests protocol in unittest. Issue 6515.
2009-09-27 20:08:23 +00:00
Vinay Sajip
4780c9a0e0
Tidied up name of parameter in StreamHandler
2009-09-26 14:53:32 +00:00
Ezio Melotti
9aac2455ab
#7000 : document "sep" in capwords. Add a few tests
2009-09-26 11:20:53 +00:00
Benjamin Peterson
afdbe3d661
comment out ugly xxx
2009-09-26 02:57:59 +00:00
Ezio Melotti
2fd3592e70
improved phrasing, markup and example
2009-09-23 21:36:39 +00:00
Benjamin Peterson
ca66cb5ce0
fix typos/rephrase
2009-09-22 22:15:28 +00:00
Brett Cannon
2f75572f44
Fix a minor doc syntax typo.
2009-09-22 20:04:24 +00:00
Vinay Sajip
f778bec8ed
Fixed a typo, and added sections on optimization and using arbitrary objects as messages.
2009-09-22 17:23:41 +00:00
Georg Brandl
ac87077b37
Fix encoding name.
2009-09-22 10:55:08 +00:00
Doug Hellmann
1d18b5b929
Fix markup for external links.
2009-09-20 20:44:13 +00:00
Ronald Oussoren
9f20d9d0ee
Issue 6877: this patch makes it possible to link the readline extension
...
to the libedit emulation of the readline API on OSX 10.5 or later.
This also adds a minimal testsuite for readline to check that the
history manipuation functions have the same interface with both
C libraries.
2009-09-20 14:18:15 +00:00
Ezio Melotti
4b017bbac0
#6881 - fixed wrong return type; improved the formatting
2009-09-20 07:10:39 +00:00
Georg Brandl
f4da666880
Fix references to threading.enumerate().
2009-09-19 12:04:16 +00:00
Georg Brandl
592c58d356
#6946 : fix duplicate index entries for datetime classes.
2009-09-19 10:42:34 +00:00
Georg Brandl
579a358e61
#6930 : clarify description about byteorder handling in UTF decoder routines.
2009-09-18 21:35:59 +00:00
Georg Brandl
54967d994a
#6925 : rewrite docs for locals() and vars() a bit.
2009-09-18 21:21:41 +00:00
Benjamin Peterson
332d721750
add keyword arguments support to str/unicode encode and decode #6300
2009-09-18 21:14:55 +00:00
Georg Brandl
4d94d31b6d
#6936 : for interactive use, quit() is just fine.
2009-09-18 07:22:41 +00:00
Georg Brandl
b926ebb896
Make the optparse doc style a bit more standard: use standard description units for attrs/methods/etc., and use the correct referencing roles.
2009-09-17 17:14:04 +00:00
Georg Brandl
7842a41f5c
Remove duplicate doc of enable/disable_interspersed_args.
2009-09-17 16:26:06 +00:00
Georg Brandl
304d3966ee
#6932 : remove paragraph that advises relying on __del__ being called.
2009-09-17 16:15:53 +00:00
Georg Brandl
bc3777d85e
String values should be shown with quotes, to avoid confusion with constants.
2009-09-17 10:23:02 +00:00
Benjamin Peterson
6fedc5252d
rationalize a bit
2009-09-17 03:27:33 +00:00
Brett Cannon
2348eda37b
Note in the intro to Extending... that ctypes can be a simpler, more portable solution than custom C code.
2009-09-17 03:24:45 +00:00
Benjamin Peterson
fd1fcffced
pep 8 defaults
2009-09-17 03:18:28 +00:00
Thomas Wouters
c4dcb3801e
Fix issue #1590864 , multiple threads and fork() can cause deadlocks, by
...
acquiring the import lock around fork() calls. This prevents other threads
from having that lock while the fork happens, and is the recommended way of
dealing with such issues. There are two other locks we care about, the GIL
and the Thread Local Storage lock. The GIL is obviously held when calling
Python functions like os.fork(), and the TLS lock is explicitly reallocated
instead, while also deleting now-orphaned TLS data.
This only fixes calls to os.fork(), not extension modules or embedding
programs calling C's fork() directly. Solving that requires a new set of API
functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
warning explaining the problem to the documentation in the mean time.
This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
getting the import lock reallocated, seemingly to avoid this very same
problem. This is not the right approach, because the import lock is a
re-entrant one, and reallocating would do the wrong thing when forking while
holding the import lock.
Will backport to 2.6, minus the tiny AIX behaviour change.
2009-09-16 19:55:54 +00:00
Georg Brandl
a50d20a5b1
Rewrap long lines.
2009-09-16 15:57:46 +00:00
Ezio Melotti
2e85f503b1
#6879 - fix misstatement about exceptions
2009-09-16 13:14:05 +00:00
Georg Brandl
718b221e06
#6892 : fix optparse example involving help option.
2009-09-16 13:11:06 +00:00
Georg Brandl
d7226ffe0b
Remove strange trailing commas.
2009-09-16 13:06:22 +00:00
Georg Brandl
f4e6b98b01
#5621 : refactor description of how class/instance attributes interact on a.x=a.x+1 or augassign.
2009-09-16 10:12:06 +00:00
Georg Brandl
83130c3942
#6891 : comment out dead link to Unicode article.
2009-09-16 09:30:48 +00:00
Georg Brandl
b29709adc8
#6876 : fix base class constructor invocation in example.
2009-09-16 09:24:57 +00:00
Georg Brandl
49bb9b7f0a
#6880 : add reference to classes section in exceptions section, which comes earlier.
2009-09-16 09:23:04 +00:00
Georg Brandl
076ca5a430
Make deprecation notices as visible as warnings are right now.
2009-09-16 09:05:11 +00:00
Ronald Oussoren
5d90029041
Finish support for --with-universal-archs=intel
...
and --with-universal-archs=3-way (issue6245)
2009-09-15 19:13:15 +00:00
Ezio Melotti
038f38d3ac
#6917 - typo in method name
2009-09-15 18:41:43 +00:00
Benjamin Peterson
ea7120c7c1
Py_SetPythonHome uses static storage #6913
2009-09-15 03:36:26 +00:00
Georg Brandl
58d23fbb6c
#6908 : fix association of hashlib hash attributes.
2009-09-14 14:50:47 +00:00
Georg Brandl
7eb43b7c70
#6574 : list the future features in a table.
2009-09-14 14:08:54 +00:00
Ezio Melotti
2c7b4934ad
#6904 - fix broken link
2009-09-14 00:48:31 +00:00
Michael Foord
dc0460a309
Remove an extraneous space in unittest documentation.
2009-09-13 19:08:18 +00:00
Michael Foord
e91ea56b30
Test discovery in unittest will only attempt to import modules that are importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568.
2009-09-13 19:07:03 +00:00
Georg Brandl
6848d82a7c
Typo fix.
2009-09-13 18:15:07 +00:00
Michael Foord
5a9719d627
unittest.TestLoader.loadTestsFromName honors the loader suiteClass attribute. Issue 6866.
2009-09-13 17:28:35 +00:00
Michael Foord
ee2df03009
Tutorial tweaks. Issue 6849.
2009-09-13 17:07:46 +00:00
Michael Foord
668be589ef
Note that sys._getframe is not guaranteed to exist in all implementations of Python, and a corresponding note in inspect.currentframe. Issue 6712.
2009-09-13 16:46:19 +00:00
Michael Foord
c3f79373e8
Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
2009-09-13 16:40:02 +00:00
Michael Foord
60931a5a58
Change to tutorial wording for reading text / binary files on Windows. Issue #6301 .
2009-09-13 16:13:36 +00:00
Lars Gustäbel
21121e64b4
Issue #6856 : Add a filter keyword argument to TarFile.add().
...
The filter argument must be a function that takes a TarInfo
object argument, changes it and returns it again. If the
function returns None the TarInfo object will be excluded
from the archive.
The exclude argument is deprecated from now on, because it
does something similar but is not as flexible.
2009-09-12 10:28:15 +00:00
Georg Brandl
d4c7eb1647
Move function back to its section.
2009-09-11 07:55:20 +00:00
Georg Brandl
ffdde9e959
Properly document copy and deepcopy as functions.
2009-09-09 16:49:13 +00:00
Georg Brandl
f01697014f
#6843 : add link from filterwarnings to where the meaning of the arguments is covered.
2009-09-05 16:47:17 +00:00
Georg Brandl
609910c210
#6841 : remove duplicated word.
2009-09-05 09:04:09 +00:00
Georg Brandl
7d4f8fda49
#6777 : dont discourage usage of Exception.args or promote usage of Exception.message.
2009-09-04 11:32:18 +00:00
Georg Brandl
601ee7f847
#6756 : add some info about the "acct" parameter.
2009-09-04 11:25:37 +00:00
Georg Brandl
af795e5eea
#6757 : complete the list of types that marshal can serialize.
2009-09-03 12:31:39 +00:00
Georg Brandl
bf58d80123
#6828 : fix wrongly highlighted blocks.
2009-09-03 07:27:26 +00:00
Georg Brandl
eb4781c279
#6821 : fix signature of PyBuffer_Release().
2009-09-02 20:37:16 +00:00
Georg Brandl
8514b85edc
#6638 : fix wrong parameter name and markup a class.
2009-09-01 08:06:03 +00:00
Georg Brandl
86158fc4c7
#6810 : add a link to the section about frame objects instead of just a description where to find it.
2009-09-01 08:00:47 +00:00
Georg Brandl
018ad1c949
#6765 : hint that log(x, base) is not very sophisticated.
2009-09-01 07:53:37 +00:00
Georg Brandl
a88fd7603b
#6808 : clarification.
2009-09-01 07:46:26 +00:00
Georg Brandl
254c17c758
#6813 : better documentation for numberless string formats.
2009-09-01 07:40:54 +00:00
Senthil Kumaran
90161375c6
Doc fix for the issue2637.
2009-08-31 16:40:27 +00:00
Georg Brandl
4ea46a6614
other -> others where multiple arguments are accepted.
2009-08-31 06:38:29 +00:00
Georg Brandl
7d65fbfed4
#6801 : fix copy-paste oversight.
2009-08-30 11:51:53 +00:00
Georg Brandl
6f8b99e868
#6803 : fix old name.
2009-08-30 08:35:01 +00:00
Tarek Ziadé
3092ed977f
fixed #6801 : symmetric_difference_update also accepts pipe
2009-08-29 13:33:21 +00:00
Kristján Valur Jónsson
e2a77980b6
issue 6275
...
Add an "exc_value" attribute to the _AssertRaisesContext context manager in the unittest package. This allows further tests on the exception that was raised after the context manager exits.
2009-08-27 22:20:21 +00:00
Georg Brandl
e746daa2cb
#6787 : reference fix.
2009-08-27 19:02:43 +00:00
Georg Brandl
185bd22564
Typo fix.
2009-08-27 18:59:02 +00:00
R. David Murray
e7ba742efa
Remove leftover text from end of sentence.
2009-08-27 01:04:59 +00:00
Georg Brandl
1b2695a4c2
#6677 : note that rmdir only removes empty directories.
2009-08-24 17:48:40 +00:00
Benjamin Peterson
626c0aabe8
fix pdf building by teaching latex the right encoding package
2009-08-24 17:42:36 +00:00
Georg Brandl
7543997d74
#6677 : mention "deleting" as an alias for removing files.
2009-08-24 17:24:27 +00:00
Georg Brandl
e8ddbece0f
#6718 : fix example.
2009-08-24 17:22:05 +00:00
Georg Brandl
0cfbd65975
#6725 : spell "namespace" consistently.
2009-08-24 17:20:40 +00:00
Georg Brandl
87296628f1
#6772 : mention utf-8 as utf8 alias.
2009-08-24 17:14:29 +00:00
Tarek Ziadé
f721666d33
Fixed #6556 : Corrected doc on how Distutils looks for its user configuration file under Windows
2009-08-21 14:11:26 +00:00
Vinay Sajip
333c6e7d8f
Added section on exceptions raised during logging.
2009-08-20 22:04:32 +00:00
Tarek Ziadé
764fc235a6
#6693 : New functions in site.py to get user/global site packages paths.
2009-08-20 21:23:13 +00:00
Gregory P. Smith
4e63d54b36
Add weakref support to the thread.lock type.
2009-08-20 09:39:38 +00:00
Skip Montanaro
56366cc6eb
missing module ref (issue6723)
2009-08-18 14:37:52 +00:00
R. David Murray
2c9e33f3a6
Issue 6685: 'toupper' -> 'upper' in cgi doc example explanation.
2009-08-17 19:26:49 +00:00
Vinay Sajip
5e7f645c16
Further refined section on logging to one file from multiple processes.
2009-08-17 13:14:37 +00:00
Vinay Sajip
1c0b24fb67
Refined section on logging to one file from multiple processes.
2009-08-15 23:34:47 +00:00
Vinay Sajip
3a0dc30947
Added section on logging to one file from multiple processes.
2009-08-15 23:23:12 +00:00
Vinay Sajip
59584c4bac
Added versionchanged notices for optional 'delay' parameter to file handler classes.
2009-08-14 11:33:54 +00:00
Georg Brandl
aa66a968d4
Remove potentially confusing sentence in __mangling description.
2009-08-13 12:57:25 +00:00