You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 KiB

c-api/arg:refPyArg_ParseTuple(args, "O|O:ref", &object, &callback)
c-api/list:highlist[low:high]
c-api/sequence:i2del o[i1:i2]
c-api/sequence:i2o[i1:i2]
c-api/unicode:endstr[start:end]
c-api/unicode:startunicode[start:start+length]
distutils/examples267`This is the description of the ``foobar`` package.
distutils/setupscript::
extending/embedding:numargsif(!PyArg_ParseTuple(args, ":numargs"))
extending/extending:myfunctionPyArg_ParseTuple(args, "D:myfunction", &c);
extending/extending:setif (PyArg_ParseTuple(args, "O:set_callback", &temp)) {
extending/newtypes:callif (!PyArg_ParseTuple(args, "sss:call", &arg1, &arg2, &arg3)) {
extending/windows:initspam/export:initspam
faq/programming:chr>=4.0) or 1+f(xc,yc,x*x-y*y+xc,2.0*x*y+yc,k-1,f):f(xc,yc,x,y,k,f):chr(
faq/programming::for x in sequence[::-1]:
faq/programming:reduceprint((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,
faq/programming:reduceSx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,
faq/windows:bd8afb90ebf2Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32
howto/cporting:encodeif (!PyArg_ParseTuple(args, "O:encode_object", &myobj))
howto/cporting:sayif (!PyArg_ParseTuple(args, "U:say_hello", &name))
howto/curses:blackcolors when it activates color mode. They are: 0:black, 1:red,
howto/curses:redcolors when it activates color mode. They are: 0:black, 1:red,
howto/curses:green2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
howto/curses:yellow2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
howto/curses:blue2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
howto/curses:magenta2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
howto/curses:cyan2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
howto/curses:white2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
howto/ipaddress:DB8>>> ipaddress.ip_address('2001:DB8::1')
howto/ipaddress::>>> ipaddress.ip_address('2001:DB8::1')
howto/ipaddress:db8IPv6Address('2001:db8::1')
howto/ipaddress::IPv6Address('2001:db8::1')
howto/ipaddress::IPv6Address('::1')
howto/ipaddress:db8>>> ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress::>>> ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress:db8IPv6Network('2001:db8::/96')
howto/ipaddress::IPv6Network('2001:db8::/96')
howto/ipaddress:db8IPv6Network('2001:db8::/128')
howto/ipaddress::IPv6Network('2001:db8::/128')
howto/ipaddress:db8IPv6Interface('2001:db8::1/96')
howto/ipaddress::IPv6Interface('2001:db8::1/96')
howto/ipaddress:db8>>> addr6 = ipaddress.ip_address('2001:db8::1')
howto/ipaddress::>>> addr6 = ipaddress.ip_address('2001:db8::1')
howto/ipaddress:db8>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
howto/ipaddress::>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
howto/ipaddress:db8>>> net6 = ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress::>>> net6 = ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress:ffffIPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
howto/ipaddress::IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
howto/ipaddress::IPv6Address('::ffff:ffff')
howto/ipaddress:ffffIPv6Address('::ffff:ffff')
howto/ipaddress:db8'2001:db8::/96'
howto/ipaddress::'2001:db8::/96'
howto/ipaddress:db8>>> ipaddress.ip_interface('2001:db8::1/96')
howto/ipaddress::>>> ipaddress.ip_interface('2001:db8::1/96')
howto/ipaddress:db8'2001:db8::1'
howto/ipaddress::'2001:db8::1'
howto/ipaddress:db8IPv6Address('2001:db8::ffff:ffff')
howto/ipaddress::IPv6Address('2001:db8::ffff:ffff')
howto/ipaddress:ffffIPv6Address('2001:db8::ffff:ffff')
howto/logging:AndWARNING:And this, too
howto/logging:AndWARNING:root:And this, too
howto/logging:DoingINFO:root:Doing something
howto/logging:FinishedINFO:root:Finished
howto/logging:loggerseverity:logger name:message
howto/logging:LookWARNING:root:Look before you leap!
howto/logging:messageseverity:logger name:message
howto/logging:rootDEBUG:root:This message should go to the log file
howto/logging:rootINFO:root:Doing something
howto/logging:rootINFO:root:Finished
howto/logging:rootINFO:root:So should this
howto/logging:rootINFO:root:Started
howto/logging:rootWARNING:root:And this, too
howto/logging:rootWARNING:root:Look before you leap!
howto/logging:rootWARNING:root:Watch out!
howto/logging:SoINFO:root:So should this
howto/logging:SoINFO:So should this
howto/logging:StartedINFO:root:Started
howto/logging:ThisDEBUG:root:This message should go to the log file
howto/logging:ThisDEBUG:This message should appear on the console
howto/logging:WatchWARNING:root:Watch out!
howto/pyporting::Programming Language :: Python :: 2
howto/pyporting::Programming Language :: Python :: 3
howto/regex::
howto/regex:foo(?:foo)
howto/urllib2:examplefor example "joe@password:example.com"
library/audioop:ipos# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],
library/bisect32:hiall(val >= x for val in a[i:hi])
library/bisect42:hiall(val > x for val in a[i:hi])
library/configparser:homemy_dir: ${Common:home_dir}/twosheds
library/configparser:option${section:option}
library/configparser:pathpython_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python}
library/configparser:Pythonpython_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python}
library/configparser:systempath: ${Common:system_dir}/Library/Frameworks/
library/datetime:MM
library/datetime:SS
library/decimal:optionaltrailneg:optional trailing minus indicator
library/difflib:ahia[alo:ahi]
library/difflib:bhib[blo:bhi]
library/difflib:i1
library/difflib:i2
library/difflib:j2
library/doctest```factorial`` from the ``example`` module:
library/doctest`The ``example`` module
library/doctest`Using ``factorial``
library/exceptions:errerr.object[err.start:err.end]
library/functions:stepa[start:stop:step]
library/functions:stopa[start:stop, i]
library/functions:stopa[start:stop:step]
library/http.client:porthost:port
library/http.cookies`!#$%&'*+-.^_`|~:
library/imaplib:MM"DD-Mmm-YYYY HH:MM:SS
library/imaplib:SS"DD-Mmm-YYYY HH:MM:SS
library/inspect:int>>> def foo(a, *, b:int, **kwargs):
library/inspect:int'(a, *, b:int, **kwargs)'
library/inspect:int'b:int'
library/ipaddress:db8>>> ipaddress.ip_address('2001:db8::')
library/ipaddress::>>> ipaddress.ip_address('2001:db8::')
library/ipaddress:db8IPv6Address('2001:db8::')
library/ipaddress::IPv6Address('2001:db8::')
library/ipaddress:db8>>> ipaddress.IPv6Address('2001:db8::1000')
library/ipaddress::>>> ipaddress.IPv6Address('2001:db8::1000')
library/ipaddress:db8IPv6Address('2001:db8::1000')
library/ipaddress::IPv6Address('2001:db8::1000')
library/ipaddress:db8>>> ipaddress.ip_address("2001:db8::1").reverse_pointer
library/ipaddress::>>> ipaddress.ip_address("2001:db8::1").reverse_pointer
library/ipaddress::":🔤7:def"
library/ipaddress:def":🔤7:def"
library/ipaddress::::FFFF/96
library/ipaddress::2002::/16
library/ipaddress::2001::/32
library/ipaddress::>>> str(ipaddress.IPv6Address('::1'))
library/ipaddress::'::1'
library/ipaddress:ff00ffff:ff00::
library/ipaddress:db002001:db00::0/24
library/ipaddress::2001:db00::0/24
library/ipaddress:db002001:db00::0/ffff:ff00::
library/ipaddress::2001:db00::0/ffff:ff00::
library/itertools:stepelements from seq[start:stop:step]
library/itertools:stopelements from seq[start:stop:step]
library/linecache:syssys3:3:sys:/dev:/bin/sh
library/logging.handlers:porthost:port
library/mmap:i2obj[i1:i2]
library/multiprocessing`# Add more tasks using `put()`
library/multiprocessing`>>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`
library/multiprocessing`>>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`
library/multiprocessing:queue>>> QueueManager.register('get_queue', callable=lambda:queue)
library/multiprocessing`# register the Foo class; make `f()` and `g()` accessible via proxy
library/multiprocessing`# register the Foo class; make `g()` and `_h()` accessible via proxy
library/multiprocessing`# register the generator function baz; use `GeneratorProxy` to make proxies
library/nntplib:bytes:bytes
library/nntplib:lines:lines
library/optparse:lendel parser.rargs[:len(value)]
library/os.path:fooc:foo
library/pathlib:bar>>> PureWindowsPath('c:/Windows', 'd:bar')
library/pathlib:barPureWindowsPath('d:bar')
library/pathlib:Program>>> PureWindowsPath('c:Program Files/').root
library/pathlib:Program>>> PureWindowsPath('c:Program Files/').anchor
library/pdb:linenofilename:lineno
library/pickle:memoryconn = sqlite3.connect(":memory:")
library/posix`CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS"
library/pprint::'Programming Language :: Python :: 2 :: Only'],
library/pprint::'Programming Language :: Python :: 2.6',
library/pprint::'Programming Language :: Python :: 2.7',
library/profile:linenofilename:lineno(function)
library/pyexpat:elem1<py:elem1 />
library/pyexpat:pyxmlns:py = "http://www.python.org/ns/">
library/smtplib:portmethod must support that as well as a regular host:port
library/socket::(10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]
library/socket::'5aef:2b::8'
library/socket:canreturn (can_id, can_dlc, data[:can_dlc])
library/socket:lenfds.fromstring(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
library/sqlite3:agecur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age})
library/sqlite3:memory
library/sqlite3:whocur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age})
library/sqlite3:pathdb = sqlite3.connect('file:path/to/database?mode=ro', uri=True)
library/ssl:MyOrganizational Unit Name (eg, section) []:My Group
library/ssl:MyOrganization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc.
library/ssl:myserverCommon Name (eg, YOUR name) []:myserver.mygroup.myorganization.com
library/ssl:MyStateState or Province Name (full name) [Some-State]:MyState
library/ssl:opsEmail Address []:ops@myserver.mygroup.myorganization.com
library/ssl:SomeLocality Name (eg, city) []:Some City
library/ssl:USCountry Name (2 letter code) [AU]:US
library/stdtypes::>>> a[::-1].tolist()
library/stdtypes::>>> a[::2].tolist()
library/stdtypes:ends[start:end]
library/stdtypes::>>> hash(v[::-2]) == hash(b'abcefg'[::-2])
library/stdtypes:lens[len(s):len(s)]
library/stdtypes::>>> y = m[::2]
library/stdtypes::>>> z = y[::-2]
library/subprocess`output=`dmesg | grep hda`
library/subprocess`output=`mycmd myarg`
library/tarfile:bz2
library/tarfile:compressionfilemode[:compression]
library/tarfile:gz
library/tarfile:xz'a:xz'
library/tarfile:xz'r:xz'
library/tarfile:xz'w:xz'
library/time:mm
library/time:ss
library/tracemalloc:limitfor index, stat in enumerate(top_stats[:limit], 1):
library/turtle::Example::
library/unittest1412:fooself.assertEqual(cm.output, ['INFO:foo:first message',
library/unittest1412:firstself.assertEqual(cm.output, ['INFO:foo:first message',
library/unittest1412:foo'ERROR:foo.bar:second message'])
library/unittest1412:second'ERROR:foo.bar:second message'])
library/urllib.request:closeConnection:close
library/urllib.request:langxmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n\n<head>\n
library/urllib.request:password"joe:password@python.org"
library/uuid:uuidurn:uuid:12345678-1234-5678-1234-567812345678
library/venv:param:param nodist: If True, setuptools and pip are not installed into the
library/venv:param:param progress: If setuptools or pip are installed, the progress of the
library/venv:param:param nopip: If True, pip is not installed into the created
library/venv:param:param context: The information for the environment creation request
library/xmlrpc.client:passhttp://user:pass@host:port/path
library/xmlrpc.client:passuser:pass
library/xmlrpc.client:porthttp://user:pass@host:port/path
license```Software''), to deal in the Software without restriction, including
license`THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
license`* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
license`THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
license`* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
license`THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
license:zookomailto:zooko@zooko.com
reference/expressions:indexx[index:index]
reference/lexical_analysis`$ ? `
reference/lexical_analysis:fileencoding# vim:fileencoding=<encoding-name>
tutorial/datastructures:valueIt is also possible to delete a key:value
tutorial/datastructures:valuekey:value pairs within the braces adds initial key:value pairs
tutorial/stdlib2:configlogging.warning('Warning:config file %s not found', 'server.conf')
tutorial/stdlib2:configWARNING:root:Warning:config file server.conf not found
tutorial/stdlib2:CriticalCRITICAL:root:Critical error -- shutting down
tutorial/stdlib2:ErrorERROR:root:Error occurred
tutorial/stdlib2:rootCRITICAL:root:Critical error -- shutting down
tutorial/stdlib2:rootERROR:root:Error occurred
tutorial/stdlib2:rootWARNING:root:Warning:config file server.conf not found
tutorial/stdlib2:startextra = data[start:start+extra_size]
tutorial/stdlib2:startfields = struct.unpack('<IIIHH', data[start:start+16])
tutorial/stdlib2:startfilename = data[start:start+filenamesize]
tutorial/stdlib2:WarningWARNING:root:Warning:config file server.conf not found
using/cmdline:categoryaction:message:category:module:line
using/cmdline:errorhandler:errorhandler
using/cmdline:lineaction:message:category:module:line
using/cmdline:linefile:line: category: message
using/cmdline:messageaction:message:category:module:line
using/cmdline:moduleaction:message:category:module:line
using/unix:Packaginghttp://en.opensuse.org/Portal:Packaging
whatsnew/2.0418:len
whatsnew/2.3::
whatsnew/2.3:config
whatsnew/2.3:Critical
whatsnew/2.3:Error
whatsnew/2.3:Problem
whatsnew/2.3:root
whatsnew/2.3:Warning
whatsnew/2.4::
whatsnew/2.4:System
whatsnew/2.5:memory:memory:
whatsnew/2.5:step[start:stop:step]
whatsnew/2.5:stop[start:stop:step]
whatsnew/2.7::ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]',
whatsnew/2.7::>>> urlparse.urlparse('http://[1080::8:800:200C:417A]/foo')
whatsnew/2.7:Sunday'2009:4:Sunday'
whatsnew/2.7:Cookieexport PYTHONWARNINGS=all,error:::Cookie:0
whatsnew/2.7::export PYTHONWARNINGS=all,error:::Cookie:0
whatsnew/3.2:affenetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
whatsnew/3.2:affe>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
whatsnew/3.2:beefnetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
whatsnew/3.2:beef>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
whatsnew/3.2:cafenetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
whatsnew/3.2:cafe>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
whatsnew/3.2:deafnetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
whatsnew/3.2:deaf>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
whatsnew/3.2:directory${buildout:directory}/downloads/dist
whatsnew/3.2::$ export PYTHONWARNINGS='ignore::RuntimeWarning::,once::UnicodeWarning::'
whatsnew/3.2:feednetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
whatsnew/3.2:feed>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
whatsnew/3.2:gz>>> with tarfile.open(name='myarchive.tar.gz', mode='w:gz') as tf:
whatsnew/3.2:locationzope9-location = ${zope9:location}
whatsnew/3.2:prefixzope-conf = ${custom:prefix}/etc/zope.conf
whatsnew/changelog:gz: TarFile opened with external fileobj and "w:gz" mode didn't
whatsnew/changelog::: Use "127.0.0.1" or "::1" instead of "localhost" as much as