summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Various tweaks for Python 2.1a1.Jack Jansen2001-01-193-8/+17
|
* Treat an empty kwdict argument the same as a missing one.Jack Jansen2001-01-191-20/+20
|
* Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's ↵Jack Jansen2001-01-191-0/+8
| | | | "solution" of a funny define makes portable code impossible:-(
* Use #if TARGET_API_MAC_CARBON to determine carbon/classic macos, not #ifdef.Jack Jansen2001-01-191-1/+1
|
* Make the 'time' argument to the timemodule functions strftime, asctime,Thomas Wouters2001-01-193-42/+75
| | | | | | ctime, gmtime and localtime optional, defaulting to 'the current time' in all cases. Adjust docs, add news item. Also convert all argument-handling to METH_VARARGS. Closes SF patch #103265.
* Fixed a bunch of typos caught by Gilles Civario.Fred Drake2001-01-191-17/+20
|
* Clarify comments about returning None using a return without an expression;Fred Drake2001-01-191-3/+2
| | | | | | this is not hard to explain! Closes SF bug #129345.
* Now that Marc-Andre has retracted unistr(), remove the tests.Guido van Rossum2001-01-192-12/+0
|
* A hack to augment sys.path with the build/lib.<platform> directoryGuido van Rossum2001-01-191-0/+9
| | | | | | | | | | created by Andrew's setup.py script, *if* we're actually running from the build directory. (The test for that: whether the sys.path[-1] ends in "/Modules".) This has one disadvantage: it imports a fair amount of code from the distutils package, just in order to be able to calculate the correct pathname. See if I care. :-)
* Run tests twice by default, first time deleting .pyc/.pyo files.Tim Peters2001-01-191-2/+20
| | | | New option "-q" to leave .pyc/.pyo alone.
* Backed out the unistr() builtin.Marc-André Lemburg2001-01-192-25/+0
|
* Use a saner test filename, to work on Windows.Guido van Rossum2001-01-191-3/+1
|
* Delete the bytecode from the library and tests before running theGuido van Rossum2001-01-191-0/+4
| | | | | | tests for the first time -- like the Unix Makefile does. This avoids not catching problems in the bytecode generator and/or bytecode marshalling.
* "make test" was still broken when building in a subdirectory: Andrew'sGuido van Rossum2001-01-191-2/+2
| | | | | fix set PYTHONPATH to something starting with $(srcdir)/build/lib.... The use of $(srcdir) was wrong here, it should be ./build/lib...
* OK, checking in patch 103329.Moshe Zadka2001-01-191-4/+5
| | | | | | Please check it against your nearest pop server -- mine doesn't support APOP (I checked I'm getting the same error message, though)
* Add some regression tests of coredump bugs in funcobject.c 2.31. AlsoBarry Warsaw2001-01-191-0/+16
| | | | | added a test of a coredump that would occur when del'ing func_defaults (put here for convenience).
* Application and elaboration of patch #103305 to fix core dumps whenBarry Warsaw2001-01-191-30/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* gethash/cmpname both looked beyond the end of the character name.Fredrik Lundh2001-01-191-16/+14
| | | | This patch makes u"\N{x}" a bit less dependent on pure luck...
* Repair "selective cut-&-paste" screwup.Tim Peters2001-01-191-3/+2
|
* Change verify() function to raise TestFailed, not AssertionError.Guido van Rossum2001-01-192-8/+8
| | | | | | (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.)
* GvR pointed out the correct way to check for statically built modules;Andrew M. Kuchling2001-01-191-8/+8
| | | | | sys.builtin_module_names Add SSL directories in /usr/contrib/ for FreeBSD
* Bump __version__; add authorship note for the BaseServer patch.Guido van Rossum2001-01-191-1/+2
|
* Add Jason Tishler to the ACKS fileAndrew M. Kuchling2001-01-191-0/+1
|
* Patch #103220 from Jason Tishler:Andrew M. Kuchling2001-01-191-0/+5
| | | | | | 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.
* Minor patch from Thomas Gellekum:Andrew M. Kuchling2001-01-191-8/+3
| | | | | | * Deletes the Panel_NoArgReturnStringFunction() macro, which isn't used anymore * Adjusts two comments.
* new unicode name database (~160k)Fredrik Lundh2001-01-192-12174/+8471
|
* improved the ucnhash test a bitFredrik Lundh2001-01-192-3/+11
|
* added "getcode" and "getname" methods to the ucnhash module (they'reFredrik Lundh2001-01-192-13/+75
| | | | | probably more useful for the test code than for any applications, but one never knows...)
* Color all word instances of "as" after "import", & on the same line, as ifTim Peters2001-01-191-0/+13
| | | | keywords. Cheap approximation to the truth.
* refactored the unicodeobject/ucnhash interface, to hide theFredrik Lundh2001-01-194-210/+146
| | | | | | | implementation details inside the ucnhash module. also cleaned up the unicode copyright blurb a little; Secret Labs' internal revision history isn't that interesting...
* Update the example DLL instructions for 2.1. Add example.def to theTim Peters2001-01-192-11/+16
| | | | MSVC project file (as the instructions always recommended doing).
* urllib.py very recently changed to produce uppercase escapes, but noTim Peters2001-01-191-3/+8
| | | | corresponding changes were made to its std test.
* Whitespace normalization.Tim Peters2001-01-191-1/+1
|
* test_urllib is failing on Windows. I don't know why, but I can at leastTim Peters2001-01-191-5/+5
| | | | change the test to give a clue about *where* it's failing.
* Use constructor form of "raise"; normalize <wink> docstrings.Tim Peters2001-01-191-9/+5
|
* Jeremy's patch #103323: trivial tests of all untested modules.Tim Peters2001-01-192-0/+94
|
* This still mentioned IdlePrefs.py as the place to edit colorGuido van Rossum2001-01-191-1/+2
| | | | preferences. It is now in config.txt or ~/.idle.
* make the output of _test() suitable for use in the regression testJeremy Hylton2001-01-191-1/+1
|
* Anonymous SF bug 129288: "The python 2.0 urllib has %%%x as a formatGuido van Rossum2001-01-191-2/+2
| | | | | | | 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.
* make error msg more informative when test of exec failsJeremy Hylton2001-01-191-1/+1
|
* add test for SyntaxError onJeremy Hylton2001-01-191-1/+7
| | | | | def f(a): global a
* clearer error messages for apply() and "no locals"Jeremy Hylton2001-01-192-11/+18
|
* add test of bastion and rexec to std regression test suiteJeremy Hylton2001-01-192-0/+13
|
* This patch introduces an extra pass to the compiler that generates aJeremy Hylton2001-01-191-284/+1036
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Derivative of patch #102549, "simpler, faster(!) implementation of string.join".Tim Peters2001-01-191-38/+52
| | | | | | | | 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.
* Revert a single line of my large change earlier today; this broke the abilityAndrew M. Kuchling2001-01-191-0/+1
| | | | | | to build in a subdirectory. The additional directory is unfortunately redundant when *not* building in a subdirectory, which is why I took it out.
* Checking in a slight variation of Barry's patch 103303.Guido van Rossum2001-01-191-10/+9
|
* Fix for the bug in complex() just reported by Ping.Guido van Rossum2001-01-191-1/+7
|
* SF Patch #102980, by Luke Kenneth Casson Leighton: BaseServer classGuido van Rossum2001-01-191-51/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* SF Patch #103188, by Donn Cave: BeOS/ar-fake support for extraGuido van Rossum2001-01-191-2/+11
| | | | | | libraries. (I have no way to test this, I just trust Donn.)