e3955a8 | Guido van Rossum | 02 March 2001, 14:05:59 UTC | Add some more info about pydoc. (Can you see I'm excited?) | 02 March 2001, 14:05:59 UTC |
9d0fbde | Guido van Rossum | 02 March 2001, 14:00:32 UTC | Add big news item about nested scopes, __future__, and compile-time warnings. | 02 March 2001, 14:00:32 UTC |
b87df3d | Guido van Rossum | 02 March 2001, 13:37:42 UTC | Itamar S.T. | 02 March 2001, 13:37:42 UTC |
d1d053c | Guido van Rossum | 02 March 2001, 13:35:37 UTC | Patch by Itamar S.T. (SF#305470): add reset() method. | 02 March 2001, 13:35:37 UTC |
53a7906 | Fred Drake | 02 March 2001, 07:28:03 UTC | When not copying a file because the output is up to date, make the message slightly more brief, and more like the message that an extension will not be built because the built copy is up to date. | 02 March 2001, 07:28:03 UTC |
ad2c3c7 | Guido van Rossum | 02 March 2001, 07:09:54 UTC | Extra fix from bbum (SF #402357) for his previous patch: It should use the normal CC referenced compiler as ObjC is integrated directly into gcc and enabled through the use of the -ObjC flag. | 02 March 2001, 07:09:54 UTC |
b7fe432 | Guido van Rossum | 02 March 2001, 07:04:51 UTC | Fix by Donn Cave for BeOS (SF #403642): UNIX style fork/execve/wait are not fully compatible with thread support on BeOS. For Python, that means neither fork() from import nor import from a fork work reliably. os._execvpe() does the latter, importing tempfile to set up a tantalizing target for hackers. This patch replaces both the tempfile name generation and the exec that uses it, in case we're on BeOS. Need this for setup:distutils:execvp(); symptoms are random crashes and internal BeOS error messages about th name, in case we're on BeOS. It's an issue because setup.py + distutils calls os.execvp(); symptoms are random crashes during setup.py, and internal BeOS error messages about thread IDs. | 02 March 2001, 07:04:51 UTC |
258ccd4 | Guido van Rossum | 02 March 2001, 06:53:29 UTC | Fix typo in RISCOS patch inside MS #ifdef. (Probably my own fingers.) | 02 March 2001, 06:53:29 UTC |
dedbebf | Fred Drake | 02 March 2001, 06:50:58 UTC | Add more protection around the VSWTC/VSWTCH, CRTSCTS, and XTABS symbols; these can be missing on some (all?) Irix and Tru64 versions. Protect the CRTSCTS value with a cast; this can be a larger value on Solaris/SPARC. This should fix SF tracker items #405092, #405350, and #405355. | 02 March 2001, 06:50:58 UTC |
9089b27 | Guido van Rossum | 02 March 2001, 06:49:50 UTC | ROSCOS change. | 02 March 2001, 06:49:50 UTC |
fb872a7 | Guido van Rossum | 02 March 2001, 06:48:06 UTC | Dietmar Schwertberger; shuffled a bunch of Sch* names in alphabetical order. | 02 March 2001, 06:48:06 UTC |
d74fb6b | Guido van Rossum | 02 March 2001, 06:43:49 UTC | RISCOS changes by dschwertberger. | 02 March 2001, 06:43:49 UTC |
4ba3d65 | Guido van Rossum | 02 March 2001, 06:42:34 UTC | Use != instead of <>. Sorry, Barry. | 02 March 2001, 06:42:34 UTC |
48a680c | Guido van Rossum | 02 March 2001, 06:34:14 UTC | RISCOS changes by dschwertberger. | 02 March 2001, 06:34:14 UTC |
1ca8bb3 | Guido van Rossum | 02 March 2001, 06:28:17 UTC | RISCOS changes by dschwertberger | 02 March 2001, 06:28:17 UTC |
5dfa137 | Andrew M. Kuchling | 02 March 2001, 06:24:14 UTC | Disable the dl module | 02 March 2001, 06:24:14 UTC |
3ed4c15 | Guido van Rossum | 02 March 2001, 06:18:03 UTC | RISCOS changes by dschwertberger. | 02 March 2001, 06:18:03 UTC |
f0ee4b2 | Guido van Rossum | 02 March 2001, 06:10:17 UTC | RISCOS patch by dschwertberger | 02 March 2001, 06:10:17 UTC |
db8ed15 | Ka-Ping Yee | 02 March 2001, 05:58:17 UTC | Use '127.0.0.1' only on Mac; for other, sane platforms, use 'localhost'. | 02 March 2001, 05:58:17 UTC |
228d807 | Guido van Rossum | 02 March 2001, 05:58:11 UTC | RISCOS files by dschwertberger | 02 March 2001, 05:58:11 UTC |
c92cdf7 | Ka-Ping Yee | 02 March 2001, 05:54:35 UTC | The sys.platform identifier for Windows is just 'win32' (for all varieties). | 02 March 2001, 05:54:35 UTC |
7dcf84f | Guido van Rossum | 02 March 2001, 05:51:16 UTC | Search /tmp before /var/tmp and /usr/tmp -- this seems preferred. SF patch #404564, Gregor Hoffleit. | 02 March 2001, 05:51:16 UTC |
4eb0c00 | Ka-Ping Yee | 02 March 2001, 05:50:34 UTC | Make getsourcefile() succeed even if the filename doesn't end in '.py' -- as long as the filename also doesn't end in a suffix that indicates a binary file (according to the flags in imp.get_suffixes()). Shrink try...except clauses and replace some of them with explicit checks. | 02 March 2001, 05:50:34 UTC |
9054344 | Ka-Ping Yee | 02 March 2001, 05:48:10 UTC | Replace literal '@test' with TESTFN. | 02 March 2001, 05:48:10 UTC |
ca956e2 | Guido van Rossum | 02 March 2001, 05:46:17 UTC | When catching errors from os.rmdir(), test for os.error, not IOError! | 02 March 2001, 05:46:17 UTC |
fe010e4 | Guido van Rossum | 02 March 2001, 04:59:38 UTC | Add a new item to the Python 2.1 start menu: "Module Docs". This brings up Ping's pydoc server. (XXX The icons for this and for IDLE seem screwed. Oh well.) | 02 March 2001, 04:59:38 UTC |
b616e11 | Guido van Rossum | 02 March 2001, 04:27:08 UTC | Believe it or not, but "more" on Windows requires "more <file" rather than "more file". Since tempfilepager() is only used on Windows, it seems, do this unconditionally -- on Unix, it always invokes something else. | 02 March 2001, 04:27:08 UTC |
207fda6 | Guido van Rossum | 02 March 2001, 03:30:41 UTC | Refactored the warning-issuing code more. Made sure that the warnings issued by symtable_check_unoptimized() (about import * and exec) contain the proper filename and line number, and are transformed into SyntaxError exceptions with -Werror. | 02 March 2001, 03:30:41 UTC |
677898a | Tim Peters | 02 March 2001, 03:28:03 UTC | Thanks to Steven Majewski, finally putting MacOS X imports to bed for 2.1b1. | 02 March 2001, 03:28:03 UTC |
fd85a4e | Tim Peters | 02 March 2001, 03:11:53 UTC | Typo repair. | 02 March 2001, 03:11:53 UTC |
03bd26d | Tim Peters | 02 March 2001, 02:54:27 UTC | Added William Tanksley. | 02 March 2001, 02:54:27 UTC |
d74bc43 | Tim Peters | 02 March 2001, 02:53:08 UTC | Make names in __future__.py bind to class instances instead of 2-tuples. Suggested on c.l.py by William Tanksley, and I like it. | 02 March 2001, 02:53:08 UTC |
239432a | Ka-Ping Yee | 02 March 2001, 02:45:08 UTC | Clean up the handling of getsourcefile/getabsfile. Remove __main__ from the index of built-in modules. Miscellaneous compatibility fixes. | 02 March 2001, 02:45:08 UTC |
c113c24 | Ka-Ping Yee | 02 March 2001, 02:08:53 UTC | Clarify the purpose of getsourcefile(). Add getabsfile() for getting a most-normalized path. | 02 March 2001, 02:08:53 UTC |
0a8c29b | Ka-Ping Yee | 02 March 2001, 02:01:40 UTC | Clarify synopsis line a bit. Remove -no-about-splash option (not understood by all Netscapes). | 02 March 2001, 02:01:40 UTC |
fc35de4 | Tim Peters | 02 March 2001, 01:48:16 UTC | test_global was broken by some recent checkin. Repairing. | 02 March 2001, 01:48:16 UTC |
7a25765 | Ka-Ping Yee | 02 March 2001, 01:19:39 UTC | When seeking the module for an object, compare absolute (not relative) paths. | 02 March 2001, 01:19:39 UTC |
a2fe103 | Ka-Ping Yee | 02 March 2001, 01:19:14 UTC | Use imp.get_suffixes to determine a module name in modulename(file). When possible, display strings containing backslashes using r'' notation. | 02 March 2001, 01:19:14 UTC |
7fc49a4 | Jack Jansen | 01 March 2001, 23:19:05 UTC | - Numeric now lives in Lib:site-python. - Imaging and Numeric are now also available under Carbon. - Started working on the active installer. | 01 March 2001, 23:19:05 UTC |
807e701 | Jack Jansen | 01 March 2001, 23:18:31 UTC | - Numeric now lives in Lib:site-python. - Imaging and Numeric are now also available under Carbon. | 01 March 2001, 23:18:31 UTC |
b34d0ed | Jack Jansen | 01 March 2001, 23:17:43 UTC | Removed some stuff that shouldn't be in the dev distribution. | 01 March 2001, 23:17:43 UTC |
1b45c73 | Jack Jansen | 01 March 2001, 23:16:51 UTC | Removed Extensions:Numeric from sys.path. It now lives in Lib:site-python. | 01 March 2001, 23:16:51 UTC |
dbd0c3a | Jack Jansen | 01 March 2001, 23:15:54 UTC | Silly typo which caused the stack browser to crash. | 01 March 2001, 23:15:54 UTC |
a647807 | Jack Jansen | 01 March 2001, 23:15:01 UTC | Also build Imaging for Carbon. | 01 March 2001, 23:15:01 UTC |
9f324e9 | Jeremy Hylton | 01 March 2001, 22:59:14 UTC | Useful future statement support for the interactive interpreter (Also remove warning about module-level global decl, because we can't distinguish from code passed to exec.) Define PyCompilerFlags type contains a single element, cf_nested_scopes, that is true if a nested scopes future statement has been entered at the interactive prompt. New API functions: PyNode_CompileFlags() PyRun_InteractiveOneFlags() -- same as their non Flags counterparts except that the take an optional PyCompilerFlags pointer compile.c: In jcompile() use PyCompilerFlags argument. If cf_nested_scopes is true, compile code with nested scopes. If it is false, but the code has a valid future nested scopes statement, set it to true. pythonrun.c: Create a new PyCompilerFlags object in PyRun_InteractiveLoop() and thread it through to PyRun_InteractiveOneFlags(). | 01 March 2001, 22:59:14 UTC |
0f6b383 | Martin v. Löwis | 01 March 2001, 22:56:17 UTC | Put current date into POT-Creation-Date; leave PO-Revision-Date for for the translator to update; that is compatible with xgettext 0.10.35. | 01 March 2001, 22:56:17 UTC |
2fe289a | Tim Peters | 01 March 2001, 22:19:38 UTC | Thank Jason Tishler and Steven Majewski for their help in the Cygwin and MacOS X ports. Change section header to beta 1. | 01 March 2001, 22:19:38 UTC |
9ef7fa8 | Fred Drake | 01 March 2001, 21:54:49 UTC | Solaris defines VSWTCH instead of VSWTC; carefully make sure both are defined and export both names. Solaris also does not define CBAUDEX; it is not clear that CBAUDEXT (which is defined there) is the same thing, so we only protect against the lack of CBAUDEX. Reported by Greg V. Wilson. | 01 March 2001, 21:54:49 UTC |
bb66a20 | Fred Drake | 01 March 2001, 20:48:17 UTC | Wrap some long lines, use only C89 /* */ comments, and add spaces around some operators (style guide conformance). | 01 March 2001, 20:48:17 UTC |
4a2261a | Guido van Rossum | 01 March 2001, 20:36:48 UTC | Add Samuele Pedroni | 01 March 2001, 20:36:48 UTC |
9aa643c | Guido van Rossum | 01 March 2001, 20:35:45 UTC | Test interaction of global and nested scopes -- thanks to Samuele Pedroni. | 01 March 2001, 20:35:45 UTC |
7606e4d | Fred Drake | 01 March 2001, 19:54:29 UTC | Added entry for urllib2 documentation. | 01 March 2001, 19:54:29 UTC |
d977e35 | Ka-Ping Yee | 01 March 2001, 19:31:25 UTC | Also accept .so as an extension for module files. | 01 March 2001, 19:31:25 UTC |
8c01158 | Fred Drake | 01 March 2001, 18:38:56 UTC | Use larger chunks for the HTML version of the Distutils documentation. | 01 March 2001, 18:38:56 UTC |
a9a83e9 | Fred Drake | 01 March 2001, 18:37:52 UTC | Comment out section titles for sections that have not been written yet; there is no need to clutter a reader's life with those useless things. Suppress the "Contents" page for HTML; it is not needed for small documents in the online environment since LaTeX2HTML generates lots of tables of links anyway. Various markup consistency nits. | 01 March 2001, 18:37:52 UTC |
a09262e | Fred Drake | 01 March 2001, 18:35:43 UTC | Comment out section titles for sections that have not been written yet; there is no need to clutter a reader's life with those useless things. Make the snippets of Python code conform to the standard style. Suppress the "Contents" page for HTML; it is not needed for small documents in the online environment since LaTeX2HTML generates lots of tables of links anyway. Various markup consistency nits. | 01 March 2001, 18:35:43 UTC |
f89ad5e | Guido van Rossum | 01 March 2001, 18:29:57 UTC | Document configuration flags to compile for large file support on certain Linux systems. | 01 March 2001, 18:29:57 UTC |
4f53da0 | Guido van Rossum | 01 March 2001, 18:26:53 UTC | Two improvements to large file support: - In _portable_ftell(), try fgetpos() before ftello() and ftell64(). I ran into a situation on a 64-bit capable Linux where the C library's ftello() and ftell64() returned negative numbers despite fpos_t and off_t both being 64-bit types; fgetpos() did the right thing. - Define a new typedef, Py_off_t, which is either fpos_t or off_t, depending on which one is 64 bits. This removes the need for a lot of #ifdefs later on. (XXX Should this be moved to pyport.h? That file currently seems oblivious to large fille support, so for now I'll leave it here where it's needed.) | 01 March 2001, 18:26:53 UTC |
d1e87a8 | Tim Peters | 01 March 2001, 18:12:00 UTC | More MacOSX fiddling. As noted in a comment, I believe all variations of these "search the directory" schemes (including this one) are still prone to making mistakes. | 01 March 2001, 18:12:00 UTC |
4f64c13 | Ka-Ping Yee | 01 March 2001, 17:11:17 UTC | Better __credits__. | 01 March 2001, 17:11:17 UTC |
1b6e6c0 | Guido van Rossum | 01 March 2001, 14:50:13 UTC | Here we go again, another round of version bumping... | 01 March 2001, 14:50:13 UTC |
244c593 | Ka-Ping Yee | 01 March 2001, 13:56:40 UTC | Add __author__ and __credits__ variables. | 01 March 2001, 13:56:40 UTC |
8b58b84 | Ka-Ping Yee | 01 March 2001, 13:56:16 UTC | Add __author__ variable. Robustify: don't rely on modules being present in sys.modules. | 01 March 2001, 13:56:16 UTC |
66efbc7 | Ka-Ping Yee | 01 March 2001, 13:55:20 UTC | Docstring improvements. Add checks for .pyo and .pyd. Collapse docfunction, docmethod, docbuiltin into the one method docroutine. Small formatting fixes. Link the segments of a package path in the title. Link to the source file only if it exists. Allow modules (e.g. repr.py) to take precedence over built-ins (e.g. repr()). Add interruptible synopsis scanner (so we can do searches in the background). Make HTTP server quit. Add small GUI for controlling the server and launching searches (like -k). (Tested on Win2k, Win98, and Linux.) | 01 March 2001, 13:55:20 UTC |
dbe6ebb | Tim Peters | 01 March 2001, 08:47:29 UTC | More fiddling w/ the new-fangled Mac import code. | 01 March 2001, 08:47:29 UTC |
8a18e99 | Moshe Zadka | 01 March 2001, 08:40:42 UTC | Checking in patch 404826 -- urllib2 enhancements and documentations. (please not that the library reference does *not* include the urllib2 documnetation -- that will wiat for Fred) | 01 March 2001, 08:40:42 UTC |
2510831 | Tim Peters | 01 March 2001, 08:31:39 UTC | Whitespace normalization. | 01 March 2001, 08:31:39 UTC |
c63d3e9 | Fred Drake | 01 March 2001, 06:33:32 UTC | Suppress a compiler warning under OpenVMS; time_t is unsigned on (at least) the more recent versions of that platform, so we use the value (time_t)(-1) as the error value. This is the type used in the OpenVMS documentation: http://www.openvms.compaq.com/commercial/c/5763p048.htm#inde This closes SF tracker bug #404240. Also clean up an exception message when detecting overflow of time_t values beyond 4 bytes. | 01 March 2001, 06:33:32 UTC |
7889107 | Jeremy Hylton | 01 March 2001, 06:09:34 UTC | Fix core dump in example from Samuele Pedroni: from __future__ import nested_scopes x=7 def f(): x=1 def g(): global x def i(): def h(): return x return h() return i() return g() print f() print x This kind of code didn't work correctly because x was treated as free in i, leading to an attempt to load x in g to make a closure for i. Solution is to make global decl apply to nested scopes unless their is an assignment. Thus, x in h is global. | 01 March 2001, 06:09:34 UTC |
a52e8fe | Jeremy Hylton | 01 March 2001, 06:06:37 UTC | Visit the closure during traversal and XDECREF it on during deallocation. | 01 March 2001, 06:06:37 UTC |
baee0d4 | Fred Drake | 01 March 2001, 06:01:20 UTC | Bump the release number to 2.1b1. | 01 March 2001, 06:01:20 UTC |
40fc160 | Skip Montanaro | 01 March 2001, 04:27:19 UTC | final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be giving it a slight facelift | 01 March 2001, 04:27:19 UTC |
58eadba | Skip Montanaro | 01 March 2001, 04:13:51 UTC | move import into function to avoid having to add an __all__ list... | 01 March 2001, 04:13:51 UTC |
59ade08 | Ka-Ping Yee | 01 March 2001, 03:55:35 UTC | Add getlineno() routine to account for LINENO optimization. | 01 March 2001, 03:55:35 UTC |
abb379e | Fred Drake | 01 March 2001, 03:28:08 UTC | Revised version of Jason Tishler's patch to make this compile on Cygwin, which does not define all the constants. This closes SF tracker patch #404924. | 01 March 2001, 03:28:08 UTC |
5c01534 | Fred Drake | 01 March 2001, 03:06:53 UTC | Add tests for the .copy() methods of both weak dictionary classes. | 01 March 2001, 03:06:53 UTC |
9d2c85d | Fred Drake | 01 March 2001, 03:06:03 UTC | Change WeakDictionary to WeakValueDictionary in a couple more places. WeakValueDictionary.copy(), WeakKeyDictionary.copy(): Actually return the copy! | 01 March 2001, 03:06:03 UTC |
5f850ab | Tim Peters | 01 March 2001, 02:43:40 UTC | Prepare Windows for 2.1 beta 1: installer dialogs and bump "build number". | 01 March 2001, 02:43:40 UTC |
1eff796 | Tim Peters | 01 March 2001, 02:31:33 UTC | Added blurbs about difflib, doctest and Windows import (PEP 235). | 01 March 2001, 02:31:33 UTC |
5819aa8 | Tim Peters | 01 March 2001, 02:20:01 UTC | Remove extra close curly in code #ifdef'ed out on my box. | 01 March 2001, 02:20:01 UTC |
430f5d4 | Tim Peters | 01 March 2001, 01:30:56 UTC | In Steven's apparent absence, check in *something* with a non-zero chance of making new-fangled Mac imports work again. May not work, and may not even compile on his boxes, but should be at worst very close on both. | 01 March 2001, 01:30:56 UTC |
694e181 | Andrew M. Kuchling | 01 March 2001, 01:02:52 UTC | Fix markup nit pointed out by FLD | 01 March 2001, 01:02:52 UTC |
5125773 | Jeremy Hylton | 01 March 2001, 00:42:55 UTC | Don't add global names to st->st_global if we're already iterating over the elements of st->st_global! | 01 March 2001, 00:42:55 UTC |
cd81ea1 | Guido van Rossum | 01 March 2001, 00:36:53 UTC | Use find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f to remove all .py[co] files before testing, rather than just those in the Lib/test directory. "find" is used all over the Makefile so I suppose it's safe; how about xargs? | 01 March 2001, 00:36:53 UTC |
895e892 | Ka-Ping Yee | 01 March 2001, 00:25:40 UTC | Call main routine in pydoc module (pydoc.cli). | 01 March 2001, 00:25:40 UTC |
1d38463 | Ka-Ping Yee | 01 March 2001, 00:24:32 UTC | Normalize case of paths in sys.path to avoid duplicates on Windows. Handle <... at 001B6378> like <... at 0x120f80> (%p is platform-dependent). Fix RCS version tag handling. Move __main__ behaviour into a function, pydoc.cli(). | 01 March 2001, 00:24:32 UTC |
2922ea8 | Jeremy Hylton | 28 February 2001, 23:49:19 UTC | Add test case for global stmt at module level. Fix test_grammar so that it ignores warning about global stmt at module level in exec. | 28 February 2001, 23:49:19 UTC |
3dd5ad3 | Jeremy Hylton | 28 February 2001, 23:47:55 UTC | undo introduction of st_global_star | 28 February 2001, 23:47:55 UTC |
1874c8f | Guido van Rossum | 28 February 2001, 23:46:44 UTC | Document PyErr_WarnExplicit(). | 28 February 2001, 23:46:44 UTC |
c176132 | Jeremy Hylton | 28 February 2001, 23:44:45 UTC | Warn about global statement at the module level. Do better accounting for global variables. | 28 February 2001, 23:44:45 UTC |
56ba72a | Guido van Rossum | 28 February 2001, 23:34:21 UTC | Document warn_explicit(). | 28 February 2001, 23:34:21 UTC |
f1d7b41 | Jack Jansen | 28 February 2001, 23:32:42 UTC | Disable GetWindowSpareFlag and GetWindowGoAwayBox on carbon. | 28 February 2001, 23:32:42 UTC |
42efed0 | Jeremy Hylton | 28 February 2001, 23:24:22 UTC | update output to reflect exception that is now raised | 28 February 2001, 23:24:22 UTC |
0b7c4f2 | Jack Jansen | 28 February 2001, 23:23:31 UTC | Put PPC distributions back in, rearranged packages and use VISE variable magic to determine which ConfigurePythonXXX to run. | 28 February 2001, 23:23:31 UTC |
99858b5 | Jeremy Hylton | 28 February 2001, 23:03:39 UTC | add DEF_BOUND | 28 February 2001, 23:03:39 UTC |
7840a9c | Fred Drake | 28 February 2001, 23:02:20 UTC | Add entry for the inspect module. | 28 February 2001, 23:02:20 UTC |
6dbd382 | Fred Drake | 28 February 2001, 23:01:38 UTC | Clean up some of the markup for consistency, wrap some long lines. | 28 February 2001, 23:01:38 UTC |
bca60c0 | Fred Drake | 28 February 2001, 22:59:37 UTC | Fix some rules broken by typos, others by the flattening of the makefile. | 28 February 2001, 22:59:37 UTC |
4419ac1 | Jeremy Hylton | 28 February 2001, 22:54:51 UTC | Add warning/error handlin for problematic nested scopes cases as described in PEP 227. symtable_check_unoptimized() warns about import * and exec with "in" when it is used in a function that contains a nested function with free variables. Warnings are issued unless nested scopes are in effect, in which case these are SyntaxErrors. symtable_check_shadow() warns about assignments in a function scope that shadow free variables defined in a nested scope. This will always generate a warning -- and will behave differently with nested scopes than without. Restore full checking for free vars in children, even when nested scopes are not enabled. This is needed to support warnings for shadowing. Change symtable_warn() to return an int-- the return value of PyErr_WarnExplicit. Sundry cleanup: Remove commented out code. Break long lines. | 28 February 2001, 22:54:51 UTC |
150a664 | Jeremy Hylton | 28 February 2001, 22:50:15 UTC | Fix filter for SyntaxErrors | 28 February 2001, 22:50:15 UTC |