Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Again perhaps the end of [#460020] bug or feature: unicode() and subclasses. | Tim Peters | 2001-09-12 | 4 | -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 silence | Guido van Rossum | 2001-09-12 | 1 | -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 object | Tim Peters | 2001-09-12 | 2 | -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 Peters | 2001-09-12 | 3 | -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 Peters | 2001-09-12 | 2 | -12/+66 |
| | |||||
* | More bug 460020: lots of string optimizations inhibited for string | Tim Peters | 2001-09-12 | 2 | -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 Drake | 2001-09-12 | 1 | -1/+1 |
| | |||||
* | long_invert(): tiny speed and space optimization. | Tim Peters | 2001-09-11 | 1 | -2/+1 |
| | |||||
* | Add info about Windows filesystem limits. | Tim Peters | 2001-09-11 | 1 | -1/+5 |
| | |||||
* | More bug 460020. Disable a number of long optimizations for long subclasses. | Tim Peters | 2001-09-11 | 2 | -18/+39 |
| | |||||
* | More bug 460020: when F is a subclass of float, disable the unary plus | Tim Peters | 2001-09-11 | 2 | -2/+7 |
| | | | | optimization (+F(whatever)). | ||||
* | More bug 460020. When I is a subclass of int, disable the +I(whatever), | Tim Peters | 2001-09-11 | 2 | -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 Jansen | 2001-09-11 | 1 | -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 Jansen | 2001-09-11 | 1 | -9/+67 |
| | | | | | Moved icopen to its alphabetical place. Moved waste here (from toolbox). | ||||
* | Added a note that these are not available under Carbon (or | Jack Jansen | 2001-09-11 | 2 | -3/+8 |
| | | | | OSX MachO Python). | ||||
* | Another documentation contributor. | Fred Drake | 2001-09-11 | 1 | -0/+1 |
| | |||||
* | Document clearly that the only way to retrieve the return code from the | Fred Drake | 2001-09-11 | 2 | -0/+13 |
| | | | | | child processes is to use the Popen3 and Popen4 classes. This fixes SF bug #460512. | ||||
* | The endless 460020 bug. | Tim Peters | 2001-09-11 | 2 | -6/+18 |
| | | | | Disable t[:], t*0, t*1 optimizations when t is of a tuple subclass type. | ||||
* | Added Donovan Preston. | Jack Jansen | 2001-09-11 | 1 | -0/+1 |
| | |||||
* | Added entry for the hmac module. | Fred Drake | 2001-09-11 | 2 | -0/+2 |
| | |||||
* | Documentation for the new login() method of the smtplib.SMTP class, | Fred Drake | 2001-09-11 | 1 | -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 Drake | 2001-09-11 | 1 | -0/+48 |
| | | | | This is part of SF patch #460112. | ||||
* | Silence parser generator output. | Guido van Rossum | 2001-09-11 | 3 | -7/+11 |
| | |||||
* | Added documentation on the getfirst() and getlist() methods of the | Fred Drake | 2001-09-11 | 1 | -6/+102 |
| | | | | | cgi.FieldStorage class. This closes SF patch #453691. | ||||
* | Replace a few places where X->ob_type was compared to &PyXXX_Type with | Guido van Rossum | 2001-09-11 | 2 | -7/+7 |
| | | | | calls to PyXXX_CheckExact(X). | ||||
* | Add login() method and SMTPAuthenticationError exception. SF patch | Guido van Rossum | 2001-09-11 | 1 | -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 Rossum | 2001-09-11 | 1 | -0/+2 |
| | |||||
* | HMAC algorithm as described by RFC 2104, by Gerhard Häring (SF patch | Guido van Rossum | 2001-09-11 | 1 | -0/+110 |
| | | | | #460112). | ||||
* | Another contributor. | Guido van Rossum | 2001-09-11 | 1 | -0/+1 |
| | |||||
* | Patch #460554: Properly test for tuples. | Martin v. Löwis | 2001-09-11 | 1 | -1/+1 |
| | |||||
* | Updated infomation about libraries for alternate compilers on Windows. | Fred Drake | 2001-09-11 | 1 | -5/+2 |
| | | | | This closes SF patch #459441. | ||||
* | When frameworks are not enabled don't put an empty target in the Makefile. | Jack Jansen | 2001-09-11 | 3 | -405/+419 |
| | | | | Older make's can apparently choke on this. | ||||
* | Fix the second reincarnation of SF #456395 -- failure on IRIX. This | Guido van Rossum | 2001-09-11 | 1 | -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 Tim | Guido van Rossum | 2001-09-11 | 1 | -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 Jansen | 2001-09-11 | 1 | -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 Jansen | 2001-09-11 | 1 | -2/+12 |
| | | | | - Allow any file to be dropped on the interpreter (for file args). | ||||
* | removed debug print. | Jack Jansen | 2001-09-11 | 1 | -1/+0 |
| | |||||
* | Added a note about making sure the Lac/Lib directory is in sys.path. | Jack Jansen | 2001-09-11 | 1 | -2/+8 |
| | |||||
* | Failing to import macfsn is not a fatal error. | Jack Jansen | 2001-09-11 | 1 | -1/+2 |
| | |||||
* | Implemented PyMac_GetFullPathname for MacPython. | Jack Jansen | 2001-09-11 | 1 | -3/+13 |
| | |||||
* | Possibly the end of SF [#460020] bug or feature: unicode() and subclasses. | Tim Peters | 2001-09-11 | 3 | -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 Peters | 2001-09-11 | 1 | -2/+2 |
| | |||||
* | Added another test of str() applied to a string subclass instance, | Tim Peters | 2001-09-11 | 1 | -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 Peters | 2001-09-11 | 4 | -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 Peters | 2001-09-10 | 1 | -2/+2 |
| | |||||
* | More on SF bug [#460020] bug or feature: unicode() and subclasses. | Tim Peters | 2001-09-10 | 3 | -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 Peters | 2001-09-10 | 1 | -0/+23 |
| | |||||
* | Prototype for PyMac_GetFullPathname(). | Jack Jansen | 2001-09-10 | 1 | -0/+1 |
| | |||||
* | Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length' | Jack Jansen | 2001-09-10 | 6 | -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 in | Fredrik Lundh | 2001-09-10 | 1 | -12/+17 |
| | | | | xmllib (on 2.0 and later) |