/snap/core20/2866/usr/lib/python3.8/__pycache__
NameSizeModeActions
abc.cpython-38.pyc53340644editdlrm
aifc.cpython-38.pyc254740644editdlrm
antigravity.cpython-38.pyc7970644editdlrm
argparse.cpython-38.pyc625910644editdlrm
ast.cpython-38.pyc167630644editdlrm
asynchat.cpython-38.pyc68510644editdlrm
asyncore.cpython-38.pyc160280644editdlrm
base64.cpython-38.pyc170710644editdlrm
bdb.cpython-38.pyc249210644editdlrm
binhex.cpython-38.pyc121340644editdlrm
bisect.cpython-38.pyc23540644editdlrm
bz2.cpython-38.pyc114450644editdlrm
calendar.cpython-38.pyc270640644editdlrm
cgi.cpython-38.pyc265440644editdlrm
cgitb.cpython-38.pyc101500644editdlrm
chunk.cpython-38.pyc48390644editdlrm
cmd.cpython-38.pyc126260644editdlrm
code.cpython-38.pyc99130644editdlrm
codecs.cpython-38.pyc339560644editdlrm
codeop.cpython-38.pyc64170644editdlrm
colorsys.cpython-38.pyc32400644editdlrm
compileall.cpython-38.pyc94100644editdlrm
configparser.cpython-38.pyc457180644editdlrm
contextlib.cpython-38.pyc202290644editdlrm
contextvars.cpython-38.pyc2430644editdlrm
copy.cpython-38.pyc69870644editdlrm
copyreg.cpython-38.pyc43180644editdlrm
cProfile.cpython-38.pyc54800644editdlrm
crypt.cpython-38.pyc33870644editdlrm
csv.cpython-38.pyc119100644editdlrm
dataclasses.cpython-38.pyc236530644editdlrm
datetime.cpython-38.pyc571730644editdlrm
decimal.cpython-38.pyc3590644editdlrm
difflib.cpython-38.pyc594380644editdlrm
dis.cpython-38.pyc158080644editdlrm
doctest.cpython-38.pyc759740644editdlrm
dummy_threading.cpython-38.pyc11100644editdlrm
enum.cpython-38.pyc259620644editdlrm
filecmp.cpython-38.pyc84270644editdlrm
fileinput.cpython-38.pyc133730644editdlrm
fnmatch.cpython-38.pyc33550644editdlrm
formatter.cpython-38.pyc175450644editdlrm
fractions.cpython-38.pyc187390644editdlrm
ftplib.cpython-38.pyc280070644editdlrm
functools.cpython-38.pyc279010644editdlrm
genericpath.cpython-38.pyc40010644editdlrm
getopt.cpython-38.pyc62710644editdlrm
getpass.cpython-38.pyc41780644editdlrm
gettext.cpython-38.pyc180000644editdlrm
glob.cpython-38.pyc43430644editdlrm
gzip.cpython-38.pyc181840644editdlrm
hashlib.cpython-38.pyc67270644editdlrm
heapq.cpython-38.pyc140700644editdlrm
hmac.cpython-38.pyc63880644editdlrm
imaplib.cpython-38.pyc413420644editdlrm
imghdr.cpython-38.pyc41180644editdlrm
imp.cpython-38.pyc98090644editdlrm
inspect.cpython-38.pyc805930644editdlrm
io.cpython-38.pyc34540644editdlrm
ipaddress.cpython-38.pyc628290644editdlrm
keyword.cpython-38.pyc9980644editdlrm
linecache.cpython-38.pyc38670644editdlrm
locale.cpython-38.pyc346740644editdlrm
lzma.cpython-38.pyc120180644editdlrm
mailbox.cpython-38.pyc602640644editdlrm
mailcap.cpython-38.pyc72060644editdlrm
mimetypes.cpython-38.pyc160310644editdlrm
modulefinder.cpython-38.pyc161150644editdlrm
netrc.cpython-38.pyc37770644editdlrm
nntplib.cpython-38.pyc339740644editdlrm
ntpath.cpython-38.pyc140910644editdlrm
nturl2path.cpython-38.pyc17440644editdlrm
numbers.cpython-38.pyc122020644editdlrm
opcode.cpython-38.pyc54200644editdlrm
operator.cpython-38.pyc136910644editdlrm
optparse.cpython-38.pyc480570644editdlrm
os.cpython-38.pyc313970644editdlrm
pathlib.cpython-38.pyc442090644editdlrm
pdb.cpython-38.pyc472260644editdlrm
pickle.cpython-38.pyc469080644editdlrm
pickletools.cpython-38.pyc672040644editdlrm
pipes.cpython-38.pyc77950644editdlrm
pkgutil.cpython-38.pyc163090644editdlrm
platform.cpython-38.pyc243260644editdlrm
plistlib.cpython-38.pyc273740644editdlrm
poplib.cpython-38.pyc134590644editdlrm
posixpath.cpython-38.pyc104610644editdlrm
pprint.cpython-38.pyc162810644editdlrm
profile.cpython-38.pyc147580644editdlrm
pstats.cpython-38.pyc220660644editdlrm
pty.cpython-38.pyc39550644editdlrm
pyclbr.cpython-38.pyc104510644editdlrm
pydoc.cpython-38.pyc836460644editdlrm
py_compile.cpython-38.pyc73520644editdlrm
queue.cpython-38.pyc106260644editdlrm
quopri.cpython-38.pyc57480644editdlrm
random.cpython-38.pyc201080644editdlrm
re.cpython-38.pyc144220644editdlrm
reprlib.cpython-38.pyc53030644editdlrm
rlcompleter.cpython-38.pyc57550644editdlrm
runpy.cpython-38.pyc81810644editdlrm
sched.cpython-38.pyc65320644editdlrm
secrets.cpython-38.pyc21900644editdlrm
selectors.cpython-38.pyc169350644editdlrm
shelve.cpython-38.pyc94900644editdlrm
shlex.cpython-38.pyc75360644editdlrm
shutil.cpython-38.pyc372190644editdlrm
signal.cpython-38.pyc28430644editdlrm
site.cpython-38.pyc171680644editdlrm
sitecustomize.cpython-38.pyc2200644editdlrm
smtpd.cpython-38.pyc264630644editdlrm
smtplib.cpython-38.pyc355320644editdlrm
sndhdr.cpython-38.pyc69890644editdlrm
socket.cpython-38.pyc277870644editdlrm
socketserver.cpython-38.pyc253610644editdlrm
sre_compile.cpython-38.pyc151420644editdlrm
sre_constants.cpython-38.pyc63590644editdlrm
sre_parse.cpython-38.pyc216470644editdlrm
ssl.cpython-38.pyc450370644editdlrm
stat.cpython-38.pyc43720644editdlrm
statistics.cpython-38.pyc336530644editdlrm
string.cpython-38.pyc73000644editdlrm
stringprep.cpython-38.pyc110170644editdlrm
struct.cpython-38.pyc3300644editdlrm
subprocess.cpython-38.pyc419670644editdlrm
sunau.cpython-38.pyc170800644editdlrm
symbol.cpython-38.pyc24040644editdlrm
symtable.cpython-38.pyc113220644editdlrm
sysconfig.cpython-38.pyc158370644editdlrm
tabnanny.cpython-38.pyc70300644editdlrm
tarfile.cpython-38.pyc630430644editdlrm
telnetlib.cpython-38.pyc182370644editdlrm
tempfile.cpython-38.pyc266530644editdlrm
textwrap.cpython-38.pyc135190644editdlrm
this.cpython-38.pyc12610644editdlrm
threading.cpython-38.pyc399760644editdlrm
timeit.cpython-38.pyc117770644editdlrm
token.cpython-38.pyc24850644editdlrm
tokenize.cpython-38.pyc171600644editdlrm
trace.cpython-38.pyc200260644editdlrm
traceback.cpython-38.pyc199380644editdlrm
tracemalloc.cpython-38.pyc173630644editdlrm
tty.cpython-38.pyc10760644editdlrm
turtle.cpython-38.pyc1300220644editdlrm
types.cpython-38.pyc91770644editdlrm
typing.cpython-38.pyc624200644editdlrm
uu.cpython-38.pyc36050644editdlrm
uuid.cpython-38.pyc236830644editdlrm
warnings.cpython-38.pyc136520644editdlrm
wave.cpython-38.pyc181490644editdlrm
weakref.cpython-38.pyc195180644editdlrm
webbrowser.cpython-38.pyc171200644editdlrm
xdrlib.cpython-38.pyc82210644editdlrm
zipapp.cpython-38.pyc58540644editdlrm
zipfile.cpython-38.pyc593360644editdlrm
zipimport.cpython-38.pyc172750644editdlrm
_bootlocale.cpython-38.pyc12430644editdlrm
_collections_abc.cpython-38.pyc287410644editdlrm
_compat_pickle.cpython-38.pyc55010644editdlrm
_compression.cpython-38.pyc41460644editdlrm
_dummy_thread.cpython-38.pyc60370644editdlrm
_markupbase.cpython-38.pyc77900644editdlrm
_osx_support.cpython-38.pyc115930644editdlrm
_pydecimal.cpython-38.pyc1607350644editdlrm
_pyio.cpython-38.pyc740790644editdlrm
_py_abc.cpython-38.pyc46700644editdlrm
_sitebuiltins.cpython-38.pyc34810644editdlrm
_strptime.cpython-38.pyc160440644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.pyc211210644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-38.pyc211150644editdlrm
_threading_local.cpython-38.pyc64460644editdlrm
_weakrefset.cpython-38.pyc76000644editdlrm
__future__.cpython-38.pyc41580644editdlrm
__phello__.foo.cpython-38.pyc1270644editdlrm
Edit: /snap/core20/2866/usr/lib/python3.8/__pycache__/platform.cpython-38.pyc (24326B)
U ʦi @sldZdZdZddlZddlZddlZddlZddddddd d d d d Zed Z d dZ edej Z dwddZ dxddZedZdyddZddddddd d!d"d#d$d% Zdd&d'd(d)d*d+Zd,d-Zd.d/Zdzd0d1Zd2d3Zd{d5d6Zd7d8Zd|d9d:Zd;d<Zd=d>Zd}d?d@ZdAdBZd~dCdDZddEdFZdGdHdIdZ ej!ddfdJdKZ"e#dLdMZ$da%dNdOZ&dPdQZ'dRdSZ(dTdUZ)dVdWZ*dXdYZ+dZd[Z,ed\ej Z-ed]ej Z.ed^Z/ed_Z0iZ1dd`daZ2dbdcZ3dddeZ4dfdgZ5dhdiZ6djdkZ7dldmZ8dndoZ9iZ:ddpdqZ;eduej=koNdvej=kZ?e@e;e?e>eAddS)a8 This module tries to retrieve as much platform-identifying data as possible. It makes this information available via function APIs. If called from the command line, it prints the platform information concatenated as single string to stdout. The output format is useable as part of a filename. a Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:info@egenix.com Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee or royalty is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation or portions thereof, including modifications, that you make. EGENIX.COM SOFTWARE GMBH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE ! z1.0.8N (2) ZdevZalphaaZbetabcZRCZrcplpz([0-9]+|[._+-])c Csbg}t|D]N}|dkrzt|d}d}Wn tk rLt|d}YnX|||fq|S)Nz._+-rdr) _component_resplitint ValueError _ver_stagesgetextend)versionresultvtr/usr/lib/python3.8/platform.py_comparable_versions rsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)@c Cs|dkrZz0td}|jdd}t|dkr6t|WSWntttfk rRYnXtj }t }t tj drvtj |}t|d`}||}d} | t|krd |ksd |krt|| } nd} | r| t|kr||} | r |t| t|d d| }d} q| sqd d | D\} } }}}}| rF|sFd}n| rx|dkr`d}|}n||||kr|}n\|r|dkrd}|r|r||||kr|}|r|t| d|kr||}| } qW5QRX||fS)a Tries to determine the libc version that the file executable (which defaults to the Python interpreter) is linked against. Returns a tuple of strings (lib,version) which default to the given parameters in case the lookup fails. Note that the function has intimate knowledge of how different libc versions add symbols to the executable and thus is probably only useable for executables compiled using gcc. The file is read and scanned in chunks of chunksize bytes. NCS_GNU_LIBC_VERSION)maxsplitrealpathrbrslibcsGLIBCicSs"g|]}|dk r|dn|qS)Nlatin1)decode).0srrr szlibc_ver..Zlibcglibc)osconfstrrlentupleAttributeErrorrOSErrorsys executablerhasattrpathr"openread _libc_searchsearchendmaxgroups)r1ZlibrZ chunksizeverpartsVfZbinaryposmchunkZlibcinitr)Z glibcversionZsoZthreadsZ soversionrrrlibc_vers^          rBcCs`|d}|r||zttttt|}Wntk rH|}YnXd|dd}|S)z Normalize the version and build strings and return a single version string using the format major.minor.build (or patchlevel). .N)rappendlistmapstrrrjoin)rbuildlZstringsrrr _norm_versions   rLz'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])win32win16dosc Cstj|kr|||fSddl}dD]R}z|j||jddd}Wn0t|jfk rl}z WYq W5d}~XYq Xq~q |||fS|}t |}|dk r| \}}}|ddkr|dd}|ddkr|dd}t |}|||fS)a+ Tries to figure out the OS version used and returns a tuple (system, release, version). It uses the "ver" shell command for this which is known to exists on Windows, DOS. XXX Others too ? In case this fails, the given parameters are used as defaults. rN)r;zcommand /c verz cmd /c verT)stderrtextshellrC) r0platform subprocess check_outputDEVNULLr/CalledProcessErrorstrip _ver_outputmatchr:rL) systemreleaserZsupported_platformsrVcmdinfoZwhyr@rrr _syscmd_vers0         raZ2000ZXPZ 2003ServerZpost2003Vista78z8.1zpost8.1Z10Zpost10) )r)rerrer!)reNrrhrrhr!rhrDrhN)rr)rNZ 2008ServerZ 2008ServerR2Z 2012ServerZ 2012ServerR2Zpost2012ServerR2)rfrgrirjrkrlcCs tdkS)N)ZIoTUAPZ NanoServerZWindowsCoreHeadlessZ IoTEdgeOS) win32_editionrrrr win32_is_iotOsrnc Csz.z ddl}Wntk r*ddl}YnXWntk rBYnTXzr r^ versioninforrrr _mac_ver_xmls    rrcCst}|dk r|S|||fS)a< Get macOS version information and return it as tuple (release, versioninfo, machine) with versioninfo being a tuple (version, dev_stage, non_release_version). Entries which cannot be determined are set to the parameter values which default to ''. All tuple entries are strings. N)r)r^rrr`rrrmac_vers rcCsHddlm}z||}|dkr&|WS|WStk rB|YSXdS)Nr)System) java.langrZ getPropertyr.)namedefaultrvaluerrr _java_getprops  rc Csz ddl}Wn tk r,||||fYSXtd|}td|}|\}}}td|}td|}td|}|||f}|\}} } td| } td |}td | } || | f}||||fS) a] Version interface for Jython. Returns a tuple (release, vendor, vminfo, osinfo) with vminfo being a tuple (vm_name, vm_release, vm_vendor) and osinfo being a tuple (os_name, os_version, os_arch). Values which cannot be determined are set to the defaults given as parameters (which all default to ''). rNz java.vendorz java.versionz java.vm.namezjava.vm.vendorzjava.vm.versionz java.os.archz java.os.namezjava.os.version)rrqr) r^vendorvminfoosinfojavaZvm_nameZ vm_releaseZ vm_vendoros_name os_versionos_archrrrjava_vers"              rcCs|dkr|dkr|||fS|d}|rlzt|d}Wntk rLYn X|d}t||d<d|}|dkrzd}qd}n,|dkrd }|r|d }qd }n |d krd }|||fS)z Returns (system, release, version) aliased to common marketing names used for some systems. It also does some reordering of the information in some cases where it would otherwise cause confusion. ZSunOS5rCrrD6ZSolarisZIRIX64ZIRIXz (64bit)64bitrNrOWindows)rrrrHrI)r]r^rrKrrrr system_aliass.      rcGsdddtt|D}|dd}|dd}|dd}|dd}|d d}|d d}|d d}|d d}|d d}|dd}||krq|}q|ddkr|dd}q|S)zq Helper to format the platform string in a filename compatible format e.g. "system-version-machine". -css|]}|VqdS)N)rZ)r&xrrr (sz_platform.. _/\:;"()unknownrz--rTN)rIfilterr,replace)argsrUZcleanedrrr _platform"s"           rcCsNz ddl}Wntk r$|YSXz |WStk rH|YSXdS)z8 Helper to determine the node name of this machine. rN)socketrqZ gethostnamer/)rrrrr_nodeBs   rcCsBtj|}tj|r>tjtjtj|t|}q |S)zT In case filepath is a symlink, follow it until a real file is reached. )r*r3abspathislinknormpathrIdirnamereadlink)filepathrrr_follow_symlinksQs   rc Cs\tjdkr|Sddl}z|jd|f|jdd}Wnt|jfk rN|YSX|pZ|S)z. Interface to the system's uname command. rPrNrOrNrT)rQrR)r0rUrVrWrXr/rYrZ)ZoptionrrVoutputrrr _syscmd_uname\s    rc Csztjdkr|Sddl}t|}ttjdd}z|jdd|g|j|d}Wnt |j fk rf|YSX|sp|S| d S) z Interface to the system's file command. The function uses the -b option of the file command to have it omit the filename in its output. Follow the symlinks. It returns default in case the command should fail. rrNC)LC_ALLfilez-b)rQenvzlatin-1) r0rUrVrdictr*environrWrXr/rYr%)targetrrVrrrrr _syscmd_filems    r)r WindowsPE)rr)rMSDOScCs|s&ddl}|d}t|dd}|r6t|d}nd}|sx|tjkrxtjtkrpttj\}}|rh|}|rp|}||fSd|krd|kr||fSd |krd }nd |krd }n d |krd}d|krd}n8d|krd|krd}qd}nd|krd}nd|krd}n||fS)a Queries the given executable (defaults to the Python interpreter binary) for various architecture information. Returns a tuple (bits, linkage) which contains information about the bit architecture and the linkage format used for the executable. Both values are returned as strings. Values that cannot be determined are returned as given by the parameter presets. If bits is given as '', the sizeof(pointer) (or sizeof(long) on Python version < 1.5.2) is used as indicator for the supported pointer size. The function relies on the system's "file" command to do the actual work. This is available on most if not all Unix platforms. On some non-Unix platforms where the "file" command does not exist and the executable is set to the Python interpreter binary defaults from _default_architecture are used. rNPbitrr1z shared objectz32-bit32bitZN32Zn32bitz64-bitrZELFZPErrZCOFFzMS-DOSr)structZcalcsizerHrr0r1rU_default_architecture)r1bitslinkagersizeZfileoutr rKrrr architecturesH   r uname_resultz-system node release version machine processorcCsd}tdk rtSd}zt\}}}}}Wntk rBd}YnX|sbttd|||||fs|r~tj}d}d}t}d}d}|dkrt \}}}} |r|rd}|sdtj krtj dd}ntj dd}|stj d|}|r:t |\}}}|d krd }n4|d kr:|d kr:d }d |dd kr6d}nd}|dkrd|s^|dkrZd}nd}d }n8|dddkrt \}} } } d}d| }|s| }|dkr|r|dkr|}d}z ddl} Wntk rYn&X| dd\}}|dkrd}nd}|stdd}|dkr$d}|dkr2d}|dkr@d}|dkrNd}|dkr\d}|dkrjd}|d kr|d krd }d}t||||||atS)an Fairly portable uname interface. Returns a tuple of strings (system, node, release, version, machine, processor) identifying the underlying platform. Note that unlike the os.uname function this also returns possible processor information as an additional tuple entry. Entries which cannot be determined are set to ''. rNrrrNZPROCESSOR_ARCHITEW6432ZPROCESSOR_ARCHITECTUREZPROCESSOR_IDENTIFIERzMicrosoft WindowsrZ Microsoftz6.0rDrbrrZ16bitrJavaz, ZOpenVMS0zSYI$_CPUZAlphaZVAXz-pr) _uname_cacher*rr.rFrr0rUrrrrrarrIvms_librqZgetsyirr)Z no_os_uname processorr]noder^rrZuse_syscmd_verr~rrrrrZcsidZ cpu_numberrrrrs                  rcCstjS)z Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'. An empty string is returned if the value cannot be determined. )rr]rrrrr]usr]cCstjS)z Returns the computer's network name (which may not be fully qualified) An empty string is returned if the value cannot be determined. )rrrrrrr~srcCstjS)z Returns the system's release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. )rr^rrrrr^sr^cCstjS)z Returns the system's release version, e.g. '#3 on degas' An empty string is returned if the value cannot be determined. )rrrrrrrsrcCstjS)zt Returns the machine type, e.g. 'i386' An empty string is returned if the value cannot be determined. )rrrrrrrsrcCstjS)a Returns the (true) processor name, e.g. 'amdk6' An empty string is returned if the value cannot be determined. Note that many platforms do not provide this information or simply return the same value as for machine(), e.g. NetBSD does this. )rrrrrrrs rzL([\w.+]+)\s*\(#?([^,]+)(?:,\s*([\w ]*)(?:,\s*([\w :]*))?)?\)\s*\[([^\]]+)\]?z;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)zU([\d.]+)\s*\(IronPython\s*[\d.]+\s*\(([\d.]+)\) on ([\w.]+ [\d.]+(?: \(\d+-bit\))?)\)zE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCs|dkrtj}t|d}|dk r&|Sd|krd}|drHt|}n t|}|dkrjtdt || \}}}d}d}ntj drd}t |}|dkrtdt || \}}}} } |dkrd}tj }nd|kr"d}t |}|dkr td t || \}}}} d}n\t |}|dkrFtd t || \}}}} }d }|dkrld}n| r~|d | }ttd rtj\} } } n"ttdrtj\} } } nd} d} |d} t| dkr| dd| }||| | |||f}|t|<|S)a Returns a parsed version of Python's sys.version as tuple (name, version, branch, revision, buildno, builddate, compiler) referring to the Python implementation name, version, branch, revision, build number, build date/time as string and the compiler identification string. Note that unlike the Python sys.version, the returned value for the Python version will always include the patchlevel (it defaults to '.0'). The function returns empty strings for tuple entries that cannot be determined. sys_version may be given to parse an alternative version string, e.g. if the version was read from a different Python interpreter. NZ IronPythonz*failed to parse IronPython sys.version: %srrZJythonz&failed to parse Jython sys.version: %sZPyPyz$failed to parse PyPy sys.version: %sz'failed to parse CPython sys.version: %sZCPythonr_git _mercurialrCr!r)r0r_sys_version_cacher startswith_ironpython_sys_version_parserr\ _ironpython26_sys_version_parserrreprr:rU_sys_version_parser_pypy_sys_version_parserr2rrrr,rErI) sys_versionrrr\rZ alt_versionZcompilerZbuildnoZ builddateZ buildtimerbranchZrevisionrKrrr _sys_versions                   rcCs tdS)aR Returns a string identifying the Python implementation. Currently, the following implementations are identified: 'CPython' (C implementation of Python), 'IronPython' (.NET implementation of Python), 'Jython' (Java implementation of Python), 'PyPy' (Python implementation of Python). rrrrrrpython_implementation5s rcCs tdS)z Returns the Python version as string 'major.minor.patchlevel' Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0). rrrrrrpython_versionBsrcCsttddS)z Returns the Python version as tuple (major, minor, patchlevel) of strings. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0). rrC)r-rrrrrrpython_version_tupleLs rcCs tdS)z Returns a string identifying the Python implementation branch. For CPython this is the SCM branch from which the Python binary was built. If not available, an empty string is returned. r!rrrrr python_branchWs rcCs tdS)z Returns a string identifying the Python implementation revision. For CPython this is the SCM revision from which the Python binary was built. If not available, an empty string is returned. rDrrrrrpython_revisiones rcCstddS)zh Returns a tuple (buildno, builddate) stating the Python build number and date as strings. rrhrrrrr python_buildrsrcCs tdS)zS Returns a string identifying the compiler used for compiling Python. rhrrrrrpython_compilerzsrcCsbt||fd}|dk r|St\}}}}}}||kr:d}|rPt|||\}}}|dkrntd} | rnd}| }|dkrt|\} } } } |rt||}nt|||| }n|dkrttj \}}t||||d||}n~|d kr t \}}}\}}}|s|s t|||}nt|||d |||}n2|r2t||}n t tj \}}t||||||}|t||f<|S) a Returns a single string identifying the underlying platform with as much useful information as possible (but no more :). The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended. If "aliased" is true, the function will use aliases for various platforms that report system names which differ from their common names, e.g. SunOS will be reported as Solaris. The system_alias() function is used to implement this. Setting terse to true causes the function to return only the absolute minimum information needed to identify the platform. NrZDarwinrZmacOSr)ZLinuxwithrZon) _platform_cacherrrrrrrBr0r1rr)aliasedterserr]rr^rrrZ macos_releaseZrelZversr~rrUZlibcnameZ libcversionrrrrrrrrrrrrUsX       rU__main__rz--terseZ nonaliasedz --nonaliased)Nrrr)r)rrrrM)rrrr)rrr)rrrr)r)r)r)N)rr)B__doc__Z __copyright__ __version__ collectionsr*rer0rcompilerrASCIIr6rBrLr[rar{r}rnrmrrrrrrrrrrrrr1r namedtuplerrrr]rr^rrrrrrrrrrrrrrrrrrU__name__argvrrprintexitrrrrsY   G   1  3  #4   $P       h      L