Commits

Show all
Author Commit Message Labels Comments Date
Tim Peters
Kill several problems at once: test_poll() failed sometimes for me. Turns out the mysterious "expected output" file contained exactly N dots, because test_poll() has a loop that *usually* went around N times, printing one dot on each loop trip. But there's no guarantee of that, because the exact value of N depended on the vagaries of scheduling time.sleep()s across two different processes. So stopped printing dots, and got rid of the expected output file. Add a…
Branches
legacy-trunk
Tim Peters
test_stdout_none(): Don't print "banana" to the screen in the middle of the test. It's testing stdout in a different process, so it has to print something, but I didn't find "banana" to be self-explanatory.
Branches
legacy-trunk
Tim Peters
Windows test_creationflags() test: print msg to stderr informing the tester that a DOS box is expected to flash. Slash the sleep from 2 seconds to a quarter second (why would we want to wait 2 seconds just to stare at a DOS box?).
Branches
legacy-trunk
Tim Peters
Folded long lines.
Branches
legacy-trunk
Tim Peters
XXX about extreme expense of test_no_leaking() on Windows. I'm not sure what this is trying to do. If it's necessary for it to create > 1000 processes, it should be controlled by a new resource and not run by default on Windows.
Branches
legacy-trunk
Tim Peters
Experience with Zope2's tests showed it's a Bad Idea to make unittest display a test's docstring as "the name" of the test. So changed most test docstrings to comments, and removed the clearly useless ones. Now unittest reports the actual names of the test methods.
Branches
legacy-trunk
Tim Peters
Wrap long lines.
Branches
legacy-trunk
Tim Peters
Whitespace normalization.
Branches
legacy-trunk
Tim Peters
Supply the _subprocess module under 7.1. I'm not sure what the status of this should be on non-WIN32 Windows variants.
Branches
legacy-trunk
Tim Peters
Before this turns into an unreadable mess, follow PEP 7 by using hard tab indents in C code.
Branches
legacy-trunk
Johannes Gijsbers
Improvements when running pdb as a script. 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…
Branches
legacy-trunk
Andrew Kuchling
Typo fix
Branches
legacy-trunk
Andrew Kuchling
Finish off PEP 324 section; fix Peter's last name
Branches
legacy-trunk
Andrew Kuchling
Start section for PEP 324
Branches
legacy-trunk
Andrew Kuchling
Fix PEP number
Branches
legacy-trunk
Fredrik Lundh
Added Peter Astrand's subprocess module.
Branches
legacy-trunk
Raymond Hettinger
Don't use mutable values for method defaults.
Branches
legacy-trunk
Andrew Kuchling
Add two items
Branches
legacy-trunk
Johannes Gijsbers
Document that on Unix, the 'cmd' argument to the os.popen2/3/4 and 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()}).
Branches
legacy-trunk
Michael W. Hudson
This is jiwon's patch to fix: [ 1042238 ] Lib/compiler chokes on certain genexps
Branches
legacy-trunk
Michael W. Hudson
Open source files in universal newlines mode.
Branches
legacy-trunk
Barry Warsaw
Added note about the new usegmt argument to email.Utils.formatdate().
Branches
legacy-trunk
Anthony Baxter
Added a usegmt flag to email.Utils.formatdate - this allows it to be used to replace rfc822.formatdate for protocols like HTTP (where 'GMT' must be the timezone string).
Branches
legacy-trunk
Tim Peters
SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by Nick Coghlan, for determining whether PyEval_InitThreads() has been called. Also purged the undocumented+unused _PyThread_Started int.
Branches
legacy-trunk
Tim Peters
Revert rev 2.35. It was based on erroneous reasoning -- the current 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.
Branches
legacy-trunk
Tim Peters
PyInterpreterState_New(), PyThreadState_New(): use malloc/free directly. This appears to finish repairs for SF bug 1041645. This is a critical bugfix.
Branches
legacy-trunk
Tim Peters
find_key(): This routine wasn't thread-correct, and accounts for the release-build failures noted in bug 1041645. This is a critical bugfix. I'm not going to backport it, though (no time).
Branches
legacy-trunk
Tim Peters
PyGILState_Release(): If we need to delete the TLS entry for this thread, that must be done under protection of the GIL, for reasons explained in new comments.
Branches
legacy-trunk
Barry Warsaw
All known bugs are closed, and Python 2.4b1 is coming out soon, so bump email's version number to 3.0b1.
Branches
legacy-trunk
Barry Warsaw
Fix SF bug # 1030941. In _parsegen(), in the clause where we're 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.
Branches
legacy-trunk
  1. Prev
  2. Next