@@ -17,6 +17,7 @@ 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,
1717faq/programming ,, :: , for x in sequence[::-1]:
1818faq/programming ,, :reduce , " print((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,"
1919faq/programming ,, :reduce , " Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,"
20+ faq/windows ,, :bd8afb90ebf2 , " Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32"
2021faq/windows , 229 , :EOF , @setlocal enableextensions & python -x %~f0 %* & goto :EOF
2122faq/windows , 393 , :REG , .py :REG_SZ: c:\<path to python>\python.exe -u %s %s
2223howto/cporting ,, :add , " if (!PyArg_ParseTuple(args, "" ii:add_ints"" , &one, &two))"
@@ -68,6 +69,13 @@ howto/ipaddress,,:db8,'2001:db8::'
6869howto/ipaddress ,, :: , '2001:db8::'
6970howto/ipaddress ,, :db8 , '2001:db8::/96'
7071howto/ipaddress ,, :: , '2001:db8::/96'
72+ howto/ipaddress ,, :db8 , >>> ipaddress.ip_interface('2001:db8::1/96')
73+ howto/ipaddress ,, :: , >>> ipaddress.ip_interface('2001:db8::1/96')
74+ howto/ipaddress ,, :db8 , '2001:db8::1'
75+ howto/ipaddress ,, :: , '2001:db8::1'
76+ howto/ipaddress ,, :db8 , IPv6Address('2001:db8::ffff:ffff')
77+ howto/ipaddress ,, :: , IPv6Address('2001:db8::ffff:ffff')
78+ howto/ipaddress ,, :ffff , IPv6Address('2001:db8::ffff:ffff')
7179howto/logging ,, :And , " WARNING:And this, too"
7280howto/logging ,, :And , " WARNING:root:And this, too"
7381howto/logging ,, :Doing , INFO:root:Doing something
@@ -99,6 +107,7 @@ howto/webservers,,.. image:,.. image:: http.png
99107library/audioop ,, :ipos , " # factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],"
100108library/bisect , 32 , :hi , all(val >= x for val in a[i:hi])
101109library/bisect , 42 , :hi , all(val > x for val in a[i:hi])
110+ library/concurrent.futures ,, :url , " future_to_url = {executor.submit(load_url, url, 60):url for url in URLS}"
102111library/configparser ,, :home , my_dir: ${Common:home_dir}/twosheds
103112library/configparser ,, :option , ${section:option}
104113library/configparser ,, :path , python_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python}
@@ -120,6 +129,7 @@ library/dis,,`,TOS = `TOS`
120129library/doctest ,, ` , ``factorial`` from the ``example`` module:
121130library/doctest ,, ` , The ``example`` module
122131library/doctest ,, ` , Using ``factorial``
132+ library/exceptions ,, :err , err.object[err.start:err.end]
123133library/functions ,, :step , a[start:stop:step]
124134library/functions ,, :stop , " a[start:stop, i]"
125135library/functions ,, :stop , a[start:stop:step]
@@ -221,6 +231,7 @@ library/pdb,,:lineno,filename:lineno
221231library/pdb ,, :lineno , [filename:lineno | bpnumber [bpnumber ...]]
222232library/pickle ,, :memory , " conn = sqlite3.connect("" :memory:"" )"
223233library/posix ,, ` , " CFLAGS="" `getconf LFS_CFLAGS`"" OPT="" -g -O2 $CFLAGS"" "
234+ library/pprint ,, :: , " 'Programming Language :: Python :: 2 :: Only'],"
224235library/pprint , 209 , :: , " 'classifiers': ['Development Status :: 4 - Beta',"
225236library/pprint , 209 , :: , " 'Intended Audience :: Developers',"
226237library/pprint , 209 , :: , " 'License :: OSI Approved :: MIT License',"
@@ -248,6 +259,7 @@ library/sqlite3,,:age,"cur.execute(""select * from people where name_last=:who a
248259library/sqlite3 ,, :age , " select name_last, age from people where name_last=:who and age=:age"
249260library/sqlite3 ,, :memory ,
250261library/sqlite3 ,, :who , " cur.execute("" select * from people where name_last=:who and age=:age"" , {"" who"" : who, "" age"" : age})"
262+ library/sqlite3 ,, :path , " db = sqlite3.connect('file:path/to/database?mode=ro', uri=True)"
251263library/ssl ,, :My , " Organizational Unit Name (eg, section) []:My Group"
252264library/ssl ,, :My , " Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc."
253265library/ssl ,, :myserver , " Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com"
@@ -280,6 +292,10 @@ library/urllib.request,,:close,Connection:close
280292library/urllib.request ,, :lang , " xmlns="" http://www.w3.org/1999/xhtml"" xml:lang="" en"" lang="" en"" >\n\n<head>\n"
281293library/urllib.request ,, :password , " "" joe:[email protected] "" " 282294library/uuid ,, :uuid , urn:uuid:12345678-1234-5678-1234-567812345678
295+ library/venv ,, :param , " :param nodist: If True, Distribute is not installed into the created"
296+ library/venv ,, :param , " :param nopip: If True, pip is not installed into the created"
297+ library/venv ,, :param , " :param progress: If Distribute or pip are installed, the progress of the"
298+ library/venv ,, :param , :param context: The information for the environment creation request
283299library/xmlrpc.client ,, :pass , http://user:pass@host:port/path
284300library/xmlrpc.client ,, :pass , user:pass
285301library/xmlrpc.client ,, :port , http://user:pass@host:port/path
@@ -357,6 +373,13 @@ whatsnew/3.2,,:location,... zope9-location = ${zope9:location}
357373whatsnew/3.2 ,, :location , zope9-location = ${zope9:location}
358374whatsnew/3.2 ,, :prefix , ... zope-conf = ${custom:prefix}/etc/zope.conf
359375whatsnew/3.2 ,, :prefix , zope-conf = ${custom:prefix}/etc/zope.conf
376+ whatsnew/changelog ,, :platform , :platform:
377+ whatsnew/changelog ,, :password , : Unquote before b64encoding user:password during Basic
378+ whatsnew/changelog ,, :close , Connection:close header.
379+ whatsnew/changelog ,, :PythonCmd , " With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused"
380+ whatsnew/changelog ,, :close , : Connection:close header is sent by requests using URLOpener
381+ whatsnew/changelog ,, :: , " : Fix FTP tests for IPv6, bind to "" ::1"" instead of "" localhost"" ."
382+ whatsnew/changelog ,, :test , : test_subprocess:test_leaking_fds_on_error no longer gives a
360383whatsnew/news ,, :platform , :platform:
361384whatsnew/news ,, :password , : Unquote before b64encoding user:password during Basic
362385whatsnew/news ,, :close , Connection:close header.
0 commit comments