[Pythonjp-checkins] [py33.python-doc-ja] 2 new revisions pushed by songofacandy on 2012-11-26 00:07 GMT

Back to archive index

pytho****@googl***** pytho****@googl*****
2012年 11月 26日 (月) 09:07:41 JST


2 new revisions:

Revision: a6db00176505
Branch:   default
Author:   "INADA Naoki  <songo****@gmail*****>
Date:     Sun Nov 25 15:59:45 2012
Log:      原文を 4b522a1c9c27 に update.
http://code.google.com/p/python-doc-ja/source/detail?r=a6db00176505&repo=py33

Revision: 5651d7f94074
Branch:   default
Author:   "INADA Naoki  <songo****@gmail*****>
Date:     Sun Nov 25 16:07:20 2012
Log:      versionswitcher から 3.4 と 3.2 を削除
http://code.google.com/p/python-doc-ja/source/detail?r=5651d7f94074&repo=py33

==============================================================================
Revision: a6db00176505
Branch:   default
Author:   "INADA Naoki  <songo****@gmail*****>
Date:     Sun Nov 25 15:59:45 2012
Log:      原文を 4b522a1c9c27 に update.
http://code.google.com/p/python-doc-ja/source/detail?r=a6db00176505&repo=py33

Modified:
  /library/dis.rst
  /library/functions.rst
  /library/os.rst

=======================================
--- /library/dis.rst	Wed Nov 21 19:11:55 2012
+++ /library/dis.rst	Sun Nov 25 15:59:45 2012
@@ -763,9 +763,10 @@
  .. opcode:: MAKE_CLOSURE (argc)

     Creates a new function object, sets its *__closure__* slot, and pushes  
it on
-   the stack.  TOS is the code associated with the function, TOS1 the tuple
-   containing cells for the closure's free variables.  The function also  
has
-   *argc* default parameters, which are found below the cells.
+   the stack.  TOS is the :term:`qualified name` of the function, TOS1 is  
the
+   code associated with the function, and TOS2 is the tuple containing  
cells for
+   the closure's free variables.  The function also has *argc* default  
parameters,
+   which are found below the cells.


  .. opcode:: BUILD_SLICE (argc)
=======================================
--- /library/functions.rst	Wed Nov 21 19:11:55 2012
+++ /library/functions.rst	Sun Nov 25 15:59:45 2012
@@ -937,32 +937,14 @@
     :mod:`os.open` as *opener* results in functionality similar to passing
     ``None``).

-   The following example is an alternative implementation for opening files
-   for exclusive writing.  If we did not have support for the ``'x'`` mode,
-   we could implement it with this opener::
-
-      >>> import os
-      >>> def open_exclusive(path, mode):
-      ...     return os.open(path, mode | os.O_CREAT | os.O_EXCL)
-      ...
-      >>> filename = 'spam.txt'
-      >>> fp = open(filename, 'w', opener=open_exclusive)
-      >>> fp2 = open(filename, 'w', opener=open_exclusive)
-      Traceback (most recent call last):
-        ...
-      FileExistsError: [Errno 17] File exists: 'spam.txt'
-
-   This other example uses the :ref:`dir_fd` parameter of the
+   The following example uses the :ref:`dir_fd <dir_fd>` parameter of the
     :func:`os.open` function to open a file relative to a given directory::

        >>> import os
-      >>> def open_relative(dirname):
-      ...     dir_fd = os.open(dirname, os.O_RDONLY)
-      ...     def opener(path, flags):
-      ...         return os.open(path, flags, dir_fd=dir_fd)
-      ...     return opener, dir_fd
+      >>> dir_fd = os.open('somedir', os.O_RDONLY)
+      >>> def opener(path, flags):
+      ...     return os.open(path, flags, dir_fd=dir_fd)
        ...
-      >>> opener, dir_fd = open_relative('somedir')
        >>> with open('spamspam.txt', 'w', opener=opener) as f:
        ...     print('This will be written to somedir/spamspam.txt', file=f)
        ...
=======================================
--- /library/os.rst	Wed Nov 21 19:11:55 2012
+++ /library/os.rst	Sun Nov 25 15:59:45 2012
@@ -2925,7 +2925,7 @@
     with :const:`P_NOWAIT` return suitable process handles.


-.. function:: wait3([options])
+.. function:: wait3(options)

     Similar to :func:`waitpid`, except no process id argument is given and a
     3-element tuple containing the child's process id, exit status  
indication, and

==============================================================================
Revision: 5651d7f94074
Branch:   default
Author:   "INADA Naoki  <songo****@gmail*****>
Date:     Sun Nov 25 16:07:20 2012
Log:      versionswitcher から 3.4 と 3.2 を削除
http://code.google.com/p/python-doc-ja/source/detail?r=5651d7f94074&repo=py33

Modified:
  /tools/sphinxext/static/version_switch.js

=======================================
--- /tools/sphinxext/static/version_switch.js	Wed Nov 21 20:23:31 2012
+++ /tools/sphinxext/static/version_switch.js	Sun Nov 25 16:07:20 2012
@@ -2,9 +2,9 @@
    'use strict';

    var all_versions = {
-    '3.4': 'dev (3.4)',
+    //'3.4': 'dev (3.4)',
      '3.3': '3.3',
-    '3.2': '3.2',
+    //'3.2': '3.2',
      '2.7': '2.7',
      '2.6': '2.6'
    };




Pythonjp-checkins メーリングリストの案内
Back to archive index