summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add an empty PYTHONPREFSFILE STR resource, so frozen applicationsJack Jansen1998-07-131-81/+82
| | | | don't try to open/create the preferences file.
* Add special case to PySequence_List() so that list() of a list isGuido van Rossum1998-07-101-0/+6
| | | | | | faster (using PyList_GetSlice()). Also added a test for a NULL argument, as with PySequence_Tuple(). (Hmm... Better names for these two would be PyList_FromSequence() and PyTuple_FromSequence(). Oh well.)
* Small changes to map() and filter():Guido van Rossum1998-07-101-5/+8
| | | | | | | (1) If a sequence S is shorter than len(S) indicated, don't fail -- just use the shorter size. (I.e, len(S) is just a hint.) (2) Implement the special case map(None, S) as list(S) -- it's faster.
* Changed PySequence_List() and PySequence_Tuple() to supportGuido van Rossum1998-07-101-27/+38
| | | | | | | | | "indefinite length" sequences. These should still have a length, but the length is only used as a hint -- the actual length of the sequence is determined by the item that raises IndexError, which may be either smaller or larger than what len() returns. (This is a novelty; map(), filter() and reduce() only allow the actual length to be larger than what len() returns, not shorter. I'll fix that shortly.)
* Added a function SetUserItemHandler: this takes a function(dialog,Jack Jansen1998-07-102-0/+110
| | | | | | item) as parameter and returns a handle suitable for passing to SetDialogItem as a user-item redraw routine. Note that you can only make one of these, for now.
* Add macros for direct access to the members of CFunction objects.Guido van Rossum1998-07-101-0/+9
|
* Move the definition of PyMethodObject to classobject.h, so it can defineGuido van Rossum1998-07-102-8/+16
| | | | macros for more efficient access to the fields.
* Marc-Andre Lemburg's patch to move the typedef for PyCFunctionObjectGuido van Rossum1998-07-102-6/+15
| | | | to the .h file and add macros there for inlined access to the fields.
* (1) Added a sys.exc_info() emulation. (It returns None for the traceback.)Guido van Rossum1998-07-091-15/+57
| | | | | | | (2) Made the test script a bit fancier -- you can now use it to run arbitrary scripts in restricted mode, and it will do the right thing. (The interactive mode is still pretty lame; should integrate this with code.interact().)
* Added item about index item/subitem separation.Fred Drake1998-07-081-5/+6
|
* Fix suggested by Lorenzo M. Catucci <lorenzo@argon.roma2.infn.it> to keep theFred Drake1998-07-081-1/+1
| | | | | large letter at the top of each index section with at least the first entry for that letter.
* # In case BINARY_SUBSCR, use proper PyList_GET* macros instead of inlining.Guido van Rossum1998-07-081-3/+3
|
* Marc-Andre Lemburg's patch to support instance methods with otherGuido van Rossum1998-07-083-19/+41
| | | | callable objects than regular Pythonm functions as their im_func.
* Reindented some OS/2 and hpux code that looked ugly or at leastGuido van Rossum1998-07-081-29/+28
| | | | inconsistent.
* Recompute the special getattr/setattr/delattr cache slots afterGuido van Rossum1998-07-081-7/+13
| | | | changing __dict__ *or* __bases__.
* Rewrite to support multiple suckers, each with their own thread.Guido van Rossum1998-07-081-102/+140
|
* Instead of printint, use self.message() or self.note().Guido van Rossum1998-07-082-72/+63
|
* Needed.Guido van Rossum1998-07-081-0/+10
|
* Minor change for windows; set extensions_c later and setGuido van Rossum1998-07-071-1/+3
| | | | frozendllmain_c at the right place.
* Put back the call to report_unbalanced() that was lost whenGuido van Rossum1998-07-071-0/+2
| | | | parse_endtag() was restructured in parse_endtag() and finish_endtag().
* # Bump version because of checkin to faqwiz.py. :-(Guido van Rossum1998-07-071-1/+1
|
* Don't add <...> around mail addresses; they may already be there.Guido van Rossum1998-07-071-1/+1
|
* Added hints about building your own DLL.Guido van Rossum1998-07-071-0/+9
|
* Two error messages still used the old name of the functio mkvalue() --Guido van Rossum1998-07-071-2/+2
| | | | which is now Py_BuildValue().
* Add a cast that a picky SGI compiler found was necessary.Guido van Rossum1998-07-071-1/+1
|
* Fix a benign problem found by a picky SGI compiler (unreachable breakGuido van Rossum1998-07-071-1/+0
| | | | after a return).
* Fix benign problems found by a picky SGI compiler (unreachable breakGuido van Rossum1998-07-071-2/+0
| | | | after a return or goto).
* Fix benign problems found by a picky SGI compiler (unreachable breakGuido van Rossum1998-07-072-20/+0
| | | | after a return).
* Fix some problems that a picky SGI compiler reported. Two were benignGuido van Rossum1998-07-071-3/+1
| | | | | (unreachable break after a return) but one was a real bug: ReadFrames() was getting a bogus framecount because of a missing '&'.
* Sigh. The hack to enable special treatment for errno on SGI machinesGuido van Rossum1998-07-071-0/+4
| | | | | | | | | must be enabled here, otherwise the errno we set on overflows is not the errno that's being read by compile.c. Wonder how many other files that do their own "#include config.h" need this too :-( (Because of the structure of autoconf, it's not so simple to get this into config.h...)
* Guess what...Guido van Rossum1998-07-071-208/+209
|
* Fix two unrelated problems in the same area:Guido van Rossum1998-07-071-16/+17
| | | | | | | | | | | (1) reorder the tests for -Olimit 1500 and -OPT:Olimit=0 so that the latter test is performed first, and if it works, the former test is skipped. This should get rid of the problem that the new SGI compilers accept both but emit a warning about -Olimit 1500. (2) The DGUX hack was somehow split in two by the Olimit tests, probably as the result of a non-context diff. Moved this back together again, after the Olimit tests.
* Added copious docstrings, plus two minor layout tweaks.Guido van Rossum1998-07-071-39/+309
|
* In the example iterating over sys.argv and opening each argument,Guido van Rossum1998-07-071-1/+1
| | | | change it to iterate over sys.argv[1:]. Suggestion by Gerry Wiener.
* (py-beginning-of-def-or-class, py-end-of-def-or-class,Barry Warsaw1998-07-071-21/+37
| | | | | | | | | | py-mark-def-or-class): Integrated Michael Ernst latest patches. Primarily, it allows functions that search or mark defs/classes based on programmatic specification, to take an 'either flag value which allows searching for both classes and defs (stopping at the nearest construct). Also clean up some docstrings.
* (py-comment-indent-function): A replacement forBarry Warsaw1998-07-071-13/+32
| | | | | | | | | | | | comment-indent-function's default lambda value (in simple.el), this version finally kills this nit: auto-filling a comment that starts in column zero with filladapt turned off would cascade the #'s to the right. Now auto-filling seems to work with or without filladapt, and with the comment starting in any column. (python-mode): Set comment-indent-function.
* Get rid of some obsolete opcodes.Guido van Rossum1998-07-072-10/+0
|
* Rewritten a bit to address some criticism in the newsgroup.Guido van Rossum1998-07-061-31/+44
|
* Added back the description of the exec statement. It appears that IGuido van Rossum1998-07-061-0/+38
| | | | | | accidentally cut it out when removing the access statement! Added a paragraph on __builtins__ and other possible manipulations of the key space of the dictionaries. Added some index entries.
* The permissions ('mode' flag) should default to 0666.Guido van Rossum1998-07-031-1/+1
|
* The _fromlinepattern was a little too restrictive -- some sendmailsGuido van Rossum1998-07-021-1/+1
| | | | don't put the seconds in the time!
* # The variable total is never used somehow. I think I had plans forGuido van Rossum1998-07-021-2/+2
| | | | # it but can't remember what. Get rid of a comparison that breaks.
* According to Robin Dunn, at least one FTP server returns 200 insteadGuido van Rossum1998-07-021-1/+1
| | | | of 250 on a successful delete.
* Normalize markup.Fred Drake1998-07-021-68/+78
|
* Normalize the markup.Fred Drake1998-07-021-38/+42
|
* Added index entry.Fred Drake1998-07-021-0/+1
|
* Added \deprecated to exit_thread() function.Fred Drake1998-07-021-0/+1
| | | | Reflects Guido's revision.
* On Windows, put the select file descriptor arrays on the heap.Guido van Rossum1998-07-021-0/+22
| | | | | This is because they are huge and the stack is limited on Windows. Other platforms keep declaring it on the stack.
* Gotta have an __init__() method -- pdb.py calls it!Guido van Rossum1998-07-011-0/+2
|
* Several changes:Barry Warsaw1998-07-011-40/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Convert to using re module 2. Added two new exception classes a. MissingSectionHeaderError which signals an early parsing exception when options appear in the file before any section header. Previously a bogus TypeError was thrown deeper down. b. ParsingError which collates any non-fatal parsing errors. ConfigParser.read() will raise this after the entire file was parsed if any errors occurred during parsing (client could just catch the exception and continue, because the ConfigParser instance would still be initialized with the valid data). (small note: Error.__msg => Error._msg) 3. ConfigParser.__read() now uses re which has the following minor semantic change: underscore is now allowed in section header and option name. Also, because of the old regexps, theoretically. Fixed continuation line bug reported by F. Lundh. 4. It seemed that the old ConfigParser automatically added the option `name' to every section, which contained the name of the section. This seemed bogus to me so I took it out.