[issue41254] Add to/from string methods to datetime.timedelta

2021-07-30 Thread Matthew Kenigsberg
Matthew Kenigsberg added the comment: I think it would be nice to have a from str method that could reverse the behavior of str(timedelta). I'm trying to parse files that contain the output of str(timedelta), and there's no easy way to get them back to timedelta's

[issue37235] urljoin behavior unclear/not following RFC 3986

2019-06-11 Thread Matthew Kenigsberg
New submission from Matthew Kenigsberg : Was trying to figure out the exact behavior of urljoin. As far as I can tell (see https://bugs.python.org/issue22118) it should follow RFC 3986. According to the algorithm in 5.2.2, I think this is wrong: >>> urljoin("ftp://netloc"