summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Define NDEBUG for releae builds, just like Python.Jeremy Hylton2002-06-181-1/+2
| | | | XXX Why doesn't distutils on Windows use the same set of flags as Python?
* Note the limitation that mime_decode_header() only works for Latin-1.Fred Drake2002-06-181-0/+1
| | | | Closes SF bug #551912.
* Add implementation of _compile() and use default compile() method.Jeremy Hylton2002-06-183-84/+33
|
* Add a default implementation of compile() to the base class.Jeremy Hylton2002-06-181-1/+20
| | | | | | | The default implementation calls _compile() to compile individual files. This method must be implemented by the subclass. This change factors out most of the remaining common code in all the compilers except mwerks.
* Played contortionist games with the argument_list production so itFred Drake2002-06-181-4/+4
| | | | | might be easier to understand. This relates to SF bug #493243, which will be closed.
* Only import msvccompiler on win32 platforms.Jeremy Hylton2002-06-181-11/+11
|
* Michael fixed the race conditions and removed the sleeps.Guido van Rossum2002-06-181-9/+55
| | | | | This is his SF patch 569697. I renamed main() to test_main() again so that this is run as part of the standard test suite.
* \productioncont: Replace leading spaces with   so that it'sFred Drake2002-06-181-0/+3
| | | | | | | | | possible to control the indentation of continuation lines. cfuncline_helper(): Only mark the argument names are <var>, not the whole argument list. This leaves the argument types in the same font as the return type. Based on a casual suggestion from Guido.
* Refactor the generation of signature lines for funcdesc, methoddesc,Fred Drake2002-06-181-27/+22
| | | | | | and friends. This was part of the changes to the presentation of signature lines, but does not include any of the aspects that people questioned.
* Patch from SF bug 570483 (Tim Northover).Guido van Rossum2002-06-181-0/+6
| | | | | | In a fresh interpreter, type.mro(tuple) would segfault, because PyType_Ready() isn't called for tuple yet. To fix, call PyType_Ready(type) if type->tp_dict is NULL.
* Patch from SF bug 570483 (Tim Northover).Guido van Rossum2002-06-182-0/+6
| | | | | | In a fresh interpreter, type.mro(tuple) would segfault, because PyType_Ready() isn't called for tuple yet. To fix, call PyType_Ready(type) if type->tp_dict is NULL.
* Corect speling and add \n\ to line ends in new docstring for access().Guido van Rossum2002-06-181-5/+5
|
* Clarified documentation for os.access().Fred Drake2002-06-182-6/+12
| | | | | Patch contributed by Sean Reifschneider. Closes SF patch #570618.
* Mechanically translated string method calls to string methods.Fred Drake2002-06-181-36/+22
| | | | | Instead of splitting a string and looping over it to call s.split(), use list comprehensions for readability.
* SF patch #552837, submitted by Robert Pyron:Fred Drake2002-06-181-29/+508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. BUGFIX: In function makefile(), strip blanks from the nodename. This is necesary to match the behavior of parser.makeref() and parser.do_node(). 2. BUGFIX fixed KeyError in end_ifset (well, I may have just made it go away, rather than fix it) 3. BUGFIX allow @menu and menu items inside @ifset or @ifclear 4. Support added for: @uref URL reference @image image file reference (see note below) @multitable output an HTML table @vtable 5. Partial support for accents, to match MAKEINFO output 6. I added a new command-line option, '-H basename', to specify HTML Help output. This will cause three files to be created in the current directory: `basename`.hhp HTML Help Workshop project file `basename`.hhc Contents file for the project `basename`.hhk Index file for the project When fed into HTML Help Workshop, the resulting file will be named `basename`.chm. 7. A new class, HTMLHelp, to accomplish item 6. 8. Various calls to HTMLHelp functions. A NOTE ON IMAGES: Just as 'outputdirectory' must exist before running this program, all referenced images must already exist in outputdirectory. FLD: wrapped some long lines.
* Clarified description of error handling for shutil.rmtree().Fred Drake2002-06-181-2/+3
| | | | This closes SF patch #569832.
* About the new but unreferenced new_class, Guido sez:Michael W. Hudson2002-06-181-15/+0
| | | | | | | > Looks like an experiment by Oren Tirosh that didn't get nuked. I > think you can safely lose it. It's gone.
* Update description of the Expat library.Fred Drake2002-06-171-6/+9
| | | | Closes SF bug #556370.
* PyModule_AddObject(): Added missing exceptions.Fred Drake2002-06-171-7/+14
| | | | Closes SF bug #523473.
* Fix documentation for PyMarshal_WriteObjectToFile() andFred Drake2002-06-171-5/+5
| | | | | PyMarshal_WriteObjectToFile(). This closes SF bug #533735.
* Ensure \verbatiminput always uses a unique filename for each input file inFred Drake2002-06-171-8/+66
| | | | | | the "Download as text" link. Previously, it could map multiple source files to a single name since all files end up with the same extension. This closes SF bug #558279.
* Add reminder, and a new POSIX functionAndrew M. Kuchling2002-06-171-6/+8
| | | | Tweak traceback display for consistency
* Typo.Michael W. Hudson2002-06-171-1/+1
|
* Whitespace normalization (tabs -> spaces)Neal Norwitz2002-06-171-5/+5
|
* Apply diff2.txt from SF patch http://www.python.org/sf/566999Walter Dörwald2002-06-172-7/+32
| | | | | | | | This patch enhances Python/import.c/find_module() so that unicode objects found in sys.path will be treated as legal directory names (The current code ignores anything that is not a str). The unicode name is converted to str using Py_FileSystemDefaultEncoding.
* Add IMAP4 QUOTA extension methodsPiers Lauder2002-06-172-3/+58
|
* Alter text test arg to obey new rule, also include inverse test to make ↵Piers Lauder2002-06-171-6/+5
| | | | time-zone independant
* Polish RemoteDebugger code.Kurt B. Kaiser2002-06-166-46/+69
| | | | | | Use a repr() on the subprocess side when fetching dict values for stack. The various dict entities are not needed by the debugger GUI, only their representation.
* Nuked another reference to newmodule.c.Tim Peters2002-06-161-1/+0
|
* Removed newmodule.c from the project, and removed references to it fromTim Peters2002-06-164-233/+0
| | | | the Windowish builds.
* Forgot to add this. It's part of patch 568629.Guido van Rossum2002-06-161-0/+17
|
* test_module_with_large_stack(): This failed when Python was run with -O,Tim Peters2002-06-151-2/+5
| | | | | trying to delete a .pyc file that didn't exist (it needed to delete .pyo then).
* test_module_with_large_stack(): This failed on Windows, for the wrongTim Peters2002-06-151-1/+1
| | | | reason <wink>: can't unlink an open file on Windows.
* Unsure exactly why I'm doing this, but I couldn't build a debug-modeTim Peters2002-06-151-0/+15
| | | | Python on Windows without it.
* Add Oren Tirosh and news about his patch.Guido van Rossum2002-06-142-0/+11
|
* SF patch 568629 by Oren Tirosh: types made callable.Guido van Rossum2002-06-1417-130/+287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These built-in functions are replaced by their (now callable) type: slice() buffer() and these types can also be called (but have no built-in named function named after them) classobj (type name used to be "class") code function instance instancemethod (type name used to be "instance method") The module "new" has been replaced with a small backward compatibility placeholder in Python. A large portion of the patch simply removes the new module from various platform-specific build recipes. The following binary Mac project files still have references to it: Mac/Build/PythonCore.mcp Mac/Build/PythonStandSmall.mcp Mac/Build/PythonStandalone.mcp [I've tweaked the code layout and the doc strings here and there, and added a comment to types.py about StringTypes vs. basestring. --Guido]
* This introduces stricter library/header file checking for the Berkeley DBSkip Montanaro2002-06-147-60/+162
| | | | | | | | | library. Since multiple versions can be installed simultaneously, it's crucial that you only select libraries and header files which are compatible with each other. Version checking is done from highest version to lowest. Building using version 1 of Berkeley DB is disabled by default because of the hash file bugs people keep rediscovering. It can be enabled by uncommenting a few lines in setup.py. Closes patch 553108.
* Clean up descriptions of PyObject_RichCompare() and PyObject_RichCompareBool()Fred Drake2002-06-142-8/+18
| | | | | based on comments from David Abrahams. Added refcount information for these functions.
* Use code.interact(), which is even simpler, *and* imports readlineGuido van Rossum2002-06-141-3/+3
| | | | when it can.
* Now FOR_LOOP is gone, loop_subscript can go too.Michael W. Hudson2002-06-141-19/+0
| | | | make -s rules :-)
* Don't poorly emulate the interactive interpreter, useGuido van Rossum2002-06-141-19/+9
| | | | code.InteractiveConsole to do a much better job.
* Anchors ("a" elements) used only for the name attribute should notFred Drake2002-06-141-1/+1
| | | | | change color on hover, only those that are link sources (href attributes).
* Make a start at describing the results of class/type unificationSteve Holden2002-06-141-121/+86
| | | | in the type documentation.
* Test for the bug in recurse_down_subclasses() that I just fixed.Guido van Rossum2002-06-141-0/+10
|
* Inexplicably, recurse_down_subclasses() was comparing the objectGuido van Rossum2002-06-141-1/+2
| | | | | | gotten from a weak reference to NULL instead of to None. This caused the following assert() to fail (but only in 2.2 in the debug build -- I have to find a better test case). Will backport.
* Missed one use of new PyDoc_STRVAR macroNeal Norwitz2002-06-141-2/+2
|
* Refer the reader to the correct module for constant definitions.Fred Drake2002-06-141-1/+1
| | | | This closes SF bug #550777.
* Fix SF bug # 561858 Assertion with very long listsNeal Norwitz2002-06-141-7/+7
| | | | | | | Write 4 bytes for co_stacksize, etc. to prevent writing out bad .pyc files which can cause a crash when read back in. (I forgot that frozen needs to be updated too for the test.)
* Fix SF bug # 561858 Assertion with very long listsNeal Norwitz2002-06-143-12/+43
| | | | | Write 4 bytes for co_stacksize, etc. to prevent writing out bad .pyc files which can cause a crash when read back in.
* SF bug # 493951 string.{starts,ends}with vs slicesNeal Norwitz2002-06-144-45/+70
| | | | Handle negative indices similar to slices.