Commit 16489247 authored by Georg Brandl's avatar Georg Brandl

Merged revisions 79901,80170,80273,80342-80343,81061,81366,81368,81370,81840 via svnmerge from

svn+ssh://svn.python.org/python/branches/py3k

................
  r79901 | georg.brandl | 2010-04-08 08:33:16 +0200 (Do, 08 Apr 2010) | 1 line

  Fix indentation.
................
  r80170 | georg.brandl | 2010-04-18 11:50:07 +0200 (So, 18 Apr 2010) | 1 line

  Remove colspanning cells.
................
  r80273 | georg.brandl | 2010-04-20 20:15:54 +0200 (Di, 20 Apr 2010) | 1 line

  Markup nit.
................
  r80342 | georg.brandl | 2010-04-22 09:00:42 +0200 (Do, 22 Apr 2010) | 1 line

  Fix indentation.
................
  r80343 | georg.brandl | 2010-04-22 09:02:51 +0200 (Do, 22 Apr 2010) | 1 line

  Typo fixes.
................
  r81061 | georg.brandl | 2010-05-10 23:17:00 +0200 (Mo, 10 Mai 2010) | 1 line

  Fix nits in the lexical analysis section: \u requires four digits, backtick is not allowed in source in 3.x.
................
  r81366 | georg.brandl | 2010-05-19 22:58:02 +0200 (Mi, 19 Mai 2010) | 61 lines

  Recorded merge of 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.
  ........
    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.
  ........
................
  r81368 | georg.brandl | 2010-05-19 23:06:36 +0200 (Mi, 19 Mai 2010) | 9 lines

  Merged revisions 80068 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r80068 | georg.brandl | 2010-04-14 10:56:01 +0200 (Mi, 14 Apr 2010) | 1 line

    #5341: fix typo and adapt docstring syntax.
  ........
................
  r81370 | georg.brandl | 2010-05-19 23:39:51 +0200 (Mi, 19 Mai 2010) | 1 line

  Add descriptor HOWTO to py3k docs.
................
  r81840 | alexander.belopolsky | 2010-06-08 20:59:20 +0200 (Di, 08 Jun 2010) | 9 lines

  Merged revisions 81489 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r81489 | georg.brandl | 2010-05-23 17:29:29 -0400 (Sun, 23 May 2010) | 1 line

    #1436346: make it more obvious that timetuple[7] is yday.
  ........
................
parent 16215c73
This diff is collapsed.
...@@ -16,6 +16,7 @@ Currently, the HOWTOs are: ...@@ -16,6 +16,7 @@ Currently, the HOWTOs are:
advocacy.rst advocacy.rst
cporting.rst cporting.rst
curses.rst curses.rst
descriptor.rst
doanddont.rst doanddont.rst
functional.rst functional.rst
regex.rst regex.rst
......
...@@ -455,7 +455,9 @@ Instance methods: ...@@ -455,7 +455,9 @@ Instance methods:
Return a :class:`time.struct_time` such as returned by :func:`time.localtime`. Return a :class:`time.struct_time` such as returned by :func:`time.localtime`.
The hours, minutes and seconds are 0, and the DST flag is -1. ``d.timetuple()`` The hours, minutes and seconds are 0, and the DST flag is -1. ``d.timetuple()``
is equivalent to ``time.struct_time((d.year, d.month, d.day, 0, 0, 0, is equivalent to ``time.struct_time((d.year, d.month, d.day, 0, 0, 0,
d.weekday(), d.toordinal() - date(d.year, 1, 1).toordinal() + 1, -1))`` d.weekday(), yday, -1))``, where ``yday = d.toordinal() - date(d.year, 1,
1).toordinal() + 1`` is the day number within the current year starting with
``1`` for January 1st.
.. method:: date.toordinal() .. method:: date.toordinal()
...@@ -919,12 +921,13 @@ Instance methods: ...@@ -919,12 +921,13 @@ Instance methods:
Return a :class:`time.struct_time` such as returned by :func:`time.localtime`. Return a :class:`time.struct_time` such as returned by :func:`time.localtime`.
``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d.month, d.day, ``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d.month, d.day,
d.hour, d.minute, d.second, d.weekday(), d.toordinal() - date(d.year, 1, d.hour, d.minute, d.second, d.weekday(), yday, dst))``, where ``yday =
1).toordinal() + 1, dst))`` The :attr:`tm_isdst` flag of the result is set d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day number within
according to the :meth:`dst` method: :attr:`tzinfo` is ``None`` or :meth:`dst` the current year starting with ``1`` for January 1st. The :attr:`tm_isdst` flag
returns ``None``, :attr:`tm_isdst` is set to ``-1``; else if :meth:`dst` of the result is set according to the :meth:`dst` method: :attr:`tzinfo` is
returns a non-zero value, :attr:`tm_isdst` is set to ``1``; else ``tm_isdst`` is ``None`` or :meth:`dst`` returns ``None``, :attr:`tm_isdst` is set to ``-1``;
set to ``0``. else if :meth:`dst` returns a non-zero value, :attr:`tm_isdst` is set to ``1``;
else ``tm_isdst`` is set to ``0``.
.. method:: datetime.utctimetuple() .. method:: datetime.utctimetuple()
......
...@@ -1058,7 +1058,7 @@ Examples ...@@ -1058,7 +1058,7 @@ Examples
-------- --------
This example gets the python.org main page and displays the first 300 bytes of This example gets the python.org main page and displays the first 300 bytes of
it.:: it. ::
>>> import urllib.request >>> import urllib.request
>>> f = urllib.request.urlopen('http://www.python.org/') >>> f = urllib.request.urlopen('http://www.python.org/')
......
...@@ -512,13 +512,13 @@ Notes: ...@@ -512,13 +512,13 @@ Notes:
(4) (4)
Individual code units which form parts of a surrogate pair can be encoded using Individual code units which form parts of a surrogate pair can be encoded using
this escape sequence. Unlike in Standard C, exactly two hex digits are required. this escape sequence. Exactly four hex digits are required.
(5) (5)
Any Unicode character can be encoded this way, but characters outside the Basic Any Unicode character can be encoded this way, but characters outside the Basic
Multilingual Plane (BMP) will be encoded using a surrogate pair if Python is Multilingual Plane (BMP) will be encoded using a surrogate pair if Python is
compiled to use 16-bit code units (the default). Individual code units which compiled to use 16-bit code units (the default). Exactly eight hex digits
form parts of a surrogate pair can be encoded using this escape sequence. are required.
.. index:: unrecognized escape sequence .. index:: unrecognized escape sequence
...@@ -700,4 +700,4 @@ tokens or are otherwise significant to the lexical analyzer:: ...@@ -700,4 +700,4 @@ tokens or are otherwise significant to the lexical analyzer::
The following printing ASCII characters are not used in Python. Their The following printing ASCII characters are not used in Python. Their
occurrence outside string literals and comments is an unconditional error:: occurrence outside string literals and comments is an unconditional error::
$ ? $ ? `
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