summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Again perhaps the end of [#460020] bug or feature: unicode() and subclasses.Tim Peters2001-09-124-12/+45
| | | | | Inhibited complex unary plus optimization when applied to a complex subtype. Added PyComplex_CheckExact macro. Some comments and minor code fiddling.
* When MAKEFLAGS contains '-s', invoke setup.py with '-q', to silenceGuido van Rossum2001-09-121-1/+4
| | | | | | | its normally chatty nature. (This completes a side project to make "make -s" truly silent unless errors occur.)
* If interning an instance of a string subclass, intern a real string objectTim Peters2001-09-122-4/+34
| | | | | | with the same value instead. This ensures that a string (or string subclass) object's ob_sinterned pointer is always a str (or NULL), and that the dict of interned strings only has strs as keys.
* str_subtype_new, unicode_subtype_new:Tim Peters2001-09-123-15/+36
| | | | | | | | + These were leaving the hash fields at 0, which all string and unicode routines believe is a legitimate hash code. As a result, hash() applied to str and unicode subclass instances always returned 0, which in turn confused dict operations, etc. + Changed local names "new"; no point to antagonizing C++ compilers.
* More on bug 460020: disable many optimizations of unicode subclasses.Tim Peters2001-09-122-12/+66
|
* More bug 460020: lots of string optimizations inhibited for stringTim Peters2001-09-122-81/+71
| | | | | | | | | subclasses, all "the usual" ones (slicing etc), plus replace, translate, ljust, rjust, center and strip. I don't know how to be sure they've all been caught. Question: Should we complain if someone tries to intern an instance of a string subclass? I hate to slow any code on those paths.
* Add missing "}".Fred Drake2001-09-121-1/+1
|
* long_invert(): tiny speed and space optimization.Tim Peters2001-09-111-2/+1
|
* Add info about Windows filesystem limits.Tim Peters2001-09-111-1/+5
|
* 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)