Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF patch #462296: Add attributes to os.stat results; by Nick Mathewson. | Guido van Rossum | 2001-10-18 | 1 | -2/+119 |
| | | | | | | | | | | | | | | | | | This is a big one, touching lots of files. Some of the platforms aren't tested yet. Briefly, this changes the return value of the os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the time functions localtime(), gmtime(), and strptime() from tuples into pseudo-sequences. When accessed as a sequence, they behave exactly as before. But they also have attributes like st_mtime or tm_year. The stat return value, moreover, has a few platform-specific attributes that are not available through the sequence interface (because everybody expects the sequence to have a fixed length, these couldn't be added there). If your platform's struct stat doesn't define st_blksize, st_blocks or st_rdev, they won't be accessible from Python either. (Still missing is a documentation update.) | ||||
* | Change the PyUnit-based tests to use the test_main() approach. This | Fred Drake | 2001-09-20 | 1 | -1/+5 |
| | | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves. | ||||
* | Merge changes from r22a2-branch back into trunk. Also, change patch | Barry Warsaw | 2001-08-22 | 1 | -0/+3 |
| | | | | level to 2.2a2+ | ||||
* | Silence warnings during test_os | Jeremy Hylton | 2001-08-20 | 1 | -0/+5 |
| | |||||
* | Whitespace normalization, plus: | Tim Peters | 2001-07-21 | 1 | -1/+1 |
| | | | | | | + test_quopri.py relied on significant trailing spaces. Fixed. + test_dircache.py (still) doesn't work on Windows (directory mtime on Windows doesn't work like it does on Unix). | ||||
* | Remove a couple of lines from the test that proved not to be portable to | Fred Drake | 2001-07-17 | 1 | -2/+0 |
| | | | | all platforms that offer tempnam(). | ||||
* | Start of a test suite for the "os" module -- this only tests the temporary | Fred Drake | 2001-07-17 | 1 | -0/+60 |
file management functions that have just been made available on more platforms. |