summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Preferences is a general module to get (and set) preferences inJack Jansen1997-09-082-0/+341
| | | | | | | resource files with various inheritence rules, parsers, etc. pythonprefs uses this to create a single uniform interface to all relevant python preferences.
* Preference resource now has a version numberJack Jansen1997-09-081-11/+11
|
* Moved the include of macbuildno.h to getbuildinfo.c. Putting it hereJack Jansen1997-09-081-2/+0
| | | | resulted in full recompilation every time.
* Added SysBeepJack Jansen1997-09-081-7/+22
|
* The preference resource now has a version numberJack Jansen1997-09-081-16/+21
|
* sys.prefix and sys.exec_prefix are now set correctly.Jack Jansen1997-09-081-2/+2
|
* The python preference resource now has a version number, andJack Jansen1997-09-087-5617/+5864
| | | | "optimize" has replaced "don't print".
* Major overhaul: this is now little more than a user interface, theJack Jansen1997-09-082-404/+123
| | | | | | | preference handling code is in modules pythonprefs and preferences. This should finally make it easier for someone (Just?) to write a decent interface to preference setting, and it'll allow setting initial sys.path and such from ConfigurePython.
* Run NumPy installer, if present.Jack Jansen1997-09-082-42/+135
| | | | Added a couple of splash screens to show what we're doing
* Brought up to date with new options and env vars.Guido van Rossum1997-09-081-7/+44
|
* #Adapt the doc string to reality.Guido van Rossum1997-09-081-7/+6
|
* #Oops, missed a plat- prefix (for Lib/generic).Guido van Rossum1997-09-081-1/+1
|
* Some nits, added a whole section on what you could do withGuido van Rossum1997-09-081-3/+90
| | | | metaclasses, and acks.
* Set it to 1.5a4, now we have dotted-name import...Guido van Rossum1997-09-081-1/+1
|
* Initialize self.__tempfiles to [] in the constructor (else it remainsGuido van Rossum1997-09-081-0/+1
| | | | | a shared class variable -- but each instance will attempt to clean it up entirely ob cleanup).
* Change packages -> site-packagesGuido van Rossum1997-09-081-8/+10
|
* *Semantic change*: when unpickling the instance variables of anGuido van Rossum1997-09-081-2/+1
| | | | | | | | | | instance, use inst.__dict__.update(value) instead of a for loop with setattr() over the value.keys(). This is more consistent (the pickling doesn't use getattr() either but pickles inst.__dict__) and avoids problems with instances that have a __setattr__ hook. But it *is* a semantic change (because the setattr hook is no longer used). So beware!
* Indent the #error so that a strict K&R cpp doesn't complain.Guido van Rossum1997-09-081-1/+1
|
* Change packages to site-packages (so it's clearly not a package itself).Guido van Rossum1997-09-082-10/+10
|
* Prefix MACHDEP directory with 'plat-'.Guido van Rossum1997-09-082-7/+7
|
* Change the names of the subdirectories tkinter and stdwin toGuido van Rossum1997-09-081-2/+2
| | | | | | lib-tk and lib-stdwin. (BTW this was also done in the previous checkin of (toplevel)/Makefile.in, though not noted in the checkin message.)
* Forgot to install the test/output directory!Guido van Rossum1997-09-081-1/+1
|
* Look for uuencoded test files in the directory containing this module, too.Guido van Rossum1997-09-071-2/+6
| | | | | (This is necessary because when imported as test.test_rgbimg, the test directory is not on sys.path.)
* Look for uuencoded test files in the directory containing this module, too.Guido van Rossum1997-09-071-1/+2
| | | | | (This is necessary because when imported as test.test_rgbimg, the test directory is not on sys.path.)
* Reverse the order in which Setup and Setup.local are passed to theGuido van Rossum1997-09-071-1/+1
| | | | | | makesetup script. (Sorry Sjoerd -- I know you proposed this a while ago and I didn't think it would work then. I looked again and it does work.)
* Pass optional arguments (globals(), locals(), []) to __import__() soGuido van Rossum1997-09-071-1/+1
| | | | | | | it will run as package test, e.g. this will run the test suite: import test.regrtest test.regrtest.main()
* Bugfix: import A.B from inside package was busted by mark_miss optimization.Guido van Rossum1997-09-071-1/+1
|
* Fix details in the test:Guido van Rossum1997-09-071-3/+13
| | | | | | - traceback should go to stdout! - don't import ni, import t1! - nicer support for command line options, only if run as __main__
* Added warning about ni's obsolescence. Retracted semantic changesGuido van Rossum1997-09-072-0/+12
| | | | (i.e. when using ni, the old __init__.py semantics prevail!)
* Initial revisionGuido van Rossum1997-09-072-0/+98
|
* Significant speedup -- when a submodule imports a global module, add aGuido van Rossum1997-09-061-5/+20
| | | | | | | | | | | | | | | | | | dummy entry to sys.modules, marking the absence of a submodule by the same name. Thus, if module foo.bar executes the statement "import time", sys.modules['foo.time'] will be set to None, once the absence of a module foo.time is confirmed (by looking for it in foo's path). The next time when foo.bar (or any other submodule of foo) executes "import time", no I/O is necessary to determine that there is no module foo.time. (Justification: It may seem strange to pollute sys.modules. However, since we're doing the lookup anyway it's definitely the fastest solution. This is the same convention that 'ni' uses and I haven't heard any complaints.)
* Added feeble test for reload() of packages and submodules.Guido van Rossum1997-09-062-0/+5
|
* Fix reload() for package submodules.Guido van Rossum1997-09-061-2/+24
|
* Phase two of package import. "import a.b.c" and all variants now do theGuido van Rossum1997-09-061-17/+299
| | | | | | | | | | | | | | | right thing. Still to do: - Make reload() of a submodule work. - Performance tweaks -- currently, a submodule that tries to import a global module *always* searches the package directory first, even if the global module was already imported. Not sure how to solve this one; probably need to record misses per package. - Documentation!
* #Added prototype for PyObject_HasAttr() -- must've been an oversight.Guido van Rossum1997-09-061-0/+1
|
* Test set for package import.Guido van Rossum1997-09-062-0/+212
|
* Fixed some details of printing the str() of an exception. This fixesGuido van Rossum1997-09-051-2/+6
| | | | | a core dump when __str__() returns a non-string, and plugs a memory leak as well: the result of PyObject_Str() was never DECREFed.
* Made the 'info' argument to SyntaxError optional, so phase-2 syntaxGuido van Rossum1997-09-051-8/+11
| | | | | | | | | errors are handled (these gave ``TypeError: not enough arguments''). Also changed its __str__() to correct a typo (missing self.) and return str(self.msg) to ensure the result is always string. Also changed the default __str__ to simply return str(self.args).
* Fix in trailing comment: PyDict_SetItemString() does *not* consume a referenceFred Drake1997-09-051-3/+2
| | | | count, PyList_SetItem() does. Very confusing!
* First part of package support.Guido van Rossum1997-09-055-148/+460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't yet support "import a.b.c" or "from a.b.c import x", but it does recognize directories. When importing a directory, it initializes __path__ to a list containing the directory name, and loads the __init__ module if found. The (internal) find_module() and load_module() functions are restructured so that they both also handle built-in and frozen modules and Mac resources (and directories of course). The imp module's find_module() and (new) load_module() also have this functionality. Moreover, imp unconditionally defines constants for all module types, and has two more new functions: find_module_in_package() and find_module_in_directory(). There's also a new API function, PyImport_ImportModuleEx(), which takes all four __import__ arguments (name, globals, locals, fromlist). The last three may be NULL. This is currently the same as PyImport_ImportModule() but in the future it will be able to do relative dotted-path imports. Other changes: - bltinmodule.c: in __import__, call PyImport_ImportModuleEx(). - ceval.c: always pass the fromlist to __import__, even if it is a C function, so PyImport_ImportModuleEx() is useful. - getmtime.c: the function has a second argument, the FILE*, on which it applies fstat(). According to Sjoerd this is much faster. The first (pathname) argument is ignored, but remains for backward compatibility (so the Mac version still works without changes). By cleverly combining the new imp functionality, the full support for dotted names in Python (mini.py, not checked in) is now about 7K, lavishly commented (vs. 14K for ni plus 11K for ihooks, also lavishly commented). Good night!
* Added PyImport_ImportModuleEx(name, globals, locals, fromlist); thisGuido van Rossum1997-09-052-0/+4
| | | | | | is like PyImport_ImporModule(name) but receives the globals and locals dict and the fromlist arguments as well. (The name is a char*; the others are PyObject*s).
* Contribution by Hannu Krosing (with some changes).Guido van Rossum1997-09-051-0/+38
| | | | | | | Added 'p' format character for Pascal string (i.e. leading length byte). This uses the count prefix line 's' does, except that the count includes the length byte; i.e. '10p' takes 10 bytes packed but has space for a length byte and 9 data bytes.
* Don't use ANSI string literal concatenation (everything is K&R compatible).Guido van Rossum1997-09-051-4/+4
|
* Get rid of most silly #include and #ifdefs near the top; these are allGuido van Rossum1997-09-051-55/+59
| | | | | | obsolete now it includes Python.h. Make all functions K&R compatible (Sue Williams).
* Now produces some reassuring output.Jeremy Hylton1997-09-041-0/+9
|
* Many more tests, including tests of many optional arguments.Jeremy Hylton1997-09-041-0/+47
|
* Several changes:Jeremy Hylton1997-09-041-125/+188
| | | | | | | | | | | | | | | | | 1. Fix bug in (de)compression objects. The final string resize used zst.total_out to determine the length of the string, but the (de)compression object will output data a little bit at a time, which means total_out is not the string size. Fix: save original value of total_out at the start of the call. 2. Be sure to Py_DECREF the result value if you exit with an exception. 3. Use PyInt_FromLong instead of Py_BuildValue 4. include more constants from the zlib header file 5. Use PyErr_Format instead of using a local buffer and sprintf.
* Added some try-excepts so that it can be imported in restricted modeGuido van Rossum1997-09-041-6/+15
| | | | | | (though some type names are undefined in that case, e.g. CodeType (inaccessible), FileType (not always accessible), and TracebackType and FrameType (inaccessible).
* The re test suite is very slow on slower hosts.Guido van Rossum1997-09-041-0/+3
| | | | To save time, only run the first and last 10 tests except in verbose mode.
* Added first line to set Emacs makefile mode (pretty colors :-)Barry Warsaw1997-09-041-0/+1
|