Neal Norwitz
016880229a
Kill execfile(), use exec() instead
2007-08-12 00:43:29 +00:00
Guido van Rossum
cc2b016125
- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
...
and .keys(), .items(), .values() return dict views.
The dict views aren't fully functional yet; in particular, they can't
be compared to sets yet. but they are useful as "iterator wells".
There are still 27 failing unit tests; I expect that many of these
have fairly trivial fixes, but there are so many, I could use help.
2007-02-11 06:12:03 +00:00
Guido van Rossum
be19ed77dd
Fix most trivially-findable print statements.
...
There's one major and one minor category still unfixed:
doctests are the major category (and I hope to be able to augment the
refactoring tool to refactor bona fide doctests soon);
other code generating print statements in strings is the minor category.
(Oh, and I don't know if the compiler package works.)
2007-02-09 05:37:30 +00:00
Georg Brandl
7cae87ca7b
Patch #1550800 : make exec a function.
2006-09-06 06:51:57 +00:00
Guido van Rossum
e2b70bcf74
Get rid of dict.has_key(). Boy this has a lot of repercussions!
...
Not all code has been fixed yet; this is just a checkpoint...
The C API still has PyDict_HasKey() and _HasKeyString(); not sure
if I want to change those just yet.
2006-08-18 22:13:04 +00:00
Armin Rigo
f879024487
test and fix for buggy handling of exceptions raised by C functions,
...
causing the profiler to crash on an AssertionError if the same Python
function catches multiple exceptions from C functions.
2005-09-20 18:50:13 +00:00
Martin v. Löwis
a4dac4094a
Patch #645894 : Use getrusage for computing the time consumption in
...
profile.py if available.
2005-03-03 11:39:45 +00:00
Tim Peters
b497c106d5
Whitespace normalization.
2005-01-10 16:48:37 +00:00
Johannes Gijsbers
c0b194a770
Bug #489256 : remove out of date and out of place profile.doc, and let
...
profile.help() point at the library reference instead of profile.doc.
2005-01-10 09:07:22 +00:00
Johannes Gijsbers
2abe785fee
Move code in __name__ == '__main__' block into main() function, rewrite code so
...
there's no need to subclass OptionParser.
2005-01-09 01:58:02 +00:00
Nicholas Bastin
12ac3e1f49
Using repr() generates entries that the current stats package can't
...
collate, so setting it back to the function name
2004-07-12 23:38:02 +00:00
Nicholas Bastin
2e39d80925
Fix SF Bug #989066
2004-07-12 13:44:26 +00:00
Tim Peters
4e0e1b6a54
Whitespace normalization.
2004-07-07 20:54:48 +00:00
Nicholas Bastin
c69ebe8d50
Enable the profiling of C functions (builtins and extensions)
2004-03-24 21:57:10 +00:00
Guido van Rossum
48713e8798
Add runctx to __all__.
2004-03-23 19:19:21 +00:00
Nicholas Bastin
824b1b2da8
Added command line options for profile.py - one for stats output file
...
and one for sort order when using stdout. Uses optparse.
2004-03-23 18:44:39 +00:00
Nicholas Bastin
1eb4bfc657
Added global runctx function to profile to fix SF Bug #716587
2004-03-22 20:12:56 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Guido van Rossum
38443c1513
Remove unneeded import.
2003-10-22 17:22:18 +00:00
Raymond Hettinger
97aa32b467
Replace a reduce() with sum().
2003-10-22 16:49:01 +00:00
Guido van Rossum
68468eba63
Get rid of many apply() calls.
2003-02-27 20:14:51 +00:00
Raymond Hettinger
e0d4972acc
Replaced .keys() with dictionary iterators
2002-06-02 18:55:56 +00:00
Raymond Hettinger
16e3c427f3
Replace boolean test with is None.
2002-06-01 16:07:16 +00:00
Raymond Hettinger
54f0222547
SF 563203. Replaced 'has_key()' with 'in'.
2002-06-01 14:18:47 +00:00
Fred Drake
ee836445d1
Added a missing period at the end of an error message.
2001-12-05 22:27:47 +00:00