summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Lots of new and updated tests to check for proper ascii headerBarry Warsaw2002-06-282-42/+187
| | | | | | | folding. Note that some of the Japanese tests have changed, but I don't really know if they are correct or not. :( Someone with Japanese and RFC 2047 expertise, please take a look!
* _max_append(): When adding the string `s' to its own line, it shouldBarry Warsaw2002-06-281-2/+2
| | | | | be lstrip'd so that old continuation whitespace is replaced by that specified in Header's continuation_ws parameter.
* Teach this class about "highest-level syntactic breaks" but only forBarry Warsaw2002-06-281-58/+151
| | | | | | | | | | | | | | | | | | | | | | | headers with no charset or 'us-ascii' charsets. Actually this is only partially true: we know about semicolons (but not true parameters) and we know about whitespace (but not technically folding whitespace). Still it should be good enough for all practical purposes. Other changes include: __init__(): Add a continuation_ws argument, which defaults to a single space. Set this to change the whitespace used for continuation lines when a header must be split. Also, changed the way header line lengths are calculated, so that they take into account continuation_ws (when tabs-expanded) and any provided header_name parameter. This should do much better on returning split headers for which the first and subsequent lines must fit into a specified width. guess_maxlinelen(): Removed. I don't think we need this method as part of the public API. encode_chunks() -> _encode_chunks(): I don't think we need this one as part of the public API either.
* _split_header(): The code here was terminally broken because it didn'tBarry Warsaw2002-06-281-53/+11
| | | | | | | | know anything about RFC 2047 encoded headers. Fortunately we have a perfectly good header splitter in Header.encode(). So we just call that to give us a properly formatted and split header. Header.encode() didn't know about "highest-level syntactic breaks" but that's been fixed now too.
* Simplify HTTPSConnection constructor.Jeremy Hylton2002-06-281-21/+7
| | | | See discussion in SF bug 458463.
* Close SF patch 523944: importing modules with foreign newlines.Jeremy Hylton2002-06-281-1/+1
| | | | | | Didn't use the patch, because universal newlines support made it easy. It might be worth fixing the actual problem in the 2.2 maintenance branch, in which case the patch is still needed.
* Added character data buffering to pyexpat parser objects.Fred Drake2002-06-281-1/+94
| | | | | | | | | Setting the buffer_text attribute to true causes the parser to collect character data, waiting as long as possible to report it to the Python callback. This can save an enormous number of callbacks from C to Python, which can be a substantial performance improvement. buffer_text defaults to false.
* Fixes for two separate HTTP/1.1 bugs: 100 responses and HTTPS connections.Jeremy Hylton2002-06-281-32/+102
| | | | | | | | | | | | | | | | | | | | | | | The HTTPResponse class now handles 100 continue responses, instead of choking on them. It detects them internally in the _begin() method and ignores them. Based on a patch by Bob Kline. This closes SF bugs 498149 and 551273. The FakeSocket class (for SSL) is now usable with HTTP/1.1 connections. The old version of the code could not work with persistent connections, because the makefile() implementation read until EOF before returning. If the connection is persistent, the server sends a response and leaves the connection open. A client that reads until EOF will block until the server gives up on the connection -- more than a minute in my test case. The problem was fixed by implementing a reasonable makefile(). It reads data only when it is needed by the layers above it. It's implementation uses an internal buffer with a default size of 8192. Also, rename begin() method of HTTPResponse to _begin() because it should only be called by the HTTPConnection.
* The standard definition file is now called mwerks_shcarbon_plugin.h.Jack Jansen2002-06-271-1/+1
|
* merged with SLAB codebase (version 1.0.1)Fredrik Lundh2002-06-271-78/+344
|
* made the code match the comments (1.5.2 compatibility)Fredrik Lundh2002-06-271-3/+3
|
* Fix bug #570057: Broken pre.subn() (and pre.sub())Fredrik Lundh2002-06-271-2/+4
| | | | | This should be backported to the 2.2.X series (how do I do that?)
* Integrate the tests for name interning from PyXML (test_pyexpat.pyFred Drake2002-06-271-0/+18
| | | | revision 1.12 in PyXML).
* Whitespace normalization (remove tabs)Neal Norwitz2002-06-261-4/+4
|
* Fixed various MacPython-specific issues found by attempting to use the ↵Jack Jansen2002-06-262-4/+37
| | | | standard core setup.py for MacPython.
* Apply SF 562987 modernizing Cookie to subclass from dict instead of UserDictRaymond Hettinger2002-06-261-15/+11
|
* Suppress the variable verbose output from test.xmltests; the inclusion ofFred Drake2002-06-262-15/+3
| | | | timing information in the output makes the determination of success bogus.
* This module broke on the Mac (where it can't work, but distutils seems to ↵Jack Jansen2002-06-261-1/+2
| | | | import it anyway) because it imported pwd and grp. Moved the import to inside the routine where they're used.
* Also look up variable names in __builtins__ if not found in globals.Ka-Ping Yee2002-06-261-3/+15
| | | | Don't show hidden fields of exception values (names starting with '_').
* Shutdown subprocess debugger and associated Proxies/Adapters when closingKurt B. Kaiser2002-06-264-41/+80
| | | | | | | | | | | the Idle debugger. M PyShell.py : Call RemoteDebugger.close_remote_debugger() M RemoteDebugger.py: Add close_remote_debugger(); further polish code used to start the debugger sections. M rpc.py : Add comments on Idlefork methods register(), unregister() comment out unused methods M run.py : Add stop_the_debugger(); polish code
* Add convenience module to run all the XML tests.Fred Drake2002-06-252-0/+395
|
* Remove all EditorWindow BREAK tags when closing DebuggerKurt B. Kaiser2002-06-251-0/+8
|
* fix incorrect size calc. in IMAP4_SSL.readPiers Lauder2002-06-241-1/+1
|
* Clear associated breakpoints when closing an edit window.Kurt B. Kaiser2002-06-244-66/+78
| | | | | | | | | | M Debugger.py : Added clear_file_breaks() M EditorWindow.py : Clear breaks when closed, commments->docstrings, comment out some debugging print statements M PyShell.py : comments->docstrings ; clarify extending EditorWindow methods. M RemoteDebugger.py: Add clear_all_file_breaks() functionality, clarify some comments.
* Fix SF bug 572567: Memory leak in object comparison.Raymond Hettinger2002-06-241-0/+12
|
* Fix IMAP4_SSL read and send methods to take account of short dataPiers Lauder2002-06-231-3/+16
|
* Add a check that the bug Jeremy just fixed in _PyTuple_Resize() isGuido van Rossum2002-06-211-0/+5
| | | | | | fixed. (Jeremy, how did you discover that?)
* SF 569257 -- Name mangle double underscored variable names in __slots__.Raymond Hettinger2002-06-201-0/+18
|
* Disable the test for importing very long lists for MacPython: it triggersJack Jansen2002-06-201-1/+2
| | | | | an out-of-memory condition (and a hang on OSX). Filed a bug report (#571845) to make sure this is eventually fixed.
* Removed the generator future-stmt -- not needed for 2.3.Tim Peters2002-06-201-1/+0
|
* 1. Debugger Breakpoints, finish implementationKurt B. Kaiser2002-06-204-27/+79
| | | | | 2. Debugger Clear Breakpoints, implement 3. Nice yellow breakpoints for Chui :)
* I get failures half of the time that I run this, so I'll disableGuido van Rossum2002-06-201-2/+2
| | | | | running this as part of the regular test suite again, until I have time to figure out why.
* SF 570727 indexer() class no longer needed since lists now support slicingRaymond Hettinger2002-06-201-13/+4
|
* Fix the bug described inMichael W. Hudson2002-06-192-1/+50
| | | | | | | | | http://mail.python.org/pipermail/python-dev/2002-June/025461.html with test cases. Also includes extended slice support for arrays, which I thought I'd already checked in but obviously not.
* 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?
* 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.
* 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.
* 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.
* Whitespace normalization (tabs -> spaces)Neal Norwitz2002-06-171-5/+5
|
* Add IMAP4 QUOTA extension methodsPiers Lauder2002-06-171-2/+37
|
* 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.
* 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.
* SF patch 568629 by Oren Tirosh: types made callable.Guido van Rossum2002-06-141-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* Use code.interact(), which is even simpler, *and* imports readlineGuido van Rossum2002-06-141-3/+3
| | | | when it can.
* Don't poorly emulate the interactive interpreter, useGuido van Rossum2002-06-141-19/+9
| | | | code.InteractiveConsole to do a much better job.