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-o
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.
Changes by Tim Chase :
Added file: http://bugs.python.org/file36516/mailbox_mh_sequences_lbyl.diff
___
Python tracker
<http://bugs.python.org/issue22319>
___
___
Pytho
Changes by Tim Chase :
--
keywords: +patch
Added file: http://bugs.python.org/file36515/mailbox_mh_sequences.diff
___
Python tracker
<http://bugs.python.org/issue22
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 t
Changes by Tim Chase :
--
nosy: +Gumnos
___
Python tracker
<http://bugs.python.org/issue22167>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 be
Tim Chase 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
<http://bugs.python.org/issue12
Tim Chase added the comment:
I see the status changed to needs-patch. what do I patch against?
--
___
Python tracker
<http://bugs.python.org/issue12940>
___
___
Tim Chase added the comment:
(duh, sorry, that's the "do_left" method, not the "left" method)
--
___
Python tracker
<http://bugs.python.org/issue12940>
___
___
New submission from Tim Chase :
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 exists in most 3.x documentation
Tim Chase 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 convert
Tim Chase 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'
Tim Chase 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
<http://bugs.python.org/issue8
Tim Chase added the comment:
For some reason, the diff didn't attach to the previous message.
--
___
Python tracker
<http://bugs.python.org/issue8666>
___
___
New submission from Tim Chase :
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
18 matches
Mail list logo