Posts: 4,647
Threads: 1,494
Joined: Sep 2016
looks like i need to learn interfacing Python to C. just too many syscalls that are not implemented.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
... a number of different syscalls that i could not find an implementation or stub for, such as pivot_root() and utimensat().
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
i searched the Python library manual for "utimens" and found nothing that way. what should i have searched for?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Oct-24-2020, 02:47 AM
(This post was last modified: Oct-24-2020, 02:47 AM by Skaperen.)
was it removed or renamed?
they could implement support for the -at functions by allowing a 2-tuple of (int,str/bytes) in place of str/bytes for the file path. then no new names would be needed. i wonder if they did that with this as a 3rd option.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
to represent nanoseconds in float would require 61 bits of precision. but float is C double which is only 53 bits on x86/amd platforms. they just barely achieve microsecond precision (51 bits needed). so something more is needed:
- C long double (64 bits)
- decimal.Decimal
- (sec,nsec)
- more function names
or else not have nanosecond support.
just because a bunch of low numbers can be unique in float does not mean higher ones can. in platforms with 32 bits, int values for seconds can be as high as 2**31-1 (signed). that uses 31 bits of the available precision in float, leaving 22 bits for a fractional part. today is just 1 bit short of that.
i can dream of a world where the standard float size has at least 64 bits of precision. but i must wake up to review
python-forum.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.