Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF patch 658251: Install a C implementation of the Mersenne Twister as the | Raymond Hettinger | 2002-12-29 | 1 | -0/+528 |
| | | | | core generator for random.py. | ||||
* | Demonstrate use of PyType_Ready() in the example. | Raymond Hettinger | 2002-12-29 | 1 | -3/+5 |
| | |||||
* | SF patch #659536: Use PyArg_UnpackTuple where possible. | Raymond Hettinger | 2002-12-29 | 2 | -11/+11 |
| | | | | | | | Obtain cleaner coding and a system wide performance boost by using the fast, pre-parsed PyArg_Unpack function instead of PyArg_ParseTuple function which is driven by a format string. | ||||
* | Apparently FreeBSD enables some HW floating-point exceptions by default. | Tim Peters | 2002-12-28 | 1 | -0/+15 |
| | | | | | | | This can cause core dumps when Python runs. Python relies on the 754- (and C99-) mandated default "non-stop" mode for FP exceptions. This patch from Ben Laurie disables at least one FP exception on FreeBSD at Python startup time. | ||||
* | Gracefully delay runtime error up to 1s. Add .willdispatch(). | Martin v. Löwis | 2002-12-28 | 1 | -12/+31 |
| | |||||
* | Patch #657889: Implement posix.getloadavg. | Martin v. Löwis | 2002-12-27 | 1 | -0/+25 |
| | |||||
* | And put back a little code duplication, in the form of asserts. | Tim Peters | 2002-12-27 | 1 | -0/+3 |
| | |||||
* | Squash recently-introduced code duplication. | Tim Peters | 2002-12-27 | 1 | -66/+37 |
| | |||||
* | Make comparison and subtraction of aware objects ignore tzinfo if the | Tim Peters | 2002-12-27 | 1 | -27/+64 |
| | | | | | | operands have identical tzinfo members (meaning object identity -- "is"). I misunderstood the intent here, reading wrong conclusion into conflicting clues. | ||||
* | Implemented datetime.astimezone() and datetimetz.astimezone(). | Tim Peters | 2002-12-25 | 1 | -18/+84 |
| | |||||
* | Add an XXX comment about relative imports. | Guido van Rossum | 2002-12-24 | 1 | -1/+2 |
| | |||||
* | Implemented .replace() methods for date, datetime, datetimetz, time and | Tim Peters | 2002-12-24 | 1 | -26/+154 |
| | | | | timetz. | ||||
* | Squashed compiler warnings by adding casts, making sure prototypes are in | Jack Jansen | 2002-12-23 | 2 | -1/+5 |
| | | | | scope and looking at types. | ||||
* | call_utc_tzinfo_method(): Got rid of the label and the gotos. | Tim Peters | 2002-12-23 | 1 | -7/+2 |
| | |||||
* | I give up: unless I write my own strftime by hand, datetime just can't | Tim Peters | 2002-12-22 | 1 | -0/+25 |
| | | | | | | be trusted with years before 1900, so now we raise ValueError if a date or datetime or datetimetz .strftime() method is called with a year before 1900. | ||||
* | Python's strftime implementation does strange things with the year, | Tim Peters | 2002-12-22 | 1 | -1/+5 |
| | | | | | | | | | | such that the datetime tests failed if the envar PYTHON2K was set. This is an utter mess, and the datetime module's strftime functions inherit it. I suspect that, regardless of the PYTHON2K setting, and regardless of platform limitations, the datetime strftime wrappers will end up delivering nonsense results (or bogus exceptions) for any year before 1900. I should probably just refuse to accept years earlier than that -- else we'll have to implement strftime() by hand. | ||||
* | classify_object(): Renamed more meaningfully, to classify_utcoffset(). | Tim Peters | 2002-12-22 | 1 | -20/+17 |
| | | | | | Also changed logic so that instances of user-defined subclasses of date, time, and datetime are called OFFSET_NAIVE instead of OFFSET_UNKNOWN. | ||||
* | Implemented a Wiki suggestion: | Tim Peters | 2002-12-22 | 1 | -76/+123 |
| | | | | | | | | | | | | {timetz,datetimetz}.{utcoffset,dst}() now return a timedelta (or None) instead of an int (or None). tzinfo.{utcoffset,dst)() can now return a timedelta (or an int, or None). Curiously, this was much easier to do in the C implementation than in the Python implementation (which lives in the Zope3 code tree) -- the C code already had lots of hair to extract C ints from offset objects, and used C ints internally. | ||||
* | Use wcscoll for _locale.strcoll if available. | Martin v. Löwis | 2002-12-21 | 1 | -5/+79 |
| | |||||
* | format_utcoffset(): The natural type of the buflen arg is size_t, so | Tim Peters | 2002-12-20 | 1 | -10/+8 |
| | | | | | | | | | | used that. wrap_strftime(): Removed the most irritating uses of buf. TestDate.test_ordinal_conversions(): The C implementation is fast enough that we can afford to check the endpoints of every year. Also added tm_yday tests at the endpoints. | ||||
* | Fix another long vs int mismatch. test_datetime now passes on alpha | Neal Norwitz | 2002-12-19 | 1 | -3/+3 |
| | |||||
* | Fixed typo in string. | Tim Peters | 2002-12-19 | 1 | -5/+20 |
| | |||||
* | Fix crash on alphas due to mismatch between 'l' format and int variables. | Neal Norwitz | 2002-12-19 | 1 | -1/+1 |
| | |||||
* | delta_str(): Purged last uses of sprintf (in favor of PyOS_snprintf). | Tim Peters | 2002-12-18 | 1 | -10/+25 |
| | |||||
* | "time_second" is apparently a #define on MacOSX. Renamed the (static) | Jack Jansen | 2002-12-17 | 1 | -2/+2 |
| | | | | routine to py_time_second. | ||||
* | Fix GCC warnings. It turns out two out of three pointed to real bugs! | Guido van Rossum | 2002-12-16 | 1 | -3/+3 |
| | |||||
* | datetime escapes the sandbox. The Windows build is all set. I leave it | Tim Peters | 2002-12-16 | 1 | -0/+5075 |
| | | | | | to others to argue about how to build it on other platforms (on Windows it's in its own DLL). | ||||
* | Apply SF patch 652930: Add optional base argument to math.log(x[, base]). | Raymond Hettinger | 2002-12-14 | 1 | -15/+47 |
| | |||||
* | execve(), spawnve(): add some extra sanity checking to env; | Guido van Rossum | 2002-12-13 | 1 | -18/+50 |
| | | | | | | | | | PyMapping_Check() doesn't guarantee that PyMapping_Size() won't raise an exception, nor that keys and values are lists. Also folded some long lines and did a little whitespace normalization. Probably a 2.2 backport candidate. | ||||
* | We need macglue on MacPython-OS9 too. | Jack Jansen | 2002-12-13 | 1 | -1/+1 |
| | |||||
* | Always initialize objc. | Martin v. Löwis | 2002-12-12 | 1 | -1/+1 |
| | |||||
* | Patch to make _codecs a builtin module. This is necessary since | Marc-André Lemburg | 2002-12-12 | 2 | -2/+2 |
| | | | | | | | Python 2.3 will support source code encodings which rely on the builtin codecs being available to the parser. Remove struct dependency from codecs.py | ||||
* | Typo fix. | Greg Ward | 2002-12-12 | 1 | -1/+1 |
| | |||||
* | Support threads-enabled Tcl installations. | Martin v. Löwis | 2002-12-12 | 1 | -118/+525 |
| | |||||
* | This is not used anymore. | Martin v. Löwis | 2002-12-11 | 2 | -1003/+0 |
| | |||||
* | Add OSS mixer interface (from Nicholas FitzRoy-Dale <wzdd@lardcave.net>): | Greg Ward | 2002-12-11 | 1 | -0/+267 |
| | | | | | | | | | | | * add oss_mixer_t and OSSMixerType * add newossmixerobject(), oss_mixer_dealloc(), ossopenmixer() * add _do_ioctl_1_internal() to support mixer ioctls * add mixer methods: oss_mixer_{close,fileno,channels,stereo_channels, rec_channels,getvol,setvol,getrecsrc,setrecsrc}() * add oss_mixer_methods list * add oss_mixer_getattr() (why?!) * export SOUND_MIXER_* constants from soundcard.h | ||||
* | Prepare for the coming mixer support patch: change _do_ioctl_0() and | Greg Ward | 2002-12-11 | 1 | -14/+14 |
| | | | | | _do_ioctl_1() so they take a file descriptor rather than an oss_t pointer. | ||||
* | Finish expunging the 'linuxaudiodev' name: | Greg Ward | 2002-12-11 | 1 | -55/+55 |
| | | | | | | | * rename oss_t to lad_t, Ladtype to OSSType, * rename lad_*() methods to oss_*() * rename lad_methods list to oss_methods Patch and impetus supplied by Nicholas FitzRoy-Dale <wzdd@lardcave.net>. | ||||
* | Patch #650422: Use Posix AF_ constants instead of PF_ ones. | Martin v. Löwis | 2002-12-11 | 1 | -5/+7 |
| | |||||
* | Remove C++ comment. Silence unsigned char* cast warning. | Martin v. Löwis | 2002-12-07 | 1 | -2/+2 |
| | |||||
* | Remove C++ comment. | Martin v. Löwis | 2002-12-07 | 1 | -1/+1 |
| | |||||
* | A patch from Kevin Jacobs, plugging several leaks discovered when | Tim Peters | 2002-12-07 | 1 | -5/+10 |
| | | | | | | running the sandbox datetime tests. Bugfix candidate. | ||||
* | Don't include <ioctl.h> unless on __VMS. | Martin v. Löwis | 2002-12-06 | 1 | -1/+3 |
| | |||||
* | Patch #614055: Support OpenVMS. | Martin v. Löwis | 2002-12-06 | 7 | -4/+499 |
| | |||||
* | Patch #649060: Cygwin bz2module patch | Jason Tishler | 2002-12-05 | 1 | -14/+29 |
| | | | | This patch enables the bz2 module to build cleanly under Cygwin. | ||||
* | Decode untyped strings from UTF-8. | Martin v. Löwis | 2002-12-04 | 1 | -2/+27 |
| | |||||
* | correct wording of comments about old bsddb (now bsddb185) module | Skip Montanaro | 2002-12-02 | 1 | -6/+4 |
| | |||||
* | Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now! | Greg Ward | 2002-11-30 | 1 | -7/+7 |
| | |||||
* | Rename LinuxAudioError to OSSAudioError ('ossaudiodev.error'). | Greg Ward | 2002-11-30 | 1 | -25/+25 |
| | | | | | | Use OSSAudioError much less frequently -- all real I/O errors (ie. any time open(), read(), write(), ioctl(), or select() return an error) become IOError. OSSAudioError is only used now for bad open() mode. | ||||
* | Added mode 'rw' for full-duplex (play and record at the same time) mode. | Greg Ward | 2002-11-30 | 1 | -21/+97 |
| | | | | | | | | | | | | Added _EXPORT_INT macro to export an integer constant to Python-space. Use it for all the AFMT_* constants, and update the list of AFMT_* constants to match what's in Linux 2.4: add AFMT_{QUERY,IMA_ADPCM, MPEG,AC3}. This should probably be tested with older versions of OSS, eg. with Linux 2.2 and 2.0. Export all SNDCTL_* ioctl numbers (where "all" is the set found in /usr/include/linux/soundcard.h on my Debian 3.0 system -- again Linux 2.4). Again needs to be tested with older OSS versions. |