On Mar 21, 7:55 pm, grocery_stocker cdal...@gmail.com wrote:
Given the following
def double(val):
return val.bind(lambda x: val.return_(x*2))
I get AttributeError: 'int' object has no attribute 'bind' when I
try to do the following
double(2)
snipped
See the usage of the double
On Tue, 24 Mar 2009 09:53:02 +0530 (IST)
srinivasan srinivas sri_anna...@yahoo.co.in wrote:
Hi,
Does Sybase Python driver module implement multiple result sets from
a single command? Could anyone guide e in finding answer for this?
The site http://python-sybase.sourceforge.net/sybase/
On Fri, 27 Mar 2009 08:16:01 -0700
Daniel Fetchinson fetchin...@googlemail.com wrote:
snipped
Just a GUI for package management that lets you seperate what is
available for the python platform that you are running on. Install,
deinstall, and get package information.
On Thu, 02 Apr 2009 13:36:24 +0200
Gabriel dun...@dreams.sk wrote:
Hello,
I have to write linux application that will analyze disk/partition
(ext3 filesystem) on really low level. It has to find/analyze files
on the disk by reading disk blocks to analyze file's headers to find
out file type
On Thu, 2 Apr 2009 05:45:18 -0700 (PDT)
guptha gjango...@gmail.com wrote:
Hi friends,
I came across libgmail library that can be used to bind python with
Google Gmail's service .Likewise is there any library available to
access the service of Yahoo mail from python code .
I like to send sms
On Thu, 2 Apr 2009 10:01:02 -0700 (PDT)
gert gert.cuyk...@gmail.com wrote:
from subprocess import *
check_call(['mode', 'COM1:9600,N,8,1,P'],shell=True)
while True:
with open('com1', 'r') as f:
for line in f:
print('line')
This works very well except for one
On Fri, 03 Apr 2009 22:10:36 +0200
Christian Heimes li...@cheimes.de wrote:
gert wrote:
I do understand, and I went looking into pySerial, but it is a long
way from getting compatible with python3.x and involves other libs
that are big and non pyhton3.x compatible.
So don't use Python
On Mon, Apr 13, 2009 at 11:13 AM, larryzhang zhangle2...@gmail.com wrote:
Hi,
Being a newbie for Python, I am trying to write a code that can act as
a downloading robot.
This might be useful: http://wwwsearch.sourceforge.net/mechanize/.
I've only casually gone through the page, not actually
On Mon, Apr 13, 2009 at 1:40 PM, ning luwen ninglu...@gmail.com wrote:
hi,
i need to fit a gamma distribution, is there any module can do the job?
Did you try google? Searching for python curve fitting returns some
promising results.
--
kushal
--
On Wed, Apr 15, 2009 at 8:56 AM, AJ Mayorga a...@xernova.com wrote:
Hello all,
I am looking for a way to statically compile pythonxx.dll into my C++
application, so that I can use It as an internal scripting language and
either run the native python code or take an ELF from
On Mon, Apr 13, 2009 at 8:33 PM, WP
no.i.d...@want.mail.from.spammers.com wrote:
Hello, I have dictionary {1:astring, 2:anotherstring, etc}
I now want to print:
Press 1 for astring
Press 2 for anotherstring etc
I could do it like this:
dict = {1:'astring', 2:'anotherstring'}
for key in
, y: (fp(v,x)-y)
v0 = [6, 3]
v, success = leastsq(e, v0, args=(xdata,ydata),maxfev=10)
On Mon, Apr 13, 2009 at 8:49 PM, Kushal Kumaran
kushal.kuma...@gmail.com wrote:
On Mon, Apr 13, 2009 at 1:40 PM, ning luwen ninglu...@gmail.com wrote:
hi,
i need to fit a gamma distribution
2009/4/15 João Abrantes jepe_abran...@hotmail.com:
Good evening,
I am making an online game that stores its data in a mysql database. The
thing is that I can't allow the players to interact directly with the
important tables of database (they could cheat if I give them access) so I
only
On Wed, Apr 15, 2009 at 1:20 PM, giohappy gioha...@gmail.com wrote:
On 14 Apr, 18:52, MRAB goo...@mrabarnett.plus.com wrote:
giohappywrote:
Hello everyone.
I'm trying to use subprocess module to launch a Windows console
application. The application prints some results to standard output
.
--
Kushal Kumaran
--
http://mail.python.org/mailman/listinfo/python-list
something small and simple that will do just this
job. Suggestions or pointers would be greatly appreciated.
Apache's mod_python already does something like this, with its PSP
handler. See http://webpython.codepoint.net/mod_python
Maybe that would help.
--
Kushal Kumaran
--
http
On Mar 31, 7:21 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have the following code to load a url (address).
When I have a url like this,
http://www.testcom.co.uk/dev_12345/www.cnn.com
i get an error Failed to openhttp://www.testcom.co.uk/dev_12345/www.cnn.com;.
Is there something
On Apr 2, 2:52 am, ken [EMAIL PROTECTED] wrote:
Hi,
i have the following code to load a url.
My question is what if I try to load an invalide url
(http://www.heise.de/;), will I get an IOException? or it will wait
forever?
Depends on why the URL is invalid. If the URL refers to a non-
On Apr 3, 9:33 am, ZMY [EMAIL PROTECTED] wrote:
Hi all,
I am installing python 2.2 on QNX4.25 but can't get it into /usr/local/
bin/ directory. Here is what I did:
1) untar Python-2.2 into directory /openqnx/Python-2.2/
2) use command:
CONFIG_SHELL=/usr/local/bin/bash CC=cc RANLIB=:
On Apr 10, 8:37 pm, KDawg44 [EMAIL PROTECTED] wrote:
Hi,
I am brand new to Python. In learning anything, I find it useful to
actually try to write a useful program to try to tackle an actual
problem.
I have a syslog server and I would like to parse the syslog messages
and try to change
On Apr 12, 6:24 am, Sean Davis [EMAIL PROTECTED] wrote:
In the past, I have put together web applications that process tasks
serially, either with short algorithms to manipulate user-submitted
data or to return database queries. However, now I am faced with the
task of having a long-running
://freshmeat.net/projects/rlwrap/.
If you use Microsoft Windows, a cygwin version is available too,
apparently.
snipped
--
Kushal Kumaran
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Aug 21, 2009 at 11:44 PM, Ronn Rossronn.r...@gmail.com wrote:
I'm new to python and I'm getting a date time from a field in the database
that looks like this:
8/2/2009 8:36:16 AM (UTC)
I want to split it into two fields one with the date formatted like this:
-MM-DD 2009-08-02
On Wed, Sep 2, 2009 at 5:30 AM, wrote:
I have 2 MySQL servers in 2 different data centers.
Between them, there is data replication setup.
Is there a python tool so I can do data comparison for daily records?
Basically, just access both servers and do a diff in memory and print out
records.
On Wed, Oct 21, 2009 at 1:41 PM, catalinf...@gmail.com
catalinf...@gmail.com wrote:
I have this error , what happen ?
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type help, copyright, credits or license for more information.
import md5
On Tue, Oct 27, 2009 at 2:04 AM, Anthra Norell anthra.nor...@bluewin.ch wrote:
snip
No, I didn't. There's a number of modules I know by name only and shutils
was one of them. A quick peek confirmed that it is exactly what I am looking
for. Thank you very much for the advice.
Then Doug
On Fri, Jun 19, 2009 at 8:16 PM, jorma kalajjk...@gmail.com wrote:
Hi,
Is there a way of retrieving the value of columns in the rows returned by
fetchall, by column name instead of index on the row?
Code Snippet:
query=select * from employees
On Wed, Jun 17, 2009 at 7:18 PM, kshama nagarajkshama.naga...@gmail.com wrote:
Dear all,
I am using os.open to open a tun/tap device and then read data from it.
I also need to do some other tasks apart from reading from this device. So i
wish to have the read non blocking.
I am opening the
On Sun, Jun 21, 2009 at 9:04 PM, Vincent Davisvinc...@vincentdavis.net wrote:
I am running python on a mac and when I was getting going it was difficult
to setup information. Specifically how modify bash_profile, how pythonpath
works and how to set it up. how to switch between python versions.
On Thu, Jun 25, 2009 at 10:32 AM, Private Privatemail...@gmail.com wrote:
On Jun 24, 12:23 pm, Przemyslaw Bak mail...@gmail.com wrote:
Hello,
I many files with log data. The structure of the file is quite
Each requested value is in separated file.
While traversing using os.path.walk I have
On Mon, Jun 29, 2009 at 9:17 PM, Aaron Scottaaron.hildebra...@gmail.com wrote:
I'm working on a Python application right now that uses a large number
of audio assets. Instead of having a directory full of audio, I'd like
to pack all the audio into a single file. Is there any easy way to do
On Fri, Jul 24, 2009 at 7:33 PM, Timtimlee...@yahoo.com wrote:
Hi,
I wonder if I use Popen, the parent process will wait for the child process
to finish or continue without waiting?
Thanks and regards!
Assuming you mean subprocess.Popen, the child is executed
asynchronously. You can use
On Mon, Jul 27, 2009 at 12:58 PM, jayshreejayshree06c...@gmail.com wrote:
pk = open('/home/jayshree/my_key.public.pem' , 'rb').read()
Please tell me how to open a file placed in any directory or in same
directory.
After opening this file i want to use the contain (public key ) for
On Mon, Jul 27, 2009 at 2:23 PM, S.Selvams.selvams...@gmail.com wrote:
On Sun, Jul 26, 2009 at 11:52 PM, Santhosh Kumar santhosh.vku...@gmail.com
wrote:
Hi all,
One of my cousin suggested me to do a IText PDF converter for
python. Actually I heard that there is no separate
On Mon, Aug 3, 2009 at 8:47 PM, Sandhya
Prabhakaransandhyaprabhaka...@gmail.com wrote:
Hi,
I have a string as str='123ACTGAAC'.
I need to extract the numeric part from the alphabetic part which I
did using
numer=re.findall(r'\d+',str)
numer
123
The docs for re.findall say that it returns
On Tue, Aug 4, 2009 at 12:41 AM, Sam Tregars...@tregar.com wrote:
Hello all. I'm considering building a module to provide a
cross-payment-gatewat API for making online payments. In the Perl world we
have a module like this called Business::OnlinePayment
On Fri, Aug 7, 2009 at 3:47 AM, Dave Angelda...@ieee.org wrote:
Piet van Oostrum wrote:
snip
DA All I can guess is that it has something to do with browser type or
DA cookies. And that would make lots of sense if this was a cgi page.
But
DA the URL doesn't look like that, as it doesn't
On Sat, Aug 8, 2009 at 12:12 AM, pwneddkeith.hugh...@gmail.com wrote:
Hi all,
I've been writing some code using libraries based on the Python Database API
2.0 (MySQLdb pg), and so far things are working really well. There is one
thing that I have not been able to figure out how to do,
On Sun, Aug 9, 2009 at 5:13 PM, Lokeshlokeshmarema...@gmail.com wrote:
Hi,
Need help in configure the TimedRotatingFileHandler from configuration
file
I have tried with the below code and ended up with the error, code is
pasted below
Error - IOError: [Errno 2] No such file or directory:
On Tue, Aug 11, 2009 at 4:52 PM, Helvinhelvin...@gmail.com wrote:
Hi everyone,
I am writing some python script that should find a line which contains
'1' in the data.txt file, then be able to move a certain number of
lines down, before replacing a line. At the moment, I am able to find
the
On Tue, Aug 11, 2009 at 10:03 PM, someonepetshm...@googlemail.com wrote:
Hello,
I'd like to make insert into db if record not exist otherwise update.
to save typing list of columns in both statements I do following
snip
is there better or more readable way to do it?
Well, mysql, in
On Mon, Jun 14, 2010 at 7:01 PM, hiral hiralsmaill...@gmail.com wrote:
Hi,
Do we have any facility to append file from Popen()/call(); see below
example...
1 import subprocess
2 f=open('log', 'w')
3 ...# writing some log-into into log file
4 p = subprocess.Popen(cmd, stdout=f, stderr=f) #
- Original message -
Currently, I have some scripts (in particular, applescript
'stay-open' scripts) that run continuously on a Mac through
the day. They look in a certain folder every 30 seconds and
perform the necessary work needed.
Take a look at inotify. Maybe it fits your
On Sun, Jun 27, 2010 at 9:47 AM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message roy-854954.20435125062...@news.panix.com, Roy Smith wrote:
I recently fixed a bug in some production code. The programmer was
careful to use snprintf() to avoid buffer overflows. The only
On Sun, Jun 27, 2010 at 5:16 PM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message mailman.2184.1277626565.32709.python-l...@python.org, Kushal
Kumaran wrote:
On Sun, Jun 27, 2010 at 9:47 AM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message roy
On Mon, Jun 28, 2010 at 2:00 AM, Jorgen Grahn grahn+n...@snipabacken.se wrote:
On Sun, 2010-06-27, Lawrence D'Oliveiro wrote:
In message roy-854954.20435125062...@news.panix.com, Roy Smith wrote:
I recently fixed a bug in some production code. The programmer was
careful to use snprintf() to
On Tue, Jun 29, 2010 at 5:56 AM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message mailman.2231.1277700501.32709.python-l...@python.org, Kushal
Kumaran wrote:
On Sun, Jun 27, 2010 at 5:16 PM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message
On Wed, Jun 30, 2010 at 2:04 PM, Nico Grubert nicogrub...@yahoo.de wrote:
Dear list members
I have this python list that represets a sitemap:
tree = [{'indent': 1, 'title':'Item 1', 'hassubfolder':False},
{'indent': 1, 'title':'Item 2', 'hassubfolder':False},
{'indent': 1,
On Fri, Jul 23, 2010 at 2:15 PM, Thomas Guettler h...@tbz-pariv.de wrote:
Hi,
I use non-blocking io to check for timeouts. Sometimes I get EAGAIN (Resource
temporarily unavailable)
on write(). My working code looks like this. But I am unsure how many bytes
have been written to the
pipe if
- Original message -
In article mailman.1105.1279945954.1673.python-l...@python.org,
Kushal Kumaran kushal.kumaran+pyt...@gmail.com wrote:
In general, after select has told you a descriptor is ready, the
first write after that should always succeed.
snip
Consider, for example
On Mon, Aug 2, 2010 at 12:22 PM, Sanjeeb sanjee...@gmail.com wrote:
Hi,
I have a web client which send a file to a server as multipart form
data, the sending of data is from
http://code.activestate.com/recipes/146306-http-client-to-post-using-multipartform-data/.
I dont want to open the
- Original message -
Wolfgang Rohdewald wrote:
On Donnerstag 05 August 2010, Chris Withers wrote:
But why only the request for auth credentials?
for security reasons I suppose - make sure a human enters
the password
Well yes, but what if you actually want to script it?
2010/3/26 Christian Ştefănescu st.ch...@gmail.com:
Hello dear Python-wielding developers!
I generally like date/time handling in Python very much, especially how date
operations result in Timedelta objects. But I find it somewhat impractical,
that you can only get days, seconds and
2010/3/26 Luis M. González luis...@gmail.com:
Webmonkey, Greasemonkey, monkey-patching, Tracemonkey, Jägermonkey,
Spidermonkey, Mono (monkey in spanish), codemonkey, etc, etc, etc...
Monkeys everywhere.
Sorry for the off topic question, but what does monkey mean in a
nerdy-geek context??
On Mon, Mar 29, 2010 at 9:01 PM, Gryff gareth.s...@googlemail.com wrote:
Hi
Its been 20 years since I programmed, so I'm stepping back in via
Python. However I'm beating my brains on tuples/lists (what I used to
know as arrays). I've fooled around with small code snippets and tried
a few
On Tue, Mar 30, 2010 at 9:53 PM, Someone Something fordhai...@gmail.com wrote:
Hi,
I've learned python a few months ago but I still use Perl because of CPAN
and the tremendous amount of stuff that's already been done for you. is
there something like CPAN for python?
Try PyPI.
On Wed, Mar 31, 2010 at 10:10 PM, Javier Montoya jmonto...@gmail.com wrote:
Dear all,
I'm a newbie in python and would be acknowledge if somebody could shed
some light on associative arrays.
More precisely, I would like to create a multi-dimensional associative
array. I have for example a
On Mon, Apr 5, 2010 at 1:33 PM, hiral hiralsmaill...@gmail.com wrote:
Hi,
I am trying following script...
script
import subprocess
cmd=['time', 'myCmd']
p = subprocess.Popen(cmd)
p.communicate()
script
Where 'myCmd' is some executable path and combination of arguments.
Now I am
On Tue, Apr 6, 2010 at 5:36 PM, Babu bab...@gmail.com wrote:
I am not an expert in python, so any help is my appreciated. My
threaded program consumed everything in the queue but is not
exiting... What is the problem with this program?
See the example in the documentation of the queue
On Thu, Apr 8, 2010 at 3:04 AM, Norm Matloff matl...@doe.com wrote:
Should be a simple question, but I can't seem to make it work from my
understanding of the docs.
I want to use the multiprocessing module with remote clients, accessing
shared lists. I gather one is supposed to use
On Thu, Apr 8, 2010 at 3:10 AM, J dreadpiratej...@gmail.com wrote:
Can someone make me un-crazy?
I have a bit of code that right now, looks like this:
status = getoutput('smartctl -l selftest /dev/sda').splitlines()[6]
status = re.sub(' (?= )(?=([^]*[^]*)*[^]*$)', :,status)
On Thu, Apr 8, 2010 at 11:30 AM, Norm Matloff matl...@doe.com wrote:
Thanks very much, Kushal.
But it seems to me that it doesn't quite work. After your first client
below creates l and calls append() on it, it would seem that one could
not then assign to it, e.g. do
l[1] = 8
What I'd
On Thu, Apr 8, 2010 at 7:39 PM, jorma kala jjk...@gmail.com wrote:
Hi,
I'd like to call an external application (firefox) from a python program (a
PyQT GUI), but I want the external application to run in the background, I
mean I do not want my python calling program to wait till the external
On Thu, Apr 8, 2010 at 9:00 PM, varnikat t varnika...@gmail.com wrote:
I am trying to do this
if os.path.exists(*.*.txt):
file=open(*.*.txt)
self.text_view.get_buffer().set_text(file.read())
else:
file=open(*.*.html)
On Thu, Apr 8, 2010 at 10:39 PM, varnikat t varnika...@gmail.com wrote:
Hey,
Thanks for the help.it detects now using glob.glob(*.*.txt)
Can u suggest how to open and read file this way?
if glob.glob(*.*.txt):
file=open(glob.glob(*.*.txt))
On Mon, Apr 12, 2010 at 5:56 PM, prakash jp prakash.st...@gmail.com wrote:
Hi all,
Can any one mention a list of python based tools (existant / could be
developed) which network administrators might need.
Not sure if you might like, but there's an O'Reilly book titled
Python for Unix and
On Sat, Apr 17, 2010 at 11:46 PM, Someone Something
fordhai...@gmail.com wrote:
no one cares? :(
On Sat, Apr 17, 2010 at 8:41 AM, Someone Something fordhai...@gmail.com
wrote:
This is my first large-scale (sort of) project in python. It is still
under daily development, but the core is
On Wed, Apr 21, 2010 at 1:38 PM, kaiix kvn@gmail.com wrote:
A simple thread pool example. My question is, since *MyThread.run*
will loop endless, how does the thread know the time to quit? how does
the *queue* notify the thread? is there any shared variables, like a
*lock*?
When I set
On Wed, Apr 21, 2010 at 1:50 PM, Kushal Kumaran
kushal.kumaran+pyt...@gmail.com wrote:
On Wed, Apr 21, 2010 at 1:38 PM, kaiix kvn@gmail.com wrote:
A simple thread pool example. My question is, since *MyThread.run*
will loop endless, how does the thread know the time to quit? how does
On Sat, Apr 24, 2010 at 1:21 AM, Amit Uttamchandani
amit.ut...@gmail.com wrote:
On Thu, Apr 22, 2010 at 10:12:47PM -0400, Dave Angel wrote:
amit wrote:
How does one go about calling multiple programs using subprocess?
This is the program flow:
C:\ wrenv.exe
C:\ make clean
..
..
The
On Sat, Apr 24, 2010 at 8:54 AM, Steven D'Aprano
st...@remove-this-cybersource.com.au wrote:
I'm reading the source code for decimal.Decimal, and I see that the
arithmetic operations (__add__, __sub__, etc.) start with code like this:
if other is NotImplemented:
return other
On Thu, Apr 29, 2010 at 5:46 AM, News123 news1...@free.fr wrote:
Hi,
I'm making first attempts to modify a few cells of an openoffice
spreadsheet.
Try the xlrd and xlwt modules, and the documentation at
http://www.python-excel.org/
snip
--
regards,
kushal
--
On Sat, May 1, 2010 at 7:46 AM, Jimbo nill...@yahoo.com wrote:
Hello I have a relatively simple thing to do; move an object from one
to list into another. But I think my solution maybe inefficient
slow. Is there a faster better way to move my stock object from one
list to another? (IE,
On Sun, May 2, 2010 at 3:30 PM, michel parker michelpar...@live.com wrote:
Hi,
When i make python 3.1 on my ubuntu 9.10 i get following error :
Failed to build these modules:
_dbm
Please help me.
I have done :
apt-get build-dep python2.5
but to no avail.
Cheers
Probably the packages
On Mon, May 10, 2010 at 7:30 PM, kak...@gmail.com kak...@gmail.com wrote:
Hi to all, i want to ask you a question, concerning the best way to do
the following as a POST request:
There is server-servlet that accepts xml commands
It had the following HTTP request headers:
Host:
On Mon, May 10, 2010 at 8:26 PM, kak...@gmail.com kak...@gmail.com wrote:
On May 10, 10:22 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote:
On Mon, May 10, 2010 at 7:30 PM, kak...@gmail.com kak...@gmail.com wrote:
Hi to all, i want to ask you a question, concerning the best way to do
On Tue, May 11, 2010 at 3:59 PM, kak...@gmail.com kak...@gmail.com wrote:
On May 11, 10:56 am, kak...@gmail.com kak...@gmail.com wrote:
On May 11, 5:06 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote:
On Mon, May 10, 2010 at 8:26 PM, kak...@gmail.com kak...@gmail.com wrote
On Wed, May 12, 2010 at 10:56 PM, Giampaolo Rodolà g.rod...@gmail.com wrote:
2010/5/12 Gabriel Genellina gagsl-...@yahoo.com.ar:
open() in Python 3 does a lot of things; it's like a mix of codecs.open() +
builtin open() + os.fdopen() from 2.x all merged together. It does different
things
On Tue, May 18, 2010 at 5:38 AM, Peng Yu pengyu...@gmail.com wrote:
On May 17, 6:38 pm, a...@pythoncraft.com (Aahz) wrote:
In article mailman.323.1274135213.32709.python-l...@python.org,
Peng Yu pengyu...@gmail.com wrote:
I compiled python2.6.4 from source. But I can't find _sqlite3.so in
On Tue, May 25, 2010 at 3:38 AM, joy99 subhakolkata1...@gmail.com wrote:
snip
Dear Vlastimir,
As pointed out by Alister, I can print the values of function1 and
function2 with the help of another function3, but my target is to call
the add value of function1 and mult value of function2 in a
On Tue, 2010-05-25 at 14:45 -0400, Victor Subervi wrote:
Hi;
I have this code:
clientCursor.execute('select ID from %s' % (personalDataTable))
upds = [itm[0] for itm in clientCursor]
print input type='hidden' name='upds' value='%s' / % upds
The problem is that the values
On Tue, 2010-05-25 at 20:12 +, Rob Williscroft wrote:
Barry wrote in news:83dc485a-5a20-403b-99ee-c8c627bdbab3
@m21g2000vbr.googlegroups.com in gmane.comp.python.general:
Hi,
The code below is giving me the error:
Traceback (most recent call last):
File
On Wed, May 26, 2010 at 11:40 PM, Rob Williscroft r...@rtw.me.uk wrote:
Kushal Kumaran wrote in news:1274889564.2339.16.ca...@nitrogen in
gmane.comp.python.general:
On Tue, 2010-05-25 at 20:12 +, Rob Williscroft wrote:
Barry wrote in news:83dc485a-5a20-403b-99ee-c8c627bdbab3
On Thu, 2010-05-27 at 08:34 -0400, Victor Subervi wrote:
Hi;
I have this code:
sql = insert into %s (%s) values ('%%s'); % (personalDataTable,
string.join(cols[1:], ', '))
#cursor.execute(sql, string.join(vals[1:], ', '))
cursor.execute('insert into %s (%s) values (%s);' %
On Thu, 2010-05-27 at 09:34 -0400, Victor Subervi wrote:
On Thu, May 27, 2010 at 8:34 AM, Victor Subervi
victorsube...@gmail.com wrote:
Hi;
I have this code:
sql = insert into %s (%s) values ('%%s'); %
(personalDataTable, string.join(cols[1:], ',
On Thu, 2010-05-27 at 10:30 -0400, Victor Subervi wrote:
On Thu, May 27, 2010 at 10:17 AM, Kushal Kumaran
kushal.kuma...@gmail.com wrote:
On Thu, 2010-05-27 at 08:34 -0400, Victor Subervi wrote:
Hi;
I have this code:
sql = insert
On Thu, 2010-05-27 at 20:47 +0530, Kushal Kumaran wrote:
On Thu, 2010-05-27 at 10:30 -0400, Victor Subervi wrote:
On Thu, May 27, 2010 at 10:17 AM, Kushal Kumaran
kushal.kuma...@gmail.com wrote:
On Thu, 2010-05-27 at 08:34 -0400, Victor Subervi wrote:
Hi
On Thu, 2010-05-27 at 17:56 +0100, MRAB wrote:
Kushal Kumaran wrote:
[snip]
Since I'm in a good mood today, here's a little present:
def insert(cursor, table, columns, values):
Insert a row into a table. columns must be a list of column
names. values must be a list of values
On Fri, May 28, 2010 at 5:46 PM, Victor Subervi victorsube...@gmail.com wrote:
On Fri, May 28, 2010 at 2:17 AM, Dennis Lee Bieber wlfr...@ix.netcom.com
wrote:
On Thu, 27 May 2010 23:22:24 +0100, MRAB pyt...@mrabarnett.plus.com
declaimed the following in gmane.comp.python.general:
On Tue, Nov 30, 2010 at 2:29 PM, pyt...@bdurham.com wrote:
Is there a cursor or connection property that returns the number of rows
affected by a SQLite update or delete command?
The cursor has a rowcount attribute. The documentation of the sqlite3
module says the implementation is quirky.
On Fri, Dec 10, 2010 at 7:18 PM, Dirk Nachbar dirk...@gmail.com wrote:
I want to take a copy of a list a
b=a
and then do things with b which don't affect a.
How can I do this?
b = a[:] will create a copy of the list. If the elements of the list
are references to mutable objects (objects
On Wed, Dec 15, 2010 at 5:04 AM, kirby.ur...@gmail.com
kirby.ur...@gmail.com wrote:
This is an idea I got thinking about COM objects, and getting
some support from Mark Hammond, Python's Win32 wizard.
The goal is to have a host language (not Python) instantiate
an object that runs against
On Mon, Jan 3, 2011 at 3:07 AM, gervaz ger...@gmail.com wrote:
On 2 Gen, 19:14, Emile van Sebille em...@fenx.com wrote:
snip
class Test:
def __init__(self, v1, v2):
self.v1 = v1
self.v2 = v2
t1 = Test(hello, None)
t2 = Test(None, ciao)
t3 = Test(salut, hallo)
On Fri, Jan 7, 2011 at 8:08 PM, Thibaud Roussillat
thibaud.roussil...@gmail.com wrote:
Hi,
I work with Python 2.4 and CGI.
I have a CGI which call a Python script in background process and return
result before background task is finished.
Actually, the browser displays response but it is
On Mon, Jan 10, 2011 at 1:15 PM, Thibaud Roussillat
thibaud.roussil...@gmail.com wrote:
On Sat, Jan 8, 2011 at 3:19 AM, Kushal Kumaran
kushal.kumaran+pyt...@gmail.com wrote:
On Fri, Jan 7, 2011 at 8:08 PM, Thibaud Roussillat
thibaud.roussil...@gmail.com wrote:
Hi,
I work with Python 2.4
- Original message -
Hi all,
I have the following problem (which I already have a hacked around
solution that works but I'd would like some more input on it):
I have a situation where multiple python processes are started
independently from each other but by the same user with
On Fri, Jan 14, 2011 at 1:51 PM, Martin P. Hellwig
martin.hell...@dcuktec.org wrote:
On 01/14/11 03:04, Kushal Kumaran wrote:
- Original message -
Hi all,
I have the following problem (which I already have a hacked around
solution that works but I'd would like some more input
- Original message -
Hi there.
I'm trying to develop a program like family tree maker. I have all
information, so there is no need to search on the net. This must be
something like trees. Can someone help me? I'm at the beginning.
Thanks.
Family trees are nothing like trees,
2011/1/18 Grzegorz Śliwiński sliwin...@red-sky.pl:
Hello,
Recently I tried to insert some unicode object in utf-8 encoding into
MySQL using MySQLdb, and got MySQL warnings on characters like:
βΠΥΠ i found somewhere in my data. I can't even read them. MySQL
seems to cut the whole string after
On Tue, Feb 1, 2011 at 9:12 AM, Alan Meyer amey...@yahoo.com wrote:
On 01/26/2011 04:22 PM, MRAB wrote:
On 26/01/2011 10:59, Xavier Heruacles wrote:
I have do some log processing which is usually huge. The length of each
line is variable. How can I get the last line?? Don't tell me to use
1 - 100 of 224 matches
Mail list logo