aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in Lib/trace.py (GH-24309)Yonatan Goldschmidt2021-02-011-1/+1
|
* bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)Serhiy Storchaka2020-06-281-3/+4
| | | | Fix also a resource warning when store counts and module info.
* bpo-21016: pydoc and trace use sysconfig (GH-18476)Victor Stinner2020-02-121-3/+3
| | | | | | | | bpo-21016, bpo-1294959: The pydoc and trace modules now use the sysconfig module to get the path to the Python standard library, to support uncommon installation path like /usr/lib64/python3.9/ on Fedora. Co-Authored-By: Jan Matějek <jmatejek@suse.com>
* [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)Serhiy Storchaka2019-06-051-17/+1
| | | Turn deprecation warnings added in 3.8 into TypeError.
* Add option to trace to run modules (GH-5134)Mario Corchero2019-06-011-15/+31
| | | | | Adds a new option in trace that allows tracing runnable modules. It is exposed as `--module module_name` as `-m` is already in use for another argument.
* bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705)Serhiy Storchaka2019-05-061-0/+1
|
* bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637)Serhiy Storchaka2019-04-011-1/+16
| | | | | | | | | | | | | | | | | | | | | | Deprecated passing the following arguments as keyword arguments: - "func" in functools.partialmethod(), weakref.finalize(), profile.Profile.runcall(), cProfile.Profile.runcall(), bdb.Bdb.runcall(), trace.Trace.runfunc() and curses.wrapper(). - "function" in unittest.addModuleCleanup() and unittest.TestCase.addCleanup(). - "fn" in the submit() method of concurrent.futures.ThreadPoolExecutor and concurrent.futures.ProcessPoolExecutor. - "callback" in contextlib.ExitStack.callback(), contextlib.AsyncExitStack.callback() and contextlib.AsyncExitStack.push_async_callback(). - "c" and "typeid" in the create() method of multiprocessing.managers.Server and multiprocessing.managers.SharedMemoryServer. - "obj" in weakref.finalize(). Also allowed to pass arbitrary keyword arguments (even "self" and "func") if the above arguments are passed as positional argument.
* bpo-35202: Remove unused imports in Lib directory. (GH-10445)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-11-101-1/+0
|
* bpo-35133: Fix mistakes when concatenate string literals on different lines. ↵Serhiy Storchaka2018-11-051-2/+2
| | | | | | | | | | (GH-10284) Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings.
* bpo-34171: Prevent creating Lib/trace.cover when run the trace module. (GH-8841)Serhiy Storchaka2018-08-251-10/+4
|
* bpo-31908: Fix output of cover files for trace module command-line tool. ↵Michael Selik2018-05-011-23/+16
| | | | | | (GH-4205) Previously emitted cover files only when --missing option was used.
* bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)Kyle Altendorf2018-02-171-1/+1
|
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-15/+9
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-30166: Import command-line parsing modules only when needed. (#1293)Serhiy Storchaka2017-05-041-1/+2
|
* More typo fixes for 3.6Martin Panter2016-06-041-1/+1
|
* Issue22642 - Convert trace module's option handling mechanism from getopt to ↵Senthil Kumaran2016-01-131-205/+134
| | | | | | argparse. Patch contributed by SilentGhost.
* Issue #26069: Remove the deprecated apis in the trace module.Senthil Kumaran2016-01-111-43/+0
|
* Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-1/+1
| | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* Issue #22831: Use "with" to avoid possible fd leaks.Serhiy Storchaka2015-04-041-20/+20
|
* Issue #22043: time.monotonic() is now always availableVictor Stinner2014-09-021-4/+1
| | | | | threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used.
* Fixes #10541: regrtest -T is brokenAlexander Belopolsky2014-06-291-9/+10
| | | | | | * makes test_trace tests restore the tracefunc after they run * write_results() in trace module will not terminate if lnotab cannot be found.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-0/+0
|\ | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
| * Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-0/+0
| | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-2/+2
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-131-2/+2
| | | | | | | | ModuleNotFoundError.
* | #17143: merge with 3.3.Ezio Melotti2013-02-151-0/+1
|\|
| * #17143: fix a missing import in the trace module. Initial patch by Berker ↵Ezio Melotti2013-02-151-0/+1
| | | | | | | | Peksag.
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-5/+5
|/
* trace: remove unused imports.Florent Xicluna2012-07-071-3/+0
|
* Close #14690: Use monotonic clock instead of system clock in the sched,Victor Stinner2012-05-301-3/+7
| | | | subprocess and trace modules.
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-4/+4
|
* Make the trace module ignore modules whose names start with "<" andBrett Cannon2012-04-101-2/+1
| | | | end with ">", i.e. follow convention.
* Prevent deprecation warningÉric Araujo2011-04-171-1/+1
|
* Issue #10371: Deprecated undocumented functions in the trace module.Alexander Belopolsky2010-11-201-20/+63
|
* Issue #10335: Add tokenize.open(), detect the file encoding usingVictor Stinner2010-11-091-3/+2
| | | | tokenize.detect_encoding() and open it in read only mode.
* Streamlined code in trace.Ignore and added unit tests.Alexander Belopolsky2010-11-081-19/+16
|
* Issue #10329: The trace module writes reports using the input Python scriptVictor Stinner2010-11-071-4/+5
| | | | | encoding, instead of the locale encoding. Patch written by Alexander Belopolsky.
* Issue #10330: trace module can now be used with python built without threads.Alexander Belopolsky2010-11-061-5/+18
|
* close files correctlyBenjamin Peterson2010-10-301-11/+12
|
* Reverted inadvertent change that slipped into r85695Alexander Belopolsky2010-10-181-1/+0
|
* Issue #10117: Tools/scripts/reindent.py now accepts source files thatAlexander Belopolsky2010-10-181-0/+1
| | | | | use encoding other than ASCII or UTF-8. Source encoding is preserved when reindented code is written to a file.
* Issue 9941: Minor code cleanup before implementing the context manager feature:Alexander Belopolsky2010-09-271-21/+11
| | | | | | | - Eliminated code repetition between run and runctx; - Removed redundant calls to dict.key; - Removed unused "blabbed" attribute; - Simplified the loop in write_results_file().
* Issue #9936: Fixed executable lines' search in the trace module.Alexander Belopolsky2010-09-241-8/+2
|
* Issue #9315: Fix for the trace module to record correct class nameAlexander Belopolsky2010-09-131-8/+4
| | | | when tracing methods. Unit tests. Patch by Eli Bendersky.
* Fix softspace relic.Georg Brandl2010-08-021-2/+2
|
* Get rid of spurious "threading" entries in trace output.Georg Brandl2010-08-021-2/+2
|
* #4943: do not try to include drive letters (and colons) when looking for a ↵Georg Brandl2010-08-011-1/+3
| | | | probably module name.
* #1690103: fix initial namespace for code run with trace.main().Georg Brandl2010-08-011-1/+8
|
* Issue #9323: Fixed a bug in trace.py that resulted in loosing the nameAlexander Belopolsky2010-07-211-6/+3
| | | | of the script being traced. Patch by Eli Bendersky.
* Issue #9282: Fixed --listfuncs option of trace.py. Thanks EliAlexander Belopolsky2010-07-201-1/+2
| | | | Bendersky for the patch.