Giampaolo Rodolà
a67299e757
Fix issue #8806 : add SSL contexts support to ftplib
2010-05-26 18:06:04 +00:00
R. David Murray
f5077aa17b
Recorded merge of revisions 81521 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81521 | r.david.murray | 2010-05-25 11:32:06 -0400 (Tue, 25 May 2010) | 2 lines
Issue 8818: urlparse/urlsplit keyword is 'scheme', not 'default_scheme'.
........
2010-05-25 15:36:46 +00:00
Tarek Ziadé
a751499363
Made sysconfig a script that displays useful information - #8770
2010-05-25 09:44:36 +00:00
Antoine Pitrou
ec883dba86
Document the context attribute of SSL sockets
2010-05-24 21:20:20 +00:00
Antoine Pitrou
cafaad4a9d
Add a versionadded tag for SSL contexts.
2010-05-24 15:58:43 +00:00
Steven Bethard
5971096472
Merged revisions 81490 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81490 | steven.bethard | 2010-05-23 19:38:00 -0700 (Sun, 23 May 2010) | 1 line
argparse documentation updates (including updates to optparse and getopt documentation that were promised in the PEP)
........
2010-05-24 03:21:08 +00:00
Mark Dickinson
dc787d2055
Issue #8188 : Introduce a new scheme for computing hashes of numbers
...
(instances of int, float, complex, decimal.Decimal and
fractions.Fraction) that makes it easy to maintain the invariant that
hash(x) == hash(y) whenever x and y have equal value.
2010-05-23 13:33:13 +00:00
Mark Dickinson
b1d8e3229c
#Issue 8540: Make Context._clamp attribute public in decimal module.
2010-05-22 18:35:36 +00:00
Georg Brandl
850a990ee5
Merged revisions 81450 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81450 | georg.brandl | 2010-05-22 00:03:29 +0200 (Sa, 22 Mai 2010) | 1 line
#8709 : mention Windows support for os.devnull.
........
2010-05-21 22:04:32 +00:00
Georg Brandl
592296ee40
Merged revisions 81440 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81440 | georg.brandl | 2010-05-21 23:47:05 +0200 (Fr, 21 Mai 2010) | 1 line
Correct info for Semaphore.acquire() semantics under OSX.
........
2010-05-21 21:48:27 +00:00
Georg Brandl
d25a5da9f2
Merged revisions 81431 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81431 | georg.brandl | 2010-05-21 23:30:47 +0200 (Fr, 21 Mai 2010) | 1 line
#8707 : remove duplicate paragraph part.
........
2010-05-21 21:33:23 +00:00
Georg Brandl
14dfede13b
Fix signatures for the various TemporaryFile class^Wfunctions.
2010-05-21 21:12:07 +00:00
Georg Brandl
fe4fd83737
Fix variable name in example.
2010-05-21 21:01:32 +00:00
Georg Brandl
325524e967
Recorded merge of revisions 81415 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81415 | georg.brandl | 2010-05-21 22:52:46 +0200 (Fr, 21 Mai 2010) | 1 line
typo
........
2010-05-21 20:57:33 +00:00
Georg Brandl
fd0eb3fdf7
Merged revisions 81404 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81404 | georg.brandl | 2010-05-21 22:24:45 +0200 (Fr, 21 Mai 2010) | 1 line
#8783 : replace link to now dead hash collision FAQ.
........
2010-05-21 20:28:13 +00:00
Antoine Pitrou
b52187710e
Issue #4870 : Add an `options` attribute to SSL contexts, as well as
...
several ``OP_*`` constants to the `ssl` module. This allows to selectively
disable protocol versions, when used in combination with `PROTOCOL_SSLv23`.
2010-05-21 09:56:06 +00:00
Benjamin Peterson
955d1b22e2
Merged revisions 81385 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81385 | benjamin.peterson | 2010-05-20 17:23:37 -0500 (Thu, 20 May 2010) | 1 line
fix extra 't' #8778
........
2010-05-20 22:29:43 +00:00
Georg Brandl
8173fb3fd7
Recorded merge of revisions 80466-80469 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80466 | georg.brandl | 2010-04-25 12:54:42 +0200 (So, 25 Apr 2010) | 1 line
Patch from Tim Hatch: Better cross-referencing in socket and winreg docs.
........
r80467 | georg.brandl | 2010-04-25 12:55:16 +0200 (So, 25 Apr 2010) | 1 line
Patch from Tim Hatch: Remove reference to winreg being the fabled high-level registry interface.
........
r80468 | georg.brandl | 2010-04-25 12:55:58 +0200 (So, 25 Apr 2010) | 1 line
Patch from Tim Hatch: Minor spelling changes to _winreg docs.
........
r80469 | georg.brandl | 2010-04-25 12:56:41 +0200 (So, 25 Apr 2010) | 1 line
Fix code example to have valid syntax so that it can be highlighted.
........
2010-05-19 21:03:51 +00:00
Georg Brandl
8569e582f8
Merged revisions 80030,80067,80069,80080-80081,80084,80432-80433,80465-80470,81059,81065-81067 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80030 | georg.brandl | 2010-04-13 08:43:54 +0200 (Di, 13 Apr 2010) | 1 line
Get rid of multi-row cells.
........
r80067 | georg.brandl | 2010-04-14 10:53:38 +0200 (Mi, 14 Apr 2010) | 1 line
#5341 : typo.
........
r80069 | georg.brandl | 2010-04-14 15:50:31 +0200 (Mi, 14 Apr 2010) | 1 line
Add an x-ref to where the O_ constants are documented and move the SEEK_ constants after lseek().
........
r80080 | georg.brandl | 2010-04-14 21:16:38 +0200 (Mi, 14 Apr 2010) | 1 line
#8399 : add note about Windows and O_BINARY.
........
r80081 | georg.brandl | 2010-04-14 23:34:44 +0200 (Mi, 14 Apr 2010) | 1 line
#5250 : document __instancecheck__ and __subclasscheck__. I hope the part about the class/metaclass distinction is understandable.
........
r80084 | georg.brandl | 2010-04-14 23:46:45 +0200 (Mi, 14 Apr 2010) | 1 line
Fix missing.
........
r80432 | georg.brandl | 2010-04-24 10:56:58 +0200 (Sa, 24 Apr 2010) | 1 line
Markup fixes.
........
r80433 | georg.brandl | 2010-04-24 11:08:10 +0200 (Sa, 24 Apr 2010) | 1 line
#7507 : quote "!" in pipes.quote(); it is a special character for some shells.
........
r80465 | georg.brandl | 2010-04-25 12:29:17 +0200 (So, 25 Apr 2010) | 1 line
Remove LaTeXy index entry syntax.
........
r80466 | georg.brandl | 2010-04-25 12:54:42 +0200 (So, 25 Apr 2010) | 1 line
Patch from Tim Hatch: Better cross-referencing in socket and winreg docs.
........
r80467 | georg.brandl | 2010-04-25 12:55:16 +0200 (So, 25 Apr 2010) | 1 line
Patch from Tim Hatch: Remove reference to winreg being the fabled high-level registry interface.
........
r80468 | georg.brandl | 2010-04-25 12:55:58 +0200 (So, 25 Apr 2010) | 1 line
Patch from Tim Hatch: Minor spelling changes to _winreg docs.
........
r80469 | georg.brandl | 2010-04-25 12:56:41 +0200 (So, 25 Apr 2010) | 1 line
Fix code example to have valid syntax so that it can be highlighted.
........
r80470 | georg.brandl | 2010-04-25 12:57:15 +0200 (So, 25 Apr 2010) | 1 line
Patch from Tim Hatch: Make socket setblocking <-> settimeout examples symmetric.
........
r81059 | georg.brandl | 2010-05-10 23:02:51 +0200 (Mo, 10 Mai 2010) | 1 line
#8642 : fix wrong function name.
........
r81065 | georg.brandl | 2010-05-10 23:46:50 +0200 (Mo, 10 Mai 2010) | 1 line
Fix reference direction.
........
r81066 | georg.brandl | 2010-05-10 23:50:57 +0200 (Mo, 10 Mai 2010) | 1 line
Consolidate deprecation messages.
........
r81067 | georg.brandl | 2010-05-10 23:51:33 +0200 (Mo, 10 Mai 2010) | 1 line
Fix typo.
........
2010-05-19 20:57:08 +00:00
Stefan Krah
a5bf3f520c
Merged revisions 81354 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81354 | stefan.krah | 2010-05-19 17:59:40 +0200 (Wed, 19 May 2010) | 3 lines
Fix typo.
........
2010-05-19 16:09:41 +00:00
Victor Stinner
8fddc9e788
Add versionadded (3.2) tag to os.supports_bytes_environ documentation
2010-05-18 17:24:09 +00:00
Victor Stinner
b745a74c99
Issue #8513 : os.get_exec_path() supports b'PATH' key and bytes value.
...
subprocess.Popen() and os._execvpe() support bytes program name. Add
os.supports_bytes_environ flag: True if the native OS type of the environment
is bytes (eg. False on Windows).
2010-05-18 17:17:23 +00:00
Senthil Kumaran
e857d32d91
Removing the reference in the docs for overriding _urlopener global value. See Issue8619 for details.
2010-05-18 03:58:36 +00:00
Senthil Kumaran
af1d434f84
Merged revisions 81279 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81279 | senthil.kumaran | 2010-05-18 08:50:43 +0530 (Tue, 18 May 2010) | 3 lines
Fix minor typo.
........
2010-05-18 03:26:11 +00:00
Lars Gustäbel
1465cc2887
Issue #8633 : Support for POSIX.1-2008 binary pax headers.
...
tarfile is now able to read and write pax headers with a
"hdrcharset=BINARY" record. This record was introduced in
POSIX.1-2008 as a method to store unencoded binary strings that
cannot be translated to UTF-8. In practice, this is just a workaround
that allows a tar implementation to store filenames that do not
comply with the current filesystem encoding and thus cannot be
decoded correctly.
Additionally, tarfile works around a bug in current versions of GNU
tar: undecodable filenames are stored as-is in a pax header without a
"hdrcharset" record being added. Technically, these headers are
invalid, but tarfile manages to read them correctly anyway.
2010-05-17 18:02:50 +00:00
Antoine Pitrou
152efa2ae2
Issue #8550 : Add first class `SSLContext` objects to the ssl module.
2010-05-16 18:19:27 +00:00
Antoine Pitrou
8eac60d9af
Merged revisions 81229 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81229 | antoine.pitrou | 2010-05-16 16:16:56 +0200 (dim., 16 mai 2010) | 3 lines
Document that SSL v2 is insecure.
........
2010-05-16 14:19:41 +00:00
Victor Stinner
b744ba1d14
Issue #8610 : Load file system codec at startup, and display a fatal error on
...
failure. Set the file system encoding to utf-8 (instead of None) if getting
the locale encoding failed, or if nl_langinfo(CODESET) function is missing.
2010-05-15 12:27:16 +00:00
Victor Stinner
766ad36de5
Merged revisions 81163 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81163 | victor.stinner | 2010-05-14 16:20:07 +0200 (ven., 14 mai 2010) | 2 lines
Doc: replace PEP xxx by :pep:`xxx` to create a link on the PEP
........
2010-05-14 14:36:18 +00:00
Fred Drake
ade19175c8
Merged revisions 81108 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81108 | fred.drake | 2010-05-11 22:24:50 -0400 (Tue, 11 May 2010) | 4 lines
- clarify Attr.name comment on the presence of colons in namespace mode
- document Attr.value
- wrap some long lines
........
2010-05-12 02:34:50 +00:00
Fred Drake
1587e3d1e6
Merged revisions 81087,81106 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81087 | fred.drake | 2010-05-11 14:12:27 -0400 (Tue, 11 May 2010) | 2 lines
fix typo
........
r81106 | fred.drake | 2010-05-11 21:22:03 -0400 (Tue, 11 May 2010) | 2 lines
fix error introduced in previous commit, and the adjacent additional typo
........
2010-05-12 01:36:11 +00:00
Brian Curtin
2d067c8138
#8575 - Update and reorganize some _winreg contents.
...
I've removed the hopeful note about a future higher-level module since
it's been in there for quite a long time and nothing of the sort has
come up. There are a few places where markup was added to cross-reference
other sections, and many of the external links have been removed and now
point to newly created sections containing previously undocumented
information.
The Value Types section was created and it's contents were taken from
a function-specific area, since it applies to more than just that
function. It fits in better with the other newly documented constants.
2010-05-11 20:35:47 +00:00
Benjamin Peterson
b496badc32
remove reference to second argument to raise #8676
2010-05-10 20:49:20 +00:00
Giampaolo Rodolà
bd576b75b7
Fix issue #4972 : adds ftplib.FTP context manager protocol
2010-05-10 14:53:29 +00:00
Michael Foord
e3ef5f1201
Merged revisions 80990 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80990 | michael.foord | 2010-05-08 18:40:52 +0200 (Sat, 08 May 2010) | 1 line
Updating documentation and adding docstrings to unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038.
........
2010-05-08 16:46:14 +00:00
Benjamin Peterson
905982b6f9
replace long with int
2010-05-08 15:26:30 +00:00
Michael Foord
16f3e90af7
Merged revisions 80980 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80980 | michael.foord | 2010-05-08 17:09:37 +0200 (Sat, 08 May 2010) | 1 line
Documenting test discovery from package name and potential problems with test discovery importing tests from the wrong location. Issue 7780 and issue 8547.
........
2010-05-08 15:13:42 +00:00
Mark Dickinson
0381e3f16a
Issue #8644 : Improve accuracy of timedelta.total_seconds, by doing intermediate
...
computations with integer arithmetic instead of floating point.
td.total_seconds() now agrees with td / timedelta(seconds = 1).
Thanks Alexander Belopolsky for the patch.
2010-05-08 14:35:02 +00:00
Victor Stinner
449c466e7d
Issue #8514 : Add os.fsencode() function (Unix only): encode a string to bytes
...
for use in the file system, environment variables or the command line.
2010-05-08 11:10:09 +00:00
Benjamin Peterson
f650e46646
Merged revisions 80894,80896 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80894 | benjamin.peterson | 2010-05-06 17:33:46 -0500 (Thu, 06 May 2010) | 1 line
Availability gets its own line
........
r80896 | benjamin.peterson | 2010-05-06 17:49:28 -0500 (Thu, 06 May 2010) | 1 line
ensure that availability information is on its own line at the end of the function docs
........
2010-05-06 23:03:05 +00:00
Benjamin Peterson
0d6fe51e4f
spacing and another versionadded
2010-05-06 22:13:11 +00:00
Benjamin Peterson
662c74ff52
versionadded for environb
2010-05-06 22:09:03 +00:00
Victor Stinner
84ae118006
Issue #8603 : Create a bytes version of os.environ for Unix
...
Create os.environb mapping and os.getenvb() function, os.unsetenv() encodes str
argument to the file system encoding with the surrogateescape error handler
(instead of utf8/strict) and accepts bytes, and posix.environ keys and values
are bytes.
2010-05-06 22:05:07 +00:00
Mark Dickinson
55f8ae28a1
Merged revisions 80826 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80826 | mark.dickinson | 2010-05-05 22:52:39 +0100 (Wed, 05 May 2010) | 1 line
Issue 8628: fix incorrect documentation for numbers.Complex.imag.
........
2010-05-05 21:54:18 +00:00
Victor Stinner
de629d46f2
Issue #8390 : tarfile uses surrogateespace as the default error handler
...
(instead of replace in read mode or strict in write mode)
2010-05-05 21:43:57 +00:00
Senthil Kumaran
56d521cffb
Fix issue8619 - Doc fix - code example.
2010-05-05 07:22:18 +00:00
Senthil Kumaran
4db26af280
Fix Issue8619 docfix related to urllib.
2010-05-05 05:32:16 +00:00
Jesus Cea
fb7b668216
Merged revisions 80716 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80716 | jesus.cea | 2010-05-03 18:09:21 +0200 (Mon, 03 May 2010) | 1 line
wbits negative was documented SEVEN years ago
........
2010-05-03 16:14:58 +00:00
Giampaolo Rodolà
8130290d42
Merged revisions 80631 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80631 | giampaolo.rodola | 2010-04-29 22:31:17 +0200 (gio, 29 apr 2010) | 1 line
Fixes issue 8543 (asynchat documentation issues)
........
2010-04-29 20:45:01 +00:00
Senthil Kumaran
5ffe0e6df8
Merged revisions 80627 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80627 | senthil.kumaran | 2010-04-30 01:16:08 +0530 (Fri, 30 Apr 2010) | 3 lines
Fixing the Broken links of mechanize library.
........
2010-04-29 20:02:50 +00:00
Ezio Melotti
d5334e1fa3
Merged revisions 80620 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80620 | ezio.melotti | 2010-04-29 18:07:20 +0200 (Thu, 29 Apr 2010) | 1 line
Group the Windows entries in getfilesystemencoding doc, move the win 9x one at the bottom of the list and fix some markup.
........
2010-04-29 16:24:51 +00:00
Tarek Ziadé
ffa155ad83
make sure shutil checks for bz2 availability before it uses it.
2010-04-29 13:34:35 +00:00
Antoine Pitrou
f9fc08f9f3
Merged revisions 80591-80592 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80591 | antoine.pitrou | 2010-04-28 21:53:35 +0200 (mer., 28 avril 2010) | 4 lines
State clearly that truncate() doesn't move the file position,
and remove a duplicate of its specification.
........
r80592 | antoine.pitrou | 2010-04-28 21:57:33 +0200 (mer., 28 avril 2010) | 3 lines
Clarify and fix the documentation for IOBase.close()
........
2010-04-28 19:59:32 +00:00
Tarek Ziadé
6ac91723bd
#8295 : Added shutil.unpack_archive and related APIs
2010-04-28 17:51:36 +00:00
Senthil Kumaran
71fb6c88a8
Merged revisions 80583 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80583 | senthil.kumaran | 2010-04-28 22:50:43 +0530 (Wed, 28 Apr 2010) | 3 lines
Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked"
........
2010-04-28 17:39:48 +00:00
Benjamin Peterson
d99cd81df5
Merged revisions 80561 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80561 | benjamin.peterson | 2010-04-27 17:56:31 -0500 (Tue, 27 Apr 2010) | 1 line
make slice notation in (r)find docs consistent
........
2010-04-27 22:58:50 +00:00
Benjamin Peterson
95e392c111
Merged revisions 80544 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80544 | benjamin.peterson | 2010-04-27 16:01:54 -0500 (Tue, 27 Apr 2010) | 1 line
reject None as the buffering argument like the C implementation does #8546
........
2010-04-27 21:07:21 +00:00
Michael Foord
469b1f0d50
Adding versionadded to several new functions in unittest documentation.
2010-04-26 23:41:26 +00:00
Michael Foord
de4ceabfd8
Merged revisions 80476 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80476 | michael.foord | 2010-04-25 20:02:46 +0100 (Sun, 25 Apr 2010) | 1 line
Adding unittest.removeHandler function / decorator for removing the signal.SIGINT signal handler. With tests and docs.
........
2010-04-25 19:53:49 +00:00
Ezio Melotti
bc37298e84
Merged revisions 79786 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79786 | ezio.melotti | 2010-04-05 11:02:54 +0300 (Mon, 05 Apr 2010) | 1 line
Fix markup, punctuation and whitespaces in _winreg.rst.
........
2010-04-25 17:48:01 +00:00
Georg Brandl
386bc6d380
Merged revisions 80150,80460-80461 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80150 | r.david.murray | 2010-04-17 17:45:38 +0200 (Sa, 17 Apr 2010) | 2 lines
Update link to Apple Publication Style guide.
........
r80460 | georg.brandl | 2010-04-25 12:16:00 +0200 (So, 25 Apr 2010) | 1 line
#8528 : fix typo.
........
r80461 | georg.brandl | 2010-04-25 12:17:27 +0200 (So, 25 Apr 2010) | 1 line
#8522 : use with statement instead of try-finally for file handling.
........
2010-04-25 10:19:53 +00:00
Brian Curtin
d85594869d
Fix #5774 . Change doc to reflect that some functions have defaults but not kwargs.
2010-04-24 17:21:31 +00:00
Tarek Ziadé
8c26c7d907
added a note about the ignore_dangling_symlinks option
2010-04-23 13:03:50 +00:00
Sean Reifscheider
13daf12b47
Port of issue8451 to python3: Syslog use sys.argv[0] for ident.
2010-04-23 09:29:52 +00:00
Senthil Kumaran
7a1e09f60c
Merged revisions 80362 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80362 | senthil.kumaran | 2010-04-22 17:40:13 +0530 (Thu, 22 Apr 2010) | 4 lines
Changed tests to only urlparse one, which was enough, addressed Ezio's comment
on Invalid url check statement and versionchanged string in docs.
........
2010-04-22 12:19:46 +00:00
Senthil Kumaran
0c2d8b8e51
Fixing a note on encoding declaration, its usage in urlopen based on review
...
comments from RDM and Ezio.
2010-04-22 10:53:30 +00:00
Georg Brandl
4c25cf3fb0
Fix indentation.
2010-04-22 07:00:42 +00:00
Senthil Kumaran
6257bdd8ea
Merged revisions 80336 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80336 | senthil.kumaran | 2010-04-22 11:18:35 +0530 (Thu, 22 Apr 2010) | 3 lines
Updated the RFCs list in the See Also section of urlparse.rst
........
2010-04-22 05:53:18 +00:00
Brian Curtin
3035c3925c
Port #7347 to py3k.
...
Add CreateKeyEx and DeleteKeyEx, along with test improvements.
2010-04-21 23:56:21 +00:00
Mark Dickinson
7c186e2a18
Issue #2706 : Add support for dividing a timedelta by another timedelta.
...
Adds support for the three division operations:
- timedelta / timedelta -> float
- timedelta // timedelta -> int
- timedelta % timedelta -> timedelta
also adds support for divmod(timedelta, timedelta).
Patch by Victor Stinner, adapted for py3k and extended by Alexander
Belopolsky.
2010-04-20 22:32:49 +00:00
Tarek Ziadé
5e2be8737d
Merged revisions 80282 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80282 | tarek.ziade | 2010-04-20 23:09:06 +0200 (Tue, 20 Apr 2010) | 1 line
removed ztar support in shutil.make_archive
........
2010-04-20 21:40:47 +00:00
Georg Brandl
bdc55aba34
Markup nit.
2010-04-20 18:15:54 +00:00
Brian Curtin
904bd39afb
Updated version numbers from 2.7 to 3.2
...
Merged revisions 80265 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80265 | brian.curtin | 2010-04-20 10:23:18 -0500 (Tue, 20 Apr 2010) | 2 lines
Add version info for os.kill and signal changes from #1220212 .
........
2010-04-20 15:28:06 +00:00
Tarek Ziadé
6cf3e616e4
fixed typo -- thanks Nick
2010-04-20 14:31:49 +00:00
Ezio Melotti
cb999a311c
Add missing arg, fix indentation and spelling.
2010-04-20 11:26:51 +00:00
Ezio Melotti
4d5195bab5
Fix two versionchanged.
2010-04-20 10:57:44 +00:00
Ezio Melotti
7afd3f532d
Fix versionadded in unittest.rst.
2010-04-20 09:32:54 +00:00
Tarek Ziadé
fb437513d6
Fixed #6547 : Added the ignore_dangling_symlinks option to shutil.copytree
2010-04-20 08:57:33 +00:00
Tarek Ziadé
5340db3803
Fixed #1540112 : now shutil.copytree will let you provide your own copy() function
2010-04-19 22:30:51 +00:00
Tarek Ziadé
10a51afc80
Merged revisions 80221 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80221 | tarek.ziade | 2010-04-19 23:28:21 +0200 (Mon, 19 Apr 2010) | 1 line
Fixed #8463 : added missing reference to bztar in shutil's documentation.
........
2010-04-19 21:31:42 +00:00
Antoine Pitrou
e4754bda86
Remove obsolete mention of IRIX native threads -- we don't use them anymore.
2010-04-19 14:09:57 +00:00
Antoine Pitrou
adbc009779
Add version{added,changed} for lock timeout support.
2010-04-19 14:05:51 +00:00
Georg Brandl
88d7dbdc0e
Remove colspanning cells.
2010-04-18 09:50:07 +00:00
Antoine Pitrou
0454af9b54
Issue #850728 : Add a *timeout* parameter to the `acquire()` method of
...
`threading.Semaphore` objects. Original patch by Torsten Landschoff.
2010-04-17 23:51:58 +00:00
Antoine Pitrou
2d9cb9c1cb
Merged revisions 80151 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80151 | antoine.pitrou | 2010-04-17 19:10:38 +0200 (sam., 17 avril 2010) | 4 lines
Issue #8322 : Add a *ciphers* argument to SSL sockets, so as to change the
available cipher list. Helps fix test_ssl with OpenSSL 1.0.0.
........
2010-04-17 17:40:45 +00:00
Barry Warsaw
28a691b7fd
PEP 3147
2010-04-17 00:19:56 +00:00
Senthil Kumaran
b213ee33c0
Fix Issue5419 - explaining bytes return value of urlopen, use of .decode() to convert to str.
2010-04-15 17:18:22 +00:00
Antoine Pitrou
7c3e577395
Issue #7316 : the acquire() method of lock objects in the :mod:`threading`
...
module now takes an optional timeout argument in seconds. Timeout support
relies on the system threading library, so as to avoid a semi-busy wait
loop.
2010-04-14 15:44:10 +00:00
Raymond Hettinger
22f188512b
Add usage notes for collections.Counter()
2010-04-12 21:45:14 +00:00
Mark Dickinson
6abf1823da
Merged revisions 80013-80015 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80013 | mark.dickinson | 2010-04-12 20:25:32 +0100 (Mon, 12 Apr 2010) | 14 lines
Issue #7355 : Various improvements to struct module documentation.
- note early on that the result of struct.pack includes padding
bytes by default
- add examples showing how order of struct fields can affect size
(due to padding)
- better headers and references; introduction to format strings
- integrate packing notes into table
Many thanks to Meador Inge for the patch.
........
r80014 | mark.dickinson | 2010-04-12 20:46:20 +0100 (Mon, 12 Apr 2010) | 1 line
Rewrap some long lines in struct module doc source.
........
r80015 | mark.dickinson | 2010-04-12 21:38:36 +0100 (Mon, 12 Apr 2010) | 1 line
More struct doc tweaks.
........
2010-04-12 21:00:59 +00:00
Brian Curtin
eb24d7498f
Port #1220212 (os.kill for Win32) to py3k.
2010-04-12 17:16:38 +00:00
R. David Murray
b2416e54b1
Merged revisions 80004 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80004 | r.david.murray | 2010-04-12 12:35:19 -0400 (Mon, 12 Apr 2010) | 13 lines
Issue #7585 : use tab between components in unified and context diff headers.
Instead of spaces between the filename and date (or whatever the string
is that follows the filename, if any) use tabs. This is what the unix
'diff' command does, for example, and difflib was intended to follow
the 'standard' way of doing diffs. This improves compatibility with
patch tools. The docs and examples are also changed to recommended that
the date format used be the ISO 8601 format, which is what modern diff
tools emit by default.
Patch by Anatoly Techtonik.
........
2010-04-12 16:58:02 +00:00
Barry Warsaw
0c9fd6321c
typo
2010-04-12 14:50:57 +00:00
Benjamin Peterson
b48af54ff7
Merged revisions 79464,79471,79623,79626,79630,79632,79643,79648-79649,79679,79685,79711,79761,79774,79777,79792-79794,79877,79898-79900 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79464 | michael.foord | 2010-03-27 07:55:19 -0500 (Sat, 27 Mar 2010) | 1 line
A fix for running unittest tests on platforms without the audioop module (e.g. jython and IronPython)
........
r79471 | michael.foord | 2010-03-27 14:10:11 -0500 (Sat, 27 Mar 2010) | 4 lines
Addition of delta keyword argument to unittest.TestCase.assertAlmostEquals and assertNotAlmostEquals
This allows the comparison of objects by specifying a maximum difference; this includes the comparing of non-numeric objects that don't support rounding.
........
r79623 | michael.foord | 2010-04-02 16:42:47 -0500 (Fri, 02 Apr 2010) | 1 line
Addition of -b command line option to unittest for buffering stdout and stderr during test runs.
........
r79626 | michael.foord | 2010-04-02 17:08:29 -0500 (Fri, 02 Apr 2010) | 1 line
TestResult stores original sys.stdout and tests no longer use sys.__stdout__ (etc) in tests for unittest -b command line option
........
r79630 | michael.foord | 2010-04-02 17:30:56 -0500 (Fri, 02 Apr 2010) | 1 line
unittest tests no longer replace the sys.stdout put in place by regrtest
........
r79632 | michael.foord | 2010-04-02 17:55:59 -0500 (Fri, 02 Apr 2010) | 1 line
Issue #8038 : Addition of unittest.TestCase.assertNotRegexpMatches
........
r79643 | michael.foord | 2010-04-02 20:15:21 -0500 (Fri, 02 Apr 2010) | 1 line
Support dotted module names for test discovery paths in unittest. Issue 8038.
........
r79648 | michael.foord | 2010-04-02 21:21:39 -0500 (Fri, 02 Apr 2010) | 1 line
Cross platform unittest.TestResult newline handling when buffering stdout / stderr.
........
r79649 | michael.foord | 2010-04-02 21:33:55 -0500 (Fri, 02 Apr 2010) | 1 line
Another attempt at a fix for unittest.test.test_result for windows line endings
........
r79679 | michael.foord | 2010-04-03 09:52:18 -0500 (Sat, 03 Apr 2010) | 1 line
Adding -b command line option to the unittest usage message.
........
r79685 | michael.foord | 2010-04-03 10:20:00 -0500 (Sat, 03 Apr 2010) | 1 line
Minor tweak to unittest command line usage message
........
r79711 | michael.foord | 2010-04-03 12:03:11 -0500 (Sat, 03 Apr 2010) | 1 line
Documenting new features in unittest
........
r79761 | michael.foord | 2010-04-04 17:41:54 -0500 (Sun, 04 Apr 2010) | 1 line
unittest documentation formatting changes
........
r79774 | michael.foord | 2010-04-04 18:28:44 -0500 (Sun, 04 Apr 2010) | 1 line
Adding documentation for new unittest.main() parameters
........
r79777 | michael.foord | 2010-04-04 19:39:50 -0500 (Sun, 04 Apr 2010) | 1 line
Document signal handling functions in unittest.rst
........
r79792 | michael.foord | 2010-04-05 05:26:26 -0500 (Mon, 05 Apr 2010) | 1 line
Documentation fixes for unittest
........
r79793 | michael.foord | 2010-04-05 05:28:27 -0500 (Mon, 05 Apr 2010) | 1 line
Furterh documentation fix for unittest.rst
........
r79794 | michael.foord | 2010-04-05 05:30:14 -0500 (Mon, 05 Apr 2010) | 1 line
Further documentation fix for unittest.rst
........
r79877 | michael.foord | 2010-04-06 18:18:16 -0500 (Tue, 06 Apr 2010) | 1 line
Fix module directory finding logic for dotted paths in unittest test discovery.
........
r79898 | michael.foord | 2010-04-07 18:04:22 -0500 (Wed, 07 Apr 2010) | 1 line
unittest.result.TestResult does not create its buffers until they're used. It uses StringIO not cStringIO. Issue 8333.
........
r79899 | michael.foord | 2010-04-07 19:04:24 -0500 (Wed, 07 Apr 2010) | 1 line
Switch regrtest to use StringIO instead of cStringIO for test_multiprocessing on Windows. Issue 8333.
........
r79900 | michael.foord | 2010-04-07 23:33:20 -0500 (Wed, 07 Apr 2010) | 1 line
Correction of unittest documentation typos and omissions
........
2010-04-11 20:43:16 +00:00
Benjamin Peterson
22005fc5ba
Merged revisions 79279,79284,79293,79373,79376,79379,79876,79888 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79279 | vinay.sajip | 2010-03-22 07:33:08 -0500 (Mon, 22 Mar 2010) | 1 line
Issue #8200 : logging: Handle errors when multiprocessing is not fully loaded when logging occurs.
........
r79284 | vinay.sajip | 2010-03-22 08:02:28 -0500 (Mon, 22 Mar 2010) | 1 line
Issue #8201 : logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time.
........
r79293 | vinay.sajip | 2010-03-22 10:29:01 -0500 (Mon, 22 Mar 2010) | 1 line
logging: Added getChild utility method to Logger and added isEnabledFor method to LoggerAdapter.
........
r79373 | vinay.sajip | 2010-03-24 09:31:21 -0500 (Wed, 24 Mar 2010) | 1 line
logging: Added LOG_FTP for SysLogHandler and updated documentation.
........
r79376 | vinay.sajip | 2010-03-24 10:10:40 -0500 (Wed, 24 Mar 2010) | 1 line
logging: Documentation tweak.
........
r79379 | vinay.sajip | 2010-03-24 12:36:35 -0500 (Wed, 24 Mar 2010) | 1 line
logging: Updated SysLogHandler documentation.
........
r79876 | vinay.sajip | 2010-04-06 17:32:37 -0500 (Tue, 06 Apr 2010) | 1 line
Issue #8327 : logging: Clarification of propagation functionality in documentation.
........
r79888 | vinay.sajip | 2010-04-07 04:40:52 -0500 (Wed, 07 Apr 2010) | 1 line
Issue #8331 : logging: fixed some grammatical errors in documentation.
........
2010-04-11 16:25:06 +00:00
Benjamin Peterson
08bf91c041
Merged revisions 79307,79408,79430,79533,79542,79579-79580,79585-79587,79607-79608,79622,79717,79820,79822,79828,79862,79875,79923-79924,79941-79943,79945,79947,79951-79952 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79307 | florent.xicluna | 2010-03-22 17:45:50 -0500 (Mon, 22 Mar 2010) | 2 lines
#7667 : Fix doctest failures with non-ASCII paths.
........
r79408 | victor.stinner | 2010-03-24 20:18:38 -0500 (Wed, 24 Mar 2010) | 2 lines
Fix a gcc warning introduced by r79397.
........
r79430 | brian.curtin | 2010-03-25 18:48:54 -0500 (Thu, 25 Mar 2010) | 2 lines
Fix #6538 . Markup RegexObject and MatchObject as classes. Patch by Ryan Arana.
........
r79533 | barry.warsaw | 2010-03-31 16:07:16 -0500 (Wed, 31 Mar 2010) | 6 lines
- Issue #8233 : When run as a script, py_compile.py optionally takes a single
argument `-` which tells it to read files to compile from stdin. Each line
is read on demand and the named file is compiled immediately. (Original
patch by Piotr O?\197?\188arowski).
........
r79542 | r.david.murray | 2010-03-31 20:28:39 -0500 (Wed, 31 Mar 2010) | 3 lines
A couple small grammar fixes in test.rst, and rewrite the
check_warnings docs to be clearer.
........
r79579 | georg.brandl | 2010-04-02 03:34:41 -0500 (Fri, 02 Apr 2010) | 1 line
Add 2.6.5.
........
r79580 | georg.brandl | 2010-04-02 03:39:09 -0500 (Fri, 02 Apr 2010) | 1 line
#2768 : add a note on how to get a file descriptor.
........
r79585 | georg.brandl | 2010-04-02 04:03:18 -0500 (Fri, 02 Apr 2010) | 1 line
Remove col-spanning cells in logging docs.
........
r79586 | georg.brandl | 2010-04-02 04:07:42 -0500 (Fri, 02 Apr 2010) | 1 line
Document PyImport_ExecCodeModuleEx().
........
r79587 | georg.brandl | 2010-04-02 04:11:49 -0500 (Fri, 02 Apr 2010) | 1 line
#8012 : clarification in generator glossary entry.
........
r79607 | andrew.kuchling | 2010-04-02 12:48:23 -0500 (Fri, 02 Apr 2010) | 1 line
#6647 : document that catch_warnings is not thread-safe
........
r79608 | andrew.kuchling | 2010-04-02 12:54:26 -0500 (Fri, 02 Apr 2010) | 1 line
#6647 : add note to two examples
........
r79622 | tarek.ziade | 2010-04-02 16:34:19 -0500 (Fri, 02 Apr 2010) | 1 line
removed documentation on code that was reverted and pushed into distutils2
........
r79717 | antoine.pitrou | 2010-04-03 16:22:38 -0500 (Sat, 03 Apr 2010) | 4 lines
Fix wording / typography, and a slightly misleading statement
(memoryviews don't support complex structures right now)
........
r79820 | benjamin.peterson | 2010-04-05 22:34:09 -0500 (Mon, 05 Apr 2010) | 1 line
ready _sre types
........
r79822 | georg.brandl | 2010-04-06 03:18:15 -0500 (Tue, 06 Apr 2010) | 1 line
#8320 : document return value of recv_into().
........
r79828 | georg.brandl | 2010-04-06 09:33:44 -0500 (Tue, 06 Apr 2010) | 1 line
Add JP.
........
r79862 | georg.brandl | 2010-04-06 15:27:59 -0500 (Tue, 06 Apr 2010) | 1 line
Fix syntax.
........
r79875 | mark.dickinson | 2010-04-06 17:18:23 -0500 (Tue, 06 Apr 2010) | 1 line
More NaN consistency doc fixes.
........
r79923 | georg.brandl | 2010-04-10 06:15:24 -0500 (Sat, 10 Apr 2010) | 1 line
#8360 : skipTest was added in 2.7.
........
r79924 | georg.brandl | 2010-04-10 06:16:59 -0500 (Sat, 10 Apr 2010) | 1 line
#8346 : update version.
........
r79941 | andrew.kuchling | 2010-04-10 20:39:36 -0500 (Sat, 10 Apr 2010) | 1 line
Two grammar fixes
........
r79942 | andrew.kuchling | 2010-04-10 20:40:06 -0500 (Sat, 10 Apr 2010) | 1 line
Punctuation fix
........
r79943 | andrew.kuchling | 2010-04-10 20:40:30 -0500 (Sat, 10 Apr 2010) | 1 line
Add various items
........
r79945 | andrew.kuchling | 2010-04-10 20:40:49 -0500 (Sat, 10 Apr 2010) | 1 line
name correct
........
r79947 | andrew.kuchling | 2010-04-10 20:44:13 -0500 (Sat, 10 Apr 2010) | 1 line
Remove distutils section
........
r79951 | andrew.kuchling | 2010-04-11 07:48:08 -0500 (Sun, 11 Apr 2010) | 1 line
Two typo fixes
........
r79952 | andrew.kuchling | 2010-04-11 07:49:37 -0500 (Sun, 11 Apr 2010) | 1 line
Add two items
........
2010-04-11 16:12:57 +00:00
Raymond Hettinger
c075f07a97
Fixup new itertools recipes.
2010-04-10 07:09:53 +00:00
Brian Curtin
48f16f9297
Add MatchObject.groups which got messed up during a merge.
2010-04-08 13:55:29 +00:00
Georg Brandl
b3959bd63e
Fix indentation.
2010-04-08 06:33:16 +00:00
Mark Dickinson
42dfeec893
Merged revisions 79871 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79871 | mark.dickinson | 2010-04-06 23:10:55 +0100 (Tue, 06 Apr 2010) | 2 lines
Use consistent spelling for nans (thanks Georg for noticing).
........
2010-04-06 22:13:37 +00:00