Alan,
Thanks heaps for the quick feedback. I think you are right about
multiple inputs on the one line. Looks elegant but is hard work.
Regards,
Peter
--
*Peter Anderson*
There is nothing more difficult to take in hand, more perilous to
conduct, or more uncertain in its success, than to take
Friends,
I wish to do some curve fitting with python by defining my own equations.
Could someone please give some guidance or examples on doing the same.
Thanks,
Bala
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Tue, Jul 28, 2009 at 9:36 PM, Nick Burgess wrote:
> Good evening List,
>
> I am trying to have this script search for an IP or nearest subnet
> match in a dir of csv's. It works with an absolute match, It will be
> receiving a whole IP address, so if there is no absolute match no data
> is ret
On Wed, Jul 29, 2009 at 1:29 AM, David wrote:
> Dear Tutors,
>
> whenever I make use of the help() function, I have a good chance of
> getting an error. I have not yet understood this tool very well.
>
> Take the modules operator and random as examples. The former is
> built-in, the latter not.
>
And you were looking for 192.168.1.2, do you want it to return nothing? Or
both 192.168.1.1 and 192.168.1.10? Or only 192.168.1.1 as it's the closest
match?
I would like it to return both, all possible matches.
The data looks something like this in the CSV's,
Server foo.bar.org
On Wed, Jul 29, 2009 at 7:43 AM, Nick Burgess wrote:
> And you were looking for 192.168.1.2, do you want it to return nothing? Or
> both 192.168.1.1 and 192.168.1.10? Or only 192.168.1.1 as it's the closest
> match?
>
> I would like it to return both, all possible matches.
>
> The data looks some
On Wednesday 29 July 2009, Bala subramanian wrote:
> Friends,
>
> I wish to do some curve fitting with python by defining my own
> equations. Could someone please give some guidance or examples on
> doing the same.
You can use the Numpy/Scipy libraries for that. I think they have
examples for cur
On Wed, Jul 29, 2009 at 9:42 AM, Eike Welk wrote:
> On Wednesday 29 July 2009, Bala subramanian wrote:
>> Friends,
>>
>> I wish to do some curve fitting with python by defining my own
>> equations. Could someone please give some guidance or examples on
>> doing the same.
>
What kind of curve fitti
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
: The script will be ran from a third party tool so only one
: argument can be passed to it which will be an entire IP address.
: If within the CSV's there is no 32 bit match there could be a
: subnet that might match, thats why I need
David wrote:
Dear Tutors,
whenever I make use of the help() function, I have a good chance of
getting an error. I have not yet understood this tool very well.
Take the modules operator and random as examples. The former is
built-in, the latter not.
Do I wish to see the help files, I have to use
Does anyone know a good webcrawler that could be used in tandem with the
Beautiful soup parser to parse out specific elements from news sites like BBC
and CNN? Thanks!
-Raj
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/
On Wednesday 29 July 2009, Eike Welk wrote:
> You can use the Numpy/Scipy libraries for that. I think they have
> examples for curve fitting on their website.
This page contains examples:
http://www.scipy.org/Cookbook/FittingData
-
Eike.
___
Tutor mail
On Wed, Jul 29, 2009 at 10:27 AM, Bala
subramanian wrote:
> I have to do the following:
>
> Eq 1) F = A * FB + (1-A) FO - (1)
>
> Eq 2) A = 1/2a0 [ ( ao + x + bo) - { ( ao + x + bo)2 - 4 aobo ) }0.5 ]
> . (2)
>
> KNOWN: F, FB, FO, ao,
> UNKNOWN: bo
>
> I have to
Forwarding Skipper's other message, which must have somehow been lost:
-- Forwarded Message --
Subject: Re: [Tutor] curve fitting
Date: Wednesday 29 July 2009
From: Skipper Seabold
To: Eike Welk
On Wed, Jul 29, 2009 at 9:42 AM, Eike Welk wrote:
> On Wednesday 29 July 2009, Bal
# Module demonstrates use of lists and set theory principles
def Unite(set1, set2): # evaluate 2 lists, join both into 1 new list
newList = []
for item in set1:
newList.append(item)
for item in set2:
newList.append(item)
newL
Hi!
Raj.
On Wed, Jul 29, 2009 at 9:29 PM, Raj Medhekar wrote:
> Does anyone know a good webcrawler that could be used in tandem with the
> Beautiful soup parser to parse out specific elements from news sites like
> BBC and CNN? Thanks!
> -Raj
>
As i didn't find any good webcrawler as per my clie
On Wed, Jul 29, 2009 at 9:59 AM, Raj Medhekar wrote:
> Does anyone know a good webcrawler that could be used in tandem with the
> Beautiful soup parser to parse out specific elements from news sites like
> BBC and CNN? Thanks!
> -Raj
>
>
> ___
> Tutor ma
My regex is being run in both Python v2.6 and v3.1
For this example, I'll give one line. This lines will be read out of log
files. I'm trying to get the GUID for the User ID to query a database with
it, so I'd like a sub match. Here is the code
-
import re
line = '>Checking Priv
hey, i recently was working on some custom bible software and created an
sqlite3 database of a few different bibles, one of which is the American
Standard Version (ASV) which you can download here
http://tearsfornations.hostcell.net/bibledoth/asv.bible.sqlite3
here is the create tables
CREATE
On Wed, Jul 29, 2009 at 11:35 AM, gpo wrote:
>
> My regex is being run in both Python v2.6 and v3.1
> For this example, I'll give one line. This lines will be read out of log
> files. I'm trying to get the GUID for the User ID to query a database with
> it, so I'd like a sub match. Here is the
(You omitted a title, so I made one up. Hope it's okay)
Chris Castillo wrote:
# Module demonstrates use of lists and set theory principles
def Unite(set1, set2): # evaluate 2 lists, join both into 1 new list
newList = []
for item in set1:
newList.append
On Wed, Jul 29, 2009, vince spicer wrote:
>On Wed, Jul 29, 2009 at 11:35 AM, gpo wrote:
>
>>
>> My regex is being run in both Python v2.6 and v3.1
>> For this example, I'll give one line. This lines will be read out of log
>> files. I'm trying to get the GUID for the User ID to query a database
"David" wrote
whenever I make use of the help() function, I have a good chance of
getting an error. I have not yet understood this tool very well.
You need to import the module to maker the name visible
help(random)
help('operator')
I figured this by trial and error,
error mainly.
Wh
help('operator')
I figured this by trial and error, and I am keen to find out when the
Oops, always try before posting! And don;t assume...
I juast vdid and you are right, it does give help on an unimported module!
Sorry, how embarrassing! :-)
Alan G
__
"Chris Castillo" wrote
# Module demonstrates use of lists and set theory principles
could this be done in a more elegant fashion?
Yes use the Python set type.
Alan G
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinf
in addition to the good advice from vince (watch out for greediness
regardless of what you're looking for) and bill (use raw strings...
regexes are one of their primary use cases!), another thing that may
help with the greediness issue are the character sets you're using
inside to match with.
for
> could this be done in a more elegant fashion?
in addition to alan's obvious solution, if you wanted to roll your
own, you have a good start. my comments below.
> def Unite(set1, set2): # evaluate 2 lists, join both into 1 new list
> newList = []
> for item in set1:
>
> - you probably don't want to call set1.remove(). lists are immutable,
> and you would've change the contents of set1.
sorry, make that "mutable." sets, dicts, and lists are standard Python
types that are mutable.
-wesley
___
Tutor maillist - Tutor@p
Hi , Does anybody know of any currency conversion module in python
--
A-M-I-T S|S
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
29 matches
Mail list logo