summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* These two classes provide bases for more specific content typeBarry Warsaw2002-06-012-0/+54
| | | | | | | | | | | | | subclasses. MIMENonMultipart: Base class for non-multipart/* content type subclass specializations, e.g. image/gif. This class overrides attach() which raises an exception, since it makes no sense to attach a subpart to e.g. an image/gif message. MIMEMultipart: Base class for multipart/* content type subclass specializations, e.g. multipart/mixed. Does little more than provide a useful constructor.
* The _compat modules now export _floordiv() instead of _intdiv2() forBarry Warsaw2002-06-011-5/+4
| | | | | | better code reuse. _split() Use _floordiv().
* Slightly better docstringBarry Warsaw2002-06-011-1/+1
|
* _is_unicode(): Use UnicodeType instead of the unicode builtin forBarry Warsaw2002-06-011-1/+3
| | | | Python 2.1 compatibility.
* Replaced boolean test with is NoneRaymond Hettinger2002-06-013-4/+4
|
* Replace boolean test with is NoneRaymond Hettinger2002-06-014-5/+5
|
* Replaced boolean test with 'is None'Raymond Hettinger2002-06-012-5/+5
|
* Use is None rather than general booleanRaymond Hettinger2002-06-011-2/+2
|
* Use is None rather than general booleanRaymond Hettinger2002-05-311-1/+1
|
* Use is None rather than general booleanRaymond Hettinger2002-05-311-1/+1
|
* SF 560736. Optimize list iteration by filling the tp_iter slot.Raymond Hettinger2002-05-311-0/+1
|
* SF bug 533625 (Armin Rigo). rexec: potential security holeGuido van Rossum2002-05-311-1/+11
| | | | | | | | | | If a rexec instance allows writing in the current directory (a common thing to do), there's a way to execute bogus bytecode. Fix this by not allowing imports from .pyc files (in a way that allows a site to configure things so that .pyc files *are* allowed, if writing is not allowed). I'll apply this to 2.2 and 2.1 too.
* Use string methods, remove import stringNeal Norwitz2002-05-311-4/+3
|
* Use more string methods, remove import stringNeal Norwitz2002-05-313-18/+12
|
* Replace '== None' with 'is None'Raymond Hettinger2002-05-312-2/+2
|
* Fix printing plural (s or "").Neal Norwitz2002-05-311-1/+1
|
* Remove import of re, it is not usedNeal Norwitz2002-05-311-1/+1
|
* Use string methods where possible, and remove import stringNeal Norwitz2002-05-313-13/+11
|
* Fix SF bug [ 561825 ] Confusing error for "del f()"Jeremy Hylton2002-05-311-0/+34
| | | | In the error message, say del for del and assign for everything else.
* Remove unneeded importAndrew M. Kuchling2002-05-301-1/+0
|
* Verify that the imp can find and load .py files.Jeremy Hylton2002-05-301-0/+5
|
* Remove comment about inheritance, look one line upNeal Norwitz2002-05-301-5/+1
|
* Move statement out of comment blockRaymond Hettinger2002-05-301-1/+1
|
* Use floor division where appropriate.Guido van Rossum2002-05-291-2/+2
|
* Minor cleanup:Fred Drake2002-05-291-5/+11
| | | | | | - Add comment explaining the structure of the stack. - Minor optimization: make stack tuple directly usable as part of return value for enter/exit events.
* Patch 560023 adding docstrings. 2.2 Candidate (after verifying modules were ↵Raymond Hettinger2002-05-299-8/+499
| | | | not updated after 2.2).
* As discussed on python-dev, add a mechanism to indicate featuresNeal Norwitz2002-05-291-0/+1
| | | | | that are in the process of deprecation (PendingDeprecationWarning). Docs could be improved.
* Whitespace normalizationNeal Norwitz2002-05-291-2/+2
|
* Importing Charset should not fail when Unicode is disabled. (XXXGuido van Rossum2002-05-281-3/+11
| | | | | Using Unicode-aware methods may still die with a NameError on unicode. Maybe there's a more elegant solution but I doubt anybody cares.)
* This is a Python 2.1 and 2.2 bugfix candidate:Christian Tismer2002-05-281-11/+5
| | | | | | | | | | | | | | | | | (or how do I "mark" something to be a candidate?) fixed an old buglet that caused bdb to be unable to continue in the botframe, after a breakpoint was set. the key idea is not to set botframe to the bottom level frame, but its f_back, which actually might be None. Additional changes: migrated old exception trick to use sys._getframe(), which exists both in 2.1 and 2.2 . Note: I believe Mark Hammond needs to look over his code now. F5 correctly starts up in the debugger, but later on doesn't stop at a given breakpoint any longer. kind regards - chris
* Geiger Ho's patch for better subclassingSteven M. Gava2002-05-271-1/+1
|
* This is patchMichael W. Hudson2002-05-271-3/+65
| | | | | | | [ 559250 ] more POSIX signal stuff Adds support (and docs and tests and autoconfery) for posix signal mask handling -- sigpending, sigprocmask and sigsuspend.
* GvR's rpc patchChui Tey2002-05-267-94/+1208
|
* Fix for SF bug 551412. When _PyType_Lookup() is called on a typeGuido van Rossum2002-05-241-0/+16
| | | | | | whose tp_mro hasn't been initialized, it would dump core. Fix this by checking for NULL and calling PyType_Ready(). Will fix this in 2.2.1 too.
* Don't require Unicode support.Guido van Rossum2002-05-241-2/+9
|
* Whitespace normalized.Raymond Hettinger2002-05-231-11/+11
|
* Deprecated Random.cunifvariate clearing bug 506647. Also, added docstrings.Raymond Hettinger2002-05-231-0/+81
|
* Whitespace normalization.Tim Peters2002-05-2320-101/+100
|
* parseaddr(): Fixed in the same way that Message.getaddrlist() wasBarry Warsaw2002-05-232-1/+10
| | | | fixed (re: SF bug #555035). Include a unittest.
* force gzip module to open files using 'b'inary mode.Skip Montanaro2002-05-232-1/+9
| | | | closes patch #536278.
* Closes: #556025 seg fault when doing list(xrange(1e9))Neal Norwitz2002-05-221-0/+11
| | | | | | | | | A MemoryError is now raised when the list cannot be created. There is a test, but as the comment says, it really only works for 32 bit systems. I don't know how to improve the test for other systems (ie, 64 bit or systems where the data size != addressable size, e.g. 64 bit data, but 48 bit addressable memory)
* Bump to version 2.0.4Barry Warsaw2002-05-221-1/+1
|
* getaddresses(): Like the change in rfc822.py, this one needs to accessBarry Warsaw2002-05-222-1/+8
| | | | | | the AddressList.addresslist attribute directly. Also, add a test case for the email.Utils.getaddresses() interface.
* add BooleanTypeSkip Montanaro2002-05-211-0/+1
|
* In both spilldata() functions, pretend that the docstring forGuido van Rossum2002-05-211-2/+8
| | | | | non-callable objects is always None. This makes for less confusing output and fixes the problem reported in SF patch #550290.
* Message.getaddrlist(): Use the AddressList.addresslist attributeBarry Warsaw2002-05-212-2/+21
| | | | | | | | instead of calling the getaddrlist() method, since the latter doesn't work with multiple calls (it will return the empty list for the second and subsequent calls). Closes SF bug #555035. Include a unittest.
* Patch 533291. Deprecate None return form of __reduce__.Raymond Hettinger2002-05-211-0/+4
|
* Munge the RCS keywords to avoid updates, so the version number matches thatFred Drake2002-05-211-1/+1
| | | | | | of the PyUNIT version of the same file. This helps people understand that this version is the same as the version from the independent PyUNIT release (confusion was indicated on the PyUNIT mailing list).
* Use types.StringTypes instead of explicit (str, unicode) listMichael W. Hudson2002-05-201-1/+1
|
* Guess what? --disable-unicode proofing.Michael W. Hudson2002-05-201-4/+7
| | | | This is a strange test.