- 18 Oct, 2001 40 commits
-
-
Fredrik Lundh authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Tim Peters authored
Some AIX compiler didn't like the trailing comma at the end of the why_code enum decl.
-
Guido van Rossum authored
-
Guido van Rossum authored
This is a big one, touching lots of files. Some of the platforms aren't tested yet. Briefly, this changes the return value of the os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the time functions localtime(), gmtime(), and strptime() from tuples into pseudo-sequences. When accessed as a sequence, they behave exactly as before. But they also have attributes like st_mtime or tm_year. The stat return value, moreover, has a few platform-specific attributes that are not available through the sequence interface (because everybody expects the sequence to have a fixed length, these couldn't be added there). If your platform's struct stat doesn't define st_blksize, st_blocks or st_rdev, they won't be accessible from Python either. (Still missing is a documentation update.)
-
Tim Peters authored
The GUI-mode code to display properties blew up if the property functions (get, set, etc) weren't simply methods (or functions). "The problem" here is really that the generic document() method dispatches to one of .doc{routine, class, module, other}(), but all of those require a different(!) number of arguments. Thus document isn't general-purpose at all: you have to know exactly what kind of thing is it you're going to document first, in order to pass the correct number of arguments to .document for it to pass on. As an expedient hack, just tacked "*ignored" on to the end of the formal argument lists for the .docXXX routines so that .document's caller doesn't have to know in advance which path .document is going to take.
-
Guido van Rossum authored
<grp.h> it seems. This requires yet another configure test.
-
Barry Warsaw authored
#463572. Closing.
-
Fred Drake authored
The right fix is to generate line number events anyway ;-), but this will have to do for now.
-
Fredrik Lundh authored
compile should raise error for non-strings SRE bug #432570, 448951: reset group after failed match also bumped version number to 2.2.0
-
Fred Drake authored
-
Fred Drake authored
-
Guido van Rossum authored
-
Guido van Rossum authored
(With slight cosmetic improvements to shorten lines and a grammar fix to a docstring.) This addes -X and -E options to freeze. From the docstring: -X module Like -x, except the module can never be imported by the frozen binary. -E: Freeze will fail if any modules can't be found (that were not excluded using -x or -X).
-
Fred Drake authored
points in the spawn*() description.
-
Tim Peters authored
-
Guido van Rossum authored
This fixes the behavior reported by SF bug #404545, where a file x.y.py could be imported by the statement "import x.y" when there's a frozen package x (I believe even if x.y also exists as a frozen module).
-
Guido van Rossum authored
:-). Add a test that prevents the __hello__ bytecode from going stale unnoticed again. The test also tests the loophole noted in SF bug #404545. This test will fail right now; I'll check in the fix in a minute.
-
Fred Drake authored
Remove inconsistent use of HTMLDIR.
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
handlers. This was fixed in Objects/weakrefobject.c 1.2.
-
Fred Drake authored
the left-hand operand may not be the proxy in all cases. If it isn't, we end up doing two things: a) unwrapping something that isn't a PyWeakReference (later resulting in a core dump) and b) passing a proxy as the right-hand operand anyway, even though that can't be handled by the actual handler (maybe eventually causing a core dump). This is fixed by always unwrapping all the proxies involved before passing anything to the actual handler.
-
Guido van Rossum authored
Solved with a helper method that calls finish_request() and then close_request(). The code is by Max Neunhöffer.
-
Martin v. Löwis authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
The symbol table pass didn't have an explicit case for the list_iter node which is used only for a nested list comprehension. As a result, the target of the list comprehension was treated as a use instead of an assignment. Fix is to add a case to symtable_node() to handle list_iter. Also, rework and document a couple of the subtler implementation issues in the symbol table pass. The symtable_node() switch statement depends on falling through the last several cases, in order to handle some of the more complicated nodes like atom. Add a comment explaining the behavior before the first fall through case. Add a comment /* fall through */ at the end of case so that it is explicitly marked as such. Move the for_stmt case out of the fall through logic, which simplifies both for_stmt and default. (The default used the local variable start to skip the first three nodes of a for_stmt when it fell through.) Rename the flag argument to symtable_assign() to def_flag and add a comment explaining its use: The third argument to symatble_assign() is a flag to be passed to symtable_add_def() if it is eventually called. The flag is useful to specify the particular type of assignment that should be recorded, e.g. an assignment caused by import.
-
Guido van Rossum authored
The fix is a band-aid: type_call() now makes the same exception for a single-argument call to type() as type_new() was already making.
-
Martin v. Löwis authored
to link a C++ main using the C++ compiler. Fixes #472007.
-
Fred Drake authored
-
Tim Peters authored
-
Fred Drake authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Neil Schemenauer authored
isinstance() now allows any object as the first argument and a class, a type or something with a __bases__ tuple attribute for the second argument. This closes SF patch #464992.
-
Jeremy Hylton authored
(The rest of the test cases are trivial, so I don't feel too bad.)
-
Jeremy Hylton authored
Quoth the OpenSSL RAND_add man page: OpenSSL makes sure that the PRNG state is unique for each thread. On systems that provide /dev/urandom, the randomness device is used to seed the PRNG transparently. However, on all other systems, the application is responsible for seeding the PRNG by calling RAND_add(), RAND_egd(3) or RAND_load_file(3). I decided to expose RAND_add() because it's general and RAND_egd() because it's a useful special case. RAND_load_file() didn't seem to offer much over RAND_add(), so I skipped it. Also supplied RAND_status() which returns true if the PRNG is seeded and false if not.
-