Re: Must COMMIT after SELECT

2008-02-07 Thread M.-A. Lemburg
On 2008-02-07 16:46, Carsten Haese wrote: > On Thu, 2008-02-07 at 16:33 +0100, M.-A. Lemburg wrote: >> mxODBC has support for named cursors that you can later >> use for positioned updates. > > Since we're on the topic of shameless plugs, InformixDB has this > featur

MyHDL project!!

2008-02-07 Thread Blubaugh, David A.
sir, Is there still a possibility to collaborate??? David Blubaugh -Original Message- From: Blubaugh, David A. Sent: Friday, February 01, 2008 10:44 AM To: 'chewie54' Cc: 'python-list@python.org' Subject: MyHDL project ! Dan, I would be honored to sta

Re: Must COMMIT after SELECT

2008-02-07 Thread M.-A. Lemburg
;> they can only be used with certain kinds of operations. As far as I >> recall, pyPgSQL supports cursors fairly transparently, albeit through >> various ad-hoc measures, whereas psycopg2 only does so for "named >> cursors" - a concept missing from the DB-API as far as

RE: Dear David (was: MyHDL project)

2008-02-07 Thread Blubaugh, David A.
ridiculous at best. thanks. David -Original Message- From: ajaksu [mailto:[EMAIL PROTECTED] Sent: Thursday, February 07, 2008 5:49 PM To: python-list@python.org Subject: Re: Dear David (was: MyHDL project) On Feb 7, 4:48 pm, "Blubaugh, David A." <[EMAIL PROTECTED]&g

RE: Dear David

2008-02-08 Thread Blubaugh, David A.
Steve, I have discontinued the use of ?? a long time ago. Why is this still a problem? David -Original Message- From: Steve Holden [mailto:[EMAIL PROTECTED] Sent: Friday, February 08, 2008 10:52 AM To: python-list@python.org Subject: Re: Dear David Dan Upton wrote

MyHDL project!

2008-02-08 Thread Blubaugh, David A.
From: Dan Fabrizio [mailto:[EMAIL PROTECTED] Sent: Friday, February 08, 2008 2:56 PM To: Blubaugh, David A. Subject: Re: MyHDL project ! David, No problem with the mailing list, others might have some experience that could be useful. Let me know how

SAGE for FPGA development

2008-02-14 Thread Blubaugh, David A.
Bill, The potential idea that I had in store for SAGE would be to first be able to develop complicated algorithms onto hardware. What I mean by this is to take for example, a FFT and then be able to map the entire algorithm into hardware, in a reasonable amount of time. It currently takes a few

RE: SAGE for FPGA development

2008-02-14 Thread Blubaugh, David A.
Bill, Let me first say that my FPGA experiences are of the following nature: 1.) Developed control algorithms onto a FPGA that were utilized to control a switch-reluctance motor (three-phase as well six-phase). 2.) I am currently in the process of developing a specialized Multidimensional

RE: SAGE for FPGA development

2008-02-14 Thread Blubaugh, David A.
Subject: Re: SAGE for FPGA development Blubaugh, David A. wrote: > Bill, > > > Let me first say that my FPGA experiences are of the following nature: > > 1.) Developed control algorithms onto a FPGA that were utilized to > control a switch-reluctance motor (three-phase as well si

Re: Accessing Oracle/Access database py2.4

2008-02-15 Thread M.-A. Lemburg
On 2008-02-15 17:06, Ahmed, Shakir wrote: > I was used import odbc to connect oracle or access table before, now I > switched to python 2.4 and is giving me error message. I appreciate any > help on that. The win32 odbc module is very old and no longer maintained. If you're

scary thought for consideration

2008-02-15 Thread Blubaugh, David A.
To All, I am wondering as far as the integration of MyHDL with Python 2.5, if there might be any potential version incompatibility issues? What I mean is will MyHDL not operate correctly, if it is executed with a Python 2.5 version not a Python 2.4? I will be testing to see if this possibility

Is there a way to "link" a python program from several files?

2008-02-16 Thread Edward A. Falk
IOW, is there a "linker" for python? I've written a program comprised of about five .py files. I'd like to find a way to combine them into a single executable. Obviously, I could hand-edit them into a single .py file, but I'm looking for a way to keep them as seperate

Python 3.0

2008-02-18 Thread Blubaugh, David A.
Is there a logical reason why Python 3 is not backwards compatible? David Blubaugh -Original Message- From: Bill Hart [mailto:[EMAIL PROTECTED] Sent: Friday, February 15, 2008 7:44 PM To: Blubaugh, David A. Subject: Re: scary thought for consideration I don't know, it'

MyHDL

2008-02-18 Thread Blubaugh, David A.
Dear Mr. Polo, Yes, I believe that there may indeed be a problem with MyHDL module running under python 2.5 under the windows environment. I have been having extensive problems with importing the MyHDL module. I will provide additional information if required. Thank you very much for all of

RE: Question

2008-02-18 Thread Blubaugh, David A.
. Respectfully, David Blubaugh From: Dan Fabrizio [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 1:17 PM To: Blubaugh, David A. Subject: Re: Question Hi David, I didn't have any problems with the install on Linux and Mac OS X. Bot

Python for Safety-Critical Software Development for Aerospace Applications

2008-02-18 Thread Blubaugh, David A.
To All, I was wondering if anyone has specific information as to the use of the Python language for the development of Safety-Critical software for aerospace applications?? For example, developing Python-based source code that has been verified to DO-178B Level A certification. Any information

RE: Question

2008-02-18 Thread Blubaugh, David A.
I have already solved that problem. Sorry for not alerting you as to me of solving this issue. Thank you very much for the help. I was wondering if you would be interested in helping in the development of a Scipy / MyHDL hybrid. The advantage of this would be to develop FPGA logic with the

Re: Handling locked db tables...

2008-02-20 Thread M.-A. Lemburg
On 2008-02-20 16:24, breal wrote: > I have a db table that holds a list of ports. There is a column > in_use that is used as a flag for whether the port is currently in > use. When choosing a port the table is read and the first available > port with in_use = 0 is used, updated t

Re: Is there a way to "link" a python program from several files?

2008-02-20 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, BlueBird <[EMAIL PROTECTED]> wrote: > >I wrote a small wiki page to sum-up my findings about such typical >problem: > >http://www.freehackers.org/Packaging_a_python_program > Excellent references, but maybe a bit of overkill. Every

Re: Handling locked db tables...

2008-02-23 Thread M.-A. Lemburg
On 2008-02-20 17:19, breal wrote: > On Feb 20, 8:05 am, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: >> On 2008-02-20 16:24, breal wrote: >> >>> I have a db table that holds a list of ports. There is a column >>> in_use that is used as a flag fo

Re: How about adding rational fraction to Python?

2008-02-25 Thread M.-A. Lemburg
If you're interested in rationals, then you might want to have a look at mxNumber which is part of the eGenix mx Experimental Distribution: http://www.egenix.com/products/python/mxExperimental/mxNumber/ It provides fast rational operations based on the GNU MP library. On 2008-02-25 07:58,

Re: How about adding rational fraction to Python?

2008-02-25 Thread M.-A. Lemburg
tion sometime with rationals, and tell me >>>> how that works out. Try calculating compound interest and storing >>>> results for 1000 customers every month, and compare the size of your >>>> database before and after. >>> Usually you would round to the n

Re: mx Base module

2008-02-25 Thread M.-A. Lemburg
On 2008-02-25 17:27, Manu wrote: > Hi there, > > I am trying to install mx Base module( > http://www.egenix.com/products/python/mxBase/ > ) on my Redhat server. But om executing command "python setup.py > install" The file you downloaded is a prebuilt binary

Re: Can one get "for x in y" to work for non builtin classes?

2008-03-03 Thread M.-A. Lemburg
On 2008-03-02 15:06, Preben Randhol wrote: > Hi > > I'm making a kind of ordered dictionary class. It is not exactly a > dictionary, but it uses a list and dictionary to store the data. > > Something like: > > class dbase(list): > ''

FW: unable to download PyGEP

2008-03-03 Thread Blubaugh, David A.
> __ > From: Blubaugh, David A. > Sent: Monday, March 03, 2008 3:39 PM > To: '[EMAIL PROTECTED]' > Subject: unable to download PyGEP > > Dear Sir, > > I have been having issues installing

Answer: Is there a way to "link" a python program from several files?

2008-03-03 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, George Sakkis <[EMAIL PROTECTED]> wrote: > >What's so complicated about "python setup.py install" ? Even that is >not strictly necessary for pure python packages; a user may just >unpack the archive, cd to the extracted dir

Re: tools to install not in python tree?

2008-03-04 Thread M.-A. Lemburg
On 2008-03-04 02:55, [EMAIL PROTECTED] wrote: > Hello, > > I have some materials for a project that I am working on that I keep > in a source code control system (svn now, but I'm experimenting with > mercurial). I want to install these things from the repository, but >

Re: Time Zone application after strptime?

2008-03-07 Thread M.-A. Lemburg
On 2008-03-07 22:24, Jim Carroll wrote: > It's taken me a couple of hours to give up on strptime with %Z for recognizing > time zones... but that still leaves me in the wrong zone: > > def paypal_to_mysql_date(ppDate): > # a typical paypal date is 10:29:52 Feb 29, 2008

Python To C Module Generator Stand-Alone Executable

2008-03-10 Thread Blubaugh, David A.
Does anybody know if the Python To C Module Generator is of any value? Has anyone found or developed a means to convert python source code into c source code, where an algorithm that has been developed in python, can now be converted to C in order to develop a stand alone application? Thanks

Re: Time Zone application after strptime?

2008-03-12 Thread M.-A. Lemburg
Jim Carroll wrote: > M.-A. Lemburg egenix.com> writes: > >> On 2008-03-07 22:24, Jim Carroll wrote: >>> It's taken me a couple of hours to give up on strptime >>> with %Z for recognizing >>> time zones... but that still leaves me in the wrong zone

Python to C/C++

2008-03-19 Thread Blubaugh, David A.
To All, Has anyone worked with a translator that will translate python to c/c++ source code? I know that there is already one translator of this nature (shedskin compiler) out there. However, it is still in the beta stage of development. Does anyone know of a more developed version of a

Floating-point support

2008-03-20 Thread Blubaugh, David A.
Would anyone know as to how to develop floating point support for the MyHDL module? Has anyone worked with any alternative versions of the IEEE standard for floating -point? Also, has anyone developed a floating-point library for a module within the python environment in order to execute

Re: Does python hate cathy?

2008-03-24 Thread Edward A. Falk
x27;, 'F') cathy.sayHi() cathy.howMany() swaroop.sayHi() swaroop.howMany() return 0 if __name__ == "__main__": sys.exit(main()) The problem goes away. (This is a good coding practice in any event.) As others have pointed out, the order in which local

Re: Does python hate cathy?

2008-03-25 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, Patrick Mullen <[EMAIL PROTECTED]> wrote: >Then again, I can count the number of times I have ever needed __del__ >with no fingers (never used it!). Still, quite interesting to >explore. I used it once, for an object that had a doubly-lin

Re: How to start a transaction?

2009-01-20 Thread M.-A. Lemburg
On 2009-01-20 12:23, Hussein B wrote: > Hey, > I know the basics of interacting with databases in Python. > How to start a transaction in case I want to group a couple of insert > and update statements into a single operation? If you use a Python DB-API compatible database

Re: How to get first/last day of the previous month?

2009-01-21 Thread M.-A. Lemburg
On 2009-01-20 15:54, Mike Driscoll wrote: > On Jan 20, 8:19 am, Hussein B wrote: >> Hey, >> I'm creating a report that is supposed to harvest the data for the >> previous month. >> So I need a way to get the first day and the last day of the previous >> mon

Re: Securing a database

2009-01-25 Thread M.-A. Lemburg
On 2009-01-23 08:26, kt83...@gmail.com wrote: > My company provides some services online, which now they are planning > to make it offline and sell to customers who can use it in their > networks. > > One of our major moneywinners is some data which is stored in a > databa

Re: date handling problem

2009-01-29 Thread M.-A. Lemburg
dardize this standards.It will be helpful if >> you can >> hint me. > > You may find the Olson timezone database useful. > http://pytz.sourceforge.net/ Or have a look at the date/time parser in mxDateTime: http://www.egenix.com/products/python/mxBase/mxDateTime/ -- Marc-Andre Lem

Re: install modules for specific python version

2009-02-02 Thread M.-A. Lemburg
On 2009-02-01 02:00, Brendan Miller wrote: > I have several version of python running side by side on my ubuntu > install (2.5,2.6,3.0). > > I'm installing a module with a setup.py script, in this case > logilab-common, so that I can get pylint going. However, I need to >

Re: JDBC in CPYTHON

2009-02-04 Thread M.-A. Lemburg
On 2009-02-03 19:30, KMCB wrote: > I was wondering if anyone was aware of a JDBC DBAPI module for > cpython. I have looked at PYJDBC and was interested in avoiding using > that extra level of ICE. I was thinking maybe someone would have back > ported zxJDBC from Jython. Or us

Re: x64 speed

2009-02-04 Thread M.-A. Lemburg
host stuff offloading IO to >>> the second core, but watching with sysinternals didn't show a lot of >>> extra stuff going on with the vm compared to just running on the host. >> >> I'm not talking about vmware. I'm suggesting that Linux ext3, and

Re: Unzipping a .zip properly, and from a remote URL

2009-02-04 Thread M.-A. Lemburg
1997-11-19 17:36:46 4698 locale/CommandLine.py 1997-11-19 15:50:02 2306 locale/probe.py1997-11-19 15:51:18 1870 locale/__init__.py 1997-11-19 17:55:020 Th

Re: JDBC in CPYTHON

2009-02-05 Thread M.-A. Lemburg
On 2009-02-05 03:49, KMCB wrote: > Thanks Simon and Marc, > > I currently have an app on OSX that I wanted to migrate to NIX, it > uses a ODBC DBAPI interface to communicate with Filemaker. > Unfortunately, FMP does not support linux drivers. They do have a > JDBC driver that

Re: Comparing two book chapters (text files)

2009-02-05 Thread M.-A. Lemburg
On 2009-02-05 02:20, Nick Matzke wrote: > Hi all, > > So I have an interesting challenge. I want to compare two book > chapters, which I have in plain text format, and find out (a) percentage > similarity and (b) what has changed. > > Some features make this problem differe

Re: global name 'sqrt' is not defined

2009-02-05 Thread M.-A. Lemburg
On 2009-02-05 10:08, Nick Matzke wrote: > Hi all, > > So, I can run this in the ipython shell just fine: > > === > a = ["12", "15", "16", "38.2"] > dim = int(sqrt(size(a))) > > dim >>2 > === > >

Re: Fastest database solution

2009-02-06 Thread M.-A. Lemburg
On 2009-02-06 09:10, Curt Hash wrote: > I'm writing a small application for detecting source code plagiarism that > currently relies on a database to store lines of code. > > The application has two primary functions: adding a new file to the database > and comparing a fi

Re: Convert date/time to unix timestamp?

2009-02-10 Thread M.-A. Lemburg
On 2009-02-10 10:26, Phillip B Oldham wrote: > Is there a simple way to set a date/time and convert it to a unix > timestamp? After some googling I found the following: > > t = datetime.time(7,0,0) > starttime = time.mktime(t.timetuple())+1e-6*t.microsecond > > That seems

Re: best way to serve wsgi with multiple processes

2009-02-11 Thread M.-A. Lemburg
as an ordinary user >>>> which eases some tasks. >> I'm sorry - I originally missed the worked 'forked' and hence the >> whole point of your message I think. >> >> I looked at flup before but had forgotten about the forked version. >> Having r

Re: how to distribute python extensions independently of python

2009-02-16 Thread M.-A. Lemburg
On 2009-02-12 18:38, Travis wrote: > So, > > Recently I made a fix to the zlib module that I need for use at work. > > I would like other employees to be able to use it without recompiling python. > > I assume I can just rename it and distribute it as a python extension.

Re: Is there something easier than ORM?

2009-02-18 Thread M.-A. Lemburg
On 2009-02-17 13:27, 一首诗 wrote: > Hi all, > > Recently I am studying some python ORM libraries, such as sqlalchemy. > > These are very powerful technologies to handle database. But I think > my project are not complicated to enough to benefit from a complete > ORM syste

Re: Crypto headaches.

2009-02-18 Thread M.-A. Lemburg
On 2009-02-18 14:23, SamG wrote: > Hi, > > Using the python's Crypto.Cipher.Blowfish is create and encrypted file > in the CBC mode. Now... when try to decrypt it with OpenSSL i get an > error stating "bad magic number". Are you getting the error message from op

Re: Instance attributes vs method arguments

2008-11-25 Thread M.-A. Lemburg
rgs.d > def method_ab(self): > return self.a + self.b > def method_cd(self): > return self.c + self.d > > or this: > > class Class_b(): > def method_ab(self, args): > a = args.a > b = arg

Re: converting a string data to a float value for access database

2008-11-25 Thread M.-A. Lemburg
On 2008-11-25 22:37, [EMAIL PROTECTED] wrote: > Hi, > > I am trying to copy a sql database to a access database using python. > I can copy all the fields, but the date. I can store a float value in > access data object, ie > http://en.wikibooks.org/wiki/JET_Database/Data_typ

Re: Is it possible (and wise) to extend the None-type ?

2008-11-26 Thread M.-A. Lemburg
On 2008-11-26 18:55, Stef Mientki wrote: > hello, > > I've the idea that I always have a lot of useless code in my programs, > like the next example. > > def _On_Menu_File_Open ( self, event = None ): >if event : > event.Skip () > > instead of > &

Re: "as" keyword woes

2008-12-04 Thread M.-A. Lemburg
On 2008-12-04 06:42, Warren DeLano wrote: >>> Why can't the parser distinguish between a standalone " as " keyword >>> and ".as" used as an object/attribute reference? >> Because that would require special-casing some names as being >> for

Re: Rich Comparisons Gotcha

2008-12-10 Thread M.-A. Lemburg
in the list makes it behave wrong for 3 as >> well. > > I think I lost the first messages on this thread, but... Wouldn't be easier to > just fix numpy? I see no need to have the == return anything but a boolean, at > least on Numpy's case. The syntax 'a == b&#

Re: Rich Comparisons Gotcha

2008-12-10 Thread M.-A. Lemburg
On 2008-12-10 20:01, Luis Zarrabeitia wrote: > On Wednesday 10 December 2008 10:50:57 am M.-A. Lemburg wrote: >> On 2008-12-10 16:40, Luis Zarrabeitia wrote: >>> Quoting Rasmus Fogh <[EMAIL PROTECTED]>: >>>> Rhamphoryncus wrote: >> Rich comparisons

Re: getting back into programming

2008-12-10 Thread M.-A. Lemburg
On 2008-12-10 22:02, [EMAIL PROTECTED] wrote: > I used to program in C and Perl (up until 2001) (a little C++ and Java > too). Since then I've been a Business Analyst and only coded in VBA/ > Excel and written some SQL queries. (we use Sybase) > > I feel the need for other

Re: Rich Comparisons Gotcha

2008-12-11 Thread M.-A. Lemburg
On 2008-12-10 23:21, Luis Zarrabeitia wrote: > On Wednesday 10 December 2008 02:44:45 pm you wrote: >>> Even in statically typed languages, when you override the equality >>> operator/function you can choose not to return a valid answer (raise an >>> exception). An

Re: psycopg2 and large queries

2008-12-18 Thread M.-A. Lemburg
com/products/python/mxBase/ mxODBC and mxODBC Connect are commercial products, work well with PostgreSQL and are actively maintained: http://www.egenix.com/products/python/ Why not give them a try ? -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1,

Re: creating a datetime.datetime from an XML xs:dateTime

2009-01-06 Thread M.-A. Lemburg
On 2008-12-29 05:26, Jack.Chu wrote: > I think a simple regular expression is a relatively easy solution. Or use mxDateTime and let the parser do all the heavy lifting for you: >>> from mx.DateTime import Parser >>> t = Parser.DateTimeFromString('2000-01-1

Re: python is great

2009-01-06 Thread M.-A. Lemburg
On 2009-01-06 18:36, Joe Strout wrote: > I've actually been rather frustrated by Python lately. It's great at > some things, but rather poor at others. In the latter category is > building a neatly packaged executable that can be shipped to users and > run reliably on thei

Re: looking for tips on how to implement "ruby-style" Domain Specific Language in Python

2009-01-06 Thread M.-A. Lemburg
On 2009-01-06 20:42, Kay Schluehr wrote: >> How would one approach this in Python? Do I need to build a custom >> loader which compiles *.dsl files to *.pyc files? Is it possible to >> switch between the custom DSL and the standard Python interpreter? > Sure, but the

Re: python is great

2009-01-06 Thread M.-A. Lemburg
On 2009-01-06 21:24, Joe Strout wrote: > M.-A. Lemburg wrote: > >>> On the Mac in particular, if you want >>> your app to run on any PowerPC or Intel machine runing 10.4 or later, >>> and you're using anything not in the standard framework (such as &

Re: How to get millisec/fractional seconds out of a time object ?

2009-01-07 Thread M.-A. Lemburg
On 2009-01-06 22:34, da...@bag.python.org wrote: > Thanks for help to a beginner. > > script23 > import time > import datetime > start_time = datetime.datetime.now() > time.sleep(0.14) > end_time = datetime.datetime.now() >

Re: how to get the thighest bit position in big integers?

2008-10-06 Thread M.-A. Lemburg
On 2008-10-05 17:26, [EMAIL PROTECTED] wrote: > Hi, > > I'm using python to develop some proof-of-concept code for a > cryptographic application. My code makes extended use of python's > native bignum capabilities. > > In many cryptographic applications t

RE: When Python should not be used?

2008-10-06 Thread Blubaugh, David A.
Stef, May I see your open-source version of a combined Matlab + Labview program? Is there a website, I may visit?? Thanks, David Blubaugh -Original Message- From: Stef Mientki [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2008 2:07 PM To: python-list@python.org Subject

HARD REAL TIME PYTHON

2008-10-06 Thread Blubaugh, David A.
To All, I have done some additional research into the possibility of utilizing Python for hard real time development. I have seen on various websites where this has been discussed before on the internet. However, I was wondering as to how successful anyone has truly been in developing a

Re: Builing Python 2.6 on AIX 5.2

2008-10-07 Thread M.-A. Lemburg
ons/rubyonaixhowto/x72.html) > in multipocessing.c. (I realise that this breaks some other platforms, > but right now I just need to build on AIX). > > Here is a patch: > > diff -Naur Python-2.6/Modules/_multiprocessing/multiprocessing.c > Python-2.6-clean-patch/Modules/_multipr

RE: Python syntax question

2008-10-08 Thread Blubaugh, David A.
Sir, I was just wondering that the module that you are utilizing (Rpyc) is a remote process call module for python? Is this what you are developing with at this time? Thanks, David Blubaugh -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08

Re: [egenix-info] ANN: eGenix mx Base Distribution 3.1.1 for Python 2.6

2008-10-15 Thread M.-A. Lemburg
Just to let you know: we also provide binaries and support for Mac OS X Intel and PPC. Thanks to Joe Strout for pinging us about this. On 2008-10-15 17:41, eGenix Team: M.-A. Lemburg wrote: > > > A

Re: Possible read()/readline() bug?

2008-10-23 Thread M.-A. Lemburg
On 2008-10-22 23:00, kdwyer wrote: > On 22 Oct, 19:54, Mike Kent <[EMAIL PROTECTED]> wrote: >> Before I file a bug report against Python 2.5.2, I want to run this by >> the newsgroup to make sure I'm not being stupid. >> >> I have a text file of fixed-l

Re: [APSW] SELECT COUNT(*) not succesfull?

2008-10-23 Thread M.-A. Lemburg
end. > > Yes, but it doesn't work with this wrapper (APSW version 3.5.9-r1): APSW doesn't implement the DB-API and as a result, you'll run into all sorts of problem when trying to use DB-API examples with it. I'd suggest that you try pysqlite instead which does implement the

Re: [ANN]pygccxml - 1.0

2008-10-23 Thread M.-A. Lemburg
id=118209&package_id=146545&release_id=634581 > Thanks, > > Matthieu > > 2008/10/20 Roman Yakovenko <[EMAIL PROTECTED]>: >> Hello! >> >> I'm pleased to announce the 1.0 release of pygccxml. >> >> What is pygccxml? >> ===

Re: OS 10.5 build 64 bits

2008-10-23 Thread M.-A. Lemburg
_LONG" redefined >> In file included from /Users/rptlab/PYTHON/include/python2.5/Python.h:8, >> from pymemcompat.h:10, >> from _mysql.c:29: >> /Users/rptlab/PYTHON/include/python2.5/pyconfig.h:814:1: warning: this >> is the location

Re: OS 10.5 build 64 bits

2008-10-23 Thread M.-A. Lemburg
On 2008-10-23 20:28, Robin Becker wrote: > M.-A. Lemburg wrote: > igure script. >> >> The config options --with-universal-archs is used for this. In theory >> you could build a 4-way binary for Intel,PPC/32-bit,64-bit. >> Default is 32-bit only. > .

Re: Python26 compilation problem

2008-10-23 Thread M.-A. Lemburg
t more information on platform, compiler, OS there's not a lot we can do to help. Note that you normally shouldn't have such a line in config.c, unless you've modified Modules/Setup. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (

Re: 2.6, 3.0, and truly independent intepreters

2008-10-25 Thread M.-A. Lemburg
n.org/pipermail/python-dev/2000-April/003605.html Greg Stein's proposal to move forward on free threading * http://www.sauria.com/~twl/conferences/pycon2005/20050325/Python%20at%20Google.notes (scroll down to the Q&A section) Greg Stein on whether the GIL really does ma

Re: Cannot build _multiprocessing, math, mmap and readline of Python 2.6 on FreeBSD 4.11 w/ gcc 2.95.4

2008-10-25 Thread M.-A. Lemburg
; """ > > Because I don't have Berkeley DB, SQLite3 tk, GDBM installed on the > system and running FreeBSD, > there is no wonder it failed to build _bsddb, _sqlite3, _tkinter, > gdbm, linuxaudiodev, spwd and sunaudiodev. > > The problem is it failed to

Re: Cannot build _multiprocessing, math, mmap and readline of Python 2.6 on FreeBSD 4.11 w/ gcc 2.95.4

2008-10-27 Thread M.-A. Lemburg
On 2008-10-25 20:19, Akira Kitada wrote: > Hi Marc-Andre, > > Thanks for the suggestion. > I opened a ticket for this issue: http://bugs.python.org/issue4204 Thanks. > Now I understand the state of the multiprocessing module, > but it's too bad to see math, mmap and

Re: Type feedback tool?

2008-10-27 Thread M.-A. Lemburg
On 2008-10-26 13:54, Martin Vilcans wrote: > Hi list, > > I'm wondering if there's a tool that can analyze a Python program > while it runs, and generate a database with the types of arguments and > return values for each function. In a way it is like a profiler, that &

Re: Database specialized in storing directed graphs?

2008-10-28 Thread M.-A. Lemburg
On 2008-10-28 01:32, Carl Banks wrote: > I was wondering if anyone had any advice on this. > > This is not to study graph theory; I'm using the graph to represent a > problem domain. The graphs could be arbitrarily large, and could > easily have millions of nodes, a

Re: modifying locals

2008-10-31 Thread M.-A. Lemburg
On 2008-10-31 09:08, Tino Wildenhain wrote: > Hi, > > Steven D'Aprano wrote: >> On Fri, 31 Oct 2008 07:10:05 +0100, Tino Wildenhain wrote: >> >>> Also, locals() already returns a dict, no need for the exec trickery. >>> You can just modify it: >

Re: python openssl x509 CA

2008-10-31 Thread M.-A. Lemburg
ch operation > csr exports following methods: > csr.add_extensions csr.get_pubkey csr.get_subject > csr.set_pubkey csr.sign csr.verify You need to use crypto.dump_certificate() to dump and then write the certificate back to disk. BTW: There's a good exa

Re: Python 2.5: wrong number of arguments given in TypeError for function argument aggregation (dictionary input vs the norm)

2008-10-31 Thread M.-A. Lemburg
On 2008-10-31 00:18, John Krukoff wrote: > On Fri, 2008-10-31 at 08:55 +1000, James Mills wrote: >> What you have discovered is not a bug :) >> >> cheers >> James >> > > Are you sure? It looks like his complaint isn't that it doesn't work, > but

Re: Efficient way to remove objects from a list

2008-11-03 Thread M.-A. Lemburg
On 2008-11-03 12:12, M.-A. Lemburg wrote: >> 一首诗 wrote: >>> Hi all, >>> >>> Today I wrote some code like this: >>> >>> for m in self.messages: >>> if not m.finished: >>> continue >&g

Re: Efficient way to remove objects from a list

2008-11-03 Thread M.-A. Lemburg
i = [m for m in self.messages if m.finished] >> for m in fini: >> self.messages.remove(m) >> >> As you can, I want to find these finished messages in >> "self.messages", >> process them, and then remove them from the list. >> >> B

Re: PEP 249 - DB API question

2008-11-04 Thread M.-A. Lemburg
On 2008-11-04 18:52, k3xji wrote: > Hi all, > > As development goes on for a server project, it turns out that I am > using the MySQLDB and DB interactions excessively. One questions is > just bothering me, why don't we have a timeout for queries in PEP 249 > (DB API)? &g

Re: Error loading modules

2008-11-06 Thread M.-A. Lemburg
The easiest way to debug such import problems is by telling Python to be verbose: python -vv -c "import some_module" The generated output will then list all the locations where Python looks for the module and is often handy to track down reasons for Python not being able to loa

Re: Trying to set a date field in a access databse

2008-11-06 Thread M.-A. Lemburg
; access = db.OpenRecordset("select * from test") > > access.AddNew() > access.Fields("test").value=time.strptime('10:00AM', '%I:%M%p') > access.Update() > > wherer test is a datetime field, > How can I do this??? You could try to use mxODBC

Re: Step-by-step exec

2008-11-07 Thread M.-A. Lemburg
On 2008-11-07 11:48, [EMAIL PROTECTED] wrote: > On Nov 7, 11:20 am, Steven D'Aprano <[EMAIL PROTECTED] > cybersource.com.au> wrote: > >>> What I am trying to do is to execute it "step-by-step", so that I can >>> capture the exception if one l

Re: adodbapi and output parameters in stored procedures

2008-11-07 Thread M.-A. Lemburg
procedure also inserts and > accesses a table in the database. Here's what I have it boiled down > to: > > So, when I have > CREATE PROCEDURE sp_DeleteMeOnlyForTesting > @theInput varchar(50), > @theOtherInput varchar(50),

Re: adodbapi and output parameters in stored procedures

2008-11-08 Thread M.-A. Lemburg
ry this (I haven't checked that it works, but it's a possibility), assuming your query uses the order SELECT, INSERT, SELECT: # Fetch results from first SELECT test_table_result_set = cursor.fetchall() cursor.nextset() # Ignore "empty" result set cursor.nextset() # Fetc

Re: Python 3.0 - is this true?

2008-11-11 Thread M.-A. Lemburg
u've been lucky to never > need to sort objects that cause it to break. If you read Duncan's email, he isn't talking about arbitrary objects at all. He's just referring to being able to sort lists that contain None elements. That's far from arbitrary and does work con

Re: need to suspend/resume a child thread

2008-11-13 Thread M.-A. Lemburg
On 2008-11-13 02:57, scsoce wrote: > A child thread has a long-time executions, how to suspend it and resume > back the orignial place ? I know it' nature to use singal, but child > thread cannot get signal as Python Manual say. And i dnt like to check > status variable

Re: Easy caching

2008-11-13 Thread M.-A. Lemburg
base_access(self): >> ... return self.value_in_database >> ... >> ... @property >> ... def show(self): >> ... result = self.very_slow_database_access() >> ... self.show = result >> ... return result >> ... > >

Re: Python IF THEN chain equivalence

2008-11-13 Thread M.-A. Lemburg
On 2008-11-13 23:31, jzakiya wrote: > On Nov 13, 5:21 pm, Alan Baljeu <[EMAIL PROTECTED]> wrote: >> I think you should rethink your post. The first case you posted makes no >> sense in any language I know. Also, a whole lot of nested IF's is a bad >> idea in an

Re: Python IF THEN chain equivalence

2008-11-13 Thread M.-A. Lemburg
On 2008-11-14 00:19, jzakiya wrote: > On Nov 13, 5:48 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: >>>> From: jzakiya <[EMAIL PROTECTED]> >>>> To: [EMAIL PROTECTED] >>>> Sent: Thursday, November 13, 2008 5:06:53 PM >>>> Su

Re: how to get all repeated group with regular expression

2008-11-21 Thread M.-A. Lemburg
On 2008-11-21 15:31, scsoce wrote: > say, when I try to search and match every char from variable length > string, such as string '123456', ??? That's a strange requirement. If you want to match every character, then why are you using a regular expression for this ? > i

Re: Need help converting text to csv format

2008-11-21 Thread M.-A. Lemburg
On 2008-11-21 16:18, Chuck Connors wrote: > Hey guys. I'm working on a little program to help my wife catalog her/ > our coupons. I found a good resource but need help formatting the > text data so that I can import it into a mysql database. Here's the > data format:

<    2   3   4   5   6   7   8   9   10   11   >