doc_content stringlengths 1 386k | doc_id stringlengths 5 188 |
|---|---|
PurePath.suffixes
A list of the path’s file extensions: >>> PurePosixPath('my/library.tar.gar').suffixes
['.tar', '.gar']
>>> PurePosixPath('my/library.tar.gz').suffixes
['.tar', '.gz']
>>> PurePosixPath('my/library').suffixes
[] | python.library.pathlib#pathlib.PurePath.suffixes |
PurePath.with_name(name)
Return a new path with the name changed. If the original path doesn’t have a name, ValueError is raised: >>> p = PureWindowsPath('c:/Downloads/pathlib.tar.gz')
>>> p.with_name('setup.py')
PureWindowsPath('c:/Downloads/setup.py')
>>> p = PureWindowsPath('c:/')
>>> p.with_name('setup.py')
Trace... | python.library.pathlib#pathlib.PurePath.with_name |
PurePath.with_stem(stem)
Return a new path with the stem changed. If the original path doesn’t have a name, ValueError is raised: >>> p = PureWindowsPath('c:/Downloads/draft.txt')
>>> p.with_stem('final')
PureWindowsPath('c:/Downloads/final.txt')
>>> p = PureWindowsPath('c:/Downloads/pathlib.tar.gz')
>>> p.with_stem(... | python.library.pathlib#pathlib.PurePath.with_stem |
PurePath.with_suffix(suffix)
Return a new path with the suffix changed. If the original path doesn’t have a suffix, the new suffix is appended instead. If the suffix is an empty string, the original suffix is removed: >>> p = PureWindowsPath('c:/Downloads/pathlib.tar.gz')
>>> p.with_suffix('.bz2')
PureWindowsPath('c:... | python.library.pathlib#pathlib.PurePath.with_suffix |
class pathlib.PurePosixPath(*pathsegments)
A subclass of PurePath, this path flavour represents non-Windows filesystem paths: >>> PurePosixPath('/etc')
PurePosixPath('/etc')
pathsegments is specified similarly to PurePath. | python.library.pathlib#pathlib.PurePosixPath |
class pathlib.PureWindowsPath(*pathsegments)
A subclass of PurePath, this path flavour represents Windows filesystem paths: >>> PureWindowsPath('c:/Program Files/')
PureWindowsPath('c:/Program Files')
pathsegments is specified similarly to PurePath. | python.library.pathlib#pathlib.PureWindowsPath |
class pathlib.WindowsPath(*pathsegments)
A subclass of Path and PureWindowsPath, this class represents concrete Windows filesystem paths: >>> WindowsPath('c:/Program Files/')
WindowsPath('c:/Program Files')
pathsegments is specified similarly to PurePath. | python.library.pathlib#pathlib.WindowsPath |
pdb — The Python Debugger Source code: Lib/pdb.py The module pdb defines an interactive source code debugger for Python programs. It supports setting (conditional) breakpoints and single stepping at the source line level, inspection of stack frames, source code listing, and evaluation of arbitrary Python code in the co... | python.library.pdb |
class pdb.Pdb(completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False, readrc=True)
Pdb is the debugger class. The completekey, stdin and stdout arguments are passed to the underlying cmd.Cmd class; see the description there. The skip argument, if given, must be an iterable of glob-style module name pat... | python.library.pdb#pdb.Pdb |
run(statement, globals=None, locals=None)
runeval(expression, globals=None, locals=None)
runcall(function, *args, **kwds)
set_trace()
See the documentation for the functions explained above. | python.library.pdb#pdb.Pdb.run |
run(statement, globals=None, locals=None)
runeval(expression, globals=None, locals=None)
runcall(function, *args, **kwds)
set_trace()
See the documentation for the functions explained above. | python.library.pdb#pdb.Pdb.runcall |
run(statement, globals=None, locals=None)
runeval(expression, globals=None, locals=None)
runcall(function, *args, **kwds)
set_trace()
See the documentation for the functions explained above. | python.library.pdb#pdb.Pdb.runeval |
run(statement, globals=None, locals=None)
runeval(expression, globals=None, locals=None)
runcall(function, *args, **kwds)
set_trace()
See the documentation for the functions explained above. | python.library.pdb#pdb.Pdb.set_trace |
pdb.pm()
Enter post-mortem debugging of the traceback found in sys.last_traceback. | python.library.pdb#pdb.pm |
pdb.post_mortem(traceback=None)
Enter post-mortem debugging of the given traceback object. If no traceback is given, it uses the one of the exception that is currently being handled (an exception must be being handled if the default is to be used). | python.library.pdb#pdb.post_mortem |
pdb.run(statement, globals=None, locals=None)
Execute the statement (given as a string or a code object) under debugger control. The debugger prompt appears before any code is executed; you can set breakpoints and type continue, or you can step through the statement using step or next (all these commands are explaine... | python.library.pdb#pdb.run |
pdb.runcall(function, *args, **kwds)
Call the function (a function or method object, not a string) with the given arguments. When runcall() returns, it returns whatever the function call returned. The debugger prompt appears as soon as the function is entered. | python.library.pdb#pdb.runcall |
pdb.runeval(expression, globals=None, locals=None)
Evaluate the expression (given as a string or a code object) under debugger control. When runeval() returns, it returns the value of the expression. Otherwise this function is similar to run(). | python.library.pdb#pdb.runeval |
pdb.set_trace(*, header=None)
Enter the debugger at the calling stack frame. This is useful to hard-code a breakpoint at a given point in a program, even if the code is not otherwise being debugged (e.g. when an assertion fails). If given, header is printed to the console just before debugging begins. Changed in ver... | python.library.pdb#pdb.set_trace |
exception PendingDeprecationWarning
Base class for warnings about features which are obsolete and expected to be deprecated in the future, but are not deprecated at the moment. This class is rarely used as emitting a warning about a possible upcoming deprecation is unusual, and DeprecationWarning is preferred for alr... | python.library.exceptions#PendingDeprecationWarning |
exception PermissionError
Raised when trying to run an operation without the adequate access rights - for example filesystem permissions. Corresponds to errno EACCES and EPERM. | python.library.exceptions#PermissionError |
pickle — Python object serialization Source code: Lib/pickle.py The pickle module implements binary protocols for serializing and de-serializing a Python object structure. “Pickling” is the process whereby a Python object hierarchy is converted into a byte stream, and “unpickling” is the inverse operation, whereby a by... | python.library.pickle |
pickle.DEFAULT_PROTOCOL
An integer, the default protocol version used for pickling. May be less than HIGHEST_PROTOCOL. Currently the default protocol is 4, first introduced in Python 3.4 and incompatible with previous versions. Changed in version 3.0: The default protocol is 3. Changed in version 3.8: The default ... | python.library.pickle#pickle.DEFAULT_PROTOCOL |
pickle.dump(obj, file, protocol=None, *, fix_imports=True, buffer_callback=None)
Write the pickled representation of the object obj to the open file object file. This is equivalent to Pickler(file, protocol).dump(obj). Arguments file, protocol, fix_imports and buffer_callback have the same meaning as in the Pickler c... | python.library.pickle#pickle.dump |
pickle.dumps(obj, protocol=None, *, fix_imports=True, buffer_callback=None)
Return the pickled representation of the object obj as a bytes object, instead of writing it to a file. Arguments protocol, fix_imports and buffer_callback have the same meaning as in the Pickler constructor. Changed in version 3.8: The buff... | python.library.pickle#pickle.dumps |
pickle.HIGHEST_PROTOCOL
An integer, the highest protocol version available. This value can be passed as a protocol value to functions dump() and dumps() as well as the Pickler constructor. | python.library.pickle#pickle.HIGHEST_PROTOCOL |
pickle.load(file, *, fix_imports=True, encoding="ASCII", errors="strict", buffers=None)
Read the pickled representation of an object from the open file object file and return the reconstituted object hierarchy specified therein. This is equivalent to Unpickler(file).load(). The protocol version of the pickle is detec... | python.library.pickle#pickle.load |
pickle.loads(data, /, *, fix_imports=True, encoding="ASCII", errors="strict", buffers=None)
Return the reconstituted object hierarchy of the pickled representation data of an object. data must be a bytes-like object. The protocol version of the pickle is detected automatically, so no protocol argument is needed. Byte... | python.library.pickle#pickle.loads |
class pickle.PickleBuffer(buffer)
A wrapper for a buffer representing picklable data. buffer must be a buffer-providing object, such as a bytes-like object or a N-dimensional array. PickleBuffer is itself a buffer provider, therefore it is possible to pass it to other APIs expecting a buffer-providing object, such as... | python.library.pickle#pickle.PickleBuffer |
raw()
Return a memoryview of the memory area underlying this buffer. The returned object is a one-dimensional, C-contiguous memoryview with format B (unsigned bytes). BufferError is raised if the buffer is neither C- nor Fortran-contiguous. | python.library.pickle#pickle.PickleBuffer.raw |
release()
Release the underlying buffer exposed by the PickleBuffer object. | python.library.pickle#pickle.PickleBuffer.release |
exception pickle.PickleError
Common base class for the other pickling exceptions. It inherits Exception. | python.library.pickle#pickle.PickleError |
class pickle.Pickler(file, protocol=None, *, fix_imports=True, buffer_callback=None)
This takes a binary file for writing a pickle data stream. The optional protocol argument, an integer, tells the pickler to use the given protocol; supported protocols are 0 to HIGHEST_PROTOCOL. If not specified, the default is DEFAU... | python.library.pickle#pickle.Pickler |
dispatch_table
A pickler object’s dispatch table is a registry of reduction functions of the kind which can be declared using copyreg.pickle(). It is a mapping whose keys are classes and whose values are reduction functions. A reduction function takes a single argument of the associated class and should conform to th... | python.library.pickle#pickle.Pickler.dispatch_table |
dump(obj)
Write the pickled representation of obj to the open file object given in the constructor. | python.library.pickle#pickle.Pickler.dump |
fast
Deprecated. Enable fast mode if set to a true value. The fast mode disables the usage of memo, therefore speeding the pickling process by not generating superfluous PUT opcodes. It should not be used with self-referential objects, doing otherwise will cause Pickler to recurse infinitely. Use pickletools.optimize... | python.library.pickle#pickle.Pickler.fast |
persistent_id(obj)
Do nothing by default. This exists so a subclass can override it. If persistent_id() returns None, obj is pickled as usual. Any other value causes Pickler to emit the returned value as a persistent ID for obj. The meaning of this persistent ID should be defined by Unpickler.persistent_load(). Note ... | python.library.pickle#pickle.Pickler.persistent_id |
reducer_override(self, obj)
Special reducer that can be defined in Pickler subclasses. This method has priority over any reducer in the dispatch_table. It should conform to the same interface as a __reduce__() method, and can optionally return NotImplemented to fallback on dispatch_table-registered reducers to pickle... | python.library.pickle#pickle.Pickler.reducer_override |
exception pickle.PicklingError
Error raised when an unpicklable object is encountered by Pickler. It inherits PickleError. Refer to What can be pickled and unpickled? to learn what kinds of objects can be pickled. | python.library.pickle#pickle.PicklingError |
class pickle.Unpickler(file, *, fix_imports=True, encoding="ASCII", errors="strict", buffers=None)
This takes a binary file for reading a pickle data stream. The protocol version of the pickle is detected automatically, so no protocol argument is needed. The argument file must have three methods, a read() method that... | python.library.pickle#pickle.Unpickler |
find_class(module, name)
Import module if necessary and return the object called name from it, where the module and name arguments are str objects. Note, unlike its name suggests, find_class() is also used for finding functions. Subclasses may override this to gain control over what type of objects and how they can b... | python.library.pickle#pickle.Unpickler.find_class |
load()
Read the pickled representation of an object from the open file object given in the constructor, and return the reconstituted object hierarchy specified therein. Bytes past the pickled representation of the object are ignored. | python.library.pickle#pickle.Unpickler.load |
persistent_load(pid)
Raise an UnpicklingError by default. If defined, persistent_load() should return the object specified by the persistent ID pid. If an invalid persistent ID is encountered, an UnpicklingError should be raised. See Persistence of External Objects for details and examples of uses. | python.library.pickle#pickle.Unpickler.persistent_load |
exception pickle.UnpicklingError
Error raised when there is a problem unpickling an object, such as a data corruption or a security violation. It inherits PickleError. Note that other exceptions may also be raised during unpickling, including (but not necessarily limited to) AttributeError, EOFError, ImportError, and... | python.library.pickle#pickle.UnpicklingError |
pickletools — Tools for pickle developers Source code: Lib/pickletools.py This module contains various constants relating to the intimate details of the pickle module, some lengthy comments about the implementation, and a few useful functions for analyzing pickled data. The contents of this module are useful for Python... | python.library.pickletools |
pickletools.dis(pickle, out=None, memo=None, indentlevel=4, annotate=0)
Outputs a symbolic disassembly of the pickle to the file-like object out, defaulting to sys.stdout. pickle can be a string or a file-like object. memo can be a Python dictionary that will be used as the pickle’s memo; it can be used to perform di... | python.library.pickletools#pickletools.dis |
pickletools.genops(pickle)
Provides an iterator over all of the opcodes in a pickle, returning a sequence of (opcode, arg, pos) triples. opcode is an instance of an OpcodeInfo class; arg is the decoded value, as a Python object, of the opcode’s argument; pos is the position at which this opcode is located. pickle can... | python.library.pickletools#pickletools.genops |
pickletools.optimize(picklestring)
Returns a new equivalent pickle string after eliminating unused PUT opcodes. The optimized pickle is shorter, takes less transmission time, requires less storage space, and unpickles more efficiently. | python.library.pickletools#pickletools.optimize |
pipes — Interface to shell pipelines Source code: Lib/pipes.py The pipes module defines a class to abstract the concept of a pipeline — a sequence of converters from one file to another. Because the module uses /bin/sh command lines, a POSIX or compatible shell for os.system() and os.popen() is required. The pipes modu... | python.library.pipes |
class pipes.Template
An abstraction of a pipeline. | python.library.pipes#pipes.Template |
Template.append(cmd, kind)
Append a new action at the end. The cmd variable must be a valid bourne shell command. The kind variable consists of two letters. The first letter can be either of '-' (which means the command reads its standard input), 'f' (which means the commands reads a given file on the command line) o... | python.library.pipes#pipes.Template.append |
Template.clone()
Return a new, equivalent, pipeline template. | python.library.pipes#pipes.Template.clone |
Template.copy(infile, outfile)
Copy infile to outfile through the pipe. | python.library.pipes#pipes.Template.copy |
Template.debug(flag)
If flag is true, turn debugging on. Otherwise, turn debugging off. When debugging is on, commands to be executed are printed, and the shell is given set -x command to be more verbose. | python.library.pipes#pipes.Template.debug |
Template.open(file, mode)
Return a file-like object, open to file, but read from or written to by the pipeline. Note that only one of 'r', 'w' may be given. | python.library.pipes#pipes.Template.open |
Template.prepend(cmd, kind)
Add a new action at the beginning. See append() for explanations of the arguments. | python.library.pipes#pipes.Template.prepend |
Template.reset()
Restore a pipeline template to its initial state. | python.library.pipes#pipes.Template.reset |
pkgutil — Package extension utility Source code: Lib/pkgutil.py This module provides utilities for the import system, in particular package support.
class pkgutil.ModuleInfo(module_finder, name, ispkg)
A namedtuple that holds a brief summary of a module’s info. New in version 3.6.
pkgutil.extend_path(path, na... | python.library.pkgutil |
pkgutil.extend_path(path, name)
Extend the search path for the modules which comprise a package. Intended use is to place the following code in a package’s __init__.py: from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
This will add to the package’s __path__ all subdirectories of directories... | python.library.pkgutil#pkgutil.extend_path |
pkgutil.find_loader(fullname)
Retrieve a module loader for the given fullname. This is a backwards compatibility wrapper around importlib.util.find_spec() that converts most failures to ImportError and only returns the loader rather than the full ModuleSpec. Changed in version 3.3: Updated to be based directly on im... | python.library.pkgutil#pkgutil.find_loader |
pkgutil.get_data(package, resource)
Get a resource from a package. This is a wrapper for the loader get_data API. The package argument should be the name of a package, in standard module format (foo.bar). The resource argument should be in the form of a relative filename, using / as the path separator. The parent dir... | python.library.pkgutil#pkgutil.get_data |
pkgutil.get_importer(path_item)
Retrieve a finder for the given path_item. The returned finder is cached in sys.path_importer_cache if it was newly created by a path hook. The cache (or part of it) can be cleared manually if a rescan of sys.path_hooks is necessary. Changed in version 3.3: Updated to be based directl... | python.library.pkgutil#pkgutil.get_importer |
pkgutil.get_loader(module_or_name)
Get a loader object for module_or_name. If the module or package is accessible via the normal import mechanism, a wrapper around the relevant part of that machinery is returned. Returns None if the module cannot be found or imported. If the named module is not already imported, its ... | python.library.pkgutil#pkgutil.get_loader |
class pkgutil.ImpImporter(dirname=None)
PEP 302 Finder that wraps Python’s “classic” import algorithm. If dirname is a string, a PEP 302 finder is created that searches that directory. If dirname is None, a PEP 302 finder is created that searches the current sys.path, plus any modules that are frozen or built-in. Not... | python.library.pkgutil#pkgutil.ImpImporter |
class pkgutil.ImpLoader(fullname, file, filename, etc)
Loader that wraps Python’s “classic” import algorithm. Deprecated since version 3.3: This emulation is no longer needed, as the standard import mechanism is now fully PEP 302 compliant and available in importlib. | python.library.pkgutil#pkgutil.ImpLoader |
pkgutil.iter_importers(fullname='')
Yield finder objects for the given module name. If fullname contains a ‘.’, the finders will be for the package containing fullname, otherwise they will be all registered top level finders (i.e. those on both sys.meta_path and sys.path_hooks). If the named module is in a package, t... | python.library.pkgutil#pkgutil.iter_importers |
pkgutil.iter_modules(path=None, prefix='')
Yields ModuleInfo for all submodules on path, or, if path is None, all top-level modules on sys.path. path should be either None or a list of paths to look for modules in. prefix is a string to output on the front of every module name on output. Note Only works for a finder... | python.library.pkgutil#pkgutil.iter_modules |
class pkgutil.ModuleInfo(module_finder, name, ispkg)
A namedtuple that holds a brief summary of a module’s info. New in version 3.6. | python.library.pkgutil#pkgutil.ModuleInfo |
pkgutil.resolve_name(name)
Resolve a name to an object. This functionality is used in numerous places in the standard library (see bpo-12915) - and equivalent functionality is also in widely used third-party packages such as setuptools, Django and Pyramid. It is expected that name will be a string in one of the follo... | python.library.pkgutil#pkgutil.resolve_name |
pkgutil.walk_packages(path=None, prefix='', onerror=None)
Yields ModuleInfo for all modules recursively on path, or, if path is None, all accessible modules. path should be either None or a list of paths to look for modules in. prefix is a string to output on the front of every module name on output. Note that this f... | python.library.pkgutil#pkgutil.walk_packages |
platform — Access to underlying platform’s identifying data Source code: Lib/platform.py Note Specific platforms listed alphabetically, with Linux included in the Unix section. Cross Platform
platform.architecture(executable=sys.executable, bits='', linkage='')
Queries the given executable (defaults to the Python... | python.library.platform |
platform.architecture(executable=sys.executable, bits='', linkage='')
Queries the given executable (defaults to the Python interpreter binary) for various architecture information. Returns a tuple (bits, linkage) which contain information about the bit architecture and the linkage format used for the executable. Both... | python.library.platform#platform.architecture |
platform.java_ver(release='', vendor='', vminfo=('', '', ''), osinfo=('', '', ''))
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 s... | python.library.platform#platform.java_ver |
platform.libc_ver(executable=sys.executable, lib='', version='', chunksize=16384)
Tries to determine the libc version against which the file executable (defaults to the Python interpreter) is linked. Returns a tuple of strings (lib,
version) which default to the given parameters in case the lookup fails. Note that th... | python.library.platform#platform.libc_ver |
platform.machine()
Returns the machine type, e.g. 'i386'. An empty string is returned if the value cannot be determined. | python.library.platform#platform.machine |
platform.mac_ver(release='', versioninfo=('', '', ''), machine='')
Get Mac OS 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 ''. All tuple entries are strings. | python.library.platform#platform.mac_ver |
platform.node()
Returns the computer’s network name (may not be fully qualified!). An empty string is returned if the value cannot be determined. | python.library.platform#platform.node |
platform.platform(aliased=0, terse=0)
Returns a single string identifying the underlying platform with as much useful information as possible. 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 ... | python.library.platform#platform.platform |
platform.processor()
Returns the (real) 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(). NetBSD does this. | python.library.platform#platform.processor |
platform.python_branch()
Returns a string identifying the Python implementation SCM branch. | python.library.platform#platform.python_branch |
platform.python_build()
Returns a tuple (buildno, builddate) stating the Python build number and date as strings. | python.library.platform#platform.python_build |
platform.python_compiler()
Returns a string identifying the compiler used for compiling Python. | python.library.platform#platform.python_compiler |
platform.python_implementation()
Returns a string identifying the Python implementation. Possible return values are: ‘CPython’, ‘IronPython’, ‘Jython’, ‘PyPy’. | python.library.platform#platform.python_implementation |
platform.python_revision()
Returns a string identifying the Python implementation SCM revision. | python.library.platform#platform.python_revision |
platform.python_version()
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). | python.library.platform#platform.python_version |
platform.python_version_tuple()
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'). | python.library.platform#platform.python_version_tuple |
platform.release()
Returns the system’s release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. | python.library.platform#platform.release |
platform.system()
Returns the system/OS name, such as 'Linux', 'Darwin', 'Java', 'Windows'. An empty string is returned if the value cannot be determined. | python.library.platform#platform.system |
platform.system_alias(system, release, version)
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. | python.library.platform#platform.system_alias |
platform.uname()
Fairly portable uname interface. Returns a namedtuple() containing six attributes: system, node, release, version, machine, and processor. Note that this adds a sixth attribute (processor) not present in the os.uname() result. Also, the attribute names are different for the first two attributes; os.u... | python.library.platform#platform.uname |
platform.version()
Returns the system’s release version, e.g. '#3 on degas'. An empty string is returned if the value cannot be determined. | python.library.platform#platform.version |
platform.win32_edition()
Returns a string representing the current Windows edition. Possible values include but are not limited to 'Enterprise', 'IoTUAP', 'ServerStandard', and 'nanoserver'. New in version 3.8. | python.library.platform#platform.win32_edition |
platform.win32_is_iot()
Return True if the Windows edition returned by win32_edition() is recognized as an IoT edition. New in version 3.8. | python.library.platform#platform.win32_is_iot |
platform.win32_ver(release='', version='', csd='', ptype='')
Get additional version information from the Windows Registry and return a tuple (release, version, csd, ptype) referring to OS release, version number, CSD level (service pack) and OS type (multi/single processor). As a hint: ptype is 'Uniprocessor Free' on... | python.library.platform#platform.win32_ver |
plistlib — Generate and parse Apple .plist files Source code: Lib/plistlib.py This module provides an interface for reading and writing the “property list” files used by Apple, primarily on macOS and iOS. This module supports both binary and XML plist files. The property list (.plist) file format is a simple serializat... | python.library.plistlib |
plistlib.dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False)
Write value to a plist file. Fp should be a writable, binary file object. The fmt argument specifies the format of the plist file and can be one of the following values:
FMT_XML: XML formatted plist file
FMT_BINARY: Binary formatted plist fil... | python.library.plistlib#plistlib.dump |
plistlib.dumps(value, *, fmt=FMT_XML, sort_keys=True, skipkeys=False)
Return value as a plist-formatted bytes object. See the documentation for dump() for an explanation of the keyword arguments of this function. New in version 3.4. | python.library.plistlib#plistlib.dumps |
plistlib.FMT_BINARY
The binary format for plist files New in version 3.4. | python.library.plistlib#plistlib.FMT_BINARY |
plistlib.FMT_XML
The XML format for plist files. New in version 3.4. | python.library.plistlib#plistlib.FMT_XML |
plistlib.load(fp, *, fmt=None, dict_type=dict)
Read a plist file. fp should be a readable and binary file object. Return the unpacked root object (which usually is a dictionary). The fmt is the format of the file and the following values are valid:
None: Autodetect the file format
FMT_XML: XML file format
FMT_BIN... | python.library.plistlib#plistlib.load |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.