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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
18 matches
Mail list logo