After thinking for a while, and doing some research about these functions, I've changed my mind about the best way to implement the needed functionality for tarfile. Maybe including major, minor, and makedev is the best solution. Some of the issues I'm considering: - st_rdev was already available in 2.2, so we'd have to introduce a new redundant pair attribute to provide a (major, minor) pair. - mkdev would be able to use the standard posix format, and would work regardless of makedev's availability (mkdev is being introduced in 2.3). - more flexible. major, minor, and makedev may be needed in other cases, besides st_rdev parsing and mknod device creation. - TYPES.py is already trying to provide them, but it's broken (indeed, it's more broken than that. h2py should use cpp to preprocess the files, but that's something for another occasion). - these "functions" are usually macros, thus should introduce little overhead. A patch providing these functions is available at http://www.python.org/sf/569139 -- Gustavo Niemeyer [ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4