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
f47036c1
Kaydet (Commit)
f47036c1
authored
Ara 24, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed spaces before colons and semicolons.
üst
55c6cc40
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
30 additions
and
30 deletions
+30
-30
windows.rst
Doc/faq/windows.rst
+1
-1
logging-cookbook.rst
Doc/howto/logging-cookbook.rst
+2
-2
urllib2.rst
Doc/howto/urllib2.rst
+2
-2
collections.rst
Doc/library/collections.rst
+1
-1
ctypes.rst
Doc/library/ctypes.rst
+1
-1
telnetlib.rst
Doc/library/telnetlib.rst
+1
-1
tkinter.rst
Doc/library/tkinter.rst
+1
-1
unittest.mock.rst
Doc/library/unittest.mock.rst
+11
-11
2.4.rst
Doc/whatsnew/2.4.rst
+1
-1
2.5.rst
Doc/whatsnew/2.5.rst
+1
-1
2.6.rst
Doc/whatsnew/2.6.rst
+3
-3
3.3.rst
Doc/whatsnew/3.3.rst
+5
-5
No files found.
Doc/faq/windows.rst
Dosyayı görüntüle @
f47036c1
...
@@ -247,7 +247,7 @@ Embedding the Python interpreter in a Windows app can be summarized as follows:
...
@@ -247,7 +247,7 @@ Embedding the Python interpreter in a Windows app can be summarized as follows:
...
...
Py_Initialize(); // Initialize Python.
Py_Initialize(); // Initialize Python.
initmyAppc(); // Initialize (import) the helper class.
initmyAppc(); // Initialize (import) the helper class.
PyRun_SimpleString("import myApp")
; // Import the shadow class.
PyRun_SimpleString("import myApp"); // Import the shadow class.
5. There are two problems with Python's C API which will become apparent if you
5. There are two problems with Python's C API which will become apparent if you
use a compiler other than MSVC, the compiler used to build pythonNN.dll.
use a compiler other than MSVC, the compiler used to build pythonNN.dll.
...
...
Doc/howto/logging-cookbook.rst
Dosyayı görüntüle @
f47036c1
...
@@ -841,7 +841,7 @@ separate thread::
...
@@ -841,7 +841,7 @@ separate thread::
},
},
'loggers': {
'loggers': {
'foo': {
'foo': {
'handlers'
: ['foofile']
'handlers': ['foofile']
}
}
},
},
'root': {
'root': {
...
@@ -1529,7 +1529,7 @@ works::
...
@@ -1529,7 +1529,7 @@ works::
},
},
'loggers': {
'loggers': {
'foo': {
'foo': {
'handlers'
: ['foofile']
'handlers': ['foofile']
}
}
},
},
'root': {
'root': {
...
...
Doc/howto/urllib2.rst
Dosyayı görüntüle @
f47036c1
...
@@ -454,7 +454,7 @@ Authentication Tutorial
...
@@ -454,7 +454,7 @@ Authentication Tutorial
When authentication is required, the server sends a header (as well as the 401
When authentication is required, the server sends a header (as well as the 401
error code) requesting authentication. This specifies the authentication scheme
error code) requesting authentication. This specifies the authentication scheme
and a 'realm'. The header looks like
: ``WWW-Authenticate: SCHEME
and a 'realm'. The header looks like: ``WWW-Authenticate: SCHEME
realm="REALM"``.
realm="REALM"``.
e.g. ::
e.g. ::
...
@@ -526,7 +526,7 @@ the ``ProxyHandler``, which is part of the normal handler chain when a proxy
...
@@ -526,7 +526,7 @@ the ``ProxyHandler``, which is part of the normal handler chain when a proxy
setting is detected. Normally that's a good thing, but there are occasions
setting is detected. Normally that's a good thing, but there are occasions
when it may not be helpful [#]_. One way to do this is to setup our own
when it may not be helpful [#]_. One way to do this is to setup our own
``ProxyHandler``, with no proxies defined. This is done using similar steps to
``ProxyHandler``, with no proxies defined. This is done using similar steps to
setting up a `Basic Authentication`_ handler
: ::
setting up a `Basic Authentication`_ handler: ::
>>> proxy_support = urllib.request.ProxyHandler({})
>>> proxy_support = urllib.request.ProxyHandler({})
>>> opener = urllib.request.build_opener(proxy_support)
>>> opener = urllib.request.build_opener(proxy_support)
...
...
Doc/library/collections.rst
Dosyayı görüntüle @
f47036c1
...
@@ -188,7 +188,7 @@ updates keys found deeper in the chain::
...
@@ -188,7 +188,7 @@ updates keys found deeper in the chain::
return
return
raise KeyError(key)
raise KeyError(key)
>>> d = DeepChainMap({'zebra': 'black'}, {'elephant'
: 'blue'}, {'lion'
: 'yellow'})
>>> d = DeepChainMap({'zebra': 'black'}, {'elephant'
: 'blue'}, {'lion'
: 'yellow'})
>>> d['lion'] = 'orange' # update an existing key two levels down
>>> d['lion'] = 'orange' # update an existing key two levels down
>>> d['snake'] = 'red' # new keys get added to the topmost dict
>>> d['snake'] = 'red' # new keys get added to the topmost dict
>>> del d['elephant'] # remove an existing key one level down
>>> del d['elephant'] # remove an existing key one level down
...
...
Doc/library/ctypes.rst
Dosyayı görüntüle @
f47036c1
...
@@ -218,7 +218,7 @@ more about :mod:`ctypes` data types.
...
@@ -218,7 +218,7 @@ more about :mod:`ctypes` data types.
Fundamental data types
Fundamental data types
^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^
:mod:`ctypes` defines a number of primitive C compatible data types
:
:mod:`ctypes` defines a number of primitive C compatible data types:
+----------------------+------------------------------------------+----------------------------+
+----------------------+------------------------------------------+----------------------------+
| ctypes type | C type | Python type |
| ctypes type | C type | Python type |
...
...
Doc/library/telnetlib.rst
Dosyayı görüntüle @
f47036c1
...
@@ -205,7 +205,7 @@ Telnet Objects
...
@@ -205,7 +205,7 @@ Telnet Objects
.. method:: Telnet.set_option_negotiation_callback(callback)
.. method:: Telnet.set_option_negotiation_callback(callback)
Each time a telnet option is read on the input flow, this *callback* (if set) is
Each time a telnet option is read on the input flow, this *callback* (if set) is
called with the following parameters
: callback(telnet socket, command
called with the following parameters: callback(telnet socket, command
(DO/DONT/WILL/WONT), option). No other action is done afterwards by telnetlib.
(DO/DONT/WILL/WONT), option). No other action is done afterwards by telnetlib.
...
...
Doc/library/tkinter.rst
Dosyayı görüntüle @
f47036c1
...
@@ -440,7 +440,7 @@ back will contain the name of the synonym and the "real" option (such as
...
@@ -440,7 +440,7 @@ back will contain the name of the synonym and the "real" option (such as
Example::
Example::
>>> print(fred.config())
>>> print(fred.config())
{'
relief
'
: ('
relief
', '
relief
', '
Relief
', '
raised
', '
groove
')}
{'
relief
': ('
relief
', '
relief
', '
Relief
', '
raised
', '
groove
')}
Of course, the dictionary printed will include all the options available and
Of course, the dictionary printed will include all the options available and
their values. This is meant only as an example.
their values. This is meant only as an example.
...
...
Doc/library/unittest.mock.rst
Dosyayı görüntüle @
f47036c1
...
@@ -1632,17 +1632,17 @@ Methods and their defaults:
...
@@ -1632,17 +1632,17 @@ Methods and their defaults:
* ``__gt__``: NotImplemented
* ``__gt__``: NotImplemented
* ``__le__``: NotImplemented
* ``__le__``: NotImplemented
* ``__ge__``: NotImplemented
* ``__ge__``: NotImplemented
* ``__int__``
: 1
* ``__int__``: 1
* ``__contains__``
: False
* ``__contains__``: False
* ``__len__``
: 1
* ``__len__``: 1
* ``__iter__``
: iter([])
* ``__iter__``: iter([])
* ``__exit__``
: False
* ``__exit__``: False
* ``__complex__``
: 1j
* ``__complex__``: 1j
* ``__float__``
: 1.0
* ``__float__``: 1.0
* ``__bool__``
: True
* ``__bool__``: True
* ``__index__``
: 1
* ``__index__``: 1
* ``__hash__``
: default hash for the mock
* ``__hash__``: default hash for the mock
* ``__str__``
: default str for the mock
* ``__str__``: default str for the mock
* ``__sizeof__``: default sizeof for the mock
* ``__sizeof__``: default sizeof for the mock
For example:
For example:
...
...
Doc/whatsnew/2.4.rst
Dosyayı görüntüle @
f47036c1
...
@@ -846,7 +846,7 @@ Here are all of the changes that Python 2.4 makes to the core Python language.
...
@@ -846,7 +846,7 @@ Here are all of the changes that Python 2.4 makes to the core Python language.
['A', 'b', 'c', 'D']
['A', 'b', 'c', 'D']
Finally, the *reverse* parameter takes a Boolean value. If the value is true,
Finally, the *reverse* parameter takes a Boolean value. If the value is true,
the list will be sorted into reverse order. Instead of ``L.sort()
;
the list will be sorted into reverse order. Instead of ``L.sort();
L.reverse()``, you can now write ``L.sort(reverse=True)``.
L.reverse()``, you can now write ``L.sort(reverse=True)``.
The results of sorting are now guaranteed to be stable. This means that two
The results of sorting are now guaranteed to be stable. This means that two
...
...
Doc/whatsnew/2.5.rst
Dosyayı görüntüle @
f47036c1
...
@@ -286,7 +286,7 @@ Python's standard :mod:`string` module? There's no clean way to ignore
...
@@ -286,7 +286,7 @@ Python's standard :mod:`string` module? There's no clean way to ignore
:mod:`pkg.string` and look for the standard module; generally you had to look at
:mod:`pkg.string` and look for the standard module; generally you had to look at
the contents of ``sys.modules``, which is slightly unclean. Holger Krekel's
the contents of ``sys.modules``, which is slightly unclean. Holger Krekel's
:mod:`py.std` package provides a tidier way to perform imports from the standard
:mod:`py.std` package provides a tidier way to perform imports from the standard
library, ``import py
; py.std.string.join()``, but that package isn't available
library, ``import py; py.std.string.join()``, but that package isn't available
on all Python installations.
on all Python installations.
Reading code which relies on relative imports is also less clear, because a
Reading code which relies on relative imports is also less clear, because a
...
...
Doc/whatsnew/2.6.rst
Dosyayı görüntüle @
f47036c1
...
@@ -1891,7 +1891,7 @@ changes, or look through the Subversion logs for all the details.
...
@@ -1891,7 +1891,7 @@ changes, or look through the Subversion logs for all the details.
>>> dq=deque(maxlen=3)
>>> dq=deque(maxlen=3)
>>> dq
>>> dq
deque([], maxlen=3)
deque([], maxlen=3)
>>> dq.append(1)
; dq.append(2)
; dq.append(3)
>>> dq.append(1)
; dq.append(2)
; dq.append(3)
>>> dq
>>> dq
deque([1, 2, 3], maxlen=3)
deque([1, 2, 3], maxlen=3)
>>> dq.append(4)
>>> dq.append(4)
...
@@ -2783,12 +2783,12 @@ http://www.json.org.
...
@@ -2783,12 +2783,12 @@ http://www.json.org.
types
.
The
following
example
encodes
and
decodes
a
dictionary
::
types
.
The
following
example
encodes
and
decodes
a
dictionary
::
>>>
import
json
>>>
import
json
>>>
data
=
{
"spam"
:
"foo"
,
"parrot"
:
42
}
>>>
data
=
{
"spam"
:
"foo"
,
"parrot"
:
42
}
>>>
in_json
=
json
.
dumps
(
data
)
#
Encode
the
data
>>>
in_json
=
json
.
dumps
(
data
)
#
Encode
the
data
>>>
in_json
>>>
in_json
'{"parrot": 42, "spam": "foo"}'
'{"parrot": 42, "spam": "foo"}'
>>>
json
.
loads
(
in_json
)
#
Decode
into
a
Python
object
>>>
json
.
loads
(
in_json
)
#
Decode
into
a
Python
object
{
"spam"
:
"foo"
,
"parrot"
:
42
}
{
"spam"
:
"foo"
,
"parrot"
:
42
}
It
's also possible to write your own decoders and encoders to support
It
's also possible to write your own decoders and encoders to support
more types. Pretty-printing of the JSON strings is also supported.
more types. Pretty-printing of the JSON strings is also supported.
...
...
Doc/whatsnew/3.3.rst
Dosyayı görüntüle @
f47036c1
...
@@ -1823,12 +1823,12 @@ signal
...
@@ -1823,12 +1823,12 @@ signal
* The :mod:`signal` module has new functions:
* The :mod:`signal` module has new functions:
* :func:`~signal.pthread_sigmask`: fetch and/or change the signal mask of the
* :func:`~signal.pthread_sigmask`: fetch and/or change the signal mask of the
calling thread (Contributed by Jean-Paul Calderone in :issue:`8407`)
;
calling thread (Contributed by Jean-Paul Calderone in :issue:`8407`);
* :func:`~signal.pthread_kill`: send a signal to a thread
;
* :func:`~signal.pthread_kill`: send a signal to a thread;
* :func:`~signal.sigpending`: examine pending functions
;
* :func:`~signal.sigpending`: examine pending functions;
* :func:`~signal.sigwait`: wait a signal
.
* :func:`~signal.sigwait`: wait a signal
;
* :func:`~signal.sigwaitinfo`: wait for a signal, returning detailed
* :func:`~signal.sigwaitinfo`: wait for a signal, returning detailed
information about it
.
information about it
;
* :func:`~signal.sigtimedwait`: like :func:`~signal.sigwaitinfo` but with a
* :func:`~signal.sigtimedwait`: like :func:`~signal.sigwaitinfo` but with a
timeout.
timeout.
...
...
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