Thanks Kent that helps some, at least i can do the basic stuff i can do in R
now.
But you kinda hit the nail on the head with your statement "This seems to
work, it keeps a in the internal R representation instead
of converting it to a list of lists" This all started with me trying to get
R to do
lo there,
i am working with python in ubuntu, my app has some modules that i would
like to import from anywhere.
i can sys.path.append(my_module_dir)but it only lasts as long as that
python session.
how can i add a directory to the import path permantly
?
thanks
shawn bright schrieb:
> lo there,
>
> i am working with python in ubuntu, my app has some modules that i would
> like to import from anywhere.
> i can sys.path.append(my_module_dir)but it only lasts as long as
> that python session.
> how can i add a directory to the import path permantly
htt
Hello,
I am wondering if it is possible to create lists on the fly. The script
that I'm working on needs a number of parameters, one of those is
population, and this corresponds to the number of solutions that a
genetic algorithm generates on each generation (iteration). The thing is
that I ne
Carlos wrote:
> Hello,
>
> I am wondering if it is possible to create lists on the fly. The script
> that I'm working on needs a number of parameters, one of those is
> population, and this corresponds to the number of solutions that a
> genetic algorithm generates on each generation (iteration
shawn bright schrieb:
> ok,
> i am on ubuntu and there is no /etc/profile.d directory
> i put this in the /etc/environment file
>
> PYTHONPATH=/usr/lib/python2.4/site-packages/pivotrac
> export PYTHONPATH
>
> but it doesn't seem to be working.
> There is no master python config file somewhere whe
Kent,
Thanks a lot, that solves it... again
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi guys,
I am reading and doing examples from Python Web Programming and
Have a question about the dictionary:
counter = {}
file = open("d:\myfile.txt") # the time has come the walrus said
while 1:
line = file.readline()
if line == "":
break
for w in line.split():
if
Carlos wrote:
> Hello,
>
> I am wondering if it is possible to create lists on the fly.
This is an FAQ. The more general question is "Can I create variables
with dynamically generated names." The answers are:
(1) Yes
(2) This is rarely a good idea.
The preferred solution is to use a dict or list,
thanks, i usually intend to, getting used to gmail.
thanks for all the help, all working now.
shawn
On 12/22/06, Christopher Arndt <[EMAIL PROTECTED]> wrote:
shawn bright schrieb:
> ok,
> i am on ubuntu and there is no /etc/profile.d directory
> i put this in the /etc/environment file
>
> PYTHO
Steve Oldner wrote:
> Hi guys,
>
> I am reading and doing examples from Python Web Programming and
> Have a question about the dictionary:
>
> counter = {}
> file = open("d:\myfile.txt") # the time has come the walrus said
> while 1:
> line = file.readline()
> if line == "":
> brea
Thank you! I makes sense now and shows me I need to research more on
file methods.
-Original Message-
From: Bob Gailer [mailto:[EMAIL PROTECTED]
Sent: Friday, December 22, 2006 11:46 AM
To: Steve Oldner
Cc: tutor@python.org
Subject: Re: [Tutor] Lists on the fly?
Steve Oldner wrote:
Steve Oldner wrote:
> Thank you! I makes sense now and shows me I need to research more on
> file methods.
Good.
One other advisory: don't use file as a variable name. file is a
built-in function; reassigning it makes the function unavailable.
--
Bob Gailer
510-978-4454
_
Hey friendly users!
I'm trying to connect to a certain key in my registery using winreg.
However, I have run into some problems.
1) I'm trying to open HKEY_CURRENT_USER\Softwar\PartyGaming\PartyPoker. Is
this (see below) the correct way to open that key?
from winreg import *
PartyPoker = Key(
On Fri, 22 Dec 2006, Toon Pieton wrote:
> I'm trying to connect to a certain key in my registery using winreg.
I don't know winreg, but I know of _winreg; Same thing? (I'm on
Activestate Python 2.4).
> from winreg import *
"from foo import *" is generally a bad idea, because you'll get a lot o
Toon Pieton schrieb:
> I'm trying to connect to a certain key in my registery using winreg.
> However, I have run into some problems.
>
> 1) I'm trying to open HKEY_CURRENT_USER\Softwar\PartyGaming\PartyPoker.
> Is this (see below) the correct way to open that key?
See here for some examples of u
On Fri, 22 Dec 2006, Terry Carroll wrote:
> On Fri, 22 Dec 2006, Toon Pieton wrote:
>
> > I'm trying to connect to a certain key in my registery using winreg.
>
> I don't know winreg, but I know of _winreg; Same thing? (I'm on
> Activestate Python 2.4).
Ah, I see winreg is no doubt the third-p
Kent Johnson wrote:
> Carlos wrote:
>
>> Hello,
>>
>> I am wondering if it is possible to create lists on the fly. The script
>> that I'm working on needs a number of parameters, one of those is
>> population, and this corresponds to the number of solutions that a
>> genetic algorithm generat
18 matches
Mail list logo