Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 360e4b8

Browse files
committed
Merged revisions 55325-55327 via svnmerge from
svn+ssh://[email protected]/python/branches/p3yk ................ r55326 | guido.van.rossum | 2007-05-14 15:07:35 -0700 (Mon, 14 May 2007) | 2 lines Don't use err.message, use err.args[0]. ................ r55327 | guido.van.rossum | 2007-05-14 15:11:37 -0700 (Mon, 14 May 2007) | 259 lines Merged revisions 54988-55226,55228-55323 via svnmerge from svn+ssh://[email protected]/python/trunk ........ r54995 | neal.norwitz | 2007-04-26 23:45:32 -0700 (Thu, 26 Apr 2007) | 3 lines This gets the test working on Solaris. It seems a little hokey to me, but the test passed on Linux and Solaris, hopefully other platforms too. ........ r55002 | georg.brandl | 2007-04-27 12:20:00 -0700 (Fri, 27 Apr 2007) | 2 lines Version fix (bug #1708710) ........ r55021 | neal.norwitz | 2007-04-29 16:53:24 -0700 (Sun, 29 Apr 2007) | 1 line There really are some tests that are problematic. ........ r55024 | kristjan.jonsson | 2007-04-30 08:17:46 -0700 (Mon, 30 Apr 2007) | 1 line Complete revamp of PCBuild8 directory. Use subdirectories for each project under the main pcbuild solution. Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented. Also, some of the projects that require external libraries need extra work to fully compile on x64. ........ r55025 | thomas.heller | 2007-04-30 08:44:17 -0700 (Mon, 30 Apr 2007) | 4 lines Make sure to call PyErr_NoMemory() in several places where PyMem_Malloc() could potentially fail. Will backport to the release25-maint branch. ........ r55027 | thomas.heller | 2007-04-30 09:04:57 -0700 (Mon, 30 Apr 2007) | 8 lines When accessing the .value attribute of a c_wchar_p instance, and the instance does not point to a valid wchar_t zero-terminated string, raise a ValueError. c_char_p does this already. The ValueError message now contains the correct pointer address. Will backport to release25-maint. ........ r55036 | georg.brandl | 2007-04-30 23:04:11 -0700 (Mon, 30 Apr 2007) | 2 lines Bug #1710295: exceptions are now new-style classes. ........ r55038 | georg.brandl | 2007-04-30 23:08:15 -0700 (Mon, 30 Apr 2007) | 2 lines Patch #1710352: add missing public functions to locale.__all__. ........ r55041 | vinay.sajip | 2007-05-01 03:20:03 -0700 (Tue, 01 May 2007) | 1 line Added new optional credentials argument to SMTPHandler.__init__, and smtp.login() is now called in SMTPHandler.emit() if credentials are specified. ........ r55042 | vinay.sajip | 2007-05-01 03:21:45 -0700 (Tue, 01 May 2007) | 1 line Added documentation for new optional credentials argument to SMTPHandler.__init__(). ........ r55070 | neal.norwitz | 2007-05-01 21:47:55 -0700 (Tue, 01 May 2007) | 3 lines Stop using PyMem_FREE while the GIL is not held. For details see: http://mail.python.org/pipermail/python-dev/2007-May/072896.html ........ r55080 | armin.rigo | 2007-05-02 12:23:31 -0700 (Wed, 02 May 2007) | 6 lines Fix for #1303614 and #1174712: - __dict__ descriptor abuse for subclasses of built-in types - subclassing from both ModuleType and another built-in types Thanks zseil for the patch. ........ r55083 | georg.brandl | 2007-05-02 13:02:29 -0700 (Wed, 02 May 2007) | 3 lines Actually raise an exception before calling ast_error_finish. Triggers an assertion otherwise. ........ r55087 | neal.norwitz | 2007-05-02 23:47:18 -0700 (Wed, 02 May 2007) | 1 line Handle a couple of uncaught errors. This should be backported ........ r55090 | neal.norwitz | 2007-05-03 00:20:57 -0700 (Thu, 03 May 2007) | 4 lines Remove dead code. This code couldn't be reached because earlier in the function there is another check for z != Py_None. ........ r55092 | thomas.heller | 2007-05-03 05:02:08 -0700 (Thu, 03 May 2007) | 1 line Fix building _ctypes.pyd for x64 / Windows. ........ r55093 | thomas.heller | 2007-05-03 05:05:20 -0700 (Thu, 03 May 2007) | 1 line Don't truncate pointers to integers (on win64 platform). ........ r55094 | walter.doerwald | 2007-05-03 08:13:55 -0700 (Thu, 03 May 2007) | 3 lines Clarify the behaviour of PyUnicode_DecodeUTF16(): A BOM is only skipped in native order mode, and only if it's the first two bytes. ........ r55101 | kristjan.jonsson | 2007-05-03 13:04:53 -0700 (Thu, 03 May 2007) | 2 lines Fix pcbuild8 after recent overhaul: Added the version resource to python26.dll. Adjust stacksize to 2Mb and made large address aware for 32 bits, and set stacksize to 3Mb for 64 bits. Todo: Set .dll optimized load addresses, and side-by-side packaging of the python26.dll. ........ r55102 | kristjan.jonsson | 2007-05-03 13:09:56 -0700 (Thu, 03 May 2007) | 1 line Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64. Now the testsuite is well behaved on that platform. ........ r55103 | kristjan.jonsson | 2007-05-03 13:27:03 -0700 (Thu, 03 May 2007) | 11 lines Fix problems in x64 build that were discovered by the testsuite: - Reenable modules on x64 that had been disabled aeons ago for Itanium. - Cleared up confusion about compilers for 64 bit windows. There is only Itanium and x64. Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above. - Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms. - Fixed thread_nt.h. The emulated InterlockedCompareExchange function didn?\194?\180t work on x64, probaby due to the lack of a "volatile" specifier. Anyway, win95 is no longer a target platform. - Itertools module used wrong constant to check for overflow in count() - PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member. - PyLong_FromSsize_t() incorrectly specified that the operand were unsigned. With these changes, the x64 passes the testsuite, for those modules present. ........ r55107 | kristjan.jonsson | 2007-05-03 17:25:08 -0700 (Thu, 03 May 2007) | 1 line Revert compiler comment to AMD64 for x64/AMD64 builds. ........ r55115 | thomas.heller | 2007-05-04 00:14:39 -0700 (Fri, 04 May 2007) | 4 lines Fix some ctypes test crashes, when running with a debug Python version on win64 by using proper argtypes and restype function attributes. ........ r55117 | thomas.heller | 2007-05-04 01:20:41 -0700 (Fri, 04 May 2007) | 4 lines On 64-bit Windows, ffi_arg must be 8 bytes long. This fixes the remaining crashes in the ctypes tests, when functions return float or double types. ........ r55120 | kristjan.jonsson | 2007-05-04 08:48:15 -0700 (Fri, 04 May 2007) | 1 line Update the pcbuild8 solution. Straightened out the _ctypes project by using a .vsproj file and a masm64.rules file to avoid redundancy ........ r55121 | kristjan.jonsson | 2007-05-04 10:28:06 -0700 (Fri, 04 May 2007) | 1 line Minor fix of PCBuild8/_ctypes vcproj, moving include dir into the .vsprops file. ........ r55129 | thomas.heller | 2007-05-04 12:54:22 -0700 (Fri, 04 May 2007) | 3 lines Do not truncate 64-bit pointers to 32-bit integers. Fixes SF #1703286, will backport to release25-maint. ........ r55131 | thomas.heller | 2007-05-04 12:56:32 -0700 (Fri, 04 May 2007) | 1 line Oops, these tests do not run on Windows CE. ........ r55140 | brett.cannon | 2007-05-04 18:34:02 -0700 (Fri, 04 May 2007) | 2 lines Deprecate BaseException.message as per PEP 352. ........ r55154 | georg.brandl | 2007-05-05 11:55:37 -0700 (Sat, 05 May 2007) | 2 lines Bug #1713535: typo in logging example. ........ r55158 | vinay.sajip | 2007-05-06 10:53:37 -0700 (Sun, 06 May 2007) | 1 line Updates of recent changes to logging. ........ r55165 | neal.norwitz | 2007-05-07 00:02:26 -0700 (Mon, 07 May 2007) | 1 line Verify changes to the trunk go to the normal checkins list ........ r55169 | kristjan.jonsson | 2007-05-07 09:46:54 -0700 (Mon, 07 May 2007) | 1 line As per Armin Rigo's suggestion, remove special handing from intobject.c to deal with the peculiarities of classobject's implementation of the number protocol. The nb_long method of classobject now falls back to nb_int if there is no __long__ attribute present. ........ r55197 | collin.winter | 2007-05-08 21:14:36 -0700 (Tue, 08 May 2007) | 9 lines Fix a bug in test.test_support.open_urlresource(). If the call to requires() doesn't precede the filesystem check, we get the following situation: 1. ./python Lib/test/regrtest.py test_foo # test needs urlfetch, not enabled, so skipped 2. ./python Lib/test/regrtest.py -u urlfetch test_foo # test runs 3. ./python Lib/test/regrtest.py test_foo # test runs (!) By moving the call to requires() *before* the filesystem check, the fact that fetched files are cached on the local disk becomes an implementation detail, rather than a semantics-changing point of note. ........ r55198 | neal.norwitz | 2007-05-08 23:43:15 -0700 (Tue, 08 May 2007) | 1 line Add markup for True/False. Will backport ........ r55205 | walter.doerwald | 2007-05-09 11:10:47 -0700 (Wed, 09 May 2007) | 4 lines Backport checkin: Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr() instead of memchr(). ........ r55241 | neal.norwitz | 2007-05-10 22:55:15 -0700 (Thu, 10 May 2007) | 6 lines Don't ever report a failure when the sum of the reference count differences are zero. This should help reduce the false positives. The message about references leaking is maintained to provide as much info as possible rather than simply suppressing the message at the source. ........ r55242 | neal.norwitz | 2007-05-10 23:23:01 -0700 (Thu, 10 May 2007) | 1 line Fix typo in docstring (the module is popen2, not 3). ........ r55244 | neal.norwitz | 2007-05-10 23:56:52 -0700 (Thu, 10 May 2007) | 1 line Remove trailing whitespace in docstring ........ r55245 | neal.norwitz | 2007-05-10 23:57:33 -0700 (Thu, 10 May 2007) | 1 line Deprecate os.popen* and popen2 module in favor of the subprocess module. ........ r55247 | neal.norwitz | 2007-05-11 00:13:30 -0700 (Fri, 11 May 2007) | 1 line Deprecate os.popen* and popen2 module in favor of the subprocess module. (forgot the doc) ........ r55253 | georg.brandl | 2007-05-11 02:41:37 -0700 (Fri, 11 May 2007) | 3 lines Remove an XXX that is unnecessary. ........ r55258 | georg.brandl | 2007-05-11 04:04:26 -0700 (Fri, 11 May 2007) | 2 lines Patch #1714700: clarify os.linesep vs. tfiles opened in text mode. (backport) ........ r55259 | georg.brandl | 2007-05-11 04:43:56 -0700 (Fri, 11 May 2007) | 2 lines Update DDJ link. ........ r55273 | raymond.hettinger | 2007-05-11 10:59:59 -0700 (Fri, 11 May 2007) | 1 line Better tests for posixpath.commonprefix ........ r55287 | georg.brandl | 2007-05-12 14:06:41 -0700 (Sat, 12 May 2007) | 2 lines Bug #1046945: document SWIG options of distutils. ........ r55290 | georg.brandl | 2007-05-13 01:04:07 -0700 (Sun, 13 May 2007) | 2 lines Add bz2 to content encodings. ........ r55297 | neal.norwitz | 2007-05-13 13:45:05 -0700 (Sun, 13 May 2007) | 3 lines Remove Amoeba doc which was removed in version 1.0! according to Misc/HISTORY. Hopefully Guido won't shed a tear. :-) ........ r55298 | neal.norwitz | 2007-05-13 13:54:19 -0700 (Sun, 13 May 2007) | 1 line Remove references to stdwin which was removed long ago. ........ r55299 | neal.norwitz | 2007-05-13 14:13:42 -0700 (Sun, 13 May 2007) | 3 lines Remove support for freebsd[23] which haven't been released since 2000 or earlier. http://www.freebsd.org/releases/index.html ........ r55320 | raymond.hettinger | 2007-05-14 13:52:31 -0700 (Mon, 14 May 2007) | 1 line Small speedup. ........ ................
1 parent a8add0e commit 360e4b8

137 files changed

Lines changed: 14480 additions & 15365 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Demo/threads/README

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ This directory contains some demonstrations of the thread module.
33
These are mostly "proof of concept" type applications:
44

55
Generator.py Generator class implemented with threads.
6-
find.py Parallelized "find(1)" (looks for directories).
76
sync.py Condition variables primitives by Tim Peters.
87
telnet.py Version of ../sockets/telnet.py using threads.
9-
wpi.py Version of ../scripts/pi.py using threads (needs stdwin).
108

119
Coroutine.py Coroutines using threads, by Tim Peters (22 May 94)
1210
fcmp.py Example of above, by Tim

Doc/Makefile.deps

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ LIBFILES= $(MANSTYLES) $(INDEXSTYLES) $(COMMONTEX) \
204204
lib/libcrypto.tex \
205205
lib/libhashlib.tex \
206206
lib/libhmac.tex \
207-
lib/libstdwin.tex \
208207
lib/libsun.tex \
209208
lib/libxdrlib.tex \
210209
lib/libimghdr.tex \

Doc/api/concrete.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,10 +1188,10 @@ \subsubsection{Built-in Codecs \label{builtinCodecs}}
11881188
*byteorder == 1: big endian
11891189
\end{verbatim}
11901190

1191-
and then switches according to all byte order marks (BOM) it finds
1192-
in the input data. BOMs are not copied into the resulting Unicode
1193-
string. After completion, \var{*byteorder} is set to the current
1194-
byte order at the end of input data.
1191+
and then switches if the first two bytes of the input data are a byte order
1192+
mark (BOM) and the specified byte order is native order. This BOM is not
1193+
copied into the resulting Unicode string. After completion, \var{*byteorder}
1194+
is set to the current byte order at the.
11951195

11961196
If \var{byteorder} is \NULL{}, the codec starts in native order mode.
11971197

Doc/dist/dist.tex

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,24 @@ \subsection{Extension source files}
486486
extensions: it will run SWIG on the interface file and compile the
487487
resulting C/\Cpp{} file into your extension.
488488

489-
\XXX{SWIG support is rough around the edges and largely untested;
490-
especially SWIG support for \Cpp{} extensions! Explain in more detail
491-
here when the interface firms up.}
489+
\XXX{SWIG support is rough around the edges and largely untested!}
490+
491+
This warning notwithstanding, options to SWIG can be currently passed
492+
like this:
493+
494+
\begin{verbatim}
495+
setup(...
496+
ext_modules=[Extension('_foo', ['foo.i'],
497+
swig_opts=['-modern', '-I../include'])],
498+
py_modules=['foo'],
499+
)
500+
\end{verbatim}
501+
502+
Or on the commandline like this:
503+
504+
\begin{verbatim}
505+
> python setup.py build_ext --swig-opts="-modern -I../include"
506+
\end{verbatim}
492507

493508
On some platforms, you can include non-source files that are processed
494509
by the compiler and included in your extension. Currently, this just
@@ -1017,6 +1032,7 @@ \chapter{Writing the Setup Configuration File}
10171032
--include-dirs (-I) list of directories to search for header files
10181033
--define (-D) C preprocessor macros to define
10191034
--undef (-U) C preprocessor macros to undefine
1035+
--swig-opts list of SWIG command line options
10201036
[...]
10211037
\end{verbatim}
10221038

Doc/lib/lib.tex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,6 @@ \chapter*{Front Matter\label{front}}
423423
% OTHER PLATFORM-SPECIFIC STUFF
424424
% =============
425425

426-
% XXX(nnorwitz): all these modules (down to next comment) need to be (re)moved.
427-
%\input{libamoeba} % AMOEBA ONLY
428-
429-
%\input{libstdwin} % STDWIN ONLY
430-
431426
\input{libsun} % SUNOS ONLY
432427
\input{libsunaudio}
433428
% XXX(nnorwitz): the modules below this comment should be kept.

Doc/lib/libamoeba.tex

Lines changed: 0 additions & 131 deletions
This file was deleted.

Doc/lib/libdifflib.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ \section{\module{difflib} ---
302302

303303

304304
\begin{seealso}
305-
\seetitle[http://www.ddj.com/documents/s=1103/ddj8807c/]
305+
\seetitle[http://www.ddj.com/184407970?pgno=5]
306306
{Pattern Matching: The Gestalt Approach}{Discussion of a
307307
similar algorithm by John W. Ratcliff and D. E. Metzener.
308308
This was published in

Doc/lib/libexcs.tex

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ \section{Built-in Exceptions}
2323
This may be a string or a tuple containing several items of
2424
information (e.g., an error code and a string explaining the code).
2525
The associated value is the second argument to the
26-
\keyword{raise}\stindex{raise} statement. For string exceptions, the
27-
associated value itself will be stored in the variable named as the
28-
second argument of the \keyword{except} clause (if any). For class
29-
exceptions, that variable receives the exception instance. If the
30-
exception class is derived from the standard root class
31-
\exception{BaseException}, the associated value is present as the
32-
exception instance's \member{args} attribute. If there is a single argument
33-
(as is preferred), it is bound to the \member{message} attribute.
26+
\keyword{raise}\stindex{raise} statement. If the exception class is
27+
derived from the standard root class \exception{BaseException}, the
28+
associated value is present as the exception instance's \member{args}
29+
attribute.
3430

3531
User code can raise built-in exceptions. This can be used to test an
3632
exception handler or to report an error condition ``just like'' the
@@ -56,14 +52,8 @@ \section{Built-in Exceptions}
5652
inherited by user-defined classes (for that use \exception{Exception}). If
5753
\function{str()} or \function{unicode()} is called on an instance of this
5854
class, the representation of the argument(s) to the instance are returned or
59-
the emptry string when there were no arguments. If only a single argument is
60-
passed in, it is stored in the \member{message} attribute. If more than one
61-
argument is passed in, \member{message} is set to the empty string. These
62-
semantics are meant to reflect the fact that \member{message} is to store a
63-
text message explaining why the exception had been raised. If more data needs
64-
to be attached to the exception, attach it through arbitrary attributes on the
65-
instance. All arguments are also stored in \member{args} as a tuple, but it will
66-
eventually be deprecated and thus its use is discouraged.
55+
the emptry string when there were no arguments. All arguments are
56+
stored in \member{args} as a tuple.
6757
\versionadded{2.5}
6858
\end{excdesc}
6959

Doc/lib/liblogging.tex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ \section{\module{logging} ---
203203
\begin{verbatim}
204204
FORMAT = "%(asctime)-15s %(clientip)s %(user)-8s %(message)s"
205205
logging.basicConfig(format=FORMAT)
206-
dict = { 'clientip' : '192.168.0.1', 'user' : 'fbloggs' }
206+
d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}
207207
logging.warning("Protocol problem: %s", "connection reset", extra=d)
208208
\end{verbatim}
209209

@@ -1296,13 +1296,16 @@ \subsubsection{SMTPHandler}
12961296
\module{logging.handlers} module, supports sending logging messages to
12971297
an email address via SMTP.
12981298

1299-
\begin{classdesc}{SMTPHandler}{mailhost, fromaddr, toaddrs, subject}
1299+
\begin{classdesc}{SMTPHandler}{mailhost, fromaddr, toaddrs, subject\optional{,
1300+
credentials}}
13001301
Returns a new instance of the \class{SMTPHandler} class. The
13011302
instance is initialized with the from and to addresses and subject
13021303
line of the email. The \var{toaddrs} should be a list of strings. To specify a
13031304
non-standard SMTP port, use the (host, port) tuple format for the
13041305
\var{mailhost} argument. If you use a string, the standard SMTP port
1305-
is used.
1306+
is used. If your SMTP server requires authentication, you can specify a
1307+
(username, password) tuple for the \var{credentials} argument.
1308+
\versionchanged[\var{credentials} was added]{2.6}
13061309
\end{classdesc}
13071310

13081311
\begin{methoddesc}{emit}{record}

Doc/lib/libos.tex

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,8 @@ \subsection{File Object Creation \label{os-newstreams}}
361361
errors), \code{None} is returned.
362362
Availability: Macintosh, \UNIX, Windows.
363363

364-
The \module{subprocess} module provides more powerful facilities for
365-
spawning new processes and retrieving their results; using that module
366-
is preferable to using this function.
364+
\deprecated{2.6}{This function is obsolete. Use the
365+
\module{subprocess} module.}
367366

368367
\versionchanged[This function worked unreliably under Windows in
369368
earlier versions of Python. This was due to the use of the
@@ -380,10 +379,9 @@ \subsection{File Object Creation \label{os-newstreams}}
380379
\end{funcdesc}
381380

382381
There are a number of different \function{popen*()} functions that
383-
provide slightly different ways to create subprocesses. Note that the
384-
\module{subprocess} module is easier to use and more powerful;
385-
consider using that module before writing code using the
386-
lower-level \function{popen*()} functions.
382+
provide slightly different ways to create subprocesses.
383+
\deprecated{2.6}{All of the \function{popen*()} functions are obsolete.
384+
Use the \module{subprocess} module.}
387385

388386
For each of the \function{popen*()} variants, if \var{bufsize} is
389387
specified, it specifies the buffer size for the I/O pipes.
@@ -400,8 +398,7 @@ \subsection{File Object Creation \label{os-newstreams}}
400398
These methods do not make it possible to retrieve the exit status from
401399
the child processes. The only way to control the input and output
402400
streams and also retrieve the return codes is to use the
403-
\class{Popen3} and \class{Popen4} classes from the \refmodule{popen2}
404-
module; these are only available on \UNIX.
401+
\refmodule{subprocess} module; these are only available on \UNIX.
405402

406403
For a discussion of possible deadlock conditions related to the use
407404
of these functions, see ``\ulink{Flow Control
@@ -411,20 +408,26 @@ \subsection{File Object Creation \label{os-newstreams}}
411408
\begin{funcdesc}{popen2}{cmd\optional{, mode\optional{, bufsize}}}
412409
Executes \var{cmd} as a sub-process. Returns the file objects
413410
\code{(\var{child_stdin}, \var{child_stdout})}.
411+
\deprecated{2.6}{All of the \function{popen*()} functions are obsolete.
412+
Use the \module{subprocess} module.}
414413
Availability: Macintosh, \UNIX, Windows.
415414
\versionadded{2.0}
416415
\end{funcdesc}
417416

418417
\begin{funcdesc}{popen3}{cmd\optional{, mode\optional{, bufsize}}}
419418
Executes \var{cmd} as a sub-process. Returns the file objects
420419
\code{(\var{child_stdin}, \var{child_stdout}, \var{child_stderr})}.
420+
\deprecated{2.6}{All of the \function{popen*()} functions are obsolete.
421+
Use the \module{subprocess} module.}
421422
Availability: Macintosh, \UNIX, Windows.
422423
\versionadded{2.0}
423424
\end{funcdesc}
424425

425426
\begin{funcdesc}{popen4}{cmd\optional{, mode\optional{, bufsize}}}
426427
Executes \var{cmd} as a sub-process. Returns the file objects
427428
\code{(\var{child_stdin}, \var{child_stdout_and_stderr})}.
429+
\deprecated{2.6}{All of the \function{popen*()} functions are obsolete.
430+
Use the \module{subprocess} module.}
428431
Availability: Macintosh, \UNIX, Windows.
429432
\versionadded{2.0}
430433
\end{funcdesc}
@@ -2006,9 +2009,12 @@ \subsection{Miscellaneous System Information \label{os-path}}
20062009

20072010
\begin{datadesc}{linesep}
20082011
The string used to separate (or, rather, terminate) lines on the
2009-
current platform. This may be a single character, such as \code{'\e
2010-
n'} for \POSIX{} or \code{'\e r'} for Mac OS, or multiple characters,
2011-
for example, \code{'\e r\e n'} for Windows.
2012+
current platform. This may be a single character, such as
2013+
\code{'\e n'} for \POSIX{} or \code{'\e r'} for Mac OS, or multiple
2014+
characters, for example, \code{'\e r\e n'} for Windows.
2015+
Do not use \var{os.linesep} as a line terminator when writing files
2016+
opened in text mode (the default); use a single \code{'\e n'} instead,
2017+
on all platforms.
20122018
\end{datadesc}
20132019

20142020
\begin{datadesc}{devnull}

0 commit comments

Comments
 (0)