[issue26362] Approved API for creating a temporary file path

2017-05-01 Thread Tim Chase
Tim Chase added the comment: I do have a workaround thanks to Gregory Ewing https://mail.python.org/pipermail/python-list/2017-May/721649.html which suffices for my particular use-case (generating a link to a file with a unique filename). As my use-case is predominantly for *nix environments

[issue26362] Approved API for creating a temporary file path

2017-04-30 Thread Tim Chase
Tim Chase added the comment: As requested by Ben Finney[1], adding my use-case here. I'm attempting to make a hard-link from "a" to "b", but if "b" exists, os.link() will fail with an EEXISTS. I don't want to do os.unlink("b") # power-outage here

[issue25259] readline macros can segfault Python

2015-09-28 Thread Tim Chase
New submission from Tim Chase: Attempting to use a readline macro (use "C-x (" to start recording, "C-x )" to stop recording, and "C-x e" to playback) with more than one newline in it will cause a segfault. The behavior also presents in the [`rlwrap` tool](https

[issue22319] mailbox.MH chokes on directories without .mh_sequences

2014-09-01 Thread Tim Chase
Tim Chase added the comment: I had to tweak the example reproduction code as it seemed to succeed (i.e., fail to demonstrate the problem) in some instances. The same exception occurs, but here's the full original traceback: $ cd /home/tim/.claws-mail/imapcache/mail.example.com/t

[issue22319] mailbox.MH chokes on directories without .mh_sequences

2014-08-31 Thread Tim Chase
New submission from Tim Chase: If a mailbox.MH() object is created by pointing at a path that exists but doesn't contain a .mh_sequences file, it raises an exception upon iteration over .{iter,}items() rather than gracefully assuming that the file is empty. I encountered this by pointing

[issue22319] mailbox.MH chokes on directories without .mh_sequences

2014-08-31 Thread Tim Chase
Changes by Tim Chase gum...@users.sourceforge.net: -- keywords: +patch Added file: http://bugs.python.org/file36515/mailbox_mh_sequences.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22319

[issue22319] mailbox.MH chokes on directories without .mh_sequences

2014-08-31 Thread Tim Chase
Changes by Tim Chase gum...@users.sourceforge.net: Added file: http://bugs.python.org/file36516/mailbox_mh_sequences_lbyl.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22319

[issue22167] iglob() has misleading documentation (does indeed store names internally)

2014-08-07 Thread Tim Chase
Changes by Tim Chase python.b...@tim.thechases.com: -- nosy: +Gumnos ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22167 ___ ___ Python-bugs-list

[issue16071] fix link to email.message.Message in mailbox docs

2012-09-28 Thread Tim Chase
Tim Chase added the comment: http://docs.python.org/library/mailbox.html#mailbox.Message still points to mailbox.Message instead of email.Message A subclass of the email.Message module’s {bad link}Message{/bad link} Not sure if this is a matter of changes that haven't yet been deployed

[issue12940] Cmd example using turtle left vs. right doc-bug

2011-09-09 Thread Tim Chase
Tim Chase python.l...@tim.thechases.com added the comment: I see the status changed to needs-patch. what do I patch against? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12940

[issue12940] Cmd example using turtle left vs. right doc-bug

2011-09-09 Thread Tim Chase
Tim Chase python.l...@tim.thechases.com added the comment: Patch attached. -- keywords: +patch versions: -Python 2.7, Python 3.2 Added file: http://bugs.python.org/file23123/issue12940.diff ___ Python tracker rep...@bugs.python.org http

[issue12940] Cmd example using turtle left vs. right doc-bug

2011-09-08 Thread Tim Chase
New submission from Tim Chase python.l...@tim.thechases.com: The Turtle example for the cmd module as documented at http://docs.python.org/py3k/library/cmd.html#cmd-example In the left() method, it calls turtle.right() instead of turtle.left(). Easy fix: /def left/+2s/left/right/ Likely

[issue12940] Cmd example using turtle left vs. right doc-bug

2011-09-08 Thread Tim Chase
Tim Chase python.l...@tim.thechases.com added the comment: (duh, sorry, that's the do_left method, not the left method) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12940

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-10 Thread Tim Chase
Tim Chase python.l...@tim.thechases.com added the comment: The raise_on_bad (I'm ambivalent on the name, but if you come up with a better name, I'd be fine with changing it) allows you to differentiate between an option that isn't provided, and one that is provided, but can't be converted

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-09 Thread Tim Chase
Tim Chase python.l...@tim.thechases.com added the comment: Yes, the use-case is the same as a dict.get(key, default) which I frequently use -- so it can be used in things like result = some_function( cp.get('MySection', 'MyValue', default='hello'), cp.getint('MySection', 'MyInt

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Tim Chase
New submission from Tim Chase python.l...@tim.thechases.com: Patch to update ConfigParser.py so that the .get* methods can take an optional parameter rather than raising exceptions. Usage: cp = ConfigParser(...) # ... value = cp.get('MySection', 'MyOption', default='some default') i

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Tim Chase
Tim Chase python.l...@tim.thechases.com added the comment: For some reason, the diff didn't attach to the previous message. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8666

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Tim Chase
Tim Chase python.l...@tim.thechases.com added the comment: Trying a 3rd time to attach the diff (this time from Safari instead of FF) -- keywords: +patch Added file: http://bugs.python.org/file17264/ConfigParser.diff ___ Python tracker rep