Commit 1b5ab457 authored by Georg Brandl's avatar Georg Brandl

Merged revisions 74328,74332-74333,74365 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74328 | georg.brandl | 2009-08-06 17:06:25 +0200 (Do, 06 Aug 2009) | 1 line

  Fix base keyword arg name for int() and long().
........
  r74332 | georg.brandl | 2009-08-06 19:23:21 +0200 (Do, 06 Aug 2009) | 1 line

  Fix punctuation and one copy-paste error.
........
  r74333 | georg.brandl | 2009-08-06 19:43:55 +0200 (Do, 06 Aug 2009) | 1 line

  #6658: fix two typos.
........
  r74365 | georg.brandl | 2009-08-13 09:48:05 +0200 (Do, 13 Aug 2009) | 1 line

  #6679: Remove mention that sub supports no flags.
........
parent d07ac640
...@@ -144,7 +144,7 @@ Buffer related functions ...@@ -144,7 +144,7 @@ Buffer related functions
kind of buffer the caller is prepared to deal with and therefore what kind of buffer the caller is prepared to deal with and therefore what
kind of buffer the exporter is allowed to return. The buffer interface kind of buffer the exporter is allowed to return. The buffer interface
allows for complicated memory sharing possibilities, but some caller may allows for complicated memory sharing possibilities, but some caller may
not be able to handle all the complexibity but may want to see if the not be able to handle all the complexity but may want to see if the
exporter will let them take a simpler view to its memory. exporter will let them take a simpler view to its memory.
Some exporters may not be able to share memory in every possible way and Some exporters may not be able to share memory in every possible way and
......
...@@ -514,7 +514,7 @@ are always available. They are listed here in alphabetical order. ...@@ -514,7 +514,7 @@ are always available. They are listed here in alphabetical order.
to provide elaborate line editing and history features. to provide elaborate line editing and history features.
.. function:: int([number | string[, radix]]) .. function:: int([number | string[, base]])
Convert a number or string to an integer. If no arguments are given, return Convert a number or string to an integer. If no arguments are given, return
``0``. If a number is given, return ``number.__int__()``. Conversion of ``0``. If a number is given, return ``number.__int__()``. Conversion of
...@@ -522,10 +522,10 @@ are always available. They are listed here in alphabetical order. ...@@ -522,10 +522,10 @@ are always available. They are listed here in alphabetical order.
a base-radix integer literal optionally preceded by '+' or '-' (with no space a base-radix integer literal optionally preceded by '+' or '-' (with no space
in between) and optionally surrounded by whitespace. A base-n literal in between) and optionally surrounded by whitespace. A base-n literal
consists of the digits 0 to n-1, with 'a' to 'z' (or 'A' to 'Z') having consists of the digits 0 to n-1, with 'a' to 'z' (or 'A' to 'Z') having
values 10 to 35. The default radix is 10. The allowed values are 0 and 2-36. values 10 to 35. The default *base* is 10. The allowed values are 0 and 2-36.
Base-2, -8, and -16 literals can be optionally prefixed with ``0b``/``0B``, Base-2, -8, and -16 literals can be optionally prefixed with ``0b``/``0B``,
``0o``/``0O``, or ``0x``/``0X``, as with integer literals in code. Radix 0 ``0o``/``0O``, or ``0x``/``0X``, as with integer literals in code. Base 0
means to interpret exactly as a code literal, so that the actual radix is 2, means to interpret exactly as a code literal, so that the actual base is 2,
8, 10, or 16, and so that ``int('010', 0)`` is not legal, while 8, 10, or 16, and so that ``int('010', 0)`` is not legal, while
``int('010')`` is, as well as ``int('010', 8)``. ``int('010')`` is, as well as ``int('010', 8)``.
......
...@@ -656,9 +656,7 @@ form. ...@@ -656,9 +656,7 @@ form.
>>> re.sub(r'\sAND\s', ' & ', 'Baked Beans And Spam', flags=re.IGNORECASE) >>> re.sub(r'\sAND\s', ' & ', 'Baked Beans And Spam', flags=re.IGNORECASE)
'Baked Beans & Spam' 'Baked Beans & Spam'
The pattern may be a string or an RE object; if you need to specify regular The pattern may be a string or an RE object.
expression flags, you must use a RE object, or use embedded modifiers in a
pattern; for example, ``sub("(?i)b+", "x", "bbbb BBBB")`` returns ``'x x'``.
The optional argument *count* is the maximum number of pattern occurrences to be The optional argument *count* is the maximum number of pattern occurrences to be
replaced; *count* must be a non-negative integer. If omitted or zero, all replaced; *count* must be a non-negative integer. If omitted or zero, all
......
...@@ -308,7 +308,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 ...@@ -308,7 +308,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
.. attribute:: kevent.filter .. attribute:: kevent.filter
Name of the kernel filter Name of the kernel filter.
+---------------------------+---------------------------------------------+ +---------------------------+---------------------------------------------+
| Constant | Meaning | | Constant | Meaning |
...@@ -317,7 +317,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 ...@@ -317,7 +317,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
| | there is data available to read | | | there is data available to read |
+---------------------------+---------------------------------------------+ +---------------------------+---------------------------------------------+
| :const:`KQ_FILTER_WRITE` | Takes a descriptor and returns whenever | | :const:`KQ_FILTER_WRITE` | Takes a descriptor and returns whenever |
| | there is data available to read | | | there is data available to write |
+---------------------------+---------------------------------------------+ +---------------------------+---------------------------------------------+
| :const:`KQ_FILTER_AIO` | AIO requests | | :const:`KQ_FILTER_AIO` | AIO requests |
+---------------------------+---------------------------------------------+ +---------------------------+---------------------------------------------+
...@@ -337,7 +337,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 ...@@ -337,7 +337,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
.. attribute:: kevent.flags .. attribute:: kevent.flags
Filter action Filter action.
+---------------------------+---------------------------------------------+ +---------------------------+---------------------------------------------+
| Constant | Meaning | | Constant | Meaning |
...@@ -366,10 +366,9 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 ...@@ -366,10 +366,9 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
.. attribute:: kevent.fflags .. attribute:: kevent.fflags
Filter specific flags Filter specific flags.
:const:`KQ_FILTER_READ` and :const:`KQ_FILTER_WRITE` filter flags :const:`KQ_FILTER_READ` and :const:`KQ_FILTER_WRITE` filter flags:
+----------------------------+--------------------------------------------+ +----------------------------+--------------------------------------------+
| Constant | Meaning | | Constant | Meaning |
...@@ -377,8 +376,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 ...@@ -377,8 +376,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
| :const:`KQ_NOTE_LOWAT` | low water mark of a socket buffer | | :const:`KQ_NOTE_LOWAT` | low water mark of a socket buffer |
+----------------------------+--------------------------------------------+ +----------------------------+--------------------------------------------+
:const:`KQ_FILTER_VNODE` filter flags:
:const:`KQ_FILTER_VNODE` filter flags
+----------------------------+--------------------------------------------+ +----------------------------+--------------------------------------------+
| Constant | Meaning | | Constant | Meaning |
...@@ -398,8 +396,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 ...@@ -398,8 +396,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
| :const:`KQ_NOTE_REVOKE` | access to the file was revoked | | :const:`KQ_NOTE_REVOKE` | access to the file was revoked |
+----------------------------+--------------------------------------------+ +----------------------------+--------------------------------------------+
:const:`KQ_FILTER_PROC` filter flags:
:const:`KQ_FILTER_PROC` filter flags
+----------------------------+--------------------------------------------+ +----------------------------+--------------------------------------------+
| Constant | Meaning | | Constant | Meaning |
...@@ -422,7 +419,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 ...@@ -422,7 +419,7 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
| :const:`KQ_NOTE_TRACKERR` | unable to attach to a child | | :const:`KQ_NOTE_TRACKERR` | unable to attach to a child |
+----------------------------+--------------------------------------------+ +----------------------------+--------------------------------------------+
:const:`KQ_FILTER_NETDEV` filter flags [not available on Mac OS X] :const:`KQ_FILTER_NETDEV` filter flags (not available on Mac OS X):
+----------------------------+--------------------------------------------+ +----------------------------+--------------------------------------------+
| Constant | Meaning | | Constant | Meaning |
...@@ -437,9 +434,9 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 ...@@ -437,9 +434,9 @@ http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
.. attribute:: kevent.data .. attribute:: kevent.data
Filter specific data Filter specific data.
.. attribute:: kevent.udata .. attribute:: kevent.udata
User defined value User defined value.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment