Hi again,
sorry for replying to my own mail, but is there really no solution? Can
curses really not be used in this situation?
Thanks again,
Timo
On Sun, Aug 11, 2013 at 02:05:11PM +0200, Timo Schmiade wrote:
> Hi all,
>
> I wrote a replacement for urlview to properly extract URLs fr
Hi all,
I wrote a replacement for urlview to properly extract URLs from emails.
You can find the first draft here:
https://github.com/the-isz/pyurlview
When I call it with an email file passed to the '-f' argument, it does
pretty much what I want already. However, I intend to use it in mutt,
w
On Tue, Apr 19, 2011 at 08:20:05AM -0600, Ian Kelly wrote:
> On Tue, Apr 19, 2011 at 1:12 AM, Timo Schmiade wrote:
> > Just one question remains now: What is a "Borg" in this context?
>
> http://code.activestate.com/recipes/66531/
> --
> http://mail.python.o
Hey Wayne,
On Mon, Apr 18, 2011 at 04:04:15PM -0700, Wayne Witzel III wrote:
> Going with the object approach, you could use Borg to give yourself the state
> between instances you mentioned. And since you are using an object, you'll
> have access to the data without needing to return it from th
Hey Ian,
On Mon, Apr 18, 2011 at 01:07:58PM -0600, Ian Kelly wrote:
> In the simple case, just store the state on the wrapper function itself:
>
> def call_counts(function):
> @functools.wraps(function)
> def wrapper(*args, **kwargs):
> wrapper.num_calls += 1
> return function(*args,
Hi all,
I'm currently occupying myself with python's decorators and have some
questions as to their usage. Specifically, I'd like to know how to
design a decorator that maintains a status. Most decorator examples I
encountered use a function as a decorator, naturally being stateless.
Consider the