summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add test cases to make sure we get the right SyntaxError message forFred Drake2000-09-082-0/+59
| | | | various illegal uses of "continue".
* Fix for bug 110629: Generate unique image names by introducing a counterMartin v. Löwis2000-09-081-1/+3
|
* Changes:Thomas Heller2000-09-071-273/+298
| | | | | | | | | | | | | | | | | | | | | | | | | distutils/command/bdist_wininst.py: - the windows installer is again able to compile after installing the files. Note: The default has changed, the packager has to give --no-target-compile/--no-target-optimize to NOT compile on the target system. (Another note: install_lib's --compile --optimize options have the same semantics to switch off the compilation. Shouldn't the names change?) - All references to specific python versions are gone. - A small bug: raise DistutilsPlatformError ("...") instead of raise DistutilsPlatformError, ("...") - When bdist_wininst creates an installer for one specific python version, this is reflected in the name: Distutils-0.9.2.win32-py15.exe instead of Distutils-0.9.2.win32.exe - bdist_wininst, when run as script, reads the wininst.exe file and rewrites itself. Previously this was done by hand. misc/install.c - All the changes needed for compilation - Deleted a lot of debug/dead code
* Older Tk versions don't support mousewheel support. Set event.deltaFredrik Lundh2000-09-071-1/+4
| | | | to zero if that's the case (closes bug #113727)
* Added Unicode objects to the copy mechanism. Since these are immutable,Marc-André Lemburg2000-09-071-0/+2
| | | | they are copied as atomic types.
* Typo fix.Greg Ward2000-09-071-1/+1
|
* Removing this file again to set its status to 'dead'.Guido van Rossum2000-09-071-1570/+0
|
* Bullet-proofing of 'make_release_tree()':Greg Ward2000-09-061-6/+14
| | | | | | - 'mkpath()' the distribution dir in case of empty manifest - warn if empty manifest - detect, warn about, and skip non-regular files in manifest
* Reorganized logic in 'get_file_list()' so it's easier to read, and fixed aGreg Ward2000-09-061-7/+8
| | | | | bug to boot: now works even if both MANIFEST and MANIFEST.in don't exist. Don't hardcode setup.py, use 'self.distribution.script_name'.
* Typo fix.Greg Ward2000-09-062-2/+2
|
* The usual.Guido van Rossum2000-09-055-23/+30
|
* Add new builtin commands "copyright", "license", "credits" whichGuido van Rossum2000-09-051-1/+52
| | | | display the information you would expect them to display.
* For this server to work on Windows, directories should use "/" as theGuido van Rossum2000-09-041-2/+3
| | | | | | | | separator in the href, not os.sep. Added a <title> tag to directory listings. Bumped version to 0.5.
* test_mmap wrote null bytes into its expected-output file; this caused me toTim Peters2000-09-042-2/+1
| | | | | | | | | | | waste an hour tracking down an illusion; repaired it; writing/reading non- printable characters (except \t\r\n) into/outof text-mode files ain't defined x-platform, and at least some Windows text editors do surprising things in their presence. Also added a by-hand "build humber" to the Windows build, in an approximation of Python's inexplicable BUILD-number Unix scheme. I'll try to remember to increment it each time I make a Windows installer available. It's starting at 2, cuz I've put 2 installers out so far (both with BUILD #0).
* Correct docstring about return value when group didn't participate in matchAndrew M. Kuchling2000-09-041-4/+4
| | | | (pointed out by /F)
* Hack the Windows code to use os.popen().Guido van Rossum2000-09-031-3/+1
| | | | | The returned file is assigned to an instance variable; otherwise the implied close hangs for a long time.
* 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.