On Thursday, October 6, 2016 at 7:20:58 AM UTC+1, Lawrence D’Oliveiro wrote:
> What action are users supposed to take on such errors, other than include
> them in a bug report?
By users I mean API users (developers). Most common action would be to add a
missing field, correct typo or change valu
On Monday, September 30, 2013 4:58:25 PM UTC+2, christens...@gmail.com wrote:
> Hi - I have some basic programming experience and new to Python. I have
> connected to SQL Server as follows:
>
>
>
> import pyodbc
>
> conn = pyodbc.connect('DSN=DBC')
>
> cursor = conn.cursor()
>
> cursor.execu
On Mon, Sep 30, 2013 at 10:58 AM, wrote:
> Hi - I have some basic programming experience and new to Python. I have
> connected to SQL Server as follows:
>
> import pyodbc
> conn = pyodbc.connect('DSN=DBC')
> cursor = conn.cursor()
> cursor.execute("select measure,fin_year_no,fin_week_no,location_
Hi - I have some basic programming experience and new to Python. I have
connected to SQL Server as follows:
import pyodbc
conn = pyodbc.connect('DSN=DBC')
cursor = conn.cursor()
cursor.execute("select measure,fin_year_no,fin_week_no,location_no,value from
actual")
result=cursor.fetchall()
resul
On 30/12/12 23:25:39, Evan Driscoll wrote:
> On 12/30/2012 4:19 PM, Hans Mulder wrote:
>> If it's okay to modify the original list, you can simply do:
>>
>> l[0] = split(l[0], ", ")
>>
>> If modifying the original is not okay, the simple solution would
>> be to copy it first:
>>
>> l2 = l
>> l2[0]
On 12/30/2012 4:19 PM, Hans Mulder wrote:
> If it's okay to modify the original list, you can simply do:
>
> l[0] = split(l[0], ", ")
>
> If modifying the original is not okay, the simple solution would
> be to copy it first:
>
> l2 = l
> l2[0] = split(l2[0], ", ")
Um, that doesn't copy the lis
On 28/12/12 18:46:45, Alex wrote:
> Manatee wrote:
>
>> On Friday, December 28, 2012 9:14:57 AM UTC-5, Manatee wrote:
>>> I read in this:
>>>
>>> ['C100, C117', 'X7R 0.033uF 10% 25V 0603', '0603-C_L, 0603-C_N',
>>> '10', '2', '', '30', '15463-333', 'MURATA', 'GRM188R71E333KA01D',
>>> 'Digi-Key',
Manatee wrote:
> On Friday, December 28, 2012 9:14:57 AM UTC-5, Manatee wrote:
> > I read in this:
> >
> > ['C100, C117', 'X7R 0.033uF 10% 25V 0603', '0603-C_L, 0603-C_N',
> > '10', '2', '', '30', '15463-333', 'MURATA', 'GRM188R71E333KA01D',
> > 'Digi-Key', '490-1521-1-ND', '']
> >
> >
> >
>
On Friday, December 28, 2012 9:14:57 AM UTC-5, Manatee wrote:
> I read in this:
>
> ['C100, C117', 'X7R 0.033uF 10% 25V 0603', '0603-C_L, 0603-C_N', '10', '2',
> '', '30', '15463-333', 'MURATA', 'GRM188R71E333KA01D', 'Digi-Key',
> '490-1521-1-ND', '']
>
>
>
> Then I need to convert it to thi
In article <8f5cfb99-d1d7-42d7-858a-89dd23cd5...@googlegroups.com>,
Manatee wrote:
> I read in this:
> ['C100, C117', 'X7R 0.033uF 10% 25V 0603', '0603-C_L, 0603-C_N', '10', '2',
> '', '30', '15463-333', 'MURATA', 'GRM188R71E333KA01D', 'Digi-Key',
> '490-1521-1-ND', '']
>
> Then I need to co
I read in this:
['C100, C117', 'X7R 0.033uF 10% 25V 0603', '0603-C_L, 0603-C_N', '10', '2',
'', '30', '15463-333', 'MURATA', 'GRM188R71E333KA01D', 'Digi-Key',
'490-1521-1-ND', '']
Then I need to convert it to this:
[['C100', 'C117'], 'X7R 0.033uF 10% 25V 0603', '0603-C_L', '0603-C_N', '10',
'
On Nov 11, 7:31 pm, Ben Finney <[EMAIL PROTECTED]>
wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> writes:
> > On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote:
>
> > >Eric<[EMAIL PROTECTED]> writes:
> > >> In MATLAB, if I just want the first, fifth and eighth element I
> > >> might do something
Eric wrote:
... In MATLAB, if I just want the first, fifth and eighth element I
might do something like this: b = a([1 5 8]);
On Nov 11, 1:51 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> replied:
b = [a[i] for i in [1, 5, 8]]
To which Eric said:
Thanks! It makes sense, but in this cas
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote:
>
> > Eric <[EMAIL PROTECTED]> writes:
> >> In MATLAB, if I just want the first, fifth and eighth element I
> >> might do something like this:
> >>
> >> b = a([1 5 8]);
> >
> > Yes: the above c
Steven D'Aprano wrote:
On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote:
Eric <[EMAIL PROTECTED]> writes:
I'm learning Python (while coming from MATLAB). One question I have is
that if I have a list with say 8 elements, and I want just a few of
them how do I select them out. In MATLAB, if
On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote:
> Eric <[EMAIL PROTECTED]> writes:
>
>> I'm learning Python (while coming from MATLAB). One question I have is
>> that if I have a list with say 8 elements, and I want just a few of
>> them how do I select them out. In MATLAB, if I just want t
Eric <[EMAIL PROTECTED]> writes:
> I'm learning Python (while coming from MATLAB). One question I have is
> that if I have a list with say 8 elements, and I want just a few of
> them how do I select them out. In MATLAB, if I just want the first,
> fifth and eighth element I might do something like
Eric wrote:
On Nov 11, 1:51 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
On Tue, 11 Nov 2008 11:47:53 -0800, Eric wrote:
I'm learning Python (while coming from MATLAB). One question I have is
that if I have a list with say 8 elements, and I want just a few of them
how do I select the
On Nov 11, 1:51 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Tue, 11 Nov 2008 11:47:53 -0800, Eric wrote:
> > I'm learning Python (while coming from MATLAB). One question I have is
> > that if I have a list with say 8 elements, and I want just a few of them
> > how do I select them
Guilherme Polo wrote:
On Tue, Nov 11, 2008 at 5:47 PM, Eric <[EMAIL PROTECTED]> wrote:
I'm learning Python (while coming from MATLAB). One question I have is
that if I have a list with say 8 elements, and I want just a few of
them how do I select them out. In MATLAB, if I just want the first,
fi
On Tue, Nov 11, 2008 at 5:47 PM, Eric <[EMAIL PROTECTED]> wrote:
> I'm learning Python (while coming from MATLAB). One question I have is
> that if I have a list with say 8 elements, and I want just a few of
> them how do I select them out. In MATLAB, if I just want the first,
> fifth and eighth el
On Tue, 11 Nov 2008 11:47:53 -0800, Eric wrote:
> I'm learning Python (while coming from MATLAB). One question I have is
> that if I have a list with say 8 elements, and I want just a few of them
> how do I select them out. In MATLAB, if I just want the first, fifth and
> eighth element I might do
I'm learning Python (while coming from MATLAB). One question I have is
that if I have a list with say 8 elements, and I want just a few of
them how do I select them out. In MATLAB, if I just want the first,
fifth and eighth element I might do something like this:
b = a([1 5 8]);
I can't seem to f
Gary Herron wrote:
Support Desk wrote:
Hello all,
I am using os.popen to get a list returned of vpopmail
users, something like this
x = os.popen('/home/vpopmail/bin/vuserinfo -n -D
mydomain.com).readlines()
x returns a list, of usernames, and I am trying to append the
Support Desk wrote:
Hello all,
I am using os.popen to get a list returned of vpopmail
users, something like this
x = os.popen('/home/vpopmail/bin/vuserinfo -n -D mydomain.com).readlines()
x returns a list, of usernames, and I am trying to append the
usernames with the do
domain.strip()
Assuming domain is the string with the newline.
-Steve Johnson
On Jul 28, 2008, at 1:32 PM, Support Desk wrote:
Hello all,
I am using os.popen to get a list returned of vpopmail
users, something like this
x = os.popen('/home/vpopmail/bin/vuserinfo -n -D
mydomai
Hello all,
I am using os.popen to get a list returned of vpopmail users,
something like this
x = os.popen('/home/vpopmail/bin/vuserinfo -n -D mydomain.com).readlines()
x returns a list, of usernames, and I am trying to append the usernames with
the domain like so
for line i
> Fair enough. To help you understand the method I used, I'll give you
> this hint. It's true that regex on works on strings. However, is there
> any way to convert arbitrarily complex data structures to string
> representations? You don't need to be an experienced Python user to
> answer to this ;
On Jun 19, 9:03 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jun 20, 10:45 am, Chris <[EMAIL PROTECTED]> wrote:
>
> > On Jun 17, 1:09 pm, [EMAIL PROTECTED] wrote:
>
> > > Kirk Strauser:
>
> > > > Hint: recursion. Your general algorithm will be something like:
>
> > > Another solution is to use
On Jun 20, 1:45 am, Chris <[EMAIL PROTECTED]> wrote:
> On Jun 17, 1:09 pm, [EMAIL PROTECTED] wrote:
>
> > Kirk Strauser:
>
> > > Hint: recursion. Your general algorithm will be something like:
>
> > Another solution is to use a better (different) language, that has
> > built-in pattern matching, o
On Jun 20, 1:44 am, Chris <[EMAIL PROTECTED]> wrote:
> Thanks for your help. Those weren't quite what I was looking for, but
> I ended up figuring it out on my own. Turns out you can actually
> search nested Python lists using simple regular expressions.
Strange?
How
On Jun 20, 10:45 am, Chris <[EMAIL PROTECTED]> wrote:
> On Jun 17, 1:09 pm, [EMAIL PROTECTED] wrote:
>
> > Kirk Strauser:
>
> > > Hint: recursion. Your general algorithm will be something like:
>
> > Another solution is to use a better (different) language, that has
> > built-in pattern matching,
On Jun 17, 1:09 pm, [EMAIL PROTECTED] wrote:
> Kirk Strauser:
>
> > Hint: recursion. Your general algorithm will be something like:
>
> Another solution is to use a better (different) language, that has
> built-in pattern matching, or allows to create one.
>
> Bye,
> bearophile
Btw, Python's stdl
Thanks for your help. Those weren't quite what I was looking for, but
I ended up figuring it out on my own. Turns out you can actually
search nested Python lists using simple regular expressions.
--
http://mail.python.org/mailman/listinfo/python-list
Kirk Strauser:
> Hint: recursion. Your general algorithm will be something like:
Another solution is to use a better (different) language, that has
built-in pattern matching, or allows to create one.
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
At 2008-06-17T05:55:52Z, Chris <[EMAIL PROTECTED]> writes:
> Is anyone aware of any prior work done with searching or matching a
> pattern over nested Python lists? I have this problem where I have a
> list like:
>
> [1, 2, [1, 2, [1, 7], 9, 9], 10]
>
> and I'd l
Is anyone aware of any prior work done with searching or matching a
pattern over nested Python lists? I have this problem where I have a
list like:
[1, 2, [1, 2, [1, 7], 9, 9], 10]
and I'd like to search for the pattern [1, 2, ANY] so that is returns:
[1, 2, [1, 2, [6, 7], 9, 9], 10]
[1,
On Mon, 21 Apr 2008 16:01:42 +1000, Brian Vanderburg II
<[EMAIL PROTECTED]> wrote:
I've recently gotten more than too many spam messages and all say
Sender: [EMAIL PROTECTED] I'm wondering
if my mail list registration is now being used to spam myself and
others. If so, sorry, but I'm no
Torsten Bronger wrote:
> Hallöchen!
>
> Sjoerd Mullender writes:
>
>> On 2008-04-21 08:01, Brian Vanderburg II wrote:
>>
>>> I've recently gotten more than too many spam messages and all say
>>> Sender: [EMAIL PROTECTED] [...]
>> That is just mailman (the mailing list software) keeping track of
Hallöchen!
Sjoerd Mullender writes:
> On 2008-04-21 08:01, Brian Vanderburg II wrote:
>
>> I've recently gotten more than too many spam messages and all say
>> Sender: [EMAIL PROTECTED] [...]
>
> That is just mailman (the mailing list software) keeping track of
> things.
By the way, why does ma
In article <[EMAIL PROTECTED]>,
Brian Vanderburg II <[EMAIL PROTECTED]> wrote:
> I've recently gotten more than too many spam messages and all say
> Sender: [EMAIL PROTECTED] I'm wondering
> if my mail list registration is now being used to spam myself and
> others. If so, sorry, but I'm not
On 2008-04-21 08:01, Brian Vanderburg II wrote:
> I've recently gotten more than too many spam messages and all say
> Sender: [EMAIL PROTECTED] I'm wondering
> if my mail list registration is now being used to spam myself and
> others. If so, sorry, but I'm not the one sending messages if othe
On Mon, 2008-04-21 at 02:01 -0400, Brian Vanderburg II wrote:
> I've recently gotten more than too many spam messages and all say
> Sender: [EMAIL PROTECTED] I'm wondering
> if my mail list registration is now being used to spam myself and
> others. If so, sorry, but I'm not the one sending m
I've recently gotten more than too many spam messages and all say
Sender: [EMAIL PROTECTED] I'm wondering
if my mail list registration is now being used to spam myself and
others. If so, sorry, but I'm not the one sending messages if other are
getting them even though Sender seems to include
44 matches
Mail list logo