Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c8e03200
Commit
c8e03200
authored
Nov 29, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.2
parents
aa35b003
a74f8ef4
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
37 additions
and
16 deletions
+37
-16
Doc/library/socket.rst
Doc/library/socket.rst
+8
-8
Doc/library/sysconfig.rst
Doc/library/sysconfig.rst
+1
-1
Lib/inspect.py
Lib/inspect.py
+1
-1
Lib/keyword.py
Lib/keyword.py
+1
-1
Lib/locale.py
Lib/locale.py
+1
-2
Lib/symbol.py
Lib/symbol.py
+1
-1
Lib/test/regrtest.py
Lib/test/regrtest.py
+18
-0
Lib/token.py
Lib/token.py
+1
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
Misc/python.man
Misc/python.man
+1
-1
No files found.
Doc/library/socket.rst
View file @
c8e03200
...
...
@@ -64,20 +64,20 @@ Socket addresses are represented as follows:
tuple, and the fields depend on the address type. The general tuple form is
``(addr_type, v1, v2, v3 [, scope])``, where:
- *addr_type* is one of
TIPC_ADDR_NAMESEQ, TIPC_ADDR_NAME, or
TIPC_ADDR_ID
.
- *scope* is one of
TIPC_ZONE_SCOPE, TIPC_CLUSTER_SCOPE
, and
TIPC_NODE_SCOPE
.
- If *addr_type* is
TIPC_ADDR_NAME
, then *v1* is the server type, *v2* is
- *addr_type* is one of
:const:`TIPC_ADDR_NAMESEQ`, :const:`TIPC_ADDR_NAME`,
or :const:`TIPC_ADDR_ID`
.
- *scope* is one of
:const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`
, and
:const:`TIPC_NODE_SCOPE`
.
- If *addr_type* is
:const:`TIPC_ADDR_NAME`
, then *v1* is the server type, *v2* is
the port identifier, and *v3* should be 0.
If *addr_type* is
TIPC_ADDR_NAMESEQ
, then *v1* is the server type, *v2*
If *addr_type* is
:const:`TIPC_ADDR_NAMESEQ`
, then *v1* is the server type, *v2*
is the lower port number, and *v3* is the upper port number.
If *addr_type* is
TIPC_ADDR_ID
, then *v1* is the node, *v2* is the
If *addr_type* is
:const:`TIPC_ADDR_ID`
, then *v1* is the node, *v2* is the
reference, and *v3* should be set to 0.
If *addr_type* is
TIPC_ADDR_ID
, then *v1* is the node, *v2* is the
If *addr_type* is
:const:`TIPC_ADDR_ID`
, then *v1* is the node, *v2* is the
reference, and *v3* should be set to 0.
- A tuple ``(interface, )`` is used for the :const:`AF_CAN` address family,
...
...
Doc/library/sysconfig.rst
View file @
c8e03200
...
...
@@ -130,7 +130,7 @@ identifier. Python currently uses eight paths:
one may call this function and get the default value.
If *scheme* is provided, it must be a value from the list returned by
:func:`get_
path
_names`. Otherwise, the default scheme for the current
:func:`get_
scheme
_names`. Otherwise, the default scheme for the current
platform is used.
If *vars* is provided, it must be a dictionary of variables that will update
...
...
Lib/inspect.py
View file @
c8e03200
...
...
@@ -482,7 +482,7 @@ def getmodule(object, _filename=None):
return
sys
.
modules
.
get
(
modulesbyfile
[
file
])
# Update the filename to module name cache and check yet again
# Copy sys.modules in order to cope with changes while iterating
for
modname
,
module
in
sys
.
modules
.
items
(
):
for
modname
,
module
in
list
(
sys
.
modules
.
items
()
):
if
ismodule
(
module
)
and
hasattr
(
module
,
'__file__'
):
f
=
module
.
__file__
if
f
==
_filesbymodname
.
get
(
modname
,
None
):
...
...
Lib/keyword.py
View file @
c8e03200
...
...
@@ -7,7 +7,7 @@ This file is automatically generated; please don't muck it up!
To update the symbols in this file, 'cd' to the top directory of
the python source tree after building the interpreter and run:
python Lib/keyword.py
./
python Lib/keyword.py
"""
__all__
=
[
"iskeyword"
,
"kwlist"
]
...
...
Lib/locale.py
View file @
c8e03200
...
...
@@ -1598,8 +1598,7 @@ locale_alias = {
# to include every locale up to Windows Vista.
#
# NOTE: this mapping is incomplete. If your language is missing, please
# submit a bug report to Python bug manager, which you can find via:
# http://www.python.org/dev/
# submit a bug report to the Python bug tracker at http://bugs.python.org/
# Make sure you include the missing language identifier and the suggested
# locale code.
#
...
...
Lib/symbol.py
View file @
c8e03200
...
...
@@ -7,7 +7,7 @@
# To update the symbols in this file, 'cd' to the top directory of
# the python source tree after building the interpreter and run:
#
# python Lib/symbol.py
#
./
python Lib/symbol.py
#--start constants--
single_input
=
256
...
...
Lib/test/regrtest.py
View file @
c8e03200
...
...
@@ -177,6 +177,7 @@ import packaging.database
import
platform
import
random
import
re
import
shutil
import
signal
import
sys
import
sysconfig
...
...
@@ -1042,6 +1043,23 @@ class saved_test_environment:
asyncore.close_all(ignore_all=True)
asyncore.socket_map.update(saved_map)
def get_shutil_archive_formats(self):
# we could call get_archives_formats() but that only returns the
# registry keys; we want to check the values too (the functions that
# are registered)
return shutil._ARCHIVE_FORMATS, shutil._ARCHIVE_FORMATS.copy()
def restore_shutil_archive_formats(self, saved):
shutil._ARCHIVE_FORMATS = saved[0]
shutil._ARCHIVE_FORMATS.clear()
shutil._ARCHIVE_FORMATS.update(saved[1])
def get_shutil_unpack_formats(self):
return shutil._UNPACK_FORMATS, shutil._UNPACK_FORMATS.copy()
def restore_shutil_unpack_formats(self, saved):
shutil._UNPACK_FORMATS = saved[0]
shutil._UNPACK_FORMATS.clear()
shutil._UNPACK_FORMATS.update(saved[1])
def get_logging__handlers(self):
# _handlers is a WeakValueDictionary
return id(logging._handlers), logging._handlers, logging._handlers.copy()
...
...
Lib/token.py
View file @
c8e03200
...
...
@@ -7,7 +7,7 @@ __all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF']
# To update the symbols in this file, 'cd' to the top directory of
# the python source tree after building the interpreter and run:
#
# python Lib/token.py
#
./
python Lib/token.py
#--start constants--
ENDMARKER
=
0
...
...
Misc/ACKS
View file @
c8e03200
...
...
@@ -978,6 +978,7 @@ Frank J. Tobin
Bennett Todd
R Lindsay Todd
Eugene Toder
Erik Tollerud
Matias Torchinsky
Sandro Tosi
Richard Townsend
...
...
Misc/NEWS
View file @
c8e03200
...
...
@@ -399,6 +399,9 @@ Core and Builtins
Library
-------
-
Issue
#
13487
:
Make
inspect
.
getmodule
robust
against
changes
done
to
sys
.
modules
while
it
is
iterating
over
it
.
-
Issue
#
12618
:
Fix
a
bug
that
prevented
py_compile
from
creating
byte
compiled
files
in
the
current
directory
.
Initial
patch
by
Sjoerd
de
Vries
.
...
...
Misc/python.man
View file @
c8e03200
...
...
@@ -409,7 +409,7 @@ Main website: http://www.python.org/
.br
Documentation: http://docs.python.org/py3k/
.br
Developer resources: http://
www.python.org/dev
/
Developer resources: http://
docs.python.org/devguide
/
.br
Downloads: http://python.org/download/
.br
...
...
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