- 08 Eyl, 1997 4 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
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.)
-
Guido van Rossum yazdı
-
- 07 Eyl, 1997 8 kayıt (commit)
-
-
Guido van Rossum yazdı
(This is necessary because when imported as test.test_rgbimg, the test directory is not on sys.path.)
-
Guido van Rossum yazdı
(This is necessary because when imported as test.test_rgbimg, the test directory is not on sys.path.)
-
Guido van Rossum yazdı
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.)
-
Guido van Rossum yazdı
it will run as package test, e.g. this will run the test suite: import test.regrtest test.regrtest.main()
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
- traceback should go to stdout! - don't import ni, import t1! - nicer support for command line options, only if run as __main__
-
Guido van Rossum yazdı
(i.e. when using ni, the old __init__.py semantics prevail!)
-
Guido van Rossum yazdı
-
- 06 Eyl, 1997 6 kayıt (commit)
-
-
Guido van Rossum yazdı
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.)
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
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!
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
- 05 Eyl, 1997 8 kayıt (commit)
-
-
Guido van Rossum yazdı
a core dump when __str__() returns a non-string, and plugs a memory leak as well: the result of PyObject_Str() was never DECREFed.
-
Guido van Rossum yazdı
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).
-
Fred Drake yazdı
count, PyList_SetItem() does. Very confusing!
-
Guido van Rossum yazdı
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!
-
Guido van Rossum yazdı
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).
-
Guido van Rossum yazdı
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.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
obsolete now it includes Python.h. Make all functions K&R compatible (Sue Williams).
-
- 04 Eyl, 1997 7 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
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.
-
Guido van Rossum yazdı
(though some type names are undefined in that case, e.g. CodeType (inaccessible), FileType (not always accessible), and TracebackType and FrameType (inaccessible).
-
Guido van Rossum yazdı
To save time, only run the first and last 10 tests except in verbose mode.
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
Emacs and XEmacs versions should have working parse-partial-sexp's. (py-emacs-features): Defined as future placeholder.
-
- 03 Eyl, 1997 7 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
Sjoerd: add separate administration of temporary files created y URLopener.retrieve() so cleanup can properly remove them. The old code removed everything in tempcache which was a bad idea if the user had passed a non-temp file into it. (I added a line to delete the tempcache in cleanup() -- it still seems to make sense.) Jack: in basejoin(), interpret relative paths starting in "../". This is necessary if the server uses symbolic links.
-
Guido van Rossum yazdı
lib/site-python to the path (if they exist). This is a reasonable compromise.
-
Guido van Rossum yazdı
lib/site-python to the path (if they exist). This is a reasonable compromise.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-