Commit Graph

4298 Commits

Author SHA1 Message Date
Victor Stinner 464a098160 PEP 418: Replace "Precision in Python" with "Python Resolution" 2012-04-24 00:14:51 +02:00
Victor Stinner 3c3c2f09d4 PEP 418: Rename clock_precision.py to clock_resolution.py 2012-04-24 00:12:53 +02:00
Benjamin Peterson 26626f4c0c finalize pep 412 2012-04-23 11:28:28 -04:00
Raymond Hettinger c0b1eb3d65 Restore the prohibition against using function annotations in the standard library.
At Guido's request, added notes regarding issues observed with various developer's
early attempts to use function annotations.
2012-04-22 21:32:34 -07:00
Victor Stinner 4535decca5 PEP 418: Stephen J. Turnbull's patch 3: complete the Glossary 2012-04-21 21:25:00 +02:00
Victor Stinner 323e44fb09 PEP 418: Stephen J. Turnbull's patch 2: english 2012-04-21 21:18:13 +02:00
Victor Stinner 9137ddbec3 PEP 418: Stephen J. Turnbull's patch: typos 2012-04-21 21:16:37 +02:00
Victor Stinner d0166c382d PEP 418: List limitations of this PEP 2012-04-21 02:36:52 +02:00
Eric V. Smith 1802251773 Grammar improvement. 2012-04-20 09:22:25 -04:00
Eric V. Smith 35b91f08b9 More backticks. 2012-04-20 08:35:55 -04:00
Eric V. Smith e494078006 Fix references to extend_path and declare_namespace. Also make it clearer that these functions don't need to be removed: they just won't be needed for implicit namespace packages. 2012-04-20 08:18:01 -04:00
Eric V. Smith 7699a85f3d It's finders and loaders that will be impacted. 2012-04-20 08:11:56 -04:00
Eric V. Smith 497d6b8f78 Cleanup. Add double backticks where needed. 2012-04-20 06:29:55 -04:00
Eric V. Smith 661887ade7 Another improvement by Nick: a better description of splitting portions among multiple directories. 2012-04-20 06:20:24 -04:00
Eric V. Smith ce4af70258 Improved paragraph on __path__ recalculation. Suggested by Nick Coglan. 2012-04-20 06:15:03 -04:00
Eric V. Smith 2280b40e6a ImportError -> ImportWarning. 2012-04-20 04:51:07 -04:00
Eric V. Smith 2cc4d29794 Note that ImportError will no longer be raised due to a missing __init__.py file. 2012-04-19 18:56:22 -04:00
Eric V. Smith 97b3e45cff Grammar fixes by Brett Cannon. 2012-04-19 18:10:05 -04:00
Victor Stinner bfcd81b80e PEP 418: Patch bench_time.c to support systems without clock_gettime() 2012-04-19 23:26:51 +02:00
Eric V. Smith a0e363488b Merge heads. 2012-04-19 16:17:45 -04:00
Eric V. Smith 068205c7bb Added PEP 420. Thanks to MvL. Much of the text comes from PEP 382 and his recap of the PyCon discussion. 2012-04-19 16:16:16 -04:00
Barry Warsaw 5ca34439af Guido suggests alternative language for whitespace around operators. 2012-04-19 13:42:24 -04:00
Martin v. Löwis cefcfb8196 Configure docutils to use hg as CVS. 2012-04-19 10:32:50 +02:00
Victor Stinner d81d6016ba PEP 418: typo 2012-04-19 02:48:56 +02:00
Victor Stinner 542e684d78 PEP 418: Minor updates 2012-04-19 02:47:52 +02:00
Victor Stinner be3cb55aaf PEP 418: Fix bench_time.c
It may not affect the result because the benchmark is run 5 times
2012-04-19 01:41:35 +02:00
Victor Stinner e1d068556d PEP 418: Add link to benchmarking programs used to fill tables 2012-04-19 01:28:22 +02:00
Victor Stinner 636c74aeca PEP 418: Replace definitions of Accuracy, Precision and Resolution in the
glossary with Stephen J. Turnbull's definitions
2012-04-19 01:12:50 +02:00
Benjamin Peterson 4ab4616c4a comma 2012-04-18 18:25:59 -04:00
Victor Stinner b839dc7b7b PEP 418: Rerun all benchmarks for the "Precision in Python" column 2012-04-18 23:59:02 +02:00
Victor Stinner 0dcc3e959d PEP 418: clock_precision.py was wrong, recompute all "Precision in Python" 2012-04-18 22:49:58 +02:00
Victor Stinner 017c74ca0c PEP 418: Add a link to the Twisted monotonic clock issue
Reformat also "System Standby" section
2012-04-18 02:55:50 +02:00
Victor Stinner 9d58bea354 PEP 418: Fix pseudo-code of time.monotonic() on Mac OS X 2012-04-18 01:55:21 +02:00
Victor Stinner 107c498e3f PEP 418: Fix time.monotonic() pseudo-code for Mac
Use sys.platform, not os.name
2012-04-18 01:43:26 +02:00
Victor Stinner 54e4d4ccca PEP 418: time.process_time() uses CLOCK_PROF if available 2012-04-18 01:34:26 +02:00
Victor Stinner d506f12dc1 PEP 418: complete/update tables for OpenBSD and Windows 2012-04-18 01:14:38 +02:00
Victor Stinner 83d406250f PEP 418: Oops, fix typo in last commit 2012-04-18 00:39:39 +02:00
Victor Stinner 64a87deb1f PEP 418: Fix clock_precision.py, time.monotonic() is not always present 2012-04-18 00:39:03 +02:00
Victor Stinner 38da45e1bb PEP 418: Add benchmark results of Mac OS 10.6
Fix also clock_precision.py: catch clock_gettime() errors
2012-04-17 23:59:33 +02:00
Victor Stinner e80b7c5d8b PEP 418: clock_precision.py only uses ASCII to avoid UnicodeEncodeError on print() 2012-04-17 23:40:47 +02:00
Victor Stinner dba42c97a3 PEP 418: cleanup pseudo-code; mention clock_getcpuclockid()
* Write _win_perf_counter() to factorize and simplify clock() and
   process_time() pseudo-code
 * Don't use os.times() but _time.times() to not have to check for the platform
 * clock() retries QueryPerformanceCounter() each time it is called, even if
   it failed
