summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* There are two more copyright notices in the Windows world:Tim Peters2003-01-022-3/+3
| | | | | | | | | PC/python_nt.rc sets up the DLL version resource (displayed when you right-click on the DLL and select Properties). PCbuld/python20.wse sets up the installer version resource (displayed when you right-click on the installer .exe and select Properties). Turns out this one hadn't been updated since 2001 <frown>!
* SF bug 661086: datetime.today() truncates microseconds.Tim Peters2003-01-021-7/+16
| | | | | | | | | | | | | | | | On Windows, it was very common to get microsecond values (out of .today() and .now()) of the form 480999, i.e. with three trailing nines. The platform precision is .001 seconds, and fp rounding errors account for the rest. Under the covers, that 480999 started life as the fractional part of a timestamp, like .4809999978. Rounding that times 1e6 cures the irritation. Confession: the platform precision isn't really .001 seconds. It's usually worse. What actually happens is that MS rounds a cruder value to a multiple of .001, and that suffers its own rounding errors. A tiny bit of refactoring added a new internal utility to round doubles.
* Update the copyright year.Guido van Rossum2003-01-022-2/+2
|
* Another copyright update. (JvR: can you backport this to the 2.3a1Guido van Rossum2003-01-021-1/+1
| | | | release branch?)
* SF bug 660795: logging missing from Python 2.3a1 for Windows.Tim Peters2003-01-022-2/+13
| | | | | | Added the logging package. In the meantime, Neal Norwitz added a test_logging.py to the std test suite, which would have caught this oversight in the Windows installer.
* Add some version info for new methods and classNeal Norwitz2003-01-021-0/+3
|
* SF #660795Neal Norwitz2003-01-022-0/+975
| | | | Add a test for logging from Vinay Sajip (module author)
* Fix an exampleAndrew M. Kuchling2003-01-021-2/+1
|
* Replaced imp.set_frozenmodules() cruft with proper zipimport support.Just van Rossum2003-01-021-43/+42
| | | | | This work uncovered the zipimport bug in 2.3a1 -- wish I'd had time to do this before the release :-(.
* Ugh, zipimport is virtually broken in 2.3a1 :-( It worked by accident inJust van Rossum2003-01-022-5/+6
| | | | | | | | | | | | | the test set as it only tested with a zip archive in the current directory, but it doesn't work at all for packages when the zip archive was specified as an absolute path. It's a real embarrassing bug: a strchr call should have been strrchr; fever apparently implies dyslexia. Second stupid bug: the zipimport test failed with a name error __importer__ (which I had renamed to __loader__ everywhere but here). I would've sworn I ran the test after that change but that can't be true. What I don't understand that noone reported a failing test_zipimport.py before the release of 2.3a1.
* EMX fork() emulation not good enough to cope with test_socketserverAndrew MacIntyre2003-01-021-2/+2
|
* OS/2 sockets do not support AF_UNIX, even though EMX headers define itAndrew MacIntyre2003-01-021-4/+4
|
* catch up with zipimport changes to std getpathp.cAndrew MacIntyre2003-01-021-3/+25
|
* bring structure closer to std config.c, whitespace normalisationAndrew MacIntyre2003-01-021-30/+44
|
* fix a merge mistake - readline not built by defaultAndrew MacIntyre2003-01-021-1/+1
|
* - documented Ellipsis, NotImplementedFred Drake2003-01-021-9/+20
| | | | | - minor markup changes - indented for consistency with newer content
* Add dependency info for the recently added lib/libconsts.tex.Fred Drake2003-01-021-0/+1
|
* Document that apply() is deprecated. See:Fred Drake2003-01-021-0/+3
| | | | http://mail.python.org/pipermail/python-dev/2003-January/031556.html
* Completed astimezone's correctness proof. That doesn't mean it'sTim Peters2003-01-021-4/+51
| | | | | correct by your lights, it means that-- barring coding errors --it implements what it intended to implement.
* Clearing out old patch queue. Patch #558547, make SocketServer moreAnthony Baxter2003-01-021-1/+2
| | | | | robust. This makes socketserver's close() method callable repeatedly without error - similar to other file-like objects.
* Add byext.pyGuido van Rossum2003-01-021-0/+1
|
* A quicker astimezone() implementation, rehabilitating an earlierTim Peters2003-01-013-71/+199
| | | | | | | | | | | | | | | | | | | suggestion from Guido, along with a formal correctness proof of the trickiest bit. The intricacy of the proof reveals how delicate this is, but also how robust the conclusion: correctness doesn't rely on dst() returning +- one hour (not all real time zones do!), it only relies on: 1. That dst() returns a (any) non-zero value if and only if daylight time is in effect. and 2. That the tzinfo subclass implements a consistent notion of time zone. The meaning of "consistent" was a hidden assumption, which is now an explicit requirement in the docs. Alas, it's an unverifiable (by the datetime implementation) requirement, but so it goes.
* mention built-in constants.Skip Montanaro2003-01-011-2/+4
|
* process libconsts.texSkip Montanaro2003-01-011-0/+1
|
* new section - builtin constantsSkip Montanaro2003-01-011-0/+20
|
* add find-uname.pySkip Montanaro2003-01-011-0/+1
|
* Search for Unicode character names using regular expressions.Skip Montanaro2003-01-011-0/+40
|
* Split OPT make variable into OPT and BASECFLAGS. The latter contains thoseSkip Montanaro2003-01-015-1452/+748
| | | | | | | | | | | compiler flags which are necessary to get a clean compile. The former is for user-specified optimizer, debug, trace fiddling. See patch 640843. Add /sw/lib and /sw/include to setup.py search paths on Darwin to take advantage of fink goodies. Add scriptsinstall target to Makefile to install certain scripts from Tools/scripts directory.
* Move _PyInt_Init() into pythonrun.h, since all the other _Init()Neal Norwitz2003-01-012-1/+1
| | | | functions are here. Suggested by Skip.
* Revert last change -- test works on HPUX again after Martin's checkinNeal Norwitz2003-01-011-3/+2
| | | | | | to 'properly configure the slave terminal' See SF patch # 656590 for the details.
* Silly little script to print statistics (files, lines, words) byGuido van Rossum2003-01-011-0/+116
| | | | extension. Could use some work, but already very useful.
* Expose I_ constants. Auto-detect stropts.h. Properly configure the slave ↵Martin v. Löwis2003-01-017-7/+98
| | | | terminal.
* Revert merge from 2.3 alpha 1 release branch; the change does notFred Drake2003-01-011-1/+1
| | | | apply to the trunk.
* datetimetz_astimezone(): Speed optimizations -- although I'd ratherTim Peters2003-01-011-32/+38
| | | | | | | | | find a more elegant algorithm (OTOH, the hairy new implementation allows user-written tzinfo classes to be elegant, so it's a big win even if astimezone() remains hairy). Darn! I've only got 10 minutes left to get falling-down drunk! I suppose I'll have to smoke crack instead now.
* The failure of the last-second addition to the timezone coversion test isTim Peters2003-01-011-4/+12
| | | | | | understood now: it can't work. Added comments explaining why (it's "the usual"-- unrepresentable hours in local time --but in a slightly different guise).
* Merging in changes from r23a1-branch. Doc/makefile had conflicts, whichTim Peters2003-01-012-1/+7
| | | | I leave to Fred to sort out.
* More installation info. Bump alpha version.Kurt B. Kaiser2003-01-012-7/+11
|
* Debugger was tracing through rpc.py when IDLEfork was not startedKurt B. Kaiser2003-01-011-21/+19
| | | | | from its source directory. Generalize the "workaround" (though the latter seems a reasonable solution?) to handle this.
* Improve exception handling.Kurt B. Kaiser2002-12-313-6/+6
|
* Try to get compilation working for cygwinNeal Norwitz2002-12-311-3/+6
|
* Patch #660485: Cygwin _tkinter Tcl/Tk 8.3 patchJason Tishler2002-12-312-13/+19
| | | | | | | The attached patch enables Cygwin Python to build cleanly against the latest Cygwin Tcl/Tk which is based on Tcl/Tk 8.3. It also prevents building against the real X headers, if installed.
* The trunk is (nominally) post-alpha.Fred Drake2002-12-312-2/+2
|
* Merge to trunk from release branch:Guido van Rossum2002-12-311-0/+1
| | | | Plug the leak that Tim just reported.
* Make two tests non-locale-dependentBarry Warsaw2002-12-311-2/+2
|
* Results of a rewrite passAndrew M. Kuchling2002-12-311-258/+251
|
* - use classdesc where we can (for better indexing)Fred Drake2002-12-311-35/+42
| | | | - more style consistency crud
* Replace all but one explicit emit('SET_LINENO') with call to set_lineno().Jeremy Hylton2002-12-311-8/+2
| | | | | | Remove broken code in visitDict(). I assume the code was trying to add set lineno events for each line of a dict constructor, but I think it was using the wrong object (node instead of k or v).
* Don't let the docstring end up in __main__.__doc__Tony Lownds2002-12-311-14/+14
|
* test01_close_dbenv_before_db(): Added an XXX comment that this test isBarry Warsaw2002-12-311-0/+2
| | | | BerkeleyDB version dependent.
* Comment out test, since it hangs on HPUX, still investigatingNeal Norwitz2002-12-311-2/+3
|