summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Don't return mac-style pathnames in unix-Python.Jack Jansen2001-08-082-168/+79
| | | | | - Fixed up a lot more prototypes (gcc also wants them on static routines) - Fixed various other gcc warnings.
* Removed special rule for Mac/Python/macglue.o, it is not needed anymore.Jack Jansen2001-08-081-3/+0
|
* Split macglue.c into two: a new mactoolboxglue.c (in ./Python)Jack Jansen2001-08-084-403/+478
| | | | | | | | | | | | with functionality needed for both unix-Python and MacPython and a new smaller ./Mac/Python/macglue.c which contains MacPython stuff only. pymactoolbox.h has moved to ./Include from ./Mac/Include and now also contains the relevant stuff from macglue.h. The net effect of this is that the ./Mac subdirectory is not needed anymore for building the unix-Python core on MacOSX (it is needed for building the extension modules).
* Put conditional S_IFMT definition into pyport.h.Martin v. Löwis2001-08-081-5/+0
|
* Remove redundant check for 'getaddrinfo' (it's already checked the blockThomas Wouters2001-08-081-1/+1
| | | | before.)
* Put conditional S_ISDIR definition(s) into pyport.h.Martin v. Löwis2001-08-084-14/+14
|
* Merged in bugfix from PyUnit CVS for problem reported by Gary Todd.Steve Purcell2001-08-081-3/+4
| | | | | | | | | If 'unittest.py' was run from the command line with the name of a test case class as a parameter, it failed with an ugly error. (Which was a shame, because the documentation says you can do that.) The problem was the old 'is the class X that you imported from me the same as my class X?' gotcha.
* Regenerated token.py to account for new DOUBLESLASH and DOUBLESLASHEQUAL.Tim Peters2001-08-081-3/+5
|
* Repair the Windows build (S_ISDIR() macro doesn't exist).Tim Peters2001-08-081-1/+1
| | | | | Somebody else should feel free to repair this a different way; see Python- Dev for discussion.
* Add option to push the development docs to SF without announcing, forFred Drake2001-08-081-2/+9
| | | | when the changes are just too small.
* More names....Fred Drake2001-08-081-0/+2
|
* Clean up some of the markup here -- be more consistent in the use ofFred Drake2001-08-081-9/+9
| | | | semantic labels instead of presentational markup.
* "Thin" version of floor division docs: add // to the list of operatorsFred Drake2001-08-081-3/+3
| | | | | | and //= to the list of other delimiter tokens. I'll work on it again when it's not so late...
* Patch #448227: Raise an exception when a directory is passed to execfile.Martin v. Löwis2001-08-081-4/+23
|
* Add new tokens // and //=, in support of PEP 238.Guido van Rossum2001-08-081-0/+1
|
* Implement PEP 238 in its (almost) full glory.Guido van Rossum2001-08-0819-226/+476
| | | | | | | | | | | | | | | | | | | | | | | | | | This introduces: - A new operator // that means floor division (the kind of division where 1/2 is 0). - The "future division" statement ("from __future__ import division) which changes the meaning of the / operator to implement "true division" (where 1/2 is 0.5). - New overloadable operators __truediv__ and __floordiv__. - New slots in the PyNumberMethods struct for true and floor division, new abstract APIs for them, new opcodes, and so on. I emphasize that without the future division statement, the semantics of / will remain unchanged until Python 3.0. Not yet implemented are warnings (default off) when / is used with int or long arguments. This has been on display since 7/31 as SF patch #443474. Flames to /dev/null.
* beginning of work on the conf. handling smartsSteven M. Gava2001-08-081-11/+25
|
* Commented out most of the MacPython modules. There is a discussion on theJack Jansen2001-08-081-25/+25
| | | | | | pythonmac-sig about turning this all into a package, so in the mean time there is no reason to scribble all over people's disks. Interested parties can uncomment them.
* Part of SF patch [#431848] mathmodule.c: doc strings & conversion, fromTim Peters2001-08-071-15/+18
| | | | | | Peter Schneider-Kamp. Clarified some docstrings in the spirit of the patch; left out the degrees() and radians() functions (see the patch comments on SF).
* Fix SF bug [ #447370 ] typo in urllib2.pyJeremy Hylton2001-08-071-7/+9
| | | | | | | | | Also fix another bug caught by pychecker-- HTTPError() raised when redirect limit exceed did not pass an fp object. Had to change method to keep fp object around until it's certain that the error won't be raised. Remove useless line in do_proxy().
* Apply two small changes to the Windows code, according to SF bugGuido van Rossum2001-08-071-2/+2
| | | | | #427345. These are supposed to support binary data and avoid buffering problems on Windows.
* Remove make_re() function; this is no longer needed since _sre and pcreFred Drake2001-08-071-10/+0
| | | | | | | are now allowed by ok_builtin_modules. This effectively backs out revision 1.26. This closes SF bug #448546.
* Add a test that xml.sax.saxutils.XMLGenerator does the right thingFred Drake2001-08-072-1/+18
| | | | | | when quoting attribute values that contain single & double quotes. This provides the rest of the regression test for SF bug #440351.
* Make sure XMLGenerator uses quoteattr() instead of escape() to quoteFred Drake2001-08-071-2/+2
| | | | | | | attribute values. Just using escape() can (and always has) led to broken XML being generated. This makes sure it always produces the right thing. This actually closes SF bug #440351.
* Fix the test so it uses IterableUserDict for the "for x in dict" test.Guido van Rossum2001-08-071-2/+2
|
* Remove the __iter__ method from the UserDict class -- it can silentlyGuido van Rossum2001-08-071-0/+2
| | | | | | | | | | break old code (in extreme cases). See SF bug #448153. Add a new subclass IterableUserDict that has the __iter__ method. Note that for new projects, unless backwards compatibility with pre-2.2 Python is required, subclassing 'dictionary' is recommended; UserDict might become deprecated.
* - Rename PyType_InitDict() to PyType_Ready().Guido van Rossum2001-08-075-13/+16
| | | | | | - Add an explicit call to PyType_Ready(&PyList_Type) to pythonrun.c (just for the heck of it, really -- we should either explicitly ready all types, or none).
* Add the NannyNag exception class and the process_tokens() function toGuido van Rossum2001-08-071-1/+1
| | | | | | | | | __all__, to indicate these are implied as part of the public API. IDLE's "Check Module" command uses this, and it broke once already because the reset_globals() and tokeneater() functions were deleted when Neil converted this to using the generator API of tokenizer. (See SF bug #448835.)
* Fix for SF bug #448835.Guido van Rossum2001-08-071-2/+1
| | | | | | | Fix this to work with the new (still undocumented) tabnanny API. I'm afraid Stephen will have to add this fix to the IDLE fork code base as well.
* Remove the test for the 'object' type -- it can no longer beGuido van Rossum2001-08-071-24/+0
| | | | | instantiated. (Its use as a base class is adequately tested by other tests.)
* Cosmetics:Guido van Rossum2001-08-071-10/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add comment blocks explaining add_operators() and override_slots(). (This file could use some more explaining, but this is all I had breath for today. :) - Renamed the argument 'base' of add_wrappers() to 'wraps' because it's not a base class (which is what the 'base' identifier is used for elsewhere). Small nits: - Fix add_tp_new_wrapper() to avoid overwriting an existing __new__ descriptor in tp_defined. - In add_operators(), check the return value of add_tp_new_wrapper(). Functional change: - Remove the tp_new functionality from PyBaseObject_Type; this means you can no longer instantiate the 'object' type. It's only useful as a base class. - To make up for the above loss, add tp_new to dynamic types. This has to be done in a hackish way (after override_slots() has been called, with an explicit call to add_tp_new_wrapper() at the very end) because otherwise I ran into recursive calls of slot_tp_new(). Sigh.
* silence warnings about import *Jeremy Hylton2001-08-071-0/+7
|
* Brought up-to-date.Jack Jansen2001-08-071-0/+0
|
* Got rid of (hopefully) the last 68k-mac related ifdefs.Jack Jansen2001-08-072-69/+0
|
* Got rid of 68k-Mac and other outdated ifdefs.Jack Jansen2001-08-075-37/+0
|
* Got rid of mactcp cruft, added Mlte and CF modules.Jack Jansen2001-08-071-8/+6
|
* Removed unused variable.Jack Jansen2001-08-071-2/+0
|
* Yet another project.Jack Jansen2001-08-072-0/+1078
|
* Got rid of (hopefully) the last 68k Mac-related ifdefs and various other cruft.Jack Jansen2001-08-079-21/+0
|
* Removed outdated stuff.Jack Jansen2001-08-073-130/+0
|
* Document two new itemsAndrew M. Kuchling2001-08-071-9/+21
| | | | | Correct error noticed by Keith Briggs Re-indent a paragraph
* Project files for the new plugin modules, plus a few that hadn't been added ↵Jack Jansen2001-08-0738-0/+18457
| | | | yet but should have been.
* Bit another bullet: all toolbox modules are now in dynamically loaded ↵Jack Jansen2001-08-079-146/+41
| | | | modules. Everything still seems to work, but the ConfigurePythonXXX on initial install may still need work.
* Bit the bullet and enabled garbage collection (finally).Jack Jansen2001-08-075-12/+64
| | | | Also updated pyconfig.h to the current state of pyconfig.h.in.
* more fleshing out, this time primarily the 'general' pageSteven M. Gava2001-08-071-2/+73
|
* Another bug fix for recent import * warning (caught by Thomas Wouters)Jeremy Hylton2001-08-061-3/+3
| | | | | Only return if symtable_warn() returns -1, indicating that the warning was turned into an error.
* + Turn off patch creation (this isn't a patch release! got turned on byTim Peters2001-08-061-23/+45
| | | | | | | | | mistake). + Arrange for Win2K Add/Remove to show a Python icon. I think this "does it" -- a full install/uninstall can now be done on a Win2K box from an ordinary (not Admin, not Power User) user acct, incl. file extension registration, Start Menu entries, and full Add/Remove.
* Fix error message for import * in function/class scopeJeremy Hylton2001-08-061-1/+1
|
* Fix SF bug [ #445474 ] warn about import * inside functionsJeremy Hylton2001-08-061-0/+5
| | | | Reported by the Man himself.
* Tabify the file (pointed out by Thomas Wouters)Andrew M. Kuchling2001-08-061-19/+19
|