summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Wrap long lines.Tim Peters2004-10-121-43/+67
|
* Whitespace normalization.Tim Peters2004-10-124-47/+43
|
* Supply the _subprocess module under 7.1. I'm not sure what the statusTim Peters2004-10-122-0/+6
| | | | of this should be on non-WIN32 Windows variants.
* Before this turns into an unreadable mess, follow PEP 7 by usingTim Peters2004-10-121-315/+340
| | | | hard tab indents in C code.
* Improvements when running pdb as a script.Johannes Gijsbers2004-10-121-16/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug fixes: * Use fresh copy of globals/locals so the script being debugged can't access the pdb namespace (e.g.: p line_prefix will no longer work). * Remove pdb.py's path from sys.path. Having it in there is normally not a problem, but it could prove irritating when messing with PYTHONPATH or invoking pdb via /usr/bin/pdf. * You can now set a breakpoint on the script being debugged, even if the script doesn't end with a '.py' extension. Also, setting breakpoints with absolute paths now works reliably. Enhancements: * Go directly to the first line of the script. * Enter post-mortem debugging if the script being debugged doesn't catch an exception. * Restart the script being debugged and preserve debugger state when the script being debugged exits. Cleanup: * Moved the __main__ method into a main() function. * Kill the (undocumented, not in __all__) mainmodule/mainpyfile globals, add a mainpyfile attribute to pdb. Thanks Ilya Sandler for the patch!
* Typo fixAndrew M. Kuchling2004-10-121-1/+1
|
* Finish off PEP 324 section; fix Peter's last nameAndrew M. Kuchling2004-10-121-3/+69
|
* Start section for PEP 324Andrew M. Kuchling2004-10-121-0/+22
|
* Fix PEP numberAndrew M. Kuchling2004-10-121-1/+1
|
* Added Peter Astrand's subprocess module.Fredrik Lundh2004-10-125-0/+2170
|
* Don't use mutable values for method defaults.Raymond Hettinger2004-10-121-2/+6
|
* Add two itemsAndrew M. Kuchling2004-10-111-0/+14
|
* Document that on Unix, the 'cmd' argument to the os.popen2/3/4 andJohannes Gijsbers2004-10-114-27/+75
| | | | | | | | | | popen2.popen2/3/4 functions can be a sequence. All texts are a variation on the following: On \UNIX, \var{cmd} may be a sequence, in which case arguments will be passed directly to the program without shell intervention (as with \function{os.spawnv()}). If \var{cmd} is a string it will be passed to the shell (as with \function{os.system()}).
* This is jiwon's patch to fix:Michael W. Hudson2004-10-111-1/+6
| | | | [ 1042238 ] Lib/compiler chokes on certain genexps
* Open source files in universal newlines mode.Michael W. Hudson2004-10-111-1/+1
|
* Added note about the new usegmt argument to email.Utils.formatdate().Barry Warsaw2004-10-111-0/+1
|
* Added a usegmt flag to email.Utils.formatdate - this allows it to beAnthony Baxter2004-10-115-7/+28
| | | | | used to replace rfc822.formatdate for protocols like HTTP (where 'GMT' must be the timezone string).
* SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by NickTim Peters2004-10-117-10/+24
| | | | | Coghlan, for determining whether PyEval_InitThreads() has been called. Also purged the undocumented+unused _PyThread_Started int.
* Revert rev 2.35. It was based on erroneous reasoning -- the currentTim Peters2004-10-101-15/+8
| | | | | | | thread's id can't get duplicated, because (of course!) the current thread is still running. The code should work either way, but reverting the gratuitous change should make backporting easier, and gets the bad reasoning out of 2.35's new comments.
* PyInterpreterState_New(), PyThreadState_New(): use malloc/free directly.Tim Peters2004-10-102-4/+26
| | | | | | This appears to finish repairs for SF bug 1041645. This is a critical bugfix.
* find_key(): This routine wasn't thread-correct, and accounts for theTim Peters2004-10-102-5/+22
| | | | | | release-build failures noted in bug 1041645. This is a critical bugfix. I'm not going to backport it, though (no time).
* PyGILState_Release(): If we need to delete the TLS entry for this thread,Tim Peters2004-10-091-8/+15
| | | | | that must be done under protection of the GIL, for reasons explained in new comments.
* All known bugs are closed, and Python 2.4b1 is coming out soon, so bumpBarry Warsaw2004-10-091-1/+1
| | | | email's version number to 3.0b1.
* Fix SF bug # 1030941. In _parsegen(), in the clause where we'reBarry Warsaw2004-10-091-3/+7
| | | | | | | capturing_preamble but we found a StartBoundaryNotFoundDefect, we need to consume all lines from the current position to the EOF, which we'll set as the epilogue of the current message. If we're not at EOF when we return from here, the outer message's capturing_preamble assertion will fail.
* An example message for SF bug # 1030941.Barry Warsaw2004-10-091-0/+20
|
* test_missing_start_boundary(): A test for SF bug # 1030941.Barry Warsaw2004-10-091-0/+15
|
* _PyGILState_Init(), PyGILState_Ensure(): Since PyThread_set_key_value()Tim Peters2004-10-091-2/+5
| | | | | | | | | can fail, check its return value, and die if it does fail. _PyGILState_Init(): Assert that the thread doesn't already have an association for autoTLSkey. If it does, PyThread_set_key_value() will ignore the attempt to (re)set the association, which the code clearly doesn't want.
* Document the results of painful reverse-engineering of the "portable TLS"Tim Peters2004-10-091-6/+84
| | | | | | | | | code. PyThread_set_key_value(): It's clear that this code assumes the passed-in value isn't NULL, so document that it must not be, and assert that it isn't. It remains unclear whether existing callers want the odd semantics actually implemented by this function.
* Fix for SF bug # 1010102. The default is PureProxy not SMTPProxy.Barry Warsaw2004-10-091-1/+1
|
* __init__(): Coerce the input_charset to unicode (with ascii encoding) beforeBarry Warsaw2004-10-091-2/+3
| | | | | | calling .lower() on it. This fixes the problem described in SF patch # 866982 where in the tr_TR.ISO-8859-9 locale, 'I'.lower() isn't 'i'. unicodes are locale insensitive.
* Style guide & consistency changes. No semantic changes.Tim Peters2004-10-092-29/+41
|
* Trim trailing whitespace.Tim Peters2004-10-091-8/+8
|
* Simplify delitem() code by calling rotate() directly instead of usingRaymond Hettinger2004-10-091-35/+23
| | | | arguments passed through tuples.
* Patch #1042969: add closing brace for \token {generator_expression}. ThanksJohannes Gijsbers2004-10-091-1/+1
| | | | George Yoshida!
* SF patch #1043218Raymond Hettinger2004-10-091-52/+39
| | | | | Simplify internal calls and logic for _fix() and _fixexponents(). (Contributed by Facundo Batista.)
* [Bug #1022311] curses module uses y,x ordering of arguments, not x,yAndrew M. Kuchling2004-10-081-5/+5
|
* [Bug #1041501] Fix example codeAndrew M. Kuchling2004-10-081-1/+1
|
* [Bug #1031897] Fix order of decorator applicationAndrew M. Kuchling2004-10-081-3/+3
|
* Fix bug in _checkquote that raised an exception on empty "arg".Piers Lauder2004-10-081-2/+2
|
* SF patch #1041364: True/False instead of 1/0 in libstdtypes.texRaymond Hettinger2004-10-081-3/+3
| | | | (Contributed by Gerrit Holl. Reviewed by Jeff Epler.)
* Rewrite rmtree using os.walk to fix bug #1025127:Johannes Gijsbers2004-10-071-15/+15
| | | | | | | The shutils.rmtree() implementation uses an excessive amount of memory when deleting large directory hierarchies. Before actually deleting any files, it builds up a list of (function, filename) tuples for all the files that it is going to remove.
* This is Michiel de Hoon's patch, as attached to the bug report:Michael W. Hudson2004-10-071-7/+13
| | | | | | [ 1030629 ] PyOS_InputHook broken with a couple of utterly inconsequential changes by me.
* Add helpful commentAndrew M. Kuchling2004-10-071-0/+4
|
* Take out Guido's name and put in the PSFAndrew M. Kuchling2004-10-071-7/+1
|
* Update two URLsAndrew M. Kuchling2004-10-071-2/+2
|
* Add -m to man pageAndrew M. Kuchling2004-10-071-0/+11
|
* Add itemAndrew M. Kuchling2004-10-071-0/+6
|
* SF patch #1035498: -m option to run a module as a scriptRaymond Hettinger2004-10-075-11/+109
| | | | (Contributed by Nick Coghlan.)
* Finalize the freelist of list objects.Raymond Hettinger2004-10-073-0/+15
|
* Fix bug introduced by the previous patch by changing TimeRE.__seqToRe() toBrett Cannon2004-10-061-2/+1
| | | | accept any iterable instead of only a sliceable object.