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
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
_bisectmodule.c Fix line wrapping 2010-09-01 08:56:10 +00:00
_codecsmodule.c
_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
_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
_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
_gestalt.c
_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
_math.h
_pickle.c Issue #10359: Remove useless comma, invalid in ISO C 2010-11-09 09:39:41 +00:00
_posixsubprocess.c
_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
_time.h
_tkinter.c
_weakref.c
addrinfo.h
ar_beos
arraymodule.c Fix compilation warnings seen on Windows. 2010-11-25 08:13:35 +00:00
atexitmodule.c
audioop.c
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
config.c.in #9418: first step of moving private string methods to _string module. 2010-10-14 07:04:07 +00:00
cryptmodule.c
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
fpetestmodule.c
gc_weakref.txt
gcmodule.c Issue #10279: fix test_gc under Win64. 2010-11-05 00:05:25 +00:00
getaddrinfo.c
getbuildinfo.c
getnameinfo.c
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
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
main.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
makesetup
makexp_aix
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
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
rotatingtree.h
selectmodule.c #9862: On AIX PIPE_BUF is broken. Make it 512. 2010-10-15 23:12:57 +00:00
Setup.config.in
Setup.dist Removing the comment lines for the modules which were made to build statically. 2010-08-15 03:59:07 +00:00
sha1module.c
sha256module.c
sha512module.c
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
sre_constants.h
symtablemodule.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
syslogmodule.c
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
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
tkinter.h
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
xxsubtype.c
zipimport.c zipimport: remove arbitrary length limit from message formats 2010-10-18 22:45:54 +00:00
zlibmodule.c