Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
62423cba
Kaydet (Commit)
62423cba
authored
Ara 19, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#7500: add "Python 3 review needed" comments and fix a few obvious errors.
üst
9e4ff753
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
extending.rst
Doc/faq/extending.rst
+9
-10
gui.rst
Doc/faq/gui.rst
+3
-3
windows.rst
Doc/faq/windows.rst
+6
-2
No files found.
Doc/faq/extending.rst
Dosyayı görüntüle @
62423cba
...
...
@@ -7,6 +7,9 @@ Extending/Embedding FAQ
.. highlight:: c
.. XXX need review for Python 3.
Can I create my own functions in C?
-----------------------------------
...
...
@@ -51,8 +54,7 @@ with a tool such as `SWIG <http://www.swig.org>`_. `SIP
<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 @@ Sample code and use for catching stdout:
...
>>> 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 @@ For C++ libraries, you can look at `SIP
<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/w
eave>`_ or `SWIG <http://www.swig.org>`_
<http://www.scipy.org/
W
eave>`_ or `SWIG <http://www.swig.org>`_
I added a module using the Setup file and the make fails; why?
...
...
@@ -470,12 +472,9 @@ checking the value of sys.maxunicode:
>>> 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.
Doc/faq/gui.rst
Dosyayı görüntüle @
62423cba
...
...
@@ -6,6 +6,9 @@ Graphic User Interface FAQ
.. contents::
.. XXX need review for Python 3.
General GUI Questions
=====================
...
...
@@ -159,6 +162,3 @@ The most common cause is that the widget to which the binding applies doesn't
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).
Doc/faq/windows.rst
Dosyayı görüntüle @
62423cba
...
...
@@ -8,6 +8,10 @@ Python on Windows FAQ
.. 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 @@ Python statements or expressions interactively and have them executed or
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 @@ Example::
import win32pipe
f = win32pipe.popen('dir /c c:\\')
print
f.readlines(
)
print
(f.readlines()
)
f.close()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment