hello,
is there a better approach to populating a function in this situation?
res = self.DB.getPrice(): # returns array of 3x2 always. symbol_id,
symbol, price.
var1 = self.AFunction(symbols=res[0][2] + '.' + res[1][2], conid1=
self.Contracts[res[0][0]].conId,
conid2=self.Contracts[res[1][0]]
Cameron,
took me some time to get to this.
Waling down your comments:
>...Normally I would have your DB class represent an open (or openable, if
you wanted to defer that) database connection. So your main class would go:
> def __init__(self, ...other args...):
> self.db = DB(location="blah.sqli
Cameron,
This is much more than I hoped for.
>From quickly looking over - most your notes are perfectly on target.
Allow sometime to digest and reply. Thank you very much!
On 2 Jul 2017 8:14 p.m., "Cameron Simpson" wrote:
> On 02Jul2017 11:02, Andrew Z wrote:
>
>> I'd appreciate your suggestion
}
> >>> my_objects2['id3'] = {}
> >>> my_objects2
> {'id1': {}, 'id2': {}, 'id3': {}}
> >>> my_objects2['id2']['new_key'] = 'some data, but could be anything'
> >>> my_objects2
&g
Hello,
i wonder what would be a proper data structure for something with the
following characteristics:
id - number,
obj[a..c] - objects of various classes
the idea is to be able to update certain fields of these objects initially
getting access to the record by ID
something like this ( not wor
On Thursday, March 2, 2017 at 3:53:25 PM UTC-5, Andrew Zyman wrote:
> On Thursday, March 2, 2017 at 3:31:36 PM UTC-5, Jussi Piitulainen wrote:
> > Andrew Zyman writes:
> >
> > > On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote:
> > >> P
On Thursday, March 2, 2017 at 3:31:36 PM UTC-5, Jussi Piitulainen wrote:
> Andrew Zyman writes:
>
> > On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote:
> >> Peter Otten <__pete...@web.de> writes:
> >>
> >> > Andrew Zyman wro
On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote:
> Peter Otten <__pete...@web.de> writes:
>
> > Andrew Zyman wrote:
> >
> >> On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote:
> >>> Andrew Zyman wrot
On Thursday, March 2, 2017 at 2:28:04 PM UTC-5, bream...@gmail.com wrote:
> On Thursday, March 2, 2017 at 4:08:44 PM UTC, Andrew Zyman wrote:
> > Why is this group have such an obscene number of spam posts ?
> > I'm subscribed to a few other google groups and this is the on
On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote:
> Andrew Zyman wrote:
> .
> .
> > End result:
> > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ]
>
> >>> outer = [["a", 1], ["b", 2], ["
On Thursday, March 2, 2017 at 1:39:54 PM UTC-5, Chris Angelico wrote:
> On Fri, Mar 3, 2017 at 5:31 AM, Cholo Lennon wrote:
> > Google groups act like a "web frontend" for nntp protocol (on which this
> > group is based). I suppose Google doesn't filter spam messages in its
> > interface. Try usin
Why is this group have such an obscene number of spam posts ?
I'm subscribed to a few other google groups and this is the only one that has
this issue.
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
please advise.
I'd like search and append the internal list in the list-of-the-lists.
Example:
ll =[ [a,1], [b,2], [c,3], [blah, 1000] ]
i want to search for the internal [] based on the string field and, if
matches, append that list with a value.
if internal_list[0] == 'blah':
On Monday, February 27, 2017 at 4:27:23 PM UTC-5, Pavol Lisy wrote:
> On 2/27/17, Andrew Zyman wrote:
> I think you meant:
> colnames = ['hostname']
arh... Exactly. Now the rest is "unfolding".
> What do you want is probably:
> >>> data[colnames
Hello,
i'd appreciate an explanation about the differences in the code versions
below. I'm trying to get the list of the strings out of the column and avoid
hardcoding the column name.
cat Data/2domain.csv
hostname
hostname1
hostname2
...
...
Working version(s):
Python2.7:
input_file = r'Data
Hello,
i'm trying to understand what is the difference between the below code.
And how do i access the column's data without hardcoding the column name in
such a way that i'll be able to convert it's values into the list of strings?
I appreciate your help.
Short version:
colnames='hostname'
da
16 matches
Mail list logo