On Wed, Dec 19, 2012 at 2:57 PM, John Gordon wrote:
> In Tom Borkin
> writes:
>
>> Actually, what I originally had was:
>> cursor.execute("""insert into interactions values(Null, %s, "Call Back",
>> %s)""", (i_id, date_plus_2))
>> and that didn't work, either. I tried your variation like:
>> cu
On 12/18/2012 04:55 PM, iMath wrote:
> > å¨ 2012å¹´12æ19æ¥ææä¸UTC+8ä¸å4æ¶57å37ç§ï¼ru...@yahoo.comåéï¼
> >[...]
>> >> There is no need to download the source. You can browse the
>> >> source code online. For the v3.0.0 version of open():
>> >> hg.python.org/cpython/file/bd
In Tom Borkin
writes:
> Actually, what I originally had was:
> cursor.execute("""insert into interactions values(Null, %s, "Call Back",
> %s)""", (i_id, date_plus_2))
> and that didn't work, either. I tried your variation like:
> cursor.execute("""insert into interactions values(Null, %s, "Call
On Tue, 18 Dec 2012 02:26:42 -0800, Marc Aymerich wrote:
> Dear all,
> I want to monkey patch a method that has lots of code so I want to avoid
> copying all the original method for changing just two lines. The thing
> is that I don't know how to do this kind of monkey patching.
The only types of
Actually, what I originally had was:
cursor.execute("""insert into interactions values(Null, %s, "Call Back",
%s)""", (i_id, date_plus_2))
and that didn't work, either. I tried your variation like:
cursor.execute("""insert into interactions values(Null, %s, "Call Back",
%s)""" % (i_id, date_plus_2)
å¨ 2012å¹´12æ19æ¥ææä¸UTC+8ä¸å4æ¶57å37ç§ï¼ru...@yahoo.comåéï¼
> On Monday, December 17, 2012 10:35:58 PM UTC-7, Roy Smith wrote:
>
> > iMath wrote:
>
> > > where to view open() function's C implementation source code ï¼
>
> > http://www.python.org/download/releases/
>
>
å¨ 2012å¹´12æ19æ¥ææä¸UTC+8ä¸å4æ¶57å37ç§ï¼ru...@yahoo.comåéï¼
> On Monday, December 17, 2012 10:35:58 PM UTC-7, Roy Smith wrote:
>
> > iMath wrote:
>
> > > where to view open() function's C implementation source code ï¼
>
> > http://www.python.org/download/releases/
>
>
On 18/12/12 22:34:08, Tom Borkin wrote:
> Hi;
> I have this test code:
>
> if i_id == "1186":
> sql = 'insert into interactions values(Null, %s, "Call Back",
> "%s")' % (i_id, date_plus_2)
> cursor.execute(sql)
> db.commit()
> print sql
> It prints the sql statement, b
On 18Dec2012 05:39, Dave Angel wrote:
| On 12/18/2012 05:27 AM, Hans Mulder wrote:
| > On 18/12/12 06:10:43, photonym...@gmail.com wrote:
| >> I hope I understand the question... but shouldn't you wait for the process
to complete before exiting?
| >>
| >> Something like:
| >>
| >> pid = subproces
On 17/12/12 21:56:50, py_genetic wrote:
> /usr/local/Calpont/mysql/bin/mysql
> --defaults-file=/usr/local/Calpont/mysql/my.cnf -u root myDB <
> /home/myusr/jobs/APP_JOBS/JOB_XXX.SQL > /home/myusr/jobs/APP_JOBS/JOB_XXX.TXT
If you're trying to interact with a MySQL database, then
you should really
On Wed, Dec 19, 2012 at 9:28 AM, Tom Borkin wrote:
> No (lol). It returns a date as a string: "2012-12-12" for example.
> Tom
Then that's why it doesn't work. Wayne was hinting at a major MAJOR
problem with your code; it's interpolating data into the SQL
statement, instead of providing parameters
No (lol). It returns a date as a string: "2012-12-12" for example.
Tom
On Tue, Dec 18, 2012 at 6:02 PM, Wayne Werner wrote:
> On Tue, 18 Dec 2012, Tom Borkin wrote:
>
> Hi;
>> I have this test code:
>>
>> if i_id == "1186":
>> sql = 'insert into interactions values(Null, %s, "Call Ba
On Tue, 18 Dec 2012, Tom Borkin wrote:
Hi;
I have this test code:
if i_id == "1186":
sql = 'insert into interactions values(Null, %s, "Call Back", "%s")' %
(i_id, date_plus_2)
cursor.execute(sql)
db.commit()
print sql
It prints the sql statement, but it doesn't exe
Hi;
I have this test code:
if i_id == "1186":
sql = 'insert into interactions values(Null, %s, "Call Back", "%s")'
% (i_id, date_plus_2)
cursor.execute(sql)
db.commit()
print sql
It prints the sql statement, but it doesn't execute. If I copy and paste
the sql into the m
On Tuesday, December 18, 2012 1:57:37 PM UTC-7, ru...@yahoo.com wrote:
>[...]
> source code online. For the v3.0.0 version of open():
> hg.python.org/cpython/file/bd8afb90ebf2/Modules/_io/_iomodule.c
oops, that should have been:
http://hg.python.org/cpython/file/bd8afb90ebf2/Modules/_io/_iom
On Monday, December 17, 2012 10:35:58 PM UTC-7, Roy Smith wrote:
> iMath wrote:
> > where to view open() function's C implementation source code ï¼
> http://www.python.org/download/releases/
> Download the source for the version you're interested in.
iMath:
There is no need to download the sou
Solved the issue, by injecting the query into the cmd line. Shell script
worked fine as if I was cutting and pasting to the prompt. Seems to still be
something with the subprocess receiving and exit code before or when the query
finishes, just when I ask to to read from the .SQL file.
example
2012/12/18 Colin J. Williams :
...
> Yes, but py2exe appears limited to Python 2.6.
>
> PyInstaller is another option with similar functionality.
>
> Colin W.
> --
> http://mail.python.org/mailman/listinfo/python-list
There are versions for python 2.3 - 2.7:
http://sourceforge.net/projects/py2exe/
On 12/18/2012 07:03 AM, Chris Angelico wrote:
On Wed, Dec 19, 2012 at 1:28 AM, Roy Smith wrote:
In article,
iMath wrote:
Download the source for the version you're interested in.
but which python module is open() in ?
I met you half-way, I showed you where the source code is. Now you
ne
On 18/12/2012 1:52 AM, Frank Millman wrote:
This is from Sourceforge's monthly update -
Top Growth Projects
We're always on the lookout for projects that might be doing interesting
things, and a surge in downloads is one of many metrics that we look at
to identify them. Here's the projects th
Can you trim content and interleave your response (instead of
top-posting) please?
On 18 December 2012 18:26, py_genetic wrote:
> HOWEVER...
>
> when using this command from before no dice
>
> /usr/local/Calpont/mysql/bin/mysql
> --defaults-file=/usr/local/Calpont/mysql/my.cnf -u root myDB <
Oscar I can confirm this behavior from terminal.
AND this works as well, simulating exactly what I'm doing permissions wise, and
calling sudo python test.py below
f1 = open('TESTDIR/file1.txt', 'w')
f1.write('some test here\n')
f1.close()
cmd1 = 'cat < TESTDIR/file1.txt > TESTDIR/file2.txt'
P
On 12/18/2012 5:26 AM, Marc Aymerich wrote:
I want to monkey patch a method that has lots of code so I want to
avoid copying all the original method for changing just two lines.
You omitted the most important piece of information. Can you modify the
original code (or get someone else to do so
On 12/18/2012 6:29 AM, hevymet...@gmail.com wrote:
Hi there, I hope that there is someone willing to help me out, I need
to generate a graph in Python 2.7.3.1,
There is only 2.7.3, no 2.7.3.1, at least not officially.
I had to make a .CSV file from my Windows system logs (already did
that), a
On 12/18/2012 10:27 AM, Gnarlodious wrote:
On Tuesday, December 18, 2012 3:31:41 AM UTC-7, Hans Mulder wrote:
On 18/12/12 06:30:48, Gnarlodious wrote:
from plistlib import readPlist
I do not see this used below.
def explicate(listDicts):
for dict in listDicts:
if '
On 12/18/2012 07:37 AM, Jean Dubois wrote:
> I have trouble with the code beneath to make an array with equally
> spaced values
> When I enter 100e-6 as start value, 700e-6 as end value and 100e-6 I
> get the following result:
> [ 0.0001 0.00022 0.00034 0.00046 0.00058 0.0007 ]
> But I was ho
On Tuesday, December 18, 2012 3:31:41 AM UTC-7, Hans Mulder wrote:
> On 18/12/12 06:30:48, Gnarlodious wrote:
>
> > This problem is solved, I am so proud of myself for figuring it out!
>
> > After reading some of these ideas I discovered the plist is really
>
> > lists underneath any "Children"
On Wed, Dec 19, 2012 at 1:28 AM, Roy Smith wrote:
> In article ,
> iMath wrote:
>> > Download the source for the version you're interested in.
>>
>> but which python module is open() in ?
>
> I met you half-way, I showed you where the source code is. Now you
> need to come the other half and l
In article ,
iMath wrote:
> ÃÂ� 2012ÃÂN12ÃÂÃÂ18ÃÂ�ÃÂ�ÃÂ�ÃÂ�UTC+8ÃÂ�ÃÂ�1æÂ¶35Ã¥ÂÂ58ç§Âï¼ÂRoy
> SmithÃ¥ÂÂéÂÂï¼Â
> > In article ,
> >
> > iMath wrote:
> >
> >
> >
> > > where to view open() function's C implementation
On 18 dec, 14:09, Peter Otten <__pete...@web.de> wrote:
> Jean Dubois wrote:
> > I have trouble with the code beneath to make an array with equally
> > spaced values
> > When I enter 100e-6 as start value, 700e-6 as end value and 100e-6 I
> > get the following result:
> > [ 0.0001 0.00022 0.0003
Am 18.12.2012 13:37, schrieb Jean Dubois:
> I have trouble with the code beneath to make an array with equally
> spaced values
> When I enter 100e-6 as start value, 700e-6 as end value and 100e-6 I
> get the following result:
> [ 0.0001 0.00022 0.00034 0.00046 0.00058 0.0007 ]
> But I was hop
Jean Dubois wrote:
> I have trouble with the code beneath to make an array with equally
> spaced values
> When I enter 100e-6 as start value, 700e-6 as end value and 100e-6 I
> get the following result:
> [ 0.0001 0.00022 0.00034 0.00046 0.00058 0.0007 ]
> But I was hoping for:
> [ 0.0001
I have trouble with the code beneath to make an array with equally
spaced values
When I enter 100e-6 as start value, 700e-6 as end value and 100e-6 I
get the following result:
[ 0.0001 0.00022 0.00034 0.00046 0.00058 0.0007 ]
But I was hoping for:
[ 0.0001 0.0002 0.0003 0.0004 0.0005 0.
Marc Aymerich wrote:
> Dear all,
> I want to monkey patch a method that has lots of code so I want to avoid
> copying all the original method for changing just two lines. The thing is
> that I don't know how to do this kind of monkey patching.
>
> Consider the following code:
>
> class Oringinal
Hi,
Most of the tasks you have to do can be achieved quite easily with the
standard library (except the plotting).
On Tue, Dec 18, 2012 at 03:29:49AM -0800, hevymet...@gmail.com wrote:
> These are some steps I need to do first before creating the graph:
> - Get the name of a CSV file from an ini
On 18/12/12 11:39:56, Dave Angel wrote:
> On 12/18/2012 05:27 AM, Hans Mulder wrote:
>> On 18/12/12 06:10:43, photonym...@gmail.com wrote:
>>> I hope I understand the question... but shouldn't you wait for the process
>>> to complete before exiting?
>>>
>>> Something like:
>>>
>>> pid = subprocess
Hi there, I hope that there is someone willing to help me out, I need to
generate a graph in Python 2.7.3.1, but I am not that skilled with Python and I
am completely stuck :(
I had to make a .CSV file from my Windows system logs (already did that), and
the following steps must bw written in th
On Tue, Dec 18, 2012 at 9:26 PM, Marc Aymerich wrote:
> Any other idea on how to monkey patch those two conditionals ?
Would it be plausible to simply add a parameter to the function that
controls its behaviour? It'd be a lot more readable than fiddling from
the outside ever would.
ChrisA
--
ht
On 12/18/2012 05:27 AM, Hans Mulder wrote:
> On 18/12/12 06:10:43, photonym...@gmail.com wrote:
>> I hope I understand the question... but shouldn't you wait for the process
>> to complete before exiting?
>>
>> Something like:
>>
>> pid = subprocess.Popen(...)
>> pid.wait()
>>
>> Otherwise, it'll
On 18/12/12 06:30:48, Gnarlodious wrote:
> This problem is solved, I am so proud of myself for figuring it out!
> After reading some of these ideas I discovered the plist is really
> lists underneath any "Children" key:
>
>
> from plistlib import readPlist
>
> def explicate(listDicts):
> f
On 18/12/12 06:10:43, photonym...@gmail.com wrote:
> I hope I understand the question... but shouldn't you wait for the process to
> complete before exiting?
>
> Something like:
>
> pid = subprocess.Popen(...)
> pid.wait()
>
> Otherwise, it'll exit before the background process is done.
Why w
Dear all,
I want to monkey patch a method that has lots of code so I want to avoid
copying all the original method for changing just two lines. The thing is that
I don't know how to do this kind of monkey patching.
Consider the following code:
class OringinalClass(object):
def origina_metho
On 12/18/2012 12:25 AM, iMath wrote:
where to view open() function's C implementation source code ï¼
depends on the python version. io in 3.x
otherwise, it is a builtin
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list
43 matches
Mail list logo