On Tue, Jul 24, 2012 at 1:38 AM, Steven D'Aprano
wrote:
> I don't know about a bad idea or not, but it is certainly redundant,
> because Python automatically adds '' (equivalent to '.') to the very
> start of the search path.
No, it only does that if Python is reading commands from stdin, or if
P
On Mon, 23 Jul 2012 06:22:45 -0400, Devin Jeanpierre wrote:
> Also adding . to the import search path is probably a bad diea.
I don't know about a bad idea or not, but it is certainly redundant,
because Python automatically adds '' (equivalent to '.') to the very
start of the search path.
--
On 23/07/12 12:16, David wrote:
On 23/07/2012, Lipska the Kat wrote:
Hello again pythoners
[snip]
> Any help much appreciated.
Hi Lipska
Glad you got it sorted.
In case you are not aware of this:
Tutor maillist - tu...@python.org
http://mail.python.org/mailman/listinfo/tutor
On 23/07/2012, Lipska the Kat wrote:
> Hello again pythoners
[snip]
> Any help much appreciated.
Hi Lipska
Glad you got it sorted.
In case you are not aware of this:
Tutor maillist - tu...@python.org
http://mail.python.org/mailman/listinfo/tutor
The tutor list caters specifically for
On 23/07/12 11:22, Devin Jeanpierre wrote:
On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Kat wrote:
The PYTHONPATH ev is set to /home/lipska/python/dev/mods:.
in .bashrc
Did you export it? Show us your .bashrc, or the relevant line in it
exactly. (And make sure that it isn't defined multiple ti
On 23/07/12 11:19, Dave Angel wrote:
On 07/23/2012 06:02 AM, Lipska the Kat wrote:
Hello again pythoners
snip
That line isn't the way you showed it in the source. You showed us
source as fibo.fib(1000), and the error message shows it as fib(1000)
So you're either cutting& pasting wrong,
On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Kat wrote:
> The PYTHONPATH ev is set to /home/lipska/python/dev/mods:.
> in .bashrc
Did you export it? Show us your .bashrc, or the relevant line in it
exactly. (And make sure that it isn't defined multiple times).
Also adding . to the import search p
On 07/23/2012 06:02 AM, Lipska the Kat wrote:
> Hello again pythoners
>
> I'm trying to understand the python package stuff
>
> I have the following directory
>
> /home/lipska/python/dev/mods
>
> In this directory I have two files, both executable
>
> --
>
> #! /usr/bin/env pyth
Hello again pythoners
I'm trying to understand the python package stuff
I have the following directory
/home/lipska/python/dev/mods
In this directory I have two files, both executable
--
#! /usr/bin/env python3.2
# fibo.py Fibonacci numbers module
def fib(n):# write