cpython/Modules
Brian Curtin 52173d4959 Fix #9333. Expose os.symlink on Windows only when usable.
In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege
is an account privilege that is required to be held by the user. Not only
must the privilege be enabled for the account, the activated privileges for
the currently running application must be adjusted to enable the requested
privilege.

Rather than exposing an additional function to be called prior to the user's
first os.symlink call, we handle the AdjustTokenPrivileges Windows API call
internally and only expose os.symlink when the privilege escalation was
successful.

Due to the change of only exposing os.symlink when it's available, we can
go back to the original test skipping methods of checking via `hasattr`.
2010-12-02 18:29:18 +00:00
..
_ctypes Fix type of hash function. 2010-10-18 07:30:06 +00:00
_io correct logic when pos is after the string #10467 2010-11-20 17:24:04 +00:00
_multiprocessing Fix compiler warnings about formatting pid_t as an int, by always casting to long. 2010-10-18 05:06:18 +00:00
_sqlite Fix hash function type. 2010-10-18 12:24:53 +00:00
cjkcodecs Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
expat - Issue #9817: Add expat COPYING file; add expat, libffi and expat licenses 2010-09-12 16:31:58 +00:00
zlib Add file needed to make distclean. 2010-08-28 07:42:21 +00:00
Setup.config.in Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875. 2008-05-25 13:05:15 +00:00
Setup.dist Removing the comment lines for the modules which were made to build statically. 2010-08-15 03:59:07 +00:00
_bisectmodule.c Fix line wrapping 2010-09-01 08:56:10 +00:00
_codecsmodule.c Merged revisions 81860 via svnmerge from 2010-06-09 16:38:55 +00:00
_collectionsmodule.c Remove more unneeded casts to hashfunc. 2010-10-18 07:35:09 +00:00
_csv.c Issue #10359: Remove useless (duplicate) initialization in _csv 2010-11-09 09:40:16 +00:00
_curses_panel.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
_cursesmodule.c - Issue #7567: PyCurses_setupterm: Don't call `setupterm' twice. 2010-07-30 21:40:57 +00:00
_datetimemodule.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
_dbmmodule.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
_elementtree.c Issue #10093: ResourceWarnings are now issued when files and sockets are 2010-10-29 10:38:18 +00:00
_functoolsmodule.c Issue #4113: Added custom __repr__ method to functools.partial. 2010-12-01 20:05:49 +00:00
_gdbmmodule.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
_gestalt.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
_hashopenssl.c hashlib has two new constant attributes: algorithms_guaranteed and 2010-09-06 08:30:23 +00:00
_heapqmodule.c Inline cmp_lt(). 2010-09-05 05:26:10 +00:00
_json.c Issue #10314: improve performance of JSON encoding with sort_keys=True 2010-11-04 16:51:32 +00:00
_localemodule.c PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject* 2010-10-07 01:02:42 +00:00
_lsprof.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
_math.c Indentation and PEP 7 fixes. 2010-07-06 15:00:40 +00:00
_math.h Merged revisions 76978 via svnmerge from 2009-12-21 15:27:41 +00:00
_pickle.c Issue #10359: Remove useless comma, invalid in ISO C 2010-11-09 09:39:41 +00:00
_posixsubprocess.c Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore, 2010-04-22 12:08:36 +00:00
_randommodule.c tabbing no longer applicable 2010-08-24 18:08:22 +00:00
_scproxy.c Fix for issue #9568. 2010-09-28 14:38:31 +00:00
_sre.c Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers other than MSC 2010-08-31 19:51:07 +00:00
_ssl.c Issue #10443: Add the SSLContext.set_default_verify_paths() method. 2010-11-17 20:29:42 +00:00
_struct.c Include structseq.h in Python.h, and remove now-redundant includes in individual sources. 2010-11-30 09:30:54 +00:00
_testcapimodule.c Issue #10359: Remove ";" after function definition, invalid in ISO C 2010-11-09 09:32:19 +00:00
_threadmodule.c Issue #1868: Eliminate subtle timing issues in thread-local objects by 2010-08-28 18:17:03 +00:00
_time.c Fixed a typo in a comment. 2010-06-18 16:22:00 +00:00
_time.h Issue #9012: "Separate compilation of time and datetime modules." 2010-06-16 22:38:15 +00:00
_tkinter.c Issue #8715: Create PyUnicode_EncodeFSDefault() function: Encode a Unicode 2010-05-15 16:27:27 +00:00
_weakref.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +00:00
addrinfo.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
ar_beos Moved BeOS/ar-fake and BeOS/linkmodule to Modules/ar_beos and 2001-02-16 03:24:50 +00:00
arraymodule.c Fix compilation warnings seen on Windows. 2010-11-25 08:13:35 +00:00
atexitmodule.c Issue #4200: Changed the atexit module to store its state in its PyModuleDef atexitmodule. This fixes a bug with multiple subinterpeters. The bug was found by Graham Dumpletom during his work on a 3.0 port of mod_wsgi. The patch has been reviewed by Benjamin. 2008-10-30 21:34:02 +00:00
audioop.c Fix refleak in Modules/audioop.c. 2010-07-04 10:15:11 +00:00
binascii.c Fix issue10324 - Modules/binascii.c: simplify expressions 2010-11-09 09:59:13 +00:00
bz2module.c Issue #9928: Properly initialize the types exported by the bz2 module. 2010-09-23 19:51:39 +00:00
cmathmodule.c Issue #9165: Add math.isfinite and cmath.isfinite. 2010-07-11 17:38:24 +00:00
config.c.in #9418: first step of moving private string methods to _string module. 2010-10-14 07:04:07 +00:00
cryptmodule.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
errnomodule.c Issue 9916: Add some missing errno symbols. 2010-09-22 20:58:04 +00:00
fcntlmodule.c Issue #9758: When fcntl.ioctl() was called with mutable_flag set to True, 2010-09-07 16:30:09 +00:00
fpectlmodule.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
fpetestmodule.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
gc_weakref.txt SF 1055820: weakref callback vs gc vs threads 2004-10-30 23:09:22 +00:00
gcmodule.c Issue #10279: fix test_gc under Win64. 2010-11-05 00:05:25 +00:00
getaddrinfo.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
getbuildinfo.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
getnameinfo.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
getpath.c getpath.c: fix test to detech PyUnicode_AsWideChar() failure 2010-11-10 14:12:20 +00:00
grpmodule.c Include structseq.h in Python.h, and remove now-redundant includes in individual sources. 2010-11-30 09:30:54 +00:00
hashlib.h Fixes Issue #3745: Fix hashlib to always reject unicode and non 2009-02-12 07:35:29 +00:00
itertoolsmodule.c Add itertools.accumulate(). 2010-12-01 22:48:00 +00:00
ld_so_aix.in Issue #941346: Improve the build process under AIX and allow Python to 2010-09-10 19:44:44 +00:00
ld_so_beos Remove a hard coded Python version, and a now incorrect relative path. Closes 2001-02-16 03:27:35 +00:00
main.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
makesetup Issue #9189: Allow users to set $CFLAGS, $CPPFLAGS, and $LDFLAGS when running 2010-07-09 16:30:58 +00:00
makexp_aix - Changes donated by Elemental Security to make it work on AIX 5.3 2005-09-14 18:09:42 +00:00
mathmodule.c Issue #9599: Further accuracy tweaks to loghelper. For an integer n that's small enough to be converted to a float without overflow, log(n) is now computed as log(float(n)), and similarly for log10. 2010-09-29 19:06:36 +00:00
md5module.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
mmapmodule.c Issue #5391: mmap.read_byte() should return unsigned value [0, 255] 2010-11-04 12:09:08 +00:00
nismodule.c Decode NIS data to fs encoding, using the surrogate error handler. 2010-08-19 09:11:51 +00:00
operator.c No declarations in the middle of a block (fixes compile under Windows) 2010-10-31 21:03:01 +00:00
ossaudiodev.c These are true PyCFunctions, after adding the second argument to oss_self, no need to cast. 2010-10-24 20:47:32 +00:00
parsermodule.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
posixmodule.c Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
pwdmodule.c Include structseq.h in Python.h, and remove now-redundant includes in individual sources. 2010-11-30 09:30:54 +00:00
pyexpat.c #9054: fix crash when using pyexpat with a system expat lib version 2.0.1. 2010-10-15 16:26:08 +00:00
python.c Issue #4388: On Mac OS X, decode command line arguments from UTF-8, instead of 2010-10-20 22:58:25 +00:00
readline.c Fix Issue 10307 - compile error in readline.c 2010-11-04 03:51:05 +00:00
resource.c Include structseq.h in Python.h, and remove now-redundant includes in individual sources. 2010-11-30 09:30:54 +00:00
rotatingtree.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
rotatingtree.h Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
selectmodule.c #9862: On AIX PIPE_BUF is broken. Make it 512. 2010-10-15 23:12:57 +00:00
sha1module.c Rename some macros in the sha1 module to no longer conflict with termios.h. 2010-07-23 15:43:14 +00:00
sha256module.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
sha512module.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
signalmodule.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
socketmodule.c Fixed socket_gethostname() on windows. 2010-11-05 17:24:13 +00:00
socketmodule.h Issue #4835: make PyLong_FromSocket_t() and PyLong_AsSocket_t() private 2010-08-28 20:42:55 +00:00
spwdmodule.c Include structseq.h in Python.h, and remove now-redundant includes in individual sources. 2010-11-30 09:30:54 +00:00
sre.h #2834: Change re module semantics, so that str and bytes mixing is forbidden, 2008-08-19 17:56:33 +00:00
sre_constants.h Implemented non-recursive SRE matching. 2003-10-17 22:13:16 +00:00
symtablemodule.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
syslogmodule.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
termios.c Issue #8078: Add constants for higher baud rates in the termios module. 2010-11-20 20:03:08 +00:00
testcapi_long.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
timemodule.c Include structseq.h in Python.h, and remove now-redundant includes in individual sources. 2010-11-30 09:30:54 +00:00
tkappinit.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
tkinter.h Merged revisions 71210 via svnmerge from 2009-04-10 22:19:09 +00:00
unicodedata.c Issue #10459: Update CJK character names to Unicode 6.0. 2010-11-22 09:00:02 +00:00
unicodedata_db.h Upgrade to Unicode 6.0.0. 2010-10-11 22:42:28 +00:00
unicodename_db.h Upgrade to Unicode 6.0.0. 2010-10-11 22:42:28 +00:00
xxmodule.c Issue #9089: Remove references to intobject.c and intobject.h from comments. 2010-06-27 18:19:09 +00:00
xxsubtype.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:52:27 +00:00
zipimport.c zipimport: remove arbitrary length limit from message formats 2010-10-18 22:45:54 +00:00
zlibmodule.c Merged revisions 81098 via svnmerge from 2010-05-11 23:46:02 +00:00