summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* More bug 460020. Disable a number of long optimizations for long subclasses.Tim Peters2001-09-112-18/+39
|
* More bug 460020: when F is a subclass of float, disable the unary plusTim Peters2001-09-112-2/+7
| | | | optimization (+F(whatever)).
* More bug 460020. When I is a subclass of int, disable the +I(whatever),Tim Peters2001-09-112-10/+15
| | | | | I(0) << whatever, I(0) >> whatever, I(whatever) << 0 and I(whatever) >> 0 optimizations.
* These modules now live under the Carbon package.Jack Jansen2001-09-111-42/+76
| | | | | | Added a few new toolbox modules. Noted machine dependencies for some modules. Moved waste to undoc.tex.
* Added applesingle, macresource, Nav and videoreader.Jack Jansen2001-09-111-9/+67
| | | | | Moved icopen to its alphabetical place. Moved waste here (from toolbox).
* Added a note that these are not available under Carbon (orJack Jansen2001-09-112-3/+8
| | | | OSX MachO Python).
* Another documentation contributor.Fred Drake2001-09-111-0/+1
|
* Document clearly that the only way to retrieve the return code from theFred Drake2001-09-112-0/+13
| | | | | child processes is to use the Popen3 and Popen4 classes. This fixes SF bug #460512.
* The endless 460020 bug.Tim Peters2001-09-112-6/+18
| | | | Disable t[:], t*0, t*1 optimizations when t is of a tuple subclass type.
* Added Donovan Preston.Jack Jansen2001-09-111-0/+1
|
* Added entry for the hmac module.Fred Drake2001-09-112-0/+2
|
* Documentation for the new login() method of the smtplib.SMTP class,Fred Drake2001-09-111-0/+18
| | | | | contributed by Gerhard Häring. This is part of SF patch #460112.
* Documentation for the new hmac module, contributed by Gerhard Häring.Fred Drake2001-09-111-0/+48
| | | | This is part of SF patch #460112.
* Silence parser generator output.Guido van Rossum2001-09-113-7/+11
|
* Added documentation on the getfirst() and getlist() methods of theFred Drake2001-09-111-6/+102
| | | | | cgi.FieldStorage class. This closes SF patch #453691.
* Replace a few places where X->ob_type was compared to &PyXXX_Type withGuido van Rossum2001-09-112-7/+7
| | | | calls to PyXXX_CheckExact(X).
* Add login() method and SMTPAuthenticationError exception. SF patchGuido van Rossum2001-09-111-3/+93
| | | | | | | | #460112 by Gerhard Haering. (With slight layout changes to conform to docstrings guidelines and to prevent a line longer than 78 characters. Also fixed some docstrings that Gerhard didn't touch.)
* Test for new hmac module.Guido van Rossum2001-09-111-0/+2
|
* HMAC algorithm as described by RFC 2104, by Gerhard Häring (SF patchGuido van Rossum2001-09-111-0/+110
| | | | #460112).
* Another contributor.Guido van Rossum2001-09-111-0/+1
|
* Patch #460554: Properly test for tuples.Martin v. Löwis2001-09-111-1/+1
|
* Updated infomation about libraries for alternate compilers on Windows.Fred Drake2001-09-111-5/+2
| | | | This closes SF patch #459441.
* When frameworks are not enabled don't put an empty target in the Makefile.Jack Jansen2001-09-113-405/+419
| | | | Older make's can apparently choke on this.
* Fix the second reincarnation of SF #456395 -- failure on IRIX. ThisGuido van Rossum2001-09-111-6/+2
| | | | time use .replace() to change all \r\n into \n, not just the last one.
* Restore the comparisons that I initially put in the test but that TimGuido van Rossum2001-09-111-6/+6
| | | | | | XXX'ed out. Turns out that after fixing the constructors, the comparisons in fact succeed. E.g. int(hexint(12345)) returns an int with value 12345.
* Mods by Donovan Preston (with changes by me to make them "go with the flow")Jack Jansen2001-09-111-14/+90
| | | | | | | | | | | | | that will detect an __main__.py or __rawmain__.py in the application bundle. This file is then exectued as the main script. We now have applets in MachO Python!!! The difference between __main__ and __rawmain__ is that the former gets a complete simulated argv (so you can drop files on the applet and the script sees them in sys.argv) while the latter skips the argv simulation and the <option>key dialog. This keeps the AppleEvent that started the app intact, as well as the funny "-psn_xxxx" argv[1] argument, so the script can do with these what it wants.
* - Removed the . in the extensions.Jack Jansen2001-09-111-2/+12
| | | | - Allow any file to be dropped on the interpreter (for file args).
* removed debug print.Jack Jansen2001-09-111-1/+0
|
* Added a note about making sure the Lac/Lib directory is in sys.path.Jack Jansen2001-09-111-2/+8
|
* Failing to import macfsn is not a fatal error.Jack Jansen2001-09-111-1/+2
|
* Implemented PyMac_GetFullPathname for MacPython.Jack Jansen2001-09-111-3/+13
|
* Possibly the end of SF [#460020] bug or feature: unicode() and subclasses.Tim Peters2001-09-113-6/+16
| | | | | Changed unicode(i) to return a true Unicode object when i is an instance of a unicode subclass. Added PyUnicode_CheckExact macro.
* PyUnicode_FromEncodedObject(): Repair memory leak in an error case.Tim Peters2001-09-111-2/+2
|
* Added another test of str() applied to a string subclass instance,Tim Peters2001-09-111-0/+4
| | | | | involving embedded null bytes, since it's possible to screw that up w/o screwing up cases w/o embedded nulls.
* More on SF bug [#460020] bug or feature: unicode() and subclasses.Tim Peters2001-09-114-3/+10
| | | | | Repaired str(i) to return a genuine string when i is an instance of a str subclass. New PyString_CheckExact() macro.
* Fix tortured comment -- I must be on drugs today.Tim Peters2001-09-101-2/+2
|
* More on SF bug [#460020] bug or feature: unicode() and subclasses.Tim Peters2001-09-103-2/+7
| | | | | | | | tuple(i) repaired to return a true tuple when i is an instance of a tuple subclass. Added PyTuple_CheckExact macro. PySequence_Tuple(): if a tuple-like object isn't exactly a tuple, it's not safe to return the object as-is -- make a new tuple of it instead.
* test_dir(): Add tests for dir(i) where i is a module subclass.Tim Peters2001-09-101-0/+23
|
* Prototype for PyMac_GetFullPathname().Jack Jansen2001-09-101-0/+1
|
* Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'Jack Jansen2001-09-106-35/+74
| | | | | | parameter for the return string (as unix pathnames are not limited by the 255 char pstring limit). Implemented the function for MachO-Python, where it returns unix pathnames.
* more xmlrpclib tweaks: fixed repr(Fault()); enable UTF-8 parsing inFredrik Lundh2001-09-101-12/+17
| | | | xmllib (on 2.0 and later)
* More for SF bug [#460020] bug or feature: unicode() and subclassesTim Peters2001-09-103-2/+7
| | | | | Repair float constructor to return a true float when passed a subclass instance. New PyFloat_CheckExact macro.
* Superseded by Python 2.2.vct.Jack Jansen2001-09-101-0/+0
|
* SF bug #460020: bug or feature: unicode() and subclasses.Tim Peters2001-09-106-3/+55
| | | | | | | | | | | Given an immutable type M, and an instance I of a subclass of M, the constructor call M(I) was just returning I as-is; but it should return a new instance of M. This fixes it for M in {int, long}. Strings, floats and tuples remain to be done. Added new macros PyInt_CheckExact and PyLong_CheckExact, to more easily distinguish between "is" and "is a" (i.e., only an int passes PyInt_CheckExact, while any sublass of int passes PyInt_Check). Added private API function _PyLong_Copy.
* _portable_fseek():Guido van Rossum2001-09-101-0/+6
| | | | | | | | | | | | | | | | | | | | | Subtlety on Windows: if we change test_largefile.py to use a file > 4GB, it still fails. A debug session suggests this is because fseek(fp, 0, 2) refuses to seek to the end of the file when the file is > 4GB, because it uses the SetFilePointer() in 32-bit mode. But it only fails when we seek relative to the end of the file, because in the other seek modes only calls to fgetpos() and fsetpos() are made, which use Get/SetFilePointer() in 64-bit mode. Solution: #ifdef MS_WInDOWS, replace the call to fseek(fp, ...) with a call to _lseeki64(fileno(fp), ...). Make sure to call fflush(fp) first. (XXX Could also replace the entire branch with a call to _lseeki64(). Would that be more efficient? Certainly less generated code.) (XXX This needs more testing. I can't actually test that it works for files >4GB on my Win98 machine, because the filesystem here won't let me create files >=4GB at all. Tim should test this on his Win2K machine.)
* sync with pythonware codebase: much faster import (doesn't importFredrik Lundh2001-09-101-65/+70
| | | | | xmllib unless needed), merged docstring patches, added overridable Transport.getparser to simplify plugging in different parsers.
* Another volunteer.Guido van Rossum2001-09-101-0/+1
|
* PyObject_Dir():Guido van Rossum2001-09-101-2/+6
| | | | | | - use PyModule_Check() instead of PyObject_TypeCheck(), now we can. - don't assert that the __dict__ gotten out of a module is always a dictionary; check its type, and raise an exception if it's not.
* PyModule_Check() now checks for subtype of module, as it should.Guido van Rossum2001-09-101-1/+1
|
* Remove some XXX markersAndrew M. Kuchling2001-09-101-15/+17
| | | | Update the patch and bug counts