summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Another contributor's patch got accepted.Guido van Rossum2001-08-171-0/+1
|
* Change the 227 response parser to use a more liberal regularGuido van Rossum2001-08-171-7/+9
| | | | | | | | expression. This is needed for certain servers that (in violation of the standard) don't return the parentheses in the response. This fixes SF bug #441712 by Henrik Weber (not exactly using his patch).
* Make sure that ampersand escaping is still performed on the contents ofFred Drake2001-08-171-0/+2
| | | | | | | | | local module tables (the lists of modules documented within a chapter, inserted at the beginning of the chapter). If this is not done here, the text is not part of the resulting documents when latex2html does the processing normally. This fixes a little bit more of SF bug #451556.
* type_new(): look for __dynamic__ at the module level (after looking inGuido van Rossum2001-08-171-14/+54
| | | | | | | | | | | | | the class dict). Anything but a nonnegative int in either place is *ignored* (before, a non-Boolean was an error). The default is still static -- in a comparative test, Jeremy's Tools/compiler package ran twice as slow (compiling itself) using dynamic as the default. (The static version, which requires a few tweaks to avoid modifying class variables, runs at about the same speed as the classic version.) slot_tp_descr_get(): this also needed fallback behavior. slot_tp_getattro(): remove a debug fprintf() call.
* Strip trailing whitespace, including two lines containing only one orGuido van Rossum2001-08-171-11/+11
| | | | more tabs that XEmacs Makefile mode found suspicious.
* - Get rid of obsolete #define PATCHLEVEL.Guido van Rossum2001-08-171-4/+1
| | | | - Change PY_VERSION (but not the numeric versions) to "2.2a1+".
* Fix core dump in repr() of instancemethod whose class==NULL.Guido van Rossum2001-08-171-7/+11
|
* classic(),metods(): add tests to verify that a bound method without aGuido van Rossum2001-08-171-0/+2
| | | | class has a correct repr().
* instance_getattr2(): rewritten to remove unnecessary stuff andGuido van Rossum2001-08-171-24/+13
| | | | | | | streamlined a bit. instancemethod_descr_get(): don't bind an unbound method of a class that's not a base class of the argument class.
* classic(), methods(): add another test relating to unbound methods:Guido van Rossum2001-08-171-0/+6
| | | | | | when an unbound method of class A is stored as a class variable of class B, and class B is *not* a subclass of class A, that method should *not* get bound to B instances.
* Instance methods: allow a NULL value for im_class.Guido van Rossum2001-08-171-2/+2
|
* Add early binding of methods to the 2nd metaclass example.Guido van Rossum2001-08-171-1/+6
|
* metaclass(): add tests for metaclasses written in Python: one thatGuido van Rossum2001-08-171-0/+33
| | | | | subclasses type, one that doesn't (the latter isn't fully functional yet).
* type_new(): only defer to the winning metatype if it's different fromGuido van Rossum2001-08-171-8/+12
| | | | | | | | the metatype passed in as an argument. This prevents infinite recursion when a metatype written in Python calls type.__new__() as a "super" call. Also tweaked some comments.
* Stop adding 3 to FD_SETSIZE -- it makes no sense. If it turns out itTim Peters2001-08-161-15/+11
| | | | | actually does <wink>, perhaps an Insure run will catch it. Also removed senseless Windows comment.
* fix_font(): Instead of using a long if/elsif cluster, use a bloodyFred Drake2001-08-161-23/+16
| | | | | dictionary. Added some entries to the dictionary to fix part of SF bug #451556.
* Fix typo reported by Joonas Paalasmaa: dada-->dataFred Drake2001-08-161-1/+1
|
* Re-write the description of the os.spawn*() functions, and cover theFred Drake2001-08-161-17/+51
| | | | | | | whole family instead of just two. This closes SF bug #451630.
* Added a test for module repr truncation when the package name isBarry Warsaw2001-08-161-0/+35
| | | | really long. Closes SF bug #437984.
* classobject.c:instancemethod_descr_get(): when a bound method isGuido van Rossum2001-08-162-1/+6
| | | | | | | assigned to a class variable and then accessed via an instance, it should not be rebound. test_descr.py:methods(): test for the condition above.
* module_repr(): Instead of fixing the maximum buf size to 400,Barry Warsaw2001-08-161-6/+18
| | | | | | | | calculate it on the fly. This way even modules with long package names get an accurate repr instead of a truncated one. The extra malloc/free cost shouldn't be a problem in a repr function. Closes SF bug #437984
* If genpluginprojects is called from fullbuild we set the Python source ↵Jack Jansen2001-08-162-1/+5
| | | | directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.
* init_sre(): Plug a little leak reported by Insure.Barry Warsaw2001-08-161-2/+5
|
* Link readline module with ncurses in preference to termcap. [Bug ##441580]Andrew M. Kuchling2001-08-161-3/+5
| | | | Remove pointless comment
* [Patch #441691] preprocess() method for Borland C compiler.Andrew M. Kuchling2001-08-161-1/+35
| | | | I have no way of testing this.
* test_descr started breaking in yet another way in the same place.Tim Peters2001-08-161-2/+6
|
* Fix object_repr() to include the module (using the same rules asGuido van Rossum2001-08-161-2/+23
| | | | type_repr() for when to show or not to show it).
* New unit test for the mimetypes module, to avoid future regressions.Fred Drake2001-08-161-0/+42
|
* Another egregious error that copied the encodings info over the suffixFred Drake2001-08-161-1/+1
| | | | info. Caught by the tests that I'm writing now.
* Use (c)StringIO for collecting bytes. Fixes bug #451622.Martin v. Löwis2001-08-161-8/+12
|
* Repair some accidents causing Windows failures:Tim Peters2001-08-162-5/+5
| | | | | | | + test_compare. While None compares less than anything else, it's not always the case that None has the smallest id(). + test_descr. The output of %p (pointer) formats varies across platforms. In particular, on Windows it doesn't produce a leading "0x".
* Fixed a couple of minor formatting nits where lines were > 79 columns wide.Barry Warsaw2001-08-161-2/+4
|
* select_select(): Closing bug #448351 the easy way, i.e. by changingBarry Warsaw2001-08-161-8/+21
| | | | | | | | | | the "#ifdef MS_WINDOWS" to "#ifdef SELECT_USES_HEAP" and by setting SELECT_USES_HEAP when FD_SETSIZE > 1024. The indirection seems useful since this subtly changes the path that "normal" Windows programs take (where Timmie sez FD_SETSIZE = 512). If that's a problem for Windows, he has only one place to change.
* Bad bug: the MimeTypes.readfp() was supposed to take a file object as aFred Drake2001-08-161-2/+2
| | | | | | | | parameter, but did not. This was found because it can create failures elsewhere based on the presence of mime.types files in some common locations the module searches by default. (I will be writing a test for this module shortly!)
* I should add that the previous checkin also added a slightGuido van Rossum2001-08-160-0/+0
| | | | | | | | | | optimization for dynamic classes. If __getattr__ is not found as an attribute on the type, slot_tp_getattro replaces itself with PyObject_GenericGetAttr. This means you can't add a __getattr__ method to a class after the fact -- but you can still *change* a __getattr__ method into a different one. (A similar restriction exists for classic classes.)
* Long time overdue: change sys.path defaults so that people willJust van Rossum2001-08-161-1/+1
| | | | have to do "from PIL import Image" instead of "import Image".
* Use METH_O where possible (two functions). This does not lead to realFred Drake2001-08-161-29/+24
| | | | | performance changes since the affected functions are not expected to be used frequently, but reduces the volume of code.
* Updated to the current state of things (long overdue).Jack Jansen2001-08-161-91/+61
|
* Removed expat from the access paths, it isn't needed.Jack Jansen2001-08-161-0/+0
|
* [Patch #444854 from twburton]Andrew M. Kuchling2001-08-161-1/+4
| | | | Add executable extension, needed to get the program name right on Win32
* [Patch #442530 from twburton]Andrew M. Kuchling2001-08-161-4/+4
| | | | | Provide include_dirs argument to all calls to ._preprocess and ._compile Fix typo: pattern.search(pattern) should be pattern.search(line)
* Patch #427190: Implement and use METH_NOARGS and METH_O.Martin v. Löwis2001-08-1617-552/+430
|
* Fix SF bug #442501: calculate __module__ properly.Guido van Rossum2001-08-161-5/+71
| | | | | | | | | | | | | | | | - type_module(), type_name(): if tp_name contains one or more period, the part before the last period is __module__, the part after that is __name__. Otherwise, for non-heap types, __module__ is "__builtin__". For heap types, __module__ is looked up in tp_defined. - type_new(): heap types have their __module__ set from globals().__name__; a pre-existing __module__ in their dict is not overridden. This is not inherited. - type_repr(): if __module__ exists and is not "__builtin__", it is included in the string representation (just as it already is for classes). For example <type '__main__.C'>.
* Change the type names to xxsublist.<name>.Guido van Rossum2001-08-161-2/+2
|
* The change of type(None).__name__ from 'None' to 'NoneType' broke thisGuido van Rossum2001-08-162-4/+4
| | | | test in a trivial way. Fixed.
* Subtle change to make None.__class__ work:Guido van Rossum2001-08-162-4/+2
| | | | | | | | | - descrobject.c:descr_check(): only believe None means the same as NULL if the type given is None's type. - typeobject.c:wrap_descr_get(): don't "conventiently" default an absent type to the type of the object argument. Let the called function figure it out.
* Oops. Two fixes for SF bug #422004 are not needed. :-)Guido van Rossum2001-08-161-1/+0
|
* Bunchathings:Guido van Rossum2001-08-161-5/+6
| | | | | | | | | | | - initsigs(): Ignore SIGXFZ so writing files beyond the file system size limit won't kill us. - Py_Initialize(): call _Py_ReadyTypes() instead of readying types here. - Py_Initialize(): call _PyImport_FixupExtension() for module "extensions". (SF bug #422004.)
* Add a function _Py_ReadyTypes() which initializes various and sundryGuido van Rossum2001-08-161-4/+21
| | | | | | | | | types -- currently Type, List, None and NotImplemented. To be called from Py_Initialize() instead of accumulating calls there. Also rename type(None) to NoneType and type(NotImplemented) to NotImplementedType -- naming the type identical to the object was confusing.
* Update to MvL's patch #424475 to avoid returning 2 when tp_compareGuido van Rossum2001-08-161-2/+5
| | | | | | returns that. (This fix is also by MvL; checkin it in because I want to make more changes here. I'm still not 100% satisfied -- see comments attached to the patch.)