summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* We now assume that PyOS_Readline() is called with the interpreter lockGuido van Rossum1998-08-271-11/+3
| | | | | held. It releases the lock around the call to the function pointed to by PyOS_ReadlineFunctionPointer (default PyOS_StdioReadline()).
* Add a 'volatile' to the declaration of threadid in get_thread_ident().Guido van Rossum1998-08-271-1/+1
| | | | | According to Vladimir Marangozov, this is necessary for AIX, where high optimization levels inline this function and then get it wrong :-(
* Don't release the interpreter lock around PyParser_ParseFile().Guido van Rossum1998-08-271-4/+0
| | | | It is needed so that tokenizer.c can use PySys_WriteStderr().
* Changes by Richard Wolff:Guido van Rossum1998-08-271-13/+21
| | | | | | | | | | | | | | | | 1) I added a command queue which is helpful to me (at least so far) and would also allow syntax like 's;s' (step; step) in conjunction with precmd 2) doc_leader allows the derived class to print a message before the help output. Defaults to current practise of a blank line 3) nohelp allows one to override the 'No help on' message. I need 'Undefined command: "%s". Try "help".' 4) Pass line to self.precmd to allow one to do some parsing: change first word to lower case, strip out a leading number, whatever. 5) Pass the result of onecmd and the input line to postcmd. This allows one to ponder the stop result before it is effective. 6) emptyline() requires a if self.lastcmd: conditional because if the first command is null (<cr>), you get an infinite recursion with the code as it stands.
* Added a note about the buildlibs script.Jack Jansen1998-08-271-4/+11
|
* fix typo in keyword argument 'allow_frament' should be 'allow_fragment'Jeremy Hylton1998-08-251-6/+6
|
* __file__ used to be always set to the .pyc (or .pyo) file, even ifGuido van Rossum1998-08-251-1/+2
| | | | | | | that file in fact did not exist or at least was not used. Change this so that __file__ is *only* set to the .pyc/.pyo file when it actually read the code object from it; otherwise __file__ is set to the .py file.
* Comment out the print statement about underflow. (This only seems toGuido van Rossum1998-08-251-2/+2
| | | | | | | | happen when you use a non-keyword argument after a keyword argument, and in this case you also get a syntax error. I fully suspect that the underflow is caused by the code that stops generating code when it detects the syntax error, but I can't find the culprit right now. I know, I know.)
* Add the type of the object to the error message about calling a non-function.Guido van Rossum1998-08-251-3/+5
|
* Replace all calls to fprintf(stderr, ...) with PySys_WriteStderr(...).Guido van Rossum1998-08-251-5/+6
|
* Add a version of PySys_WriteStderr() that writes to stderr, so we canGuido van Rossum1998-08-251-0/+27
| | | | use it in tokenizer.c.
* Restructure the file so that it is never empty. No longer needsGuido van Rossum1998-08-251-10/+10
| | | | Metrowerks specific #ifdef.
* Patch by Mark Hammond to support 64-bit ints on MS platforms.Guido van Rossum1998-08-255-33/+38
| | | | | | The MS compiler doesn't call it 'long long', it uses __int64, so a new #define, LONG_LONG, has been added and all occurrences of 'long long' are replaced with it.
* Ignore cruft generating by the test run for hello.py.Guido van Rossum1998-08-251-0/+6
|
* Y2K fix affecting asctime(), mktime(), strftime().Guido van Rossum1998-08-251-19/+37
| | | | | | | | | | | | | | | | 2-digit years are now converted using rules that are (according to Fredrik Lundh) recommended by POSIX or X/Open: 0-68 mean 2000-2068, 69-99 mean 1969-1999. 2-digit years are now only accepted if time.accept2dyear is set to a nonzero integer; if it is zero or not an integer or absent, only year values >= 1900 are accepted. Year values 100-1899 and negative year values are never accepted. The initial value of time.accept2dyear depends on the environment variable PYTHONY2K: if PYTHONY2K is set and non-empty, time.accept2dyear is initialized to 0; if PYTHONY2K is empty or not set, time.accept2dyear is initialized to 0.
* Describe what happens when ``raise C, x'' is called where C is a classGuido van Rossum1998-08-251-7/+13
| | | | and x is not an instance of C (nor of a class derived of C).
* Clarify Y2K behavior when a tuple with a 2-digit date is passed toGuido van Rossum1998-08-251-2/+15
| | | | mktime() and such.
* New version, with contributions from Sjoerd Mullender and Mark Hammond.Guido van Rossum1998-08-258-89/+189
| | | | | | | | | | | | Sjoerd writes: This version of freeze creates one file per Python module, instead of one humongous file for all Python modules. bkfile: new module to used to write files with backups. No new file is produced if the new contents is identical to the old. New option "-x excluded-module" for modulefinder test program. New option "-i filename" for freeze main program to include a list of options in place of the -i option.
* There was still something wrong. The original NOTTESTS are replacedGuido van Rossum1998-08-251-3/+6
| | | | | | by the new '-x' arguments, losing the previous items. Thus, test_support, test_b1 & test_b2 are executed (and warnings issued). (Discovered by Vladimir Marangozov.)
* Patch by Chris Herborth (posted to comp.lang.python)to make it behaveGuido van Rossum1998-08-241-3/+3
| | | | with tags that have - or . in their names.
* round(): Mark the second (optional) parameter as optional, since it'sFred Drake1998-08-241-4/+4
| | | | | | described that way. setattr(): Clarify that the attribute doesn't need to exist to be set.
* Added some cross-references to the end.Fred Drake1998-08-241-0/+6
|
* spoking --> speakingFred Drake1998-08-241-7/+7
| | | | object whose method this is --> object on which the method operates
* Ted Horst writes in psa-members@python.org:Guido van Rossum1998-08-241-0/+41
| | | | | | This is a patch that Bill Bummgarner did for 1.4 that hasn't made its way into the distribution yet. This is important if you want to use the ObjC module.
* Should pass explicit arguments to findtests(). Should initialize 'nottests'.Guido van Rossum1998-08-241-2/+4
|
* Move an indented #define to column 1.Guido van Rossum1998-08-231-1/+1
|
* There is no <ISINPUT> element, just <ISINDEX>. ;-)Fred Drake1998-08-211-1/+1
|
* The .subn() method wasn't setting _num_regs, which is used by the .groups()Andrew M. Kuchling1998-08-211-0/+1
| | | | | method, so .groups() didn't work inside the replacement function called by re.sub. One-line fix: set self._num_regs inside subn().
* Update commentary. For most stuff, point people to the web pageBarry Warsaw1998-08-201-58/+18
|
* (py-shell-map): New variable contains the keymap used in *Python*Barry Warsaw1998-08-201-5/+12
| | | | | | | | shell buffers. (py-shell): Moved the require of comint to the top level. Also use-local-map py-shell-map instead of hacking on the comint-mode-map. This eliminates breakage of other comint-mode buffers (e.g. shell).
* (py-shell): comint-output-filter-functions is already buffer-localBarry Warsaw1998-08-201-1/+0
|
* (py-process-filter): Deleted this function. In order to fixBarry Warsaw1998-08-201-116/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interactions with newer Emacsen, I've rewritten the way all the process filters work in the *Python* buffer. We use more of the comint infrastructure, specifically the default process filter. This means that scrolling is now handled by the default comint variables including comint-scroll-to-bottom-on-output. Note that this is somewhat experimental change! (py-comint-output-filter-function): Moved to here from the obsolete py-process-filter function, the logic to pop and exec the next queued file waiting to be executed. (py-execute-file): Don't bind comint-scroll-to-bottom-on-output to t, and save the excursion when inserting the "working on" message. This lets the standard comint scrolling variables as set by the user, continue to work. (python-mode, py-shell, py-describe-mode): Remove description of py-scroll-process-buffer. Also in py-shell, make comint-output-filter-functions buffer-local, and add py-comint-output-filter-function to this hook (instead of setting the process filter). (py-scroll-process-buffer): Deleted this variable. See comint variables including comint-scroll-to-bottom-on-output. (py-execute-region): When exec files are being queued, push the next temp file on the end of the list. (py-submit-bug-report): Removed reporting of py-scroll-process-buffer.
* All libraries have now been moved to their new location, with their new names.Jack Jansen1998-08-209-0/+0
| | | | | As everything is also under CVS this should greatly simplify the work to be done when a new version of one of the libraries we use is released.
* A new project that builds cwgusi, tcl, tk and all image libraries needed.Jack Jansen1998-08-201-0/+0
|
* Replaced all remaining BinHex files with their binary counterparts.Jack Jansen1998-08-2048-4041/+0
|
* Binhextree doesn't binhex anymore, it just copies the projects around. ThisJack Jansen1998-08-201-4/+6
| | | | does make the name a bit of a non-sequitur:-)
* I guess I'll have to commit this file occasionally...Jack Jansen1998-08-201-1/+1
|
* Define some things to 1 (in stead of empty) to be compatible with new PILJack Jansen1998-08-201-2/+2
|
* Various libraryies have been moved around and renamed, now that we haveJack Jansen1998-08-193-0/+0
| | | | them under cvs too.
* Added an example that uses signal.alarm() to time out an os.open() thatAndrew M. Kuchling1998-08-181-1/+29
| | | | | | | | | takes too long. This example relies on the fact that raising an exception in a signal handler causes the exception to be re-raised when the main line of the program resumes execution. Is this guaranteed in CPython, or is this something that just happens to work by accident? Also fixed a typo.
* Raise the right exception (ValueError) for attempted I/O on closed StringIOFred Drake1998-08-181-1/+14
| | | | | objects; this makes the emulation of file objects a bit better, and the exceptions explain things a bit better.
* Replaced binhexed version of project files by normal ones (in binary mode)Jack Jansen1998-08-1844-9217/+0
|
* Updated for 1.5.2a1Jack Jansen1998-08-182-3/+1
|
* Replaced the hand-generated .hqx files by the binary resourcefiles themselvesJack Jansen1998-08-1814-6572/+0
| | | | (in AppleSingle format, so should be readable with MacCVS Pro too)
* Initial revisionJack Jansen1998-08-1836-0/+8306
|
* Initial revisionJack Jansen1998-08-1824-0/+5316
|
* Putting Python-specific GUSI modifications under CVS.Jack Jansen1998-08-186-0/+3264
|
* Putting TCL mods for Python under CVS.Jack Jansen1998-08-183-0/+967
|
* I give in (after all these years): renaming config.c to macconfig.c to forestallJack Jansen1998-08-181-0/+0
| | | | the continuous name conflicts which cause the wrong config.c to be found.
* Support for freezing packages (Just).Jack Jansen1998-08-184-12/+58
|