- 19 Jan, 2001 39 commits
-
-
Moshe Zadka authored
Please check it against your nearest pop server -- mine doesn't support APOP (I checked I'm getting the same error message, though)
-
Barry Warsaw authored
added a test of a coredump that would occur when del'ing func_defaults (put here for convenience).
-
Barry Warsaw authored
del'ing func.func_dict. I took the opportunity to also clean up some other nits with the code, namely core dumps when del'ing func_defaults and KeyError instead of AttributeError when del'ing a non-existant function attribute. Specifically, func_memberlist: Move func_dict and __dict__ into here instead of special casing them in the setattro and getattro methods. I don't remember why I took them out of here before I first uploaded the PEP 232 patch. :/ func_getattro(): No need to special case __dict__/func_dict since their now in the func_memberlist and PyMember_Get() should Do The Right Thing (i.e. transforms NULL values into Py_None). func_setattro(): Document the intended behavior of del'ing or setting to None one of the special func_* attributes. I.e.: func_code - can only be set to a code object. It can't be del'd or set to None. func_defaults - can be del'd. Can only be set to None or a tuple. func_dict - can be del'd. Can only be set to None or a dictionary. Fix core dumps and incorrect exceptions as described above. Also, if we're del'ing an arbitrary function attribute but func_dict is NULL, don't create func_dict before discovering that we'll get an AttributeError anyway.
-
Fredrik Lundh authored
This patch makes u"\N{x}" a bit less dependent on pure luck...
-
Tim Peters authored
-
Guido van Rossum authored
(I realize that I didn't really test this, because all the tests succeed, so verify() never raised an AssertionError -- but the test suite still succeeds, so I'm not too worried.)
-
Andrew M. Kuchling authored
sys.builtin_module_names Add SSL directories in /usr/contrib/ for FreeBSD
-
Guido van Rossum authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
This patch adds support for Cygwin to util.get_platform(). A Cygwin specific case is needed due to the format of Cygwin's uname command, which contains '/' characters.
-
Andrew M. Kuchling authored
* Deletes the Panel_NoArgReturnStringFunction() macro, which isn't used anymore * Adjusts two comments.
-
Fredrik Lundh authored
-
Fredrik Lundh authored
-
Fredrik Lundh authored
probably more useful for the test code than for any applications, but one never knows...)
-
Tim Peters authored
keywords. Cheap approximation to the truth.
-
Fredrik Lundh authored
implementation details inside the ucnhash module. also cleaned up the unicode copyright blurb a little; Secret Labs' internal revision history isn't that interesting...
-
Tim Peters authored
MSVC project file (as the instructions always recommended doing).
-
Tim Peters authored
corresponding changes were made to its std test.
-
Tim Peters authored
-
Tim Peters authored
change the test to give a clue about *where* it's failing.
-
Tim Peters authored
-
Tim Peters authored
-
Guido van Rossum authored
preferences. It is now in config.txt or ~/.idle.
-
Jeremy Hylton authored
-
Guido van Rossum authored
when quoting forbidden characters. There are scripts out there that break with lower case, therefore I guess %%%X should be used." I agree, so am fixing this.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
def f(a): global a
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
symbol table for each top-level compilation unit. The information in the symbol table allows the elimination of the later optimize() pass; the bytecode generation emits the correct opcodes. The current version passes the complete regression test, but may still contain some bugs. It's a fairly substantial revision. The current code adds an assert() and a test that may lead to a Py_FatalError(). I expect to remove these before 2.1 beta 1. The symbol table (struct symtable) is described in comments in the code. The changes affects the several com_XXX() functions that were used to emit LOAD_NAME and its ilk. The primary interface for this bytecode is now com_addop_varname() which takes a kind and a name, where kind is one of VAR_LOAD, VAR_STORE, or VAR_DELETE. There are many other smaller changes: - The name mangling code is no longer contained in ifdefs. There are two functions that expose the mangling logical: com_mangle() and symtable_mangle(). - The com_error() function can accept NULL for its first argument; this is useful with is_constant_false() is called during symbol table generation. - The loop index names used by list comprehensions have been changed from __1__ to [1], so that they can not be accessed by Python code. - in com_funcdef(), com_argdefs() is now called before the body of the function is compiled. This provides consistency with com_lambdef() and symtable_funcdef(). - Helpers do_pad(), dump(), and DUMP() are added to aid in debugging the compiler.
-
Tim Peters authored
Also fixes two long-standing bugs (present in 2.0): 1. .join() didn't check that the result size fit in an int. 2. string.join(s) when len(s)==1 returned s[0] regardless of s[0]'s type; e.g., "".join([3]) returned 3 (overly optimistic optimization). I resisted a keen temptation to make .join() apply str() automagically.
-
Andrew M. Kuchling authored
to build in a subdirectory. The additional directory is unfortunately redundant when *not* building in a subdirectory, which is why I took it out.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
for SocketServer.py (inherited by TCPServer) Luke wrote: The socketserver code, with a little bit of tweaking, can be made sufficiently general to service "requests" of any kind, not just by sockets. The BaseServer class was created, for example, to poll a table in a MYSQL database every 2 seconds. each entry in the table can be allocated a Handler which deals with the entry. With this patch, using BaseServer and ThreadedServer classes, the creation of the server that reads and handles MySQL table entries instead of a socket was utterly trivial: about 50 lines of python code. You may consider this code to be utterly useless [why would anyone else want to do anything like this???] - you are entitled to your opinion. if you think so, then think of this: have you considered how to cleanly add SSL to the TCPSocketServer? What about using shared memory as the communications mechanism for a server, instead of sockets? What about communication using files? The SocketServer code is extremely good every useful. it's just that as it stands, it is tied to sockets, which is not as useful. I heartily approve of this idea.
-
Guido van Rossum authored
libraries. (I have no way to test this, I just trust Donn.)
-
Guido van Rossum authored
Support building this as a DLL under Cygwin.
-
Guido van Rossum authored
-
Guido van Rossum authored
Minor startup speedup: avoid a call to strspn().
-
- 18 Jan, 2001 1 commit
-
-
Guido van Rossum authored
not __hash__ raises TypeError.
-