> We are using the stored procedure to do a If Exist, update, else Insert
> processing for
> each record.
Consider loading the data in batches into a temporary table and then
use a single insert statement to insert new records and a single update
statement to update existing ones. This way, you a
Philippe C. Martin wrote:
> Hi,
>
> I am looking for a stand-alone (not client/server) database solution for
> Python.
>
> 1) speed is not an issue
> 2) I wish to store less than 5000 records
> 3) each record should not be larger than 16K
How about using the filesystem as a database? For the numbe
It is relatively easy to write voice applications for the Asterisk
software PBX using the CGI-like AGI (Asterisk Gateway Interface).
The following document describes the AGI and has some examples in
Python:
http://home.cogeco.ca/~camstuff/agi.html
--
http://mail.python.org/mailman/listinfo/pyth
If you can't find any JBUS/Modbus modules specific for Python it's
possible to use one of the many C/C++ modules available and make a
Python wrapper for it with an interface generator like SWIG or SIP. You
say that you don't have much technical background so you may consider
hiring someone to do it
Russell E. Owen wrote:
> I have several situations in my code where I want a unique identifier
> for a method of some object (I think this is called a bound method). I
> want this id to be both unique to that method and also stable (so I can
> regenerate it later if necessary).
>>> def persistent_
> IIRC, many of the mailbox modules (such as mailbox and
> mhlib) are read-only, but they should provide a good starting point.
The mailbox module has recently been upgraded for full read-write
access by a student participating in google's Summer of Code. It is
currently under review for inclusion
Bryan Olson wrote:
> I recently wrote a module supporting value-shared slicing. I
> don't know if this functionality already existed somewhere,
In the Numarray module slices are a view into the underlying array
rather than a copy.
http://www.stsci.edu/resources/software_hardware/numarray
--
htt
> After connecting a drive to the system (via USB
> or IDE) I would like to be able to see within seconds
> if there were changes in the file system of that drive
> since last check (250 GB drive with about four million
> files on it).
Whenever a file is modified the last modification time of the
Leif K-Brooks <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Is there a word for an iterable object which isn't also an iterator, and
> therefor can be iterated over multiple times without being exhausted?
> "Sequence" is close, but a non-iterator iterable could technically
>
"Marcos" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> ...
> os.systems / commands etc etc. I realise the subprocess module may have
> what I need but I can't get python 2.4 on the Mac so I need a 2.3 based
> solution. Any help is much appreciated. Cheers.
The Python 2.4 subpr
Ron_Adam <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Is there a way to hide global names from a function or class?
>
> I want to be sure that a function doesn't use any global variables by
> mistake. So hiding them would force a name error in the case that I
> omit an initi
"Jordan Rastrick" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL
PROTECTED]>...
> Hmmm, I like the terminology consumers better than acceptors.
Here's an implementation of Python consumers using generators:
http://groups.google.co.uk/[EMAIL PROTECTED]
Oren
--
http://mail.python.org/mailman
Take a look at Nick Coglan's "with" proposal:
http://groups.google.co.uk/groups?selm=mailman.403.1105274631.22381.python-list%40python.org
It addresses many of the same issues (e.g. easy definition of
properties). It is more general, though: while your proposal only
applies to keyword arguments i
"Tim N. van der Leeuw" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL
PROTECTED]>...
> Hi,
>
> I'd like to remove keys from a dictionary, which are not found in a
> specific set.
Here's my magic English-to-Python translator:
"I'd like to ... keys which ..." -> "for key in"
"keys from a di
Matthew Thorley wrote:
> Does any one know if there a way to force the ElementTree module to
> print out name spaces 'correctly' rather than as ns0, ns1 etc? Or is
> there at least away to force it to include the correct name spaces in
> the output of tostring?
>
> I didn't see anything in the api
Ilpo Nyyssönen wrote:
> Nicolas Fleury <[EMAIL PROTECTED]> writes:
> > def foo():
> > with locking(someMutex)
> > with opening(readFilename) as input
> > with opening(writeFilename) as output
> > ...
>
> How about this instead:
>
> with locking(mutex), opening(readfile) as input:
>
Fredrik Lundh wrote:
> Chris Spencer wrote:
>
> > If an XML parser reads in and then writes out a document without having
> > altered it, then the new document should be the same as the original.
>
> says who?
Good question. There is no One True Answer even within the XML
standards.
It all boils
> you forgot
>
>http://effbot.org/zone/element-infoset.htm
>
> which describes the 3-node XML infoset subset used by ElementTree.
No, I did not forget your infoset subset. I was comparing it with other
infoset subsets described in various XML specifications.
I agree 100% that prefixes were no
See the frozendict recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/414283
It was written exactly for this purpose: a dictionary that can be a
member in a set.
Oren
--
http://mail.python.org/mailman/listinfo/python-list
http://tothink.com/python/progman/
This module implements BASIC-like NEW, LOAD, RUN (sorry, no SAVE...).
Oren
--
http://mail.python.org/mailman/listinfo/python-list
20 matches
Mail list logo