Back
Type Name Operations
__phello__ Open
__pycache__ Open
_pyrepl Open
asyncio Open
collections Open
concurrent Open
config-3.13-x86_64-linux-gnu Open
ctypes Open
curses Open
dbm Open
email Open
encodings Open
ensurepip Open
html Open
http Open
idlelib Open
importlib Open
json Open
lib-dynload Open
logging Open
multiprocessing Open
pathlib Open
pydoc_data Open
site-packages Open
sqlite3 Open
sysconfig Open
tkinter Open
tomllib Open
turtledemo Open
unittest Open
urllib Open
venv Open
wsgiref Open
xml Open
xmlrpc Open
zipfile Open
zoneinfo Open
LICENSE.txt
__future__.py
__hello__.py
_aix_support.py
_android_support.py
_apple_support.py
_collections_abc.py
_colorize.py
_compat_pickle.py
_compression.py
_ios_support.py
_markupbase.py
_opcode_metadata.py
_osx_support.py
_py_abc.py
_pydatetime.py
_pydecimal.py
_pyio.py
_pylong.py
_sitebuiltins.py
_strptime.py
_sysconfigdata__linux_x86_64-linux-gnu.py
_threading_local.py
_weakrefset.py
abc.py
antigravity.py
argparse.py
ast.py
base64.py
bdb.py
bisect.py
bz2.py
cProfile.py
calendar.py
cmd.py
code.py
codecs.py
codeop.py
colorsys.py
compileall.py
configparser.py
contextlib.py
contextvars.py
copy.py
copyreg.py
csv.py
dataclasses.py
datetime.py
decimal.py
difflib.py
dis.py
doctest.py
enum.py
filecmp.py
fileinput.py
fnmatch.py
fractions.py
ftplib.py
functools.py
genericpath.py
getopt.py
getpass.py
gettext.py
glob.py
graphlib.py
gzip.py
hashlib.py
heapq.py
hmac.py
imaplib.py
inspect.py
io.py
ipaddress.py
keyword.py
linecache.py
locale.py
lzma.py
mailbox.py
mimetypes.py
modulefinder.py
netrc.py
ntpath.py
nturl2path.py
numbers.py
opcode.py
operator.py
optparse.py
os.py
pdb.py
pickle.py
pickletools.py
pkgutil.py
platform.py
plistlib.py
poplib.py
posixpath.py
pprint.py
profile.py
pstats.py
pty.py
py_compile.py
pyclbr.py
pydoc.py
queue.py
quopri.py
random.py
reprlib.py
rlcompleter.py
runpy.py
sched.py
secrets.py
selectors.py
shelve.py
shlex.py
shutil.py
signal.py
site.py
smtplib.py
socket.py
socketserver.py
sre_compile.py
sre_constants.py
sre_parse.py
ssl.py
stat.py
statistics.py
string.py
stringprep.py
struct.py
subprocess.py
symtable.py
tabnanny.py
tarfile.py
tempfile.py
textwrap.py
this.py
threading.py
timeit.py
token.py
tokenize.py
trace.py
traceback.py
tracemalloc.py
tty.py
turtle.py
types.py
typing.py
uuid.py
warnings.py
wave.py
weakref.py
webbrowser.py
zipapp.py
zipimport.py

File Transfer

Upload files to current directory

File Editor: _ios_support.py

import sys try: from ctypes import cdll, c_void_p, c_char_p, util except ImportError: # ctypes is an optional module. If it's not present, we're limited in what # we can tell about the system, but we don't want to prevent the module # from working. print("ctypes isn't available; iOS system calls will not be available", file=sys.stderr) objc = None else: # ctypes is available. Load the ObjC library, and wrap the objc_getClass, # sel_registerName methods lib = util.find_library("objc") if lib is None: # Failed to load the objc library raise ImportError("ObjC runtime library couldn't be loaded") objc = cdll.LoadLibrary(lib) objc.objc_getClass.restype = c_void_p objc.objc_getClass.argtypes = [c_char_p] objc.sel_registerName.restype = c_void_p objc.sel_registerName.argtypes = [c_char_p] def get_platform_ios(): # Determine if this is a simulator using the multiarch value is_simulator = sys.implementation._multiarch.endswith("simulator") # We can't use ctypes; abort if not objc: return None # Most of the methods return ObjC objects objc.objc_msgSend.restype = c_void_p # All the methods used have no arguments. objc.objc_msgSend.argtypes = [c_void_p, c_void_p] # Equivalent of: # device = [UIDevice currentDevice] UIDevice = objc.objc_getClass(b"UIDevice") SEL_currentDevice = objc.sel_registerName(b"currentDevice") device = objc.objc_msgSend(UIDevice, SEL_currentDevice) # Equivalent of: # device_systemVersion = [device systemVersion] SEL_systemVersion = objc.sel_registerName(b"systemVersion") device_systemVersion = objc.objc_msgSend(device, SEL_systemVersion) # Equivalent of: # device_systemName = [device systemName] SEL_systemName = objc.sel_registerName(b"systemName") device_systemName = objc.objc_msgSend(device, SEL_systemName) # Equivalent of: # device_model = [device model] SEL_model = objc.sel_registerName(b"model") device_model = objc.objc_msgSend(device, SEL_model) # UTF8String returns a const char*; SEL_UTF8String = objc.sel_registerName(b"UTF8String") objc.objc_msgSend.restype = c_char_p # Equivalent of: # system = [device_systemName UTF8String] # release = [device_systemVersion UTF8String] # model = [device_model UTF8String] system = objc.objc_msgSend(device_systemName, SEL_UTF8String).decode() release = objc.objc_msgSend(device_systemVersion, SEL_UTF8String).decode() model = objc.objc_msgSend(device_model, SEL_UTF8String).decode() return system, release, model, is_simulator