[Python-checkins] r76890 - in python/branches/py3k/Doc/faq: extending.rst gui.rst windows.rst

georg.brandl python-checkins at python.org
Sat Dec 19 18:59:59 CET 2009


Author: georg.brandl
Date: Sat Dec 19 18:59:59 2009
New Revision: 76890

Log:
#7500: add "Python 3 review needed" comments and fix a few obvious errors.

Modified:
   python/branches/py3k/Doc/faq/extending.rst
   python/branches/py3k/Doc/faq/gui.rst
   python/branches/py3k/Doc/faq/windows.rst

Modified: python/branches/py3k/Doc/faq/extending.rst
==============================================================================
--- python/branches/py3k/Doc/faq/extending.rst	(original)
+++ python/branches/py3k/Doc/faq/extending.rst	Sat Dec 19 18:59:59 2009
@@ -7,6 +7,9 @@
 .. highlight:: c
 
 
+.. XXX need review for Python 3.
+
+
 Can I create my own functions in C?
 -----------------------------------
 
@@ -51,8 +54,7 @@
 <http://www.riverbankcomputing.co.uk/software/sip/>`__, `CXX
 <http://cxx.sourceforge.net/>`_ `Boost
 <http://www.boost.org/libs/python/doc/index.html>`_, or `Weave
-<http://www.scipy.org/site_content/weave>`_ are also alternatives for wrapping
-C++ libraries.
+<http://www.scipy.org/Weave>`_ are also alternatives for wrapping C++ libraries.
 
 
 How can I execute arbitrary Python statements from C?
@@ -159,8 +161,8 @@
    ...
    >>> import sys
    >>> sys.stdout = StdoutCatcher()
-   >>> print 'foo'
-   >>> print 'hello world!'
+   >>> print('foo')
+   >>> print('hello world!')
    >>> sys.stderr.write(sys.stdout.data)
    foo
    hello world!
@@ -201,7 +203,7 @@
 <http://www.riverbankcomputing.co.uk/sip/>`_, `CXX
 <http://cxx.sourceforge.net/>`_, `Boost
 <http://www.boost.org/libs/python/doc/index.html>`_, `Weave
-<http://www.scipy.org/site_content/weave>`_ or `SWIG <http://www.swig.org>`_
+<http://www.scipy.org/Weave>`_ or `SWIG <http://www.swig.org>`_
 
 
 I added a module using the Setup file and the make fails; why?
@@ -470,12 +472,9 @@
 
    >>> import sys
    >>> if sys.maxunicode > 65535:
-   ...     print 'UCS4 build'
+   ...     print('UCS4 build')
    ... else:
-   ...     print 'UCS2 build'
+   ...     print('UCS2 build')
 
 The only way to solve this problem is to use extension modules compiled with a
 Python binary built using the same size for Unicode characters.
-
-
-

Modified: python/branches/py3k/Doc/faq/gui.rst
==============================================================================
--- python/branches/py3k/Doc/faq/gui.rst	(original)
+++ python/branches/py3k/Doc/faq/gui.rst	Sat Dec 19 18:59:59 2009
@@ -6,6 +6,9 @@
 
 .. contents::
 
+.. XXX need review for Python 3.
+
+
 General GUI Questions
 =====================
 
@@ -159,6 +162,3 @@
 have "keyboard focus".  Check out the Tk documentation for the focus command.
 Usually a widget is given the keyboard focus by clicking in it (but not for
 labels; see the takefocus option).
-
-
-

Modified: python/branches/py3k/Doc/faq/windows.rst
==============================================================================
--- python/branches/py3k/Doc/faq/windows.rst	(original)
+++ python/branches/py3k/Doc/faq/windows.rst	Sat Dec 19 18:59:59 2009
@@ -8,6 +8,10 @@
 
 .. contents::
 
+.. XXX need review for Python 3.
+   XXX need review for Windows Vista/Seven?
+
+
 How do I run a Python program under Windows?
 --------------------------------------------
 
@@ -67,7 +71,7 @@
 evaluated while you wait.  This is one of Python's strongest features.  Check it
 by entering a few expressions of your choice and seeing the results::
 
-    >>> print "Hello"
+    >>> print("Hello")
     Hello
     >>> "Hello" * 3
     HelloHelloHello
@@ -507,7 +511,7 @@
 
    import win32pipe
    f = win32pipe.popen('dir /c c:\\')
-   print f.readlines()
+   print(f.readlines())
    f.close()
 
 


More information about the Python-checkins mailing list