- Two benchmark scripts,
iobenchandccbench, were added to theToolsdirectory.iobenchmeasures the speed of the built-in file I/O objects returned byopen()while performing various operations, andccbenchis a concurrency benchmark that tries to measure computing throughput, thread switching latency, and IO processing bandwidth when performing several tasks using a varying number of threads. - The
Tools/i18n/msgfmt.pyscript now understands plural forms in.pofiles. (Fixed by Martin von Löwis; bpo-5464.) - When importing a module from a
.pycor.pyofile with an existing.pycounterpart, theco_filenameattributes of the resulting code objects are overwritten when the original filename is obsolete. This can happen if the file has been renamed, moved, or is accessed through different paths. (Patch by Ziga Seilnacht and Jean-Paul Calderone; bpo-1180193.) - The
regrtest.pyscript now takes a--randseed=switch that takes an integer that will be used as the random seed for the-roption that executes tests in random order. The-roption also reports the seed that was used (Added by Collin Winter.) - Another
regrtest.pyswitch is-j, which takes an integer specifying how many tests run in parallel. This allows reducing the total runtime on multi-core machines. This option is compatible with several other options, including the-Rswitch which is known to produce long runtimes. (Added by Antoine Pitrou, bpo-6152.) This can also be used with a new-Fswitch that runs selected tests in a loop until they fail. (Added by Antoine Pitrou; bpo-7312.) - When executed as a script, the
py_compile.pymodule now accepts'-'as an argument, which will read standard input for the list of filenames to be compiled. (Contributed by Piotr Ożarowski; bpo-8233.)
Wednesday, 13 June 2018
Python Other Changes and Fixes
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment