Index: Doc/faq/windows.rst =================================================================== --- Doc/faq/windows.rst (revision 76825) +++ Doc/faq/windows.rst (working copy) @@ -8,6 +8,13 @@ .. contents:: +.. XXX need review for Python 3. + XXX need review for Windows Vista/Seven? + +.. warning:: + + Some parts of this document may be inaccurate for Python 3. + How do I run a Python program under Windows? -------------------------------------------- @@ -67,7 +74,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 +514,7 @@ import win32pipe f = win32pipe.popen('dir /c c:\\') - print f.readlines() + print(f.readlines()) f.close() Index: Doc/faq/gui.rst =================================================================== --- Doc/faq/gui.rst (revision 76825) +++ Doc/faq/gui.rst (working copy) @@ -6,6 +6,12 @@ .. contents:: +.. XXX need review for Python 3. + +.. warning:: + + Some parts of this document may be inaccurate for Python 3. + General GUI Questions ===================== @@ -159,6 +165,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). - - - Index: Doc/faq/extending.rst =================================================================== --- Doc/faq/extending.rst (revision 76825) +++ Doc/faq/extending.rst (working copy) @@ -7,6 +7,13 @@ .. highlight:: c +.. XXX need review for Python 3. + +.. warning:: + + Some parts of this document may be inaccurate for Python 3. + + Can I create my own functions in C? ----------------------------------- @@ -51,8 +58,7 @@ `__, `CXX `_ `Boost `_, or `Weave -`_ are also alternatives for wrapping -C++ libraries. +`_ are also alternatives for wrapping C++ libraries. How can I execute arbitrary Python statements from C? @@ -159,8 +165,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! @@ -470,12 +476,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. - - -