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
c217d88a
Commit
c217d88a
authored
Feb 02, 2012
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Plain Diff
Null merge.
parents
136fcbb7
591f1115
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
10 deletions
+17
-10
Doc/library/sys.rst
Doc/library/sys.rst
+4
-2
Lib/sqlite3/test/dbapi.py
Lib/sqlite3/test/dbapi.py
+1
-1
Lib/sqlite3/test/factory.py
Lib/sqlite3/test/factory.py
+1
-1
Lib/sqlite3/test/hooks.py
Lib/sqlite3/test/hooks.py
+1
-1
Lib/sqlite3/test/regression.py
Lib/sqlite3/test/regression.py
+1
-1
Lib/sqlite3/test/transactions.py
Lib/sqlite3/test/transactions.py
+1
-1
Lib/sqlite3/test/types.py
Lib/sqlite3/test/types.py
+1
-1
Lib/sqlite3/test/userfunctions.py
Lib/sqlite3/test/userfunctions.py
+1
-1
Lib/test/test_sys.py
Lib/test/test_sys.py
+3
-0
Misc/NEWS
Misc/NEWS
+2
-0
Python/sysmodule.c
Python/sysmodule.c
+1
-1
No files found.
Doc/library/sys.rst
View file @
c217d88a
...
...
@@ -202,8 +202,10 @@ always available.
.. data:: executable
A string giving the name of the executable binary for the Python interpreter, on
systems where this makes sense.
A string giving the absolute path of the executable binary for the Python
interpreter, on systems where this makes sense. If Python is unable to retrieve
the real path to its executable, :data:`sys.executable` will be an empty string
or ``None``.
.. function:: exit([arg])
...
...
Lib/sqlite3/test/dbapi.py
View file @
c217d88a
#-*- coding:
ISO
-8859-1 -*-
#-*- coding:
iso
-8859-1 -*-
# pysqlite2/test/dbapi.py: tests for DB-API compliance
#
# Copyright (C) 2004-2010 Gerhard Hring <gh@ghaering.de>
...
...
Lib/sqlite3/test/factory.py
View file @
c217d88a
#-*- coding:
ISO
-8859-1 -*-
#-*- coding:
iso
-8859-1 -*-
# pysqlite2/test/factory.py: tests for the various factories in pysqlite
#
# Copyright (C) 2005-2007 Gerhard Hring <gh@ghaering.de>
...
...
Lib/sqlite3/test/hooks.py
View file @
c217d88a
#-*- coding:
ISO
-8859-1 -*-
#-*- coding:
iso
-8859-1 -*-
# pysqlite2/test/hooks.py: tests for various SQLite-specific hooks
#
# Copyright (C) 2006-2007 Gerhard Häring <gh@ghaering.de>
...
...
Lib/sqlite3/test/regression.py
View file @
c217d88a
#-*- coding:
ISO
-8859-1 -*-
#-*- coding:
iso
-8859-1 -*-
# pysqlite2/test/regression.py: pysqlite regression tests
#
# Copyright (C) 2006-2010 Gerhard Hring <gh@ghaering.de>
...
...
Lib/sqlite3/test/transactions.py
View file @
c217d88a
#-*- coding:
ISO
-8859-1 -*-
#-*- coding:
iso
-8859-1 -*-
# pysqlite2/test/transactions.py: tests transactions
#
# Copyright (C) 2005-2007 Gerhard Hring <gh@ghaering.de>
...
...
Lib/sqlite3/test/types.py
View file @
c217d88a
#-*- coding:
ISO
-8859-1 -*-
#-*- coding:
iso
-8859-1 -*-
# pysqlite2/test/types.py: tests for type conversion and detection
#
# Copyright (C) 2005 Gerhard Hring <gh@ghaering.de>
...
...
Lib/sqlite3/test/userfunctions.py
View file @
c217d88a
#-*- coding:
ISO
-8859-1 -*-
#-*- coding:
iso
-8859-1 -*-
# pysqlite2/test/userfunctions.py: tests for user-defined functions and
# aggregates.
#
...
...
Lib/test/test_sys.py
View file @
c217d88a
...
...
@@ -542,6 +542,9 @@ class SysModuleTest(unittest.TestCase):
self
.
assertEqual
(
out
,
b'?'
)
def
test_executable
(
self
):
# sys.executable should be absolute
self
.
assertEqual
(
os
.
path
.
abspath
(
sys
.
executable
),
sys
.
executable
)
# Issue #7774: Ensure that sys.executable is an empty string if argv[0]
# has been set to an non existent program name and Python is unable to
# retrieve the real program name
...
...
Misc/NEWS
View file @
c217d88a
...
...
@@ -2147,6 +2147,8 @@ C-API
Documentation
-------------
- Issue #13402: Document absoluteness of sys.executable.
- Issue #13883: PYTHONCASEOK also works on OS X.
- Issue #12949: Document the kwonlyargcount argument for the PyCode_New
...
...
Python/sysmodule.c
View file @
c217d88a
...
...
@@ -1257,7 +1257,7 @@ Static objects:\n\
builtin_module_names -- tuple of module names built into this interpreter
\n
\
copyright -- copyright notice pertaining to this interpreter
\n
\
exec_prefix -- prefix used to find the machine-specific Python library
\n
\
executable --
pathname of this
Python interpreter
\n
\
executable --
absolute path of the executable binary of the
Python interpreter
\n
\
float_info -- a struct sequence with information about the float implementation.
\n
\
float_repr_style -- string indicating the style of repr() output for floats
\n
\
hexversion -- version information encoded as a single integer
\n
\
...
...
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