cpython: 6a3e09cd96f3 (original) (raw)

--- a/Doc/howto/curses.rst +++ b/Doc/howto/curses.rst @@ -422,7 +422,7 @@ RGB value. This lets you change color 1 blue or any other color you like. Unfortunately, the Linux console doesn't support this, so I'm unable to try it out, and can't provide any examples. You can check if your terminal can do this by calling -:func:~curses.can_change_color, which returns True if the capability is +:func:~curses.can_change_color, which returns True if the capability is there. If you're lucky enough to have such a talented terminal, consult your system's man pages for more information.

--- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -689,8 +689,8 @@ constructed list's :meth:~list.sort me The :func:any(iter) <any> and :func:all(iter) <all> built-ins look at the -truth values of an iterable's contents. :func:any returns True if any element -in the iterable is a true value, and :func:all returns True if all of the +truth values of an iterable's contents. :func:any returns True if any element +in the iterable is a true value, and :func:all returns True if all of the elements are true values: >>> any([0,1,0])

--- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -244,6 +244,6 @@ and classes for traversing abstract synt Return a formatted dump of the tree in node. This is mainly useful for debugging purposes. The returned string will show the names and the values for fields. This makes the code impossible to evaluate, so if evaluation is

--- a/Doc/library/bdb.rst +++ b/Doc/library/bdb.rst @@ -194,17 +194,17 @@ The :mod:bdb module also defines two c .. method:: user_line(frame) This method is called from :meth:dispatch_line when either

.. method:: user_return(frame, return_value) This method is called from :meth:dispatch_return when :meth:stop_here

.. method:: user_exception(frame, exc_info) This method is called from :meth:dispatch_exception when

.. method:: do_clear(arg) @@ -245,7 +245,7 @@ The :mod:bdb module also defines two c .. method:: set_quit()

--- a/Doc/library/bz2.rst +++ b/Doc/library/bz2.rst @@ -169,7 +169,7 @@ Incremental (de)compression .. attribute:: eof

.. versionadded:: 3.3

--- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -2242,7 +2242,7 @@ These are the fundamental ctypes data ty .. class:: c_bool Represent the C :c:type:bool datatype (more accurately, :c:type:_Bool from

--- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -359,7 +359,7 @@ The :class:SequenceMatcher class has t The autojunk parameter. SequenceMatcher objects get three data attributes: bjunk is the

--- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -274,7 +274,7 @@ details of bytecode instructions as :cla .. data:: is_jump_target

.. versionadded:: 3.4

--- a/Doc/library/email.message.rst +++ b/Doc/library/email.message.rst @@ -131,7 +131,7 @@ Here are the methods of the :class:Mess[](#l9.3) [](#l9.4) Return ``True`` if the message's payload is a list of sub-\[](#l9.5) :class:Message` objects, otherwise return False. When

.. method:: set_unixfrom(unixfrom)

--- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -48,7 +48,7 @@ are always available. They are listed h .. function:: all(iterable)

.. function:: any(iterable)

@@ -905,7 +905,7 @@ are always available. They are listed h the buffer will typically be 4096 or 8192 bytes long. * "Interactive" text files (files for which :meth:~io.IOBase.isatty

encoding is the name of the encoding used to decode or encode the file.

--- a/Doc/library/gc.rst +++ b/Doc/library/gc.rst @@ -148,8 +148,8 @@ The :mod:gc module provides the follow .. function:: is_tracked(obj)

--- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -573,7 +573,7 @@ statement. .. attribute:: HTTPResponse.closed

Examples --------

--- a/Doc/library/http.cookiejar.rst +++ b/Doc/library/http.cookiejar.rst @@ -90,7 +90,7 @@ The following classes are provided: Netscape and RFC 2965 cookies. By default, RFC 2109 cookies (ie. cookies received in a :mailheader:Set-Cookie header with a version cookie-attribute of 1) are treated according to the RFC 2965 rules. However, if RFC 2965 handling

.. attribute:: Cookie.secure

.. attribute:: Cookie.expires @@ -655,7 +655,7 @@ internal consistency, so you should know .. attribute:: Cookie.discard

.. attribute:: Cookie.comment @@ -672,7 +672,7 @@ internal consistency, so you should know .. attribute:: Cookie.rfc2109

.. attribute:: Cookie.port_specified

.. attribute:: Cookie.domain_specified

.. attribute:: Cookie.domain_initial_dot

Cookies may have additional non-standard cookie-attributes. These may be @@ -719,7 +719,7 @@ The :class:Cookie class also defines t .. method:: Cookie.is_expired(now=None)

--- a/Doc/library/imp.rst +++ b/Doc/library/imp.rst @@ -200,8 +200,8 @@ file paths. The cpython-32 string comes from the current magic tag (see :func:get_tag; if :attr:sys.implementation.cache_tag is not defined then :exc:NotImplementedError will be raised). The returned path will end in

--- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -928,8 +928,8 @@ an :term:importer. The cpython-32 string comes from the current magic tag (see :func:get_tag; if :attr:sys.implementation.cache_tag is not defined then :exc:NotImplementedError will be raised). The returned path will end in

--- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -280,7 +280,7 @@ I/O Base Classes .. method:: readable()

.. method:: readline(size=-1)

--- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -51,7 +51,7 @@ Iterator Arguments chain.from_iterable iterable p0, p1, ... plast, q0, q1, ... chain.from_iterable(['ABC', 'DEF']) --> A B C D E F :func:compress data, selectors (d[0] if s[0]), (d[1] if s[1]), ... compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F :func:dropwhile pred, seq seq[n], seq[n+1], starting when pred fails dropwhile(lambda x: x<5, [1,4,6,4,1]) --> 6 4 1 -:func:filterfalse pred, seq elements of seq where pred(elem) is False filterfalse(lambda x: x%2, range(10)) --> 0 2 4 6 8 +:func:filterfalse pred, seq elements of seq where pred(elem) is false filterfalse(lambda x: x%2, range(10)) --> 0 2 4 6 8 :func:groupby iterable[, keyfunc] sub-iterators grouped by value of keyfunc(v) :func:islice seq, [start,] stop [, step] elements from seq[start:stop:step] islice('ABCDEFG', 2, None) --> C D E F G :func:starmap func, seq func(*seq[0]), func(*seq[1]), ... starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000

--- a/Doc/library/logging.handlers.rst +++ b/Doc/library/logging.handlers.rst @@ -843,7 +843,7 @@ supports sending logging messages to a W Returns a new instance of the :class:HTTPHandler class. The host can be of the form host:port, should you need to use a specific port number.

--- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -160,7 +160,7 @@ is the module's name in the Python packa is called to get the exception information. The second optional keyword argument is stack_info, which defaults to

--- a/Doc/library/lzma.rst +++ b/Doc/library/lzma.rst @@ -232,7 +232,7 @@ Compressing and decompressing data in me .. attribute:: eof

.. attribute:: unused_data

--- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -162,7 +162,7 @@ To map anonymous memory, -1 should be pa .. attribute:: closed

.. versionadded:: 3.2

--- a/Doc/library/nntplib.rst +++ b/Doc/library/nntplib.rst @@ -82,7 +82,7 @@ The module itself defines the following .. versionchanged:: 3.2

.. versionchanged:: 3.3 Support for the :keyword:with statement was added. @@ -216,7 +216,7 @@ tuples or objects that the method normal .. method:: NNTP.login(user=None, password=None, usenetrc=True) Send AUTHINFO commands with the user name and password. If user

--- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -137,7 +137,7 @@ the :mod:glob module.) the number of seconds since the epoch (see the :mod:time module). Raise :exc:OSError if the file does not exist or is inaccessible.

@@ -147,7 +147,7 @@ the :mod:glob module.) giving the number of seconds since the epoch (see the :mod:time module). Raise :exc:OSError if the file does not exist or is inaccessible.

@@ -340,5 +340,5 @@ the :mod:glob module.) .. data:: supports_unicode_filenames

--- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -551,7 +551,7 @@ process and user. .. data:: supports_bytes_environ

--- a/Doc/library/pickle.rst +++ b/Doc/library/pickle.rst @@ -161,7 +161,7 @@ process more convenient: :class:io.BytesIO instance, or any other custom object that meets this interface.

@@ -178,7 +178,7 @@ process more convenient: supported. The higher the protocol used, the more recent the version of Python needed to read the pickle produced.

@@ -200,7 +200,7 @@ process more convenient: Optional keyword arguments are fix_imports, encoding and errors, which are used to control compatibility support for pickle stream generated

@@ -336,7 +336,7 @@ The :mod:pickle module exports two cla Optional keyword arguments are fix_imports, encoding and errors, which are used to control compatibility support for pickle stream generated

--- a/Doc/library/plistlib.rst +++ b/Doc/library/plistlib.rst @@ -54,7 +54,7 @@ This module defines the following functi * :data:FMT_BINARY: Binary plist format

--- a/Doc/library/sched.rst +++ b/Doc/library/sched.rst @@ -113,7 +113,7 @@ Scheduler Objects function passed to the constructor) for the next event, then execute it and so on until there are no more scheduled events.

--- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -241,10 +241,10 @@ Module functions and constants .. function:: enable_callback_tracebacks(flag) By default you will not get any tracebacks in user-defined functions,

.. _sqlite3-connection-objects:

--- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -287,7 +287,7 @@ Random generation .. function:: RAND_pseudo_bytes(num) Returns (bytes, is_cryptographic): bytes are num pseudo-random bytes,

@@ -300,8 +300,8 @@ Random generation .. function:: RAND_status()

@@ -1173,7 +1173,7 @@ to speed up repeated connections from th .. method:: SSLContext.get_ca_certs(binary_form=False) Returns a list of dicts with information of loaded CA certs. If the

--- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2851,7 +2851,7 @@ The constructors for both classes work t .. method:: isdisjoint(other)

.. method:: issubset(other)

--- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -295,7 +295,7 @@ bytes. For the '?' format character, the return value is either :const:True or :const:False. When packing, the truth value of the argument object is used. Either 0 or 1 in the native or standard bool representation will be packed, and -any non-zero value will be True when unpacking. +any non-zero value will be True when unpacking.

--- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -522,7 +522,7 @@ functions. executable (or for the first item in args) relative to cwd if the executable path is a relative path.

--- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1067,7 +1067,7 @@ always available. :func:open function. Their parameters are chosen as follows: * The character encoding is platform-dependent. Under Windows, if the stream

--- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -359,7 +359,7 @@ be finalized; only the internally used f full name. Its file information is extracted as accurately as possible. member may be a filename or a :class:TarInfo object. You can specify a different directory using path. File attributes (owner, mtime, mode) are set unless

--- a/Doc/library/tkinter.ttk.rst +++ b/Doc/library/tkinter.ttk.rst @@ -272,8 +272,8 @@ methods :meth:tkinter.Widget.cget and .. method:: instate(statespec, callback=None, *args, **kw)

@@ -938,7 +938,7 @@ ttk.Treeview .. method:: exists(item)

.. method:: focus(item=None) @@ -1084,7 +1084,7 @@ ttk.Treeview Ensure that item is visible.

--- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -1055,8 +1055,8 @@ More drawing control Write text - the string representation of arg - at the current turtle position according to align ("left", "center" or right") and with the given

.. function:: isvisible()

--- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -298,11 +298,11 @@ the new_callable argument to patch. assert the mock has been called with the specified calls. The mock_calls list is checked for the calls.

>>> mock = Mock(return_value=None) @@ -1200,7 +1200,7 @@ patch.dict values can be a dictionary of values to set in the dictionary. values can also be an iterable of (key, value) pairs.

--- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -59,7 +59,7 @@ The :mod:urllib.request module defines some non-Windows platforms. .. warning::

@@ -211,7 +211,7 @@ The following classes are provided: containing the image. unverifiable should indicate whether the request is unverifiable,

--- a/Doc/library/venv.rst +++ b/Doc/library/venv.rst @@ -94,7 +94,7 @@ creation according to their needs, the : * system_site_packages -- a Boolean value indicating that the system Python site-packages should be available to the environment (defaults to False).

--- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -411,7 +411,7 @@ The :class:PyZipFile constructor takes name as a file path, and if any subdirectories are package directories, all of these are added recursively. basename is intended for internal use only. When filterfunc(pathname) is given, it will be called for every

--- a/Doc/library/zipimport.rst +++ b/Doc/library/zipimport.rst @@ -111,7 +111,7 @@ zipimporter Objects .. method:: is_package(fullname)

--- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -201,7 +201,7 @@ Ellipsis single: True These represent the truth values False and True. The two objects representing

--- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -1125,7 +1125,7 @@ Features

~~~~~~~~~~~

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -45,6 +45,12 @@ Build pythoncore sub-project. This should prevent build errors due a previous build's python(_d).exe still running. +Documentation +------------- + +- Issue #19795: Improved markup of True/False constants. + + What's New in Python 3.4.0 Beta 1? ==================================