Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Bug #412271, bug #449009] Use 'license' as the attribute name, | Andrew M. Kuchling | 2001-08-10 | 1 | -11/+11 |
| | | | | | | | though 'licence' is still supported for backward-compatibility (Should I add a warning to get_licence(), or not bother?) Also fixes an UnboundLocalError noticed by PyChecker | ||||
* | Change PyType_Ready() to use the READY and READYING flags. This makes | Guido van Rossum | 2001-08-10 | 1 | -13/+26 |
| | | | | | it possible to detect recursive calls early (as opposed to when the stack overflows :-). | ||||
* | Added a warning about reference cycles and memory consumption to the | Fred Drake | 2001-08-10 | 1 | -0/+10 |
| | | | | | | section on functions which return stack frames. This closes SF bug #449258. | ||||
* | Add new flags for PyType_Ready(): READY to explicitly indicate the | Guido van Rossum | 2001-08-10 | 1 | -0/+6 |
| | | | | | | type is ready, and READYING to indicate that it is busy with the type. A recursive call is a fatal error. | ||||
* | Usage fix, problem reported by Keith Briggs. | Fred Drake | 2001-08-10 | 1 | -1/+1 |
| | |||||
* | Added documentation for the new rich comparison support. | Fred Drake | 2001-08-10 | 1 | -73/+147 |
| | | | | | | | | | This closes SF patch #428320. Added documentation for the new floordiv() and truediv() functions. This is part of SF bug #449093. Re-organized the listing of functions to get better logical grouping. | ||||
* | Patch #441091 from Finn Bock: the more advanced flush options are not | Andrew M. Kuchling | 2001-08-10 | 1 | -15/+20 |
| | | | | | available in java, so only use the advanced flush options if they are defined in the zlib module. | ||||
* | Disable the sub() optimization until Fredrik has time to look into SF | Guido van Rossum | 2001-08-10 | 1 | -0/+1 |
| | | | | | | bug #449000, "re.sub(r'\n', ...) broke". This was Fredrik's suggestion -- he's on vacation and said he wouldn't be able to work on this until next week. | ||||
* | Check in a testcase for SF bug #449000: re.sub(r'\n', ...) broke. | Guido van Rossum | 2001-08-10 | 2 | -0/+12 |
| | |||||
* | Remove "referents" structure (it's not needed). Check return value | Neil Schemenauer | 2001-08-10 | 1 | -20/+17 |
| | | | | of PyList_Append. | ||||
* | Remove hard-coded NT constants that are already defined in errno on NT. | Jeremy Hylton | 2001-08-10 | 1 | -11/+5 |
| | | | | | Wrap some long lines. Remove unnecessary tuple unpack. | ||||
* | Remove the bogus flags parameter from the PyFile_WriteString() signature; | Fred Drake | 2001-08-10 | 1 | -2/+1 |
| | | | | | | it has no such parameter. This closes SF bug #449761. | ||||
* | Expose nl_langinfo through locale where available. | Martin v. Löwis | 2001-08-10 | 6 | -321/+550 |
| | |||||
* | Regenerated. | Jack Jansen | 2001-08-10 | 2 | -232/+248 |
| | |||||
* | Changed reference to config.h to pyconfig.h. | Jack Jansen | 2001-08-10 | 1 | -0/+0 |
| | |||||
* | Get OPT from the environment to build the CCSHARED command. | Martin v. Löwis | 2001-08-10 | 1 | -2/+2 |
| | | | | Fixes the problem reported in bug #438786. | ||||
* | SF patch #438013 Remove 2-byte Py_UCS2 assumptions | Tim Peters | 2001-08-09 | 2 | -82/+90 |
| | | | | | | | | Removed all instances of Py_UCS2 from the codebase, and so also (I hope) the last remaining reliance on the platform having an integral type with exactly 16 bits. PyUnicode_DecodeUTF16() and PyUnicode_EncodeUTF16() now read and write one byte at a time. | ||||
* | Whitespace normalization. | Tim Peters | 2001-08-09 | 12 | -55/+54 |
| | |||||
* | Skip test_mhlib on Windows -- too many Unix assumptions. | Tim Peters | 2001-08-09 | 1 | -2/+6 |
| | |||||
* | Fix two bugs detected by PyChecker: there's no need for redundant | Guido van Rossum | 2001-08-09 | 1 | -1/+1 |
| | | | | "import MacOS", and there *is* a need for "import operator". | ||||
* | Import UnknownFileError | Andrew M. Kuchling | 2001-08-09 | 1 | -1/+1 |
| | |||||
* | Import the errno module | Andrew M. Kuchling | 2001-08-09 | 1 | -1/+2 |
| | |||||
* | Use correct variable name | Andrew M. Kuchling | 2001-08-09 | 1 | -1/+1 |
| | |||||
* | Add resolution of __new__ story sequel. | Guido van Rossum | 2001-08-09 | 1 | -0/+4 |
| | |||||
* | Added tests for operator.floordiv() and operator.truediv(). | Fred Drake | 2001-08-09 | 2 | -0/+4 |
| | |||||
* | Add wrappers around the rich-comparison operations. | Fred Drake | 2001-08-09 | 1 | -1/+22 |
| | | | | | | | This closes SF patch #428320. Add wrappers to expose "floor" and "true" division. This closes SF feature request #449093. | ||||
* | Restore the test for 'object' that I removed when object was | Guido van Rossum | 2001-08-09 | 1 | -0/+24 |
| | | | | uninstantiable. All is well now. | ||||
* | Sigh. Strengthen the resriction of the previous checkin: tp_new is | Guido van Rossum | 2001-08-09 | 1 | -1/+2 |
| | | | | | inherited unless *both*: (a) the base type is 'object', and (b) the subtype is not a "heap" type. | ||||
* | Thinking back to the 2.22 revision, I didn't like what I did there one | Guido van Rossum | 2001-08-09 | 1 | -13/+4 |
| | | | | | | | | | | | | | | | | | bit. For one, this class: class C(object): def __new__(myclass, ...): ... would have no way to call the __new__ method of its base class, and the workaround (to create an intermediate base class whose __new__ you can call) is ugly. So, I've come up with a better solution that restores object.__new__, but still solves the original problem, which is that built-in and extension types shouldn't inherit object.__new__. The solution is simple: only "heap types" inherit tp_new. Simpler, less code, perfect! | ||||
* | Use type(x).__name__ to get the name of the type instead of parsing | Guido van Rossum | 2001-08-09 | 1 | -1/+1 |
| | | | | repr(type(x)). | ||||
* | Unittests for mhlib, by Nick Mathewson. | Guido van Rossum | 2001-08-09 | 1 | -0/+328 |
| | |||||
* | Apply anonymous SF patch #441229. | Guido van Rossum | 2001-08-09 | 1 | -0/+6 |
| | | | | | | | | | | | | Previously, f.read() and f.readlines() checked for errors on their file object and possibly raised an IOError, but f.readline() didn't. This patch makes f.readline() behave like the others. Note that I've added a call to clearerr() since the other calls to ferror() include that too. I have no way to test this code. :-) | ||||
* | SF patch #403640: incomplete proxy handling in URLLIB | Tim Peters | 2001-08-09 | 1 | -0/+62 |
| | | | | Look specific to Windows. Don't know whether it works. | ||||
* | SF Patch #420725 by Walter Doerwald: | Guido van Rossum | 2001-08-09 | 1 | -4/+17 |
| | | | | | | | | | | | | | | | | | | | | For local files urllib.py doesn't return the MIME headers that the documentation says it does: http://www.python.org/doc/current/lib/module- urllib.html#l2h-2187 states that "When the method is local-file, returned headers will include a Date representing the file's last-modified time, a Content- Length giving file size, and a Content-Type containing a guess at the file's type" But in Python 2.1 the only header that gets returned is the Content-Type: >>> import urllib >>> f = urllib.urlopen("gurk.txt") >>> f.info().headers ['Content-Type: text/plain\n'] | ||||
* | Patch #403514: precompute _subst_format_str to avoid a call to | Martin v. Löwis | 2001-08-09 | 1 | -2/+2 |
| | | | | string.join() on each invocation of _bind. | ||||
* | Added Josh Cogliati (turtle.py contributor). | Guido van Rossum | 2001-08-09 | 1 | -0/+1 |
| | |||||
* | Applied SF patch #438424 by Josh Cogliati: | Guido van Rossum | 2001-08-09 | 1 | -4/+42 |
| | | | | | | | | | Python's logolike module turtle.py did not display the turtle except when actually drawing lines. This patch changes the turtle.py module so that it displays the turtle at all times when tracing is on. This is similar to the the way that logo works. When tracing is off the turtle will not be displayed. | ||||
* | Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of | Guido van Rossum | 2001-08-09 | 1 | -5/+1 |
| | | | | asking to print the references. | ||||
* | One more. | Neil Schemenauer | 2001-08-09 | 1 | -0/+1 |
| | |||||
* | Add get_objects function. This is a low level function (like | Neil Schemenauer | 2001-08-09 | 1 | -0/+38 |
| | | | | | get_referents, and is not yet documented in the library manual). Suggestions for a better name welcome. | ||||
* | Add get_referents function. Closes SF patch #402925. | Neil Schemenauer | 2001-08-09 | 1 | -0/+50 |
| | |||||
* | Regenerate for glibc 2.2.3. | Martin v. Löwis | 2001-08-09 | 4 | -342/+769 |
| | |||||
* | Regenerate for Solaris 8. | Martin v. Löwis | 2001-08-09 | 5 | -739/+1778 |
| | |||||
* | When representing #includes as imports, do from MOD import *. | Martin v. Löwis | 2001-08-09 | 1 | -1/+1 |
| | |||||
* | Patch #437683: Use re instead of regex. | Martin v. Löwis | 2001-08-09 | 1 | -33/+38 |
| | | | | | | | If multiple header files are processed simultaneously which include each other, the corresponding modules mport each other. Specifically, if h2py is invoked with sys/types.h first, later header files won't contain the complete contents of TYPES.py. | ||||
* | Move IPv6 test further down so that usage of -lnsl has been tested. | Martin v. Löwis | 2001-08-09 | 2 | -692/+710 |
| | | | | Recognize Solaris IPv6 by checking /etc/netconfig. | ||||
* | Patch #433537: Cache ac_cv_bad_static_forward. | Martin v. Löwis | 2001-08-09 | 2 | -523/+537 |
| | | | | Also move up AC_AIX and AC_MINIX further up. | ||||
* | Michael Hudson correctly pointed out we should cvsignore pyconfig.h, not | Thomas Wouters | 2001-08-09 | 1 | -1/+1 |
| | | | | | config.h (anymore). People will still have to delete config.h from their source trees manually :) | ||||
* | Patch #448474: Add support for tell() and seek() to gzip.GzipFile. | Martin v. Löwis | 2001-08-09 | 3 | -4/+60 |
| | |||||
* | In the acks, CamelCase InstallMaster the same way Wise does it. | Tim Peters | 2001-08-09 | 1 | -1/+1 |
| |