Skip to content

Commit 22b3431

Browse files
committed
Merged revisions 74209 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74209 | georg.brandl | 2009-07-26 16:37:28 +0200 (So, 26 Jul 2009) | 1 line builtin -> built-in. ........
1 parent 7a72b3a commit 22b3431

36 files changed

Lines changed: 61 additions & 63 deletions

Doc/c-api/import.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Importing Modules
141141
*path*, possibly by fetching it from the :data:`sys.path_importer_cache`
142142
dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
143143
is found that can handle the path item. Return ``None`` if no hook could;
144-
this tells our caller it should fall back to the builtin import mechanism.
144+
this tells our caller it should fall back to the built-in import mechanism.
145145
Cache the result in :data:`sys.path_importer_cache`. Return a new reference
146146
to the importer object.
147147

Doc/c-api/unicode.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,12 @@ the system's :ctype:`wchar_t`.
372372
Built-in Codecs
373373
^^^^^^^^^^^^^^^
374374

375-
Python provides a set of builtin codecs which are written in C for speed. All of
375+
Python provides a set of built-in codecs which are written in C for speed. All of
376376
these codecs are directly usable via the following functions.
377377

378378
Many of the following APIs take two arguments encoding and errors. These
379379
parameters encoding and errors have the same semantics as the ones of the
380-
builtin unicode() Unicode object constructor.
380+
built-in :func:`unicode` Unicode object constructor.
381381

382382
Setting encoding to *NULL* causes the default encoding to be used
383383
which is ASCII. The file system calls should use
@@ -389,7 +389,7 @@ pointer to a static string, on others, it will change at run-time
389389

390390
Error handling is set by errors which may also be set to *NULL* meaning to use
391391
the default handling defined for the codec. Default error handling for all
392-
builtin codecs is "strict" (:exc:`ValueError` is raised).
392+
built-in codecs is "strict" (:exc:`ValueError` is raised).
393393

394394
The codecs all use a similar interface. Only deviation from the following
395395
generic ones are documented for simplicity.
@@ -403,7 +403,7 @@ These are the generic codec APIs:
403403

404404
Create a Unicode object by decoding *size* bytes of the encoded string *s*.
405405
*encoding* and *errors* have the same meaning as the parameters of the same name
406-
in the :func:`unicode` builtin function. The codec to be used is looked up
406+
in the :func:`unicode` built-in function. The codec to be used is looked up
407407
using the Python codec registry. Return *NULL* if an exception was raised by
408408
the codec.
409409

Doc/distutils/apiref.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,16 +1601,16 @@ lines, and joining lines with backslashes.
16011601
+------------------+--------------------------------+---------+
16021602

16031603
Note that since *rstrip_ws* can strip the trailing newline, the semantics of
1604-
:meth:`readline` must differ from those of the builtin file object's
1604+
:meth:`readline` must differ from those of the built-in file object's
16051605
:meth:`readline` method! In particular, :meth:`readline` returns ``None`` for
16061606
end-of-file: an empty string might just be a blank line (or an all-whitespace
16071607
line), if *rstrip_ws* is true but *skip_blanks* is not.
16081608

16091609

16101610
.. method:: TextFile.open(filename)
16111611

1612-
Open a new file *filename*. This overrides any *file* or *filename* constructor
1613-
arguments.
1612+
Open a new file *filename*. This overrides any *file* or *filename*
1613+
constructor arguments.
16141614

16151615

16161616
.. method:: TextFile.close()

Doc/extending/newtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ easily use the :class:`PyTypeObject` it needs. It can be difficult to share
802802
these :class:`PyTypeObject` structures between extension modules.
803803

804804
In this example we will create a :class:`Shoddy` type that inherits from the
805-
builtin :class:`list` type. The new type will be completely compatible with
805+
built-in :class:`list` type. The new type will be completely compatible with
806806
regular lists, but will have an additional :meth:`increment` method that
807807
increases an internal counter. ::
808808

Doc/glossary.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ Glossary
2828

2929
abstract base class
3030
Abstract Base Classes (abbreviated ABCs) complement :term:`duck-typing` by
31-
providing a way to define interfaces when other techniques like :func:`hasattr`
32-
would be clumsy. Python comes with many builtin ABCs for data structures
33-
(in the :mod:`collections` module), numbers (in the :mod:`numbers`
34-
module), and streams (in the :mod:`io` module). You can create your own
35-
ABC with the :mod:`abc` module.
31+
providing a way to define interfaces when other techniques like
32+
:func:`hasattr` would be clumsy. Python comes with many built-in ABCs for
33+
data structures (in the :mod:`collections` module), numbers (in the
34+
:mod:`numbers` module), and streams (in the :mod:`io` module). You can
35+
create your own ABC with the :mod:`abc` module.
3636

