summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added tests for findall().Guido van Rossum1998-07-171-1/+21
| | | | | Added test for m.groups() with default. Added a few prints announcing various tests in verbose mode.
* Eric Raymond documents two already-existing functions (bmp, png).Guido van Rossum1998-07-171-0/+2
|
* I_getattr(),Fred Drake1998-07-171-1/+7
| | | | | O_getattr(): Added read-only access to the closed attribute, based on comment from Michael Scharf <Michael.Scharf@Rhein-Neckar.de>.
* Add tests for array self-assigns. (This one has no relevance to JPython.)Guido van Rossum1998-07-161-1/+28
|
* Add tests for list self-assigns. (Sorry, this should have been hereGuido van Rossum1998-07-161-0/+13
| | | | before JPython 1.0 came out.)
* Avoid using calloc(). This triggered an obscure bug on multiprocessorGuido van Rossum1998-07-161-1/+2
| | | | | | | Sparc Solaris 2.6 (fully patched!) that I don't want to dig into, but which I suspect is a bug in the multithreaded malloc library that only shows up when run on a multiprocessor. (The program wasn't using threads, it was just using the multithreaded C library.)
* From: Nicolas CHAUVAT <nico@caesium.fr>Guido van Rossum1998-07-161-1/+1
| | | | | | | | | | In the bbox method of Group (Canvas.py file), you should read return self.canvas._getints(self._do('bbox')) instead of return self._getints(self._do('bbox'))
* Show how to do switchable panels.Guido van Rossum1998-07-151-0/+54
|
* Tk.__init__(): In computing baseName, add ".pyo" to list of droppedFred Drake1998-07-151-1/+2
| | | | | extensions, and include the "." in ".pyc". Still need to get _tkinter.c:Tkapp_New() to use baseName....
* Temporarily get rid of the registration of Tcl_Finalize() as aGuido van Rossum1998-07-141-0/+5
| | | | | | | | | low-level Python exit handler. This can attempt to call Python code at a point that the interpreter and thread state have already been destroyed, causing a Bus Error. Given the intended use of Py_AtExit(), I'm not convinced that it's a good idea to call it earlier during Python's finalization sequence... (Although this is the only use for it in the entire distribution.)
* Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)Guido van Rossum1998-07-131-15/+37
| | | | by Carey Evans <c.evans@clear.net.nz>, for picky mail servers.
* Added a delete() method to menu entries. Only the last entry of a menuJack Jansen1998-07-131-1/+14
| | | | | can be deleted, but that's good enough for things like a "Windows" menu with the dynamic list of open windows at the end of the menu.
* Added prototypes for the code resource routines, and for PstringJack Jansen1998-07-132-1/+4
| | | | (which was missing, for some reason).
* If the preference filename resource is empty don't try to open orJack Jansen1998-07-131-4/+13
| | | | | | create the preferences file. This is so that frozen programs don't interfere with an existing Python installation, or leave turds in the Preferences folder.
* All import-related code has moved to macimport.c.Jack Jansen1998-07-132-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 filesJack Jansen1998-07-1314-5028/+5127
|
* 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.