2012-04-17 13:42:05 +02:00
Victor Stinner fbab510ea2 PEP 418: time.perf_counter() is always available 2012-04-16 13:58:24 +02:00
Victor Stinner 93f8b5eb63 PEP 418: Add two alternative names for time.perf_counter() 2012-04-16 13:53:24 +02:00
Victor Stinner c8d84d52b8 PEP 418: Add link to the "gettimeofday() should never be used to measure time" article
Mention also authors of other links.
2012-04-16 12:33:05 +02:00
Victor Stinner eb118a65fe PEP 416: Mention the new types.MappingProxyType added to Python 3.3 2012-04-16 01:05:52 +02:00
Victor Stinner f05753e8a3 PEP 418
* time.perf_counter() is not necessary monotonic; format code
 * Replace system clock by system time to reuse the expression of the glossary
 * If CLOCK_HIGHRES is available, time.monotonic() only uses it and does not
   fallback to CLOCK_MONOTONIC because CLOCK_MONOTONIC may not be available
   at the same time
 * Rewrite time.perf_counter(), time.process_time() and time.time() doc
 * Reorder "fallback to system time" alternatives
2012-04-15 17:06:07 +02:00
Victor Stinner 539ae6b9ea PEP 418: Add last comments
* Indicate if a clock is system-wide or process-wide
 * Add time.metronomic() alternative name
 * Explain why "steady" name was not chosen
2012-04-15 15:39:48 +02:00
Victor Stinner 51b61fa439 PEP 418: Cameron Simpson rewrote the text of his alternative 2012-04-15 11:46:01 +02:00
Victor Stinner b6f2709957 PEP 418: Cleanup the Process Time table 2012-04-14 02:45:49 +02:00
Victor Stinner e7dd82585b PEP 418: Reorganize sections, move Alternatives after Python functions 2012-04-14 02:26:35 +02:00