summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* updated SRE test suite (fixes PEP223 problem, shows syntax errors)Fredrik Lundh2000-09-031-76/+78
|
* Repair failing test_sre.py.Tim Peters2000-09-031-3/+3
| | | | | | | | | This was a funny one! The test very subtly relied on 1.5.2's behavior of treating "\x%" as "\x%", i.e. ignoring that was an \x escape that didn't make sense. But /F implemented PEP 223, which causes 2.0 to raise an exception on the bad escape. Fixed by merely making the 3 such strings of this kind into raw strings.
* return -1 for undefined groups (as implemented in 1.5.2) instead ofFredrik Lundh2000-09-021-1/+6
| | | | None (as documented) from start/end/span. closes bug #113254
* -- tightened up parsing of octal numbersFredrik Lundh2000-09-023-198/+158
| | | | | -- improved the SRE test harness: don't use asserts, test a few more things (including more boundary conditions)
* SourceForge patch 101396, by an anonymous friend.Tim Peters2000-09-021-1/+1
| | | | "sre_parse.py missing '7' in DIGITS"
* patch by Neil Schemenauer to improve (fix?) line number generationJeremy Hylton2000-09-012-17/+32
|
* The "more" cmd varies across Windows flavors, sometimes adding strayTim Peters2000-09-012-14/+32
| | | | | | | | newlines at the start or end. Fiddle test_popen2 and popen2._test() to tolerate this. Also change all "assert"s in these tests to raise explicit exceptions, so that python -O doesn't render them useless. Also, in case of error, make the msg display the reprs of what we wrote and what we read, so we can tell exactly why it's failing.
* Update magic number.Jeremy Hylton2000-09-012-15/+47
| | | | | | Fix import support to work with import as variant of Python 2.0. The grammar for import changed, requiring changes in transformer and code generator, even to handle compilation of imports with as.
* Adding new files, removing some.Guido van Rossum2000-09-0118-256/+2711
|
* The usualGuido van Rossum2000-09-0140-886/+1767
|
* Applying patch #100994 to allow JPython to use more of the standardBarry Warsaw2000-09-014-12/+19
| | | | | | | | | | | | | Python test suite. Specifically, - import time instead of strop in test_b1 - test for ClassType of exceptions using isinstance instead of equality in test_exceptions - remove __builtins__ from dir() output in test_pkg test_pkg output needs to be regenerated.
* Applied patch #101350, closing it.Barry Warsaw2000-09-011-1/+3
|
* Added support for RFC 959's REST command (restart), closing SF patchBarry Warsaw2000-09-011-23/+38
| | | | | | | | | | | | | | | | | | | | #101187, which some modifications. Specifically, ntransfercmd(), transfercmd(), and retrbinary() all grow an optional `rest' argument, which if not None, is used as the argument to an FTP REST comman dbefore the socket is returned. Differences from the SF patch: - always compare against None with `is' or `is not' instead of == or != - no parens around conditional - RFC 959 defines the argument to REST is a string containing any ASCII characters in the range [33..126]. Therefore, we use the %s format character instead of %f or %d as suggested in the patch's comments. Note that we do /not/ sanity checkthe contents of the rest argument (but we'll document this in the library reference manual).
* Now that StreamRequestHandler defaults rfile to buffered, make itGuido van Rossum2000-09-011-0/+4
| | | | | | unbuffered (by setting the class variable rbufsize to 0), because we (may) need to pass the file descriptor to the subprocess running the CGI script positioned after the headers.
* In class StreamRequestHandler, make the default buffering for rfileGuido van Rossum2000-09-011-2/+12
| | | | | | | | | and wfile class variables (that the instance can also override). Change the default for rfile to buffered, because that seems to make a big difference in performance on some platforms. An anti-patch is needed to revert the effect in CGIHTTPServer.py which I'll check in momentarily.
* Repaired comment.Tim Peters2000-09-011-1/+1
|
* Rene Liebscher/Thomas Heller:Greg Ward2000-09-011-20/+22
| | | | | | | * ensure the "dist" directory exists * raise exception if using for modules containing compiled extensions on a non-win32 platform. * don't create an .ini file anymore (it was just for debugging)
* Rene Liebscher:Greg Ward2000-09-011-13/+13
| | | | | | * reverse library names from bcpp_library to library_bcpp * move some code to the right places, to put the def-files in the right directories again
* Rene Liebscher: comment fixes.Greg Ward2000-09-011-2/+2
|
* Rene Liebscher: hack '_init_posix()' to handle the BeOS linker script.Greg Ward2000-09-011-0/+17
| | | | | (With a worry-wart comment added by me about where we *should* add the Python library to the link.)
* Bump version to 0.9.2.Greg Ward2000-09-011-1/+1
|
* Added 'run_setup()' to allow outsiders to run a setup script underGreg Ward2000-09-011-1/+89
| | | | | | | | | | | fairly tight control, and the '_setup_stop_after' and '_setup_distribution' globals to provide the tight control. This isn't entirely reliable yet: it dies horribly with a NameError on the example PIL setup script in examples/pil_setup.py (at least with Python 1.5.2; untested with current Python). There's some strangeness going on with execfile(), but I don't understand it and don't have time to track it down right now.
* GNUTranslations._parse(): Fix portability problems on 64-bit machinesBarry Warsaw2000-08-311-5/+14
| | | | by masking all unsigned integers with 0xffffffff.
* closes bug #112468 (and all the other bugs that surfaced whenFredrik Lundh2000-08-312-43/+85
| | | | I fixed the a bug in the regression test harness...)
* Test case to exercise fix for error propogation bug in dictionarys.Fred Drake2000-08-312-2/+28
|
* fixes bug #111951Jeremy Hylton2000-08-313-2/+18
| | | | | | applies patch #101369 by Moshe Zadke use explicit list of always safe characters instead of string.letters add test case
* GNUTranslations.BE_MAGIC: don't be so clever in calculating this fromBarry Warsaw2000-08-311-1/+1
| | | | LE_MAGIC; it breaks on Tru64.
* New method getnamespace.Sjoerd Mullender2000-08-311-0/+7
| | | | | | Since the application never gets to see the namespace abbreviation used in the XML document, but some applications may need to know them, we provide this method.
* tg@freebsd.orgJeremy Hylton2000-08-3110-0/+1629
| | | | close SF patch #101354
* Add /GX to 'compile_options'. This is definitely needed for C++ source;Greg Ward2000-08-311-2/+3
| | | | | | | | according to the MS docs it enables exception-handling, and (according to Alex Martelli <aleaxit@yahoo.com>) is needed to compile without getting warnings from standard C++ library headers. Apparently it doesn't cause any problems with C code, so I haven't bothered conditionalizing the use of /GX.
* Add ".cxx" to the list of known C++ extensions.Greg Ward2000-08-301-1/+1
|
* Added docstring for 'wrap()' function.Greg Ward2000-08-301-0/+5
|
* patches from David Goodger. Closes patch 101085.Skip Montanaro2000-08-301-69/+104
| | | | | | | | | | * deletes cache * adds firstweekday and setfirstweekday functions that allow user to control which day of the week is first when displaying calendars * adds month, week, calendar functions that return their results instead of printing them * adds symbolic constants MONDAY, ..., SUNDAY so users need not remember the ordinal values of the weekdays
* Expand the test suite to test both the GNU gettext and translationBarry Warsaw2000-08-302-257/+154
| | | | class-based APIs.
* Finalize this module for Python 2.0 based on feedback and input fromBarry Warsaw2000-08-301-173/+140
| | | | | Martin von Loewis, Peter Funk, James Henstridge, Francois Pinard, and Marc-Andre Lemburg.
* Fix for two problems on FreeBSD:Andrew M. Kuchling2000-08-291-3/+6
| | | | | | | In test_poll1(), unregister file descriptors as they're closed, and also close the read end of the pipe In test_poll2(), make the code assume less about the combinations of flag bits that will be returned
* Add support for FreeBSD-[45].Guido van Rossum2000-08-292-3/+3
| | | | -- tg@FreeBSD.org
* Patch by tg@FreeBSD.org to try /var/tmp first.Guido van Rossum2000-08-291-1/+1
| | | | This helps on 4.4BSD-based systems.
* Added tests of "print >> None"Barry Warsaw2000-08-292-0/+26
|
* Added 'script_name' and 'script_args' instance attributes to Distribution.Greg Ward2000-08-294-37/+58
| | | | | | | | Changed 'core.setup()' so it sets them to reasonable defaults. Tweaked how the "usage" string is generated: 'core' now provides 'gen_usage()', which is used instead of 'USAGE'. Modified "build_py" and "sdist" commands to refer to 'self.distribution.script_name' rather than 'sys.argv[0]'.
* Added os.popen2() and os.popen3() for non-Windows platforms.Fred Drake2000-08-284-4/+57
|
* Fix line-endings.Greg Ward2000-08-271-1/+1
| | | | Fix bad operator precedence: should be "(metadata or '') + '\n'".
* Open binary files in binary mode. Fixes test failure under Windows.Tim Peters2000-08-261-1/+1
|
* Tim Peters:Moshe Zadka2000-08-261-26/+0
| | | | | Again due to the duplicate copies of test_support, the checked-in "expected output" file actually contains verbose-mode output.
* Another new test using "from test.test_support import ...", causingTim Peters2000-08-261-3/+1
| | | | | | | | | | | | | | | subtle breakage on Windows (the test is skipped here, but the TestSkipped exception wasn't recognized as such, because of duplicate copies of test_support got loaded; so the test looks like a failure under Windows instead of a skip). Repaired the import, but THIS TEST *WILL* FAIL ON OTHER SYSTEMS NOW! Again due to the duplicate copies of test_support, the checked-in "expected output" file actually contains verbose-mode output. I can't generate the *correct* non-verbose output on my system. So, somebody please do that.
* New release of the Windows installer from Thomas Heller.Greg Ward2000-08-261-283/+296
| | | | | | | | | | | | | | | | | | | | | | | | | The known bug (bogus error message when an empty file is extracted) is fixed. Other changes: - The target-compile and target-optimize flags of bdist_wininst are gone. It is no longer possible to compile the python files during installation. - The zlib module is no longer required or used by bdist_wininst. - I moved the decompression/extraction code into a separate file (extract.c). - The installer stub is now compressed by UPX (see http://upx.tsx.org/). This reduces the size of the exe (and thus the overhead of the final installer program) from 40 kB to 16 kB. - The installer displays a more uptodate user wizard-like user interface, also containing a graphic: Just's Python Powered logo. (I could not convince myself to use one of the BeOpen logos). - The installation progress bar now moves correctly.
* Bumped version to 0.9.2pre.Greg Ward2000-08-261-1/+1
|
* In 'check_extensions_list()': when converting old-style 'buildinfo' dict,Greg Ward2000-08-261-1/+3
| | | | don't assign None to any attributes of the Extension object.
* Update the parser module to support augmented assignment.Fred Drake2000-08-252-43/+122
| | | | Add some test cases.
* Output of the new testMarc-André Lemburg2000-08-251-0/+1
|