On 21 May, 18:53, Peter Otten <[EMAIL PROTECTED]> wrote:
> The doctest code is executed in a module without a __name__, it seems.
> Unfortunately (in this case) the builtin module serves as a fallback
> helping out with its own name:
>
> >>> __name__
> '__main__'
> >>> del __name__
> >>> __name__
>
On 21 May, 22:17, Peter Otten <[EMAIL PROTECTED]> wrote:
> If these don't work you'll have to give a bit more context.
>
> Peter
Thanks again Peter. Here's something much closer to what I really want
to do. You should be able to cut and paste this post into a file
"post.txt". Running the command `
On 22 May, 08:59, Peter Otten <[EMAIL PROTECTED]> wrote:
[snip]
> inspect.getmodule(f) returns None because f() is not defined in a module.
OK. But there was a module when I ran interactively?
> You can either move f() to a helper module and then
>
> from helper_module import f
Yes.
> or modi
On 22 May, 10:11, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> The version given by Peter Otten may do what you want, but I'd consider if
> you really need an announce_function in the first place, given all the
> other ways you already have to do the same thing.
> Implicitely rebinding globals
On 22 May, 10:11, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> The version given by Peter Otten may do what you want, but I'd consider if
> you really need an announce_function in the first place, given all the
> other ways you already have to do the same thing.
> Implicitely rebinding globals
On 22 May, 10:11, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> The version given by Peter Otten may do what you want, but I'd consider if
> you really need an announce_function in the first place, given all the
> other ways you already have to do the same thing.
> Implicitely rebinding globals
It should be interesting to add new funcionality to "copytree" function into
a "shutil.py" module?, I mean...I have developed a very silly function
"copytree" with a different fourth argument. I have modified the "ignore"
parameter to "target" parameter; this new one is used to copy the files wich
Thanks for the answer, it's perfect for my purposes.
See you in other thread!!!
On Mon, Dec 21, 2009 at 6:47 PM, Stephen Hansen wrote:
> On Mon, Dec 21, 2009 at 8:23 AM, logan tag wrote:
>
>> It should be interesting to add new funcionality to "copytree" function
&