summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* update info about binutils 2.13 breakage on Solaris.Skip Montanaro2003-01-031-2/+2
|
* [Patch #658093 ] Documentation support for PEP 301Andrew M. Kuchling2003-01-031-3/+124
| | | | | Add two sections to this manual about package meta-data and about registering packages
* [Patch #658094 ] PEP 301 implementationAndrew M. Kuchling2003-01-031-0/+293
| | | | Add the 'register' distutils command
* [Patch #658094] PEP 301 implementationAndrew M. Kuchling2003-01-031-1/+12
| | | | Add 'classifiers' keyword to DistributionMetadata
* Fix for bug #661136Just van Rossum2003-01-032-15/+22
| | | | | | | | | | | | | Lesson learned: kids should not be allowed to use API's starting with an underscore :-/ zipimport in 2.3a1 is even more broken than I thought: I attemped to _PyString_Resize a string created by PyString_FromStringAndSize, which fails for strings with length 0 or 1 since the latter returns an interned string in those cases. This would cause a SystemError with empty source files (and no matching pyc) in the zip archive. I rewrote the offending code to simply allocate a new buffer and avoid _PyString_Resize altogether. Added a test that would've caught the problem.
* Add contributor.Raymond Hettinger2003-01-031-0/+1
|
* Remove debugging prints.Michael W. Hudson2003-01-031-2/+0
|
* SF patch 660559: Use METH_O and METH_NOARGS where possibleRaymond Hettinger2003-01-033-117/+70
| | | | | Simplify code and speed access by using PyArg_UnpackTuple, METH_O and METH_NOARGS in three modules that can benefit from it.
* Fixed markup.David Goodger2003-01-031-8/+17
|
* Updated (2.3 OK now)David Goodger2003-01-031-6/+8
|
* Fix error in previous correction; thanks, Just!Andrew M. Kuchling2003-01-021-1/+0
|
* Jack complained that on test_crlf_separation() was failing on MacOS9Barry Warsaw2003-01-021-4/+4
| | | | | | | | | | | | because the test file, msg_26.txt which has \r\n line endings, was getting munged by cvs, which knows to do line ending conversions for text files. But we want \r\n to be preserved on all platforms, so we cvs admin'd the file to be -kb (binary), which means we have to open the file in binary mode to preserve these line ends. Hopefully this will be the end of the thrashing on this issue (but probably not). Test passes on *nix now, and Tim confirms it passes on Windows. We'll leave it to Jack to test MacOS.
* Fix PEP 302 description; bump version numberAndrew M. Kuchling2003-01-021-10/+17
|
* The tzinfo methods utcoffset() and dst() must return a timedelta objectTim Peters2003-01-025-77/+84
| | | | | | (or None) now. In 2.3a1 they could also return an int or long, but that was an unhelpfully redundant leftover from an earlier version wherein they couldn't return a timedelta. TOOWTDI.
* Allow list sort's comparison function to explicitly be None. See SF patchSkip Montanaro2003-01-024-6/+34
| | | | 661092.
* 1. Remove obsolete, incorrect comment on non-package installationKurt B. Kaiser2003-01-021-7/+3
| | | | | 2. Add more .txt files to installation 3. Fix the reference to Visual Python, s/b VPython
* astimezone() internals: if utcoffset() returns a duration, complain ifTim Peters2003-01-024-14/+45
| | | | dst() returns None (instead of treating that as 0).
* Added a section to record datetime changes. There's apparently going toTim Peters2003-01-021-0/+5
| | | | be an unbounded number of API changes <0.6 wink>.
* The astimezone() correctness proof endured much pain to prove whatTim Peters2003-01-021-70/+43
| | | | | turned out to be 3 special cases of a single more-general result. Proving the latter instead is a real simplification.
* Improve exception handling.Kurt B. Kaiser2003-01-023-3/+6
|
* 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.