[issue26460] datetime.strptime without a year fails on Feb 29

2020-03-03 Thread Gerard C Weatherby
Gerard C Weatherby added the comment: Yes, code that has been working for my organization the past two years just broke this weekend. Meaning depends on context. The straightforward solution is that if no year is specified, the return value should default to the current year

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread Gerard Weatherby
New submission from Gerard Weatherby <gerard.weathe...@gmail.com>: Given a IPvNetwork network if x in network: ... raises an AttributeError instead of returning False. -- components: Library (Lib) files: ne.py messages: 305250 nosy: Gerard Weatherby priority: normal severity:

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2014-09-03 Thread leonard gerard
leonard gerard added the comment: In my opinion this is a bug or it should be explicitly stated in the generated usage help string. -- nosy: +leonard.gerard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15112

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2014-09-03 Thread leonard gerard
leonard gerard added the comment: It seems that delaying positional argument parsing after all optional arguments are parsed would be clean and robust. My understanding is that optional arguments aren't ambiguous and should be processed first and removed from the arguments. Then the current

[issue20093] Wrong OSError message from os.rename() when dst is a non-empty directory

2013-12-28 Thread Jason Gerard DeRose
New submission from Jason Gerard DeRose: Under Python 3.3, if renaming a directory with `os.rename()` when the destination is an existing, non-empty directory, like this: os.rename('/tmp/foo', '/tmp/bar') You'll get an OSError with a message like this: OSError: [Errno 39] Directory not empty

[issue16074] Bad error message in os.rename, os.link, and os.symlink

2013-12-28 Thread Jason Gerard DeRose
Jason Gerard DeRose added the comment: vajrasky, one more errno to consider: [Errno 39] Directory not empty: '/tmp/bar' This is when renaming a directory: src directory exists; dst directory exists and is non-empty. In 3.4 Beta1, this error message now includes the src instead of the dst

[issue11677] make test has horrendous performance on an ecryptfs

2011-09-06 Thread Jason Gerard DeRose
Jason Gerard DeRose jder...@novacut.com added the comment: Barry, I'm suspicious there might be more to the performance issue than just the ecryptfs overhead. While experimenting with a read benchmark, I just happened to notice that when reading from an ecryptfs filesystem, the CPU usage

[issue11677] make test has horrendous performance on an ecryptfs

2011-09-06 Thread Jason Gerard DeRose
Jason Gerard DeRose jder...@novacut.com added the comment: Oops, I think I don't understand the meaning of top CPU usage, as time tells a different story. Direct ext4: real2m14.144s user0m0.260s sys 0m30.350s ecryptfs over ext4: real8m47.130s user0m0.080s sys 7m2.080s

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-02-05 Thread Gerard van Helden
Gerard van Helden dremel...@gmail.com added the comment: The reporter imho is 100% right. Simply because of the fact that in the current situation, there is no way to supply an argument starting with a dash (not even for instance a filename). That is, of course, total nonsense to be dictated

[issue1519638] Unmatched Group issue - workaround

2009-02-09 Thread Gerard
Gerard g...@gp-net.nl added the comment: Matthew, Thanx for the heads-up! Regards, Gerard. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1519638

[issue1519638] Unmatched Group issue - workaround

2009-02-03 Thread Gerard
Gerard g...@gp-net.nl added the comment: Bobby, Can you post the actual text you need this for? The back ref indeed returns a None. I'm wondering if the regex can be be simplefied and if a positive lookbehind could solve this. Symantically speaking ... If there's a b then return the ar

[issue1519638] Unmatched Group issue - workaround

2009-01-13 Thread Gerard
Gerard g...@gp-net.nl added the comment: Dear Bobby, I don't see what would be the part that generates the empty string? Regards, Gerard. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1519638

[issue4052] Build on 2.6 on AIX 5.3 fails (syntax error / undeclared identifier subtract)

2008-10-06 Thread Gerard
New submission from Gerard [EMAIL PROTECTED]: I'm using an IBM compiler running in AIX 5.3. Compilation of Python 2.6 fails (see explanation below). Compilation of Python 2.5.2 is ok. /home/xyz/python/Python-2.6$ lslpp -L | grep vac vac.C 10.1.0.0C FIBM XL C

[issue3203] sphinx - table of contents doesn't render correctly (html)

2008-06-25 Thread Gerard M. Flanagan
New submission from Gerard M. Flanagan [EMAIL PROTECTED]: A TOC tree should render in HTML as a single 'ul', but in certain circumstances it appears as multiple ul's. You can see the effect here: http://docs.python.org/dev/c-api/index.html and in fact in the Sphinx documentation itself