3737
argument
3838
A value passed to a function or method, assigned to a named local
@@ -83,7 +83,7 @@ Glossary
8383
expressed as a sum of a real part and an imaginary part. Imaginary
8484
numbers are real multiples of the imaginary unit (the square root of
8585
``-1``), often written ``i`` in mathematics or ``j`` in
86-
engineering. Python has builtin support for complex numbers, which are
86+
engineering. Python has built-in support for complex numbers, which are
8787
written with this latter notation; the imaginary part is written with a
8888
``j`` suffix, e.g., ``3+1j``. To get access to complex equivalents of the
8989
:mod:`math` module, use :mod:`cmath`. Use of complex numbers is a fairly
@@ -305,7 +305,7 @@ Glossary
305305
define with an :meth:`__iter__` or :meth:`__getitem__` method. Iterables
306306
can be used in a :keyword:`for` loop and in many other places where a
307307
sequence is needed (:func:`zip`, :func:`map`, ...). When an iterable
308-
object is passed as an argument to the builtin function :func:`iter`, it
308+
object is passed as an argument to the built-in function :func:`iter`, it
309309
returns an iterator for the object. This iterator is good for one pass
310310
over the set of values. When using iterables, it is usually not necessary
311311
to call :func:`iter` or deal with iterator objects yourself. The ``for``
@@ -409,7 +409,7 @@ Glossary
409409

410410
namespace
411411
The place where a variable is stored. Namespaces are implemented as
412-
dictionaries. There are the local, global and builtin namespaces as well
412+
dictionaries. There are the local, global and built-in namespaces as well
413413
as nested namespaces in objects (in methods). Namespaces support
414414
modularity by preventing naming conflicts. For instance, the functions
415415
:func:`builtins.open` and :func:`os.open` are distinguished by their

Doc/howto/doanddont.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Compare::
228228
More useful functions in :mod:`os.path`: :func:`basename`, :func:`dirname` and
229229
:func:`splitext`.
230230

231-
There are also many useful builtin functions people seem not to be aware of for
231+
There are also many useful built-in functions people seem not to be aware of for
232232
some reason: :func:`min` and :func:`max` can find the minimum/maximum of any
233233
sequence with comparable semantics, for example, yet many people write their own
234234
:func:`max`/:func:`min`. Another highly useful function is

Doc/howto/urllib2.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,9 @@ which comes after we have a look at what happens when things go wrong.
182182
Handling Exceptions
183183
===================
184184

185-
*urlopen* raises :exc:`URLError` when it cannot handle a response (though as usual
186-
with Python APIs, builtin exceptions such as
187-
:exc:`ValueError`, :exc:`TypeError` etc. may also
188-
be raised).
185+
*urlopen* raises :exc:`URLError` when it cannot handle a response (though as
186+
usual with Python APIs, built-in exceptions such as :exc:`ValueError`,
187+
:exc:`TypeError` etc. may also be raised).
189188

190189
:exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of
191190
HTTP URLs.

Doc/includes/sqlite3/text_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
row = cur.fetchone()
3232
assert type(row[0]) == str
3333

34-
# sqlite3 offers a builtin optimized text_factory that will return bytestring
34+
# sqlite3 offers a built-in optimized text_factory that will return bytestring
3535
# objects, if the data is in ASCII only, and otherwise return unicode objects
3636
con.text_factory = sqlite3.OptimizedUnicode
3737
cur.execute("select ?", (AUSTRIA,))

Doc/library/2to3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ and off individually. They are described here in more detail.
216216
.. 2to3fixer:: itertools
217217
218218
Changes usage of :func:`itertools.ifilter`, :func:`itertools.izip`, and
219-
:func:`itertools.imap` to their builtin equivalents.
219+
:func:`itertools.imap` to their built-in equivalents.
220220
:func:`itertools.ifilterfalse` is changed to :func:`itertools.filterfalse`.
221221
222222
.. 2to3fixer:: long

Doc/library/__future__.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Instances of class :class:`_Feature` have two corresponding methods,
5252
:meth:`getOptionalRelease` and :meth:`getMandatoryRelease`.
5353

5454
*CompilerFlag* is the (bitfield) flag that should be passed in the fourth
55-
argument to the builtin function :func:`compile` to enable the feature in
55+
argument to the built-in function :func:`compile` to enable the feature in
5656
dynamically compiled code. This flag is stored in the :attr:`compiler_flag`
5757
attribute on :class:`_Feature` instances.
5858

0 commit comments

Comments
 (0)