Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | All import-related code has moved to macimport.c. | Jack Jansen | 1998-07-13 | 2 | -224/+416 |
| | | | | | | | | | There's also new support for importing code fragments: if a file on sys.path contains a PYD resource with resourcename equal to the name of the module to be imported this PYD resource should contain a (pascal) string with the name of a code fragment to load. This allows freezing Python programs without access to source or a development environment. | ||||
* | Added macimport.c to various files | Jack Jansen | 1998-07-13 | 14 | -5028/+5127 |
| | |||||
* | Add an empty PYTHONPREFSFILE STR resource, so frozen applications | Jack Jansen | 1998-07-13 | 1 | -81/+82 |
| | | | | don't try to open/create the preferences file. | ||||
* | Add special case to PySequence_List() so that list() of a list is | Guido van Rossum | 1998-07-10 | 1 | -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 Rossum | 1998-07-10 | 1 | -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 support | Guido van Rossum | 1998-07-10 | 1 | -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 Jansen | 1998-07-10 | 2 | -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 Rossum | 1998-07-10 | 1 | -0/+9 |
| | |||||
* | Move the definition of PyMethodObject to classobject.h, so it can define | Guido van Rossum | 1998-07-10 | 2 | -8/+16 |
| | | | | macros for more efficient access to the fields. | ||||
* | Marc-Andre Lemburg's patch to move the typedef for PyCFunctionObject | Guido van Rossum | 1998-07-10 | 2 | -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 Rossum | 1998-07-09 | 1 | -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 Drake | 1998-07-08 | 1 | -5/+6 |
| | |||||
* | Fix suggested by Lorenzo M. Catucci <lorenzo@argon.roma2.infn.it> to keep the | Fred Drake | 1998-07-08 | 1 | -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 Rossum | 1998-07-08 | 1 | -3/+3 |
| | |||||
* | Marc-Andre Lemburg's patch to support instance methods with other | Guido van Rossum | 1998-07-08 | 3 | -19/+41 |
| | | | | callable objects than regular Pythonm functions as their im_func. | ||||
* | Reindented some OS/2 and hpux code that looked ugly or at least | Guido van Rossum | 1998-07-08 | 1 | -29/+28 |
| | | | | inconsistent. | ||||
* | Recompute the special getattr/setattr/delattr cache slots after | Guido van Rossum | 1998-07-08 | 1 | -7/+13 |
| | | | | changing __dict__ *or* __bases__. | ||||
* | Rewrite to support multiple suckers, each with their own thread. | Guido van Rossum | 1998-07-08 | 1 | -102/+140 |
| | |||||
* | Instead of printint, use self.message() or self.note(). | Guido van Rossum | 1998-07-08 | 2 | -72/+63 |
| | |||||
* | Needed. | Guido van Rossum | 1998-07-08 | 1 | -0/+10 |
| | |||||
* | Minor change for windows; set extensions_c later and set | Guido van Rossum | 1998-07-07 | 1 | -1/+3 |
| | | | | frozendllmain_c at the right place. | ||||
* | Put back the call to report_unbalanced() that was lost when | Guido van Rossum | 1998-07-07 | 1 | -0/+2 |
| | | | | parse_endtag() was restructured in parse_endtag() and finish_endtag(). | ||||
* | # Bump version because of checkin to faqwiz.py. :-( | Guido van Rossum | 1998-07-07 | 1 | -1/+1 |
| | |||||
* | Don't add <...> around mail addresses; they may already be there. | Guido van Rossum | 1998-07-07 | 1 | -1/+1 |
| | |||||
* | Added hints about building your own DLL. | Guido van Rossum | 1998-07-07 | 1 | -0/+9 |
| | |||||
* | Two error messages still used the old name of the functio mkvalue() -- | Guido van Rossum | 1998-07-07 | 1 | -2/+2 |
| | | | | which is now Py_BuildValue(). | ||||
* | Add a cast that a picky SGI compiler found was necessary. | Guido van Rossum | 1998-07-07 | 1 | -1/+1 |
| | |||||
* | Fix a benign problem found by a picky SGI compiler (unreachable break | Guido van Rossum | 1998-07-07 | 1 | -1/+0 |
| | | | | after a return). | ||||
* | Fix benign problems found by a picky SGI compiler (unreachable break | Guido van Rossum | 1998-07-07 | 1 | -2/+0 |
| | | | | after a return or goto). | ||||
* | Fix benign problems found by a picky SGI compiler (unreachable break | Guido van Rossum | 1998-07-07 | 2 | -20/+0 |
| | | | | after a return). | ||||
* | Fix some problems that a picky SGI compiler reported. Two were benign | Guido van Rossum | 1998-07-07 | 1 | -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 machines | Guido van Rossum | 1998-07-07 | 1 | -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 Rossum | 1998-07-07 | 1 | -208/+209 |
| | |||||
* | Fix two unrelated problems in the same area: | Guido van Rossum | 1998-07-07 | 1 | -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 Rossum | 1998-07-07 | 1 | -39/+309 |
| | |||||
* | In the example iterating over sys.argv and opening each argument, | Guido van Rossum | 1998-07-07 | 1 | -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 Warsaw | 1998-07-07 | 1 | -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 for | Barry Warsaw | 1998-07-07 | 1 | -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 Rossum | 1998-07-07 | 2 | -10/+0 |
| | |||||
* | Rewritten a bit to address some criticism in the newsgroup. | Guido van Rossum | 1998-07-06 | 1 | -31/+44 |
| | |||||
* | Added back the description of the exec statement. It appears that I | Guido van Rossum | 1998-07-06 | 1 | -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 Rossum | 1998-07-03 | 1 | -1/+1 |
| | |||||
* | The _fromlinepattern was a little too restrictive -- some sendmails | Guido van Rossum | 1998-07-02 | 1 | -1/+1 |
| | | | | don't put the seconds in the time! | ||||
* | # The variable total is never used somehow. I think I had plans for | Guido van Rossum | 1998-07-02 | 1 | -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 instead | Guido van Rossum | 1998-07-02 | 1 | -1/+1 |
| | | | | of 250 on a successful delete. | ||||
* | Normalize markup. | Fred Drake | 1998-07-02 | 1 | -68/+78 |
| | |||||
* | Normalize the markup. | Fred Drake | 1998-07-02 | 1 | -38/+42 |
| | |||||
* | Added index entry. | Fred Drake | 1998-07-02 | 1 | -0/+1 |
| | |||||
* | Added \deprecated to exit_thread() function. | Fred Drake | 1998-07-02 | 1 | -0/+1 |
| | | | | Reflects Guido's revision. | ||||
* | On Windows, put the select file descriptor arrays on the heap. | Guido van Rossum | 1998-07-02 | 1 | -0/+22 |
| | | | | | This is because they are huge and the stack is limited on Windows. Other platforms keep declaring it on the stack. |