On Apr 21, 7:05 am, Guillermo <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> How can I turn a string into a callable object/function?
>
> I have a = 'len', and I want to do: if callable(eval(a)): print
> "callable", but that doesn't quite work the way I want. :)
>
> Regards,
>
> Guillermo
What version
Hello,
I am trying to to create a branch of the bzr mirror for the current
Python Trunk 2.6 development so I can finish my work on Issue 2636. I
am not a core developer but am trying to create this branch so it can
be reviewed by a core developer I am working with. Because I develop
on multiple
On Feb 22, 4:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
> Interestingly enough this was changed in recent linux kernels.
> Process levels in linus kernels are logarithmic now, whereas before
> they weren't (but I wouldn't like to say exactly what!).
Wow! That's a VERY good point. I ran a
On Feb 21, 1:17 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> Why imagine... AmigaOS ran -128..+127 (though in practice, one never
> went above +20 as the most time critical system processes ran at that
> level; User programs ran at 0, the Workbench [desktop] ran at +1... I
> think fil
On Feb 20, 10:15 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> | Because UNIX uses priorities between +20 and -20 and Windows, via
> | Process and Thread priorities, allows settings between 0 and 31, a
> | uniform setting for each system should be derived. This would be
> | accomplished by giving
Is there a consistent way to map a frame object to a function / method
object? Methods usually hang off of parameter 1, and functions
usually in the global or local scope. But lambda functions and
decorators are not so easily mapped. You can get access to the
executing code object from the frame
tors for member variables -- these decorators can already be
applied to get_* and set_* methods for properties. Overriding
__getattr__ may be a better solution for attribute access, however.
Source available at: http://starship.python.net/crew/timehorse/access.py
Jeffrey
--
http://mail.pyt
On Feb 26, 4:46 pm, Tom Bryan <[EMAIL PROTECTED]> wrote:
> Yes. Unfortunately, there may be a hardware problem. Stefan, the admin
Any word from the ISP what the hardware problem might be, Tom?
Jeffrey.
--
http://mail.python.org/mailman/listinfo/python-list
I would like to gauge interest in the following proposal:
Problem:
Assignment statements cannot be used as expressions.
Performing a list of mutually exclusive checks that require data
processing can cause excessive tabification. For example, consider
the following python snipet...
temp = my_r