Re: PyCrypto AES MODE_CBC - How to?

2009-02-26 Thread M.-A. Lemburg
On 2009-02-25 13:25, Helmut Jarausch wrote: > Helmut Jarausch wrote: >> Hi, >> >> I've just tried to write a simple example using PyCrypto's >> AES (CBC mode) >> >> #!/usr/bin/python >> from Crypto.Cipher import AES >> >> PWD=

Re: split problem if the delimiter is inside the text limiter

2009-03-19 Thread M.-A. Lemburg
On 2009-03-19 00:30, Tim Chase wrote: > Bruno Desthuilliers wrote: >> Tim Chase a écrit : >>> (if your columns in your CSV happen to match the order of your INSERT >>> statement, you can just use >>> >>> execute(sql, tuple(row)) >> &g

Re: mxODBC (was "split problem if the delimiter is inside the text limiter")

2009-03-19 Thread M.-A. Lemburg
My > (albeit somewhat-antiquated) version balked at anything that wasn't a > list/tuple (don't remember off the top of my head which it was). For a > lot of my ETL work, it would be nice to pass a generator so I don't have > to keep huge datasets in memory. cursor.execut

Re: Unicode problem in ucs4

2009-03-20 Thread M.-A. Lemburg
On 2009-03-20 12:13, abhi wrote: > On Mar 20, 11:03 am, "Martin v. Löwis" wrote: >>> Any idea on why this is happening? >> Can you provide a complete example? Your code looks correct, and should >> just work. >> >> How do you know the result contains

Re: Unicode problem in ucs4

2009-03-23 Thread M.-A. Lemburg
On 2009-03-23 08:18, abhi wrote: > On Mar 20, 5:47 pm, "M.-A. Lemburg" wrote: >>> unicodeTest.c >>> #include >>> static PyObject *unicode_helper(PyObject *self,PyObject *args){ >>>PyObject *sampleObj = NULL; >>>Py_UNICOD

Re: Unicode problem in ucs4

2009-03-23 Thread M.-A. Lemburg
On 2009-03-23 11:50, abhi wrote: > On Mar 23, 3:04 pm, "M.-A. Lemburg" wrote: > Thanks Marc, John, > With your help, I am at least somewhere. I re-wrote the code > to compare Py_Unicode and wchar_t outputs and they both look exactly > the same. > >

Re: Unicode problem in ucs4

2009-03-23 Thread M.-A. Lemburg
On 2009-03-23 14:05, abhi wrote: > Hi Marc, >Is there any way to ensure that wchar_t size would always be 2 > instead of 4 in ucs4 configured python? Googling gave me the > impression that there is some logic written in PyUnicode_AsWideChar() > which can take care of ucs4 to ucs2 conversion

Re: Unicode problem in ucs4

2009-03-23 Thread M.-A. Lemburg
ng API. >> >>object is passed through the encoder function found for the given >>encoding using the error handling method defined by errors. errors >>may be NULL to use the default method defined for the codec. >> >>Raises a LookupError in ca

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-02 Thread M.-A. Lemburg
=== > > Rather than using an imperative mechanism for importing packages, a > declarative approach is proposed here, as an extension to the existing > ``*.pkg`` mechanism. > > The import statement is extended so that it directly considers ``*.pkg`` > files during import; a directory

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-07 Thread M.-A. Lemburg
[Resent due to a python.org mail server problem] On 2009-04-03 22:07, Martin v. Löwis wrote: >> I'd like to extend the proposal to Python 2.7 and later. > > I don't object, but I also don't want to propose this, so > I added it to the discussion. > > My (an

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-07 Thread M.-A. Lemburg
On 2009-04-03 02:44, P.J. Eby wrote: > At 10:33 PM 4/2/2009 +0200, M.-A. Lemburg wrote: >> Alternative Approach: >> - >> >> Wouldn't it be better to stick with a simpler approach and look for >> "__pkg__.py" files to detect name

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-07 Thread M.-A. Lemburg
On 2009-04-07 16:05, P.J. Eby wrote: > At 02:30 PM 4/7/2009 +0200, M.-A. Lemburg wrote: >> >> Wouldn't it be better to stick with a simpler approach and look for >> >> "__pkg__.py" files to detect namespace packages using that O(1) >> check

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-14 Thread M.-A. Lemburg
On 2009-04-07 19:46, P.J. Eby wrote: > At 04:58 PM 4/7/2009 +0200, M.-A. Lemburg wrote: >> On 2009-04-07 16:05, P.J. Eby wrote: >> > At 02:30 PM 4/7/2009 +0200, M.-A. Lemburg wrote: >> >> >> Wouldn't it be better to stick with a simpler approach and look

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-14 Thread M.-A. Lemburg
On 2009-04-14 18:27, P.J. Eby wrote: > At 05:02 PM 4/14/2009 +0200, M.-A. Lemburg wrote: >> I don't see the emphasis in the PEP on Linux distribution support and the >> remote possibility of them wanting to combine separate packages back >> into one package as good argum

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-15 Thread M.-A. Lemburg
On 2009-04-15 02:32, P.J. Eby wrote: > At 10:59 PM 4/14/2009 +0200, M.-A. Lemburg wrote: >> You are missing the point: When breaking up a large package that lives in >> site-packages into smaller distribution bundles, you don't need namespace >> packages at all, so the PE

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-15 Thread M.-A. Lemburg
On 2009-04-15 16:44, P.J. Eby wrote: > At 09:51 AM 4/15/2009 +0200, M.-A. Lemburg wrote: >> On 2009-04-15 02:32, P.J. Eby wrote: >> > At 10:59 PM 4/14/2009 +0200, M.-A. Lemburg wrote: >> >> You are missing the point: When breaking up a large package that >&g

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-15 Thread M.-A. Lemburg
On 2009-04-15 19:38, James Y Knight wrote: > > On Apr 15, 2009, at 12:15 PM, M.-A. Lemburg wrote: > >> The much more common use case is that of wanting to have a base package >> installation which optional add-ons that live in the same logical >> package namespace. &

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-15 Thread M.-A. Lemburg
On 2009-04-15 19:59, P.J. Eby wrote: > At 06:15 PM 4/15/2009 +0200, M.-A. Lemburg wrote: >> The much more common use case is that of wanting to have a base package >> installation which optional add-ons that live in the same logical >> package namespace. > > Please s

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread M.-A. Lemburg
On 2009-04-22 22:06, Walter Dörwald wrote: > Martin v. Löwis wrote: >>> "correct" -> "corrected" >> Thanks, fixed. >> >>>> To convert non-decodable bytes, a new error handler "python-escape" is >>>> introduced,

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-25 Thread M.-A. Lemburg
Martin v. Löwis wrote: > Thomas Wouters reminded me of a long-standing idea; I finally > found the time to write it down. > > Please comment! > ... > Up until this PEP proposal, we had a very simple scheme for the Python C-API: all documented functions and variables with a &qu

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-26 Thread M.-A. Lemburg
Martin v. Löwis wrote: >> Now, with the PEP, I have a feeling that the Python C-API >> will in effect be limited to what's in the PEP's idea of >> a usable ABI and open up the non-inluded public C-APIs >> to the same rate of change as the private APIs. > >

Re: Is there no single/uniform RDBMS access API module for Python ?

2008-05-13 Thread M.-A. Lemburg
On 2008-05-12 07:43, Banibrata Dutta wrote: Hi, Again a noob question. Based on this URL http://wiki.python.org/moin/DatabaseInterfaces , is it correct to conclude that there is no RDBMS agnostic, single/uniform DB access API for Python ? Something in the lines of JDBC for Java, DBD for Perl

HASH TABLES IN PYTHON

2008-05-14 Thread Blubaugh, David A.
To Whom It May Concern, I was wondering if anyone has ever worked with hash tables within the Python Programming language? I will need to utilize this ability for quick numerical calculations. Thank You, David Blubaugh This e-mail transmission contains information that is confidential

Re: multiple databases, what's the best interface ?

2008-05-18 Thread M.-A. Lemburg
, not web based). I would like to write the applications in Python. What's the best interface so I can use the same program for all databases, and just have to change the database name, if I want to use another database ? If you need a common interface on all the platforms, then I'd s

scaling problems

2008-05-19 Thread James A. Donald
creating a new variable and utilizing an existing variable, so the interpreter fails to catch typos and name collisions. I am inclined to suspect that when a successful small python program turns into a large python program, it rapidly reaches ninety percent complete, and remains ninety percent

Re: scaling problems

2008-05-19 Thread James A. Donald
> > 1. Looks to me that python will not scale to very large programs, > > partly because of the lack of static typing, but mostly because there > > is no distinction between creating a new variable and utilizing an > > existing variable, Ben Finney > This seems quite

Re: scaling problems

2008-05-19 Thread James A. Donald
> > 2. It is not clear to me how a python web application scales. Python > > is inherently single threaded, so one will need lots of python > > processes on lots of computers, with the database software handling > > parallel accesses to the same or related data. One coul

Re: scaling problems

2008-05-19 Thread James A. Donald
On Mon, 19 May 2008 21:04:28 -0400, "David Stanek" <[EMAIL PROTECTED]> wrote: > What is the difference if you have a process with 10 threads or 10 > separate processes running in parallel? Apache is a good example of a > server that may be configured to use multiple proce

Re: writing python extensions in assembly

2008-05-22 Thread James A. Donald
On Fri, 16 May 2008 11:21:39 -0400, "inhahe" <[EMAIL PROTECTED]> wrote: > They say that the C++ optimizer can usually optimize > better than a person coding in assembler by hand can, > but I just can't believe that, at least for me, > because when I code in a

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread M.-A. Lemburg
sql = unicode(sql, self.Encoding) LookupError: unknown encoding: utf_8_euro At the application (DABO) mailing list, they have pointed that this has to be a Python issue. As I'm a totally python newbie, I would ask if somebody has experimented this kind of error, and if there is any known sol

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread M.-A. Lemburg
On 2008-05-30 22:37, M.-A. Lemburg wrote: On 2008-05-30 17:41, Peter Otten wrote: Josep wrote: I'm playing with an application framework (or kinda) that's developed with python, and it throws this error: File "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/

Re: Database Query Contains Old Data

2008-06-02 Thread James A. Donald
tgreSQL, this particular problem would not have occurred, but there > are other reasons to be aware of the effects of long duration > transactions in PostgreSQL, and the practice of periodically > performing a rollback would still be worth considering with that > database system. If o

Re: Database Query Contains Old Data

2008-06-03 Thread James A. Donald
On Mon, 02 Jun 2008 20:59:09 -0700, <[EMAIL PROTECTED]> wrote: James A. Donald > > If one has transactions open for a long time, or transactions that > > involve a great deal of data, this will result in poor performance or > > poor scalability. But one may have such la

Re: Database Query Contains Old Data

2008-06-03 Thread M.-A. Lemburg
On 2008-06-03 00:17, James A. Donald wrote: On Wed, 21 May 2008 07:23:04 -0700 (PDT), Paul Boddie MySQL appears to use "repeatable read" by default [1] as its transaction isolation level, whereas PostgreSQL (for example) uses "read committed" by default [2]. I would guess th

Re: Database Query Contains Old Data

2008-06-03 Thread James A. Donald
On Tue, 03 Jun 2008 12:07:07 +0200, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > As others have mentioned, in systems that have long running logical > transactions, it's usually best to collect the data until the very > end and then apply all changes in one go (and o

Re: Database Query Contains Old Data

2008-06-04 Thread M.-A. Lemburg
On 2008-06-03 14:29, James A. Donald wrote: On Tue, 03 Jun 2008 12:07:07 +0200, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: As others have mentioned, in systems that have long running logical transactions, it's usually best to collect the data until the very end and then app

Re: a python phpmyadmin like program

2008-06-04 Thread M.-A. Lemburg
On 2008-06-03 20:49, Gandalf wrote: is their any graphic program for handling sqlite like phpmyadmin or access in python? If you run Firefox: https://addons.mozilla.org/en-US/firefox/addon/5817 -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jun

Re: Keep a script running in the background

2008-06-04 Thread M.-A. Lemburg
On 2008-06-04 01:33, Guillermo wrote: These are the basic requirements: Script A must keep a dictionary in memory constantly and script B must be able to access and update this dictionary at any time. Script B will start and end several times, but script A would ideally keep running until it&#

FPC: Exception : Unknown Run-Time error : 210

2008-06-12 Thread Sa�a Bistrovi�
Sa¹a Bistroviæ Antuna Mihanviæa 13 4 Èakovec Croatia [EMAIL PROTECTED] FPC: Exception : Unknown Run-Time error : 210 Hi, I'm Sa¹a from Croatia. And I have : Windows XP PRO SP3. Pentium II MMX 400MHz. 256 MB of RAM. I tried to compile fp.pas. But I get this error message : &#x

Re: Exception : Unknown Run-Time error : 210

2008-06-12 Thread Sa�a Bistrovi�
"Sa¹a Bistroviæ" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sa¹a Bistroviæ > Antuna Mihanviæa 13 > 4 Èakovec > Croatia > [EMAIL PROTECTED] > > FPC: Exception : Unknown Run-Time error : 210 > > Hi, I'm Sa¹a from

Re: [egenix-info] Re: ANN: eGenix pyOpenSSL Distribution 0.7.0-0.9.8h-1

2008-06-13 Thread M.-A. Lemburg
On 2008-06-13 11:27, eGenix Team: M.-A. Lemburg wrote: On 2008-06-13 09:39, Helmut Jarausch wrote: eGenix Team: M.-A. Lemburg wrote: ANNOUNCING eGenix.com pyOpenSSL Distribution

RE: Python-list Digest, Vol 57, Issue 206

2008-06-13 Thread STEVEN A JACKSON
Is there a Python programmer living near Bend Oregon that I could call via phone & ask some questions on how they accomplish certain tasks? I’ve been programming using several languages for over fifty years, but am unable to get Python to due what I would like to do! Papa Jackson

Re: Temporal Databases (Database design questions)

2008-06-18 Thread M.-A. Lemburg
On 2008-06-18 09:41, David wrote: Question 3: Temporal databases http://en.wikipedia.org/wiki/Temporal_database I haven't used them before, but I like the idea of never deleting/updating records so you have a complete history (a bit like source code version control). How well do tem

Re: Getting column names from a cursor using ODBC module?

2008-06-27 Thread M.-A. Lemburg
John Machin wrote: > On Jun 21, 11:58 pm, [EMAIL PROTECTED] wrote: >> Is there any way to retrieve column names from a cursor using the ODBC >> module? Or must I, in advance, create a dictionary of column position >> and column names for a particular table before I can acces

Re: Multiprecision arithmetic library question.

2008-06-27 Thread M.-A. Lemburg
t; as C is built for speed. >> >> I've been fooling around. Ran dir(gmpy), and it does not show the full >> complement of GMP >> library functions, such as the various division >> functions. e.g. mpz_tdiv_qr. >> > > There's also > http://www.egen

Re: convert unicode characters to visibly similar ascii characters

2008-07-02 Thread M.-A. Lemburg
notation.find('QUOTATION')!=-1:\n\treturn "'"`. I believe there is more elegant way. Am I right? You could write a codec which translates Unicode into a ASCII lookalike characters, but AFAIK there is no standard for doing this. I guess the best choice is to use the Unicod

Re: Win32.client, DAO.DBEngine and exceeding the file sharing count lock

2008-07-02 Thread M.-A. Lemburg
On 2008-07-02 16:54, Iain King wrote: On Jul 2, 3:29 pm, Tim Golden <[EMAIL PROTECTED]> wrote: Iain King wrote: Hi. I'm using the win32 module to access an Access database, but I'm running into the File Sharing lock count as inhttp://support.microsoft.com/kb/815281 The solution I'd like to us

Re: Converting from local -> UTC

2008-07-17 Thread M.-A. Lemburg
On 2008-07-16 20:00, Keith Hughitt wrote: Thanks Gabriel! That helps clear things up for me. The above method works very well. I only have one remaining question: How can I pass a datetime object to MySQL?' So far, what I've been doing is building the query as a string, for examp

Re: Converting from local -> UTC

2008-07-17 Thread M.-A. Lemburg
On 2008-07-17 22:43, Dennis Lee Bieber wrote: On Thu, 17 Jul 2008 19:55:44 +0200, "M.-A. Lemburg" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: Use binding parameters and it should work: query = "INSERT INTO image VALUES(%d, %d, %s, '%s'

Re: Converting from local -> UTC

2008-07-18 Thread M.-A. Lemburg
On 2008-07-18 05:28, Dennis Lee Bieber wrote: On Thu, 17 Jul 2008 20:26:11 -0300, "Gabriel Genellina" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: Note that I used %s everywhere (it's just a placeholder, not a format) and Unfortun

Re: persistent deque (continued)

2008-07-21 Thread M.-A. Lemburg
On 2008-07-21 21:08, castironpi wrote: Some time ago, I was asking about the feasibility of a persistent deque, a double-ended queue. You might want to have a look at mxBeeBase: http://www.egenix.com/products/python/mxBase/mxBeeBase/ Using the integer index you could probably write an on

Re: Questions on 64 bit versions of Python

2008-07-25 Thread M.-A. Lemburg
On 2008-07-25 08:13, [EMAIL PROTECTED] wrote: Background: I'm going to be processing some raw transaction logs that are 30G in size. As part of this processing I may need to create some very large dictionary structures. I will be running my scripts on a version of Windows 2003 Server Enter

Re: Gracefull application exit.

2008-07-26 Thread M.-A. Lemburg
On 2008-07-24 18:06, Robert Rawlins wrote: Chaps, I'm looking to implement an exit/termination process for an application which can be triggered by A) a keyboard interrupt or B) termination of the application as a Daemon using a signal. I have a whole bunch of tasks I want to pe

Re: Gracefull application exit.

2008-07-26 Thread M.-A. Lemburg
On 2008-07-26 20:30, M.-A. Lemburg wrote: On 2008-07-24 18:06, Robert Rawlins wrote: Chaps, I'm looking to implement an exit/termination process for an application which can be triggered by A) a keyboard interrupt or B) termination of the application as a Daemon using a signal.

Re: xlrd: error open_workbook

2008-07-29 Thread M.-A. Lemburg
*open_workbook*function: wb = xlrd.open_workbook('myworkbook.xls') but when I try to open a file from one specific site, I get the error message: In [2]: wb = xlrd.open_workbook('balanco.xls') WARNING *** file size (81192) not 512 + multiple of sector size (512) WARNING *** OLE2

Re: Optimizing size of very large dictionaries

2008-07-31 Thread M.-A. Lemburg
On 2008-07-31 02:29, [EMAIL PROTECTED] wrote: Are there any techniques I can use to strip a dictionary data structure down to the smallest memory overhead possible? I'm working on a project where my available RAM is limited to 2G and I would like to use very large dictionaries vs. a tradit

Re: Interbase

2008-07-31 Thread M.-A. Lemburg
On 2008-07-30 18:49, Mike Hjorleifsson wrote: Has anyone gotten python working with Interbase database platform ? I need to query some info from an interbase database on another server need a lil help getting started. You could try the EasySoft ODBC driver for InterBase: http

Re: DB-API corner case (psycopg2)

2008-08-01 Thread M.-A. Lemburg
xecute('''SELECT '%' ''', ()) # Does fail Traceback (most recent call last): File "/localhome/modw/tmp/t.py", line 5, in cursor.execute('''SELECT '%' ''', ()) # Does fail IndexError: tuple index out of r

Re: DB-API corner case (psycopg2)

2008-08-01 Thread M.-A. Lemburg
On 2008-08-01 20:38, Thomas Guettler wrote: I forgot to mention where I stumbled about this. Django has a wrapper: http://code.djangoproject.com/browser/django/trunk/django/db/backends/util.py def execute(self, sql, params=()): start = time() try

Re: mktime overflow in March 2008?

2008-08-07 Thread M.-A. Lemburg
On 2008-08-07 20:40, Robert Latest wrote: Here's what happens on my Windows machine (Win XP / Cygwin) at work. I've googled a bit about this problem but only found references to instances where people referred to dates before the Epoch. Of course at home on my Linux box everything

Re: Fastest way to store ints and floats on disk

2008-08-07 Thread M.-A. Lemburg
On 2008-08-07 20:41, Laszlo Nagy wrote: Hi, I'm working on a pivot table. I would like to write it in Python. I know, I should be doing that in C, but I would like to create a cross platform version which can deal with smaller databases (not more than a million facts). The data is

Re: very rare python expression

2008-08-12 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, Paul Rubin <http://[EMAIL PROTECTED]> wrote: >"ðÏ" <[EMAIL PROTECTED]> writes: >> I saw a strange python code in pygame project. What does "while >> not(x&528or x in l):" mean? Below code works in python2

Re: Replace Several Items

2008-08-14 Thread M.-A. Lemburg
ot;, "").replace(".", "").replace("/", "").replace(")", "").replace("(", "") But I think it's a ugly way. What's the better way to do it? -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Vellum 0.4 (it builds things, mostly books)

2008-03-31 Thread Zed A. Shaw
Hi All, I'd like to just announce that I've cranked out a fun little Python project named Vellum. It is an attempt at a Python make alternative written in about 200 lines of Python: http://www.zedshaw.com/projects/vellum/ It currently actually works, and can take a YAML or Python f

[ANN] Vellum 0.7: Simple Python Can Build Many Things

2008-04-01 Thread Zed A. Shaw
Hi All, This is another announce for my fun little make,Rake,Scons alternative named Vellum. The goal of Vellum is to create a complete build system in the least amount of clean Python as possible, while keeping the build mechanism safe from code injection (if you need that). == STATUS I went

Re: object-relational mappers

2008-04-03 Thread M.-A. Lemburg
On 2008-04-01 22:40, Aaron Watters wrote: > I've been poking around the world of object-relational > mappers and it inspired me to coin a corellary to the > the famous quote on regular expressions: > > "You have objects and a database: that's 2 problems. > So

Re: Unicode conversion problem (codec can't decode)

2008-04-04 Thread M.-A. Lemburg
On 2008-04-04 08:18, Jason Scheirer wrote: > On Apr 3, 9:35 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: >> I'm having a problem (Python 2.4) converting strings with random 8-bit >> characters into an escape form which is 7-bit clean for storage in a

[ANN] Vellum 0.8: No More YAML, Some Python

2008-04-05 Thread Zed A. Shaw
Hello Everyone, This is a very fast announcement to say that I've managed to remove YAML from Vellum, but also to remove Python while still giving you Python. :-) Check out the latest Vellum: http://www.zedshaw.com/projects/vellum/ https://launchpad.net/vellum And you'll notice that

Re: Learning curve for new database program with Python?

2008-04-07 Thread M.-A. Lemburg
> > And then learn more advanced SQL: joins, nested selects, pivot tables and > stored procedures. You can do a lot of processing "inside" the database > which cuts down on data running over the wire. > > SQL is one of the areas I wish I had mastered (much) earlier in

Re: Learning curve for new database program with Python?

2008-04-09 Thread M.-A. Lemburg
On 2008-04-07 20:19, Gary Duzan wrote: > In article <[EMAIL PROTECTED]>, > M.-A. Lemburg <[EMAIL PROTECTED]> wrote: >> On 2008-04-07 15:30, Greg Lindstrom wrote: >>> SQL is one of the areas I wish I had mastered (much) earlier in my career >> Fully agree :

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-14 Thread M.-A. Lemburg
On 2008-04-13 18:57, [EMAIL PROTECTED] wrote: > I'm investigating the possible use of Mecurial SCM as a replacement > for CVS. Mecurial is written in Python. I have a background in GNU/ > Linux, Solaris, sparc and Perl. However AIX, powerpc and Python are > new to me. On AIX

[ANN] Vellum 0.13: Simple Python Build Tool (usable now)

2008-04-16 Thread Zed A. Shaw
Hello Everyone, Insomnia has blessed me with the ability to make another release of Vellum for all to play with and try using. Features in this release: * The ability to make your own commands for your build specs in plain old Python as a Python module. * The docstring comments on your vellum

Re: Python module for reading FilePro files?

2008-04-17 Thread M.-A. Lemburg
On 2008-04-16 15:53, Steve Bergman wrote: > Does anyone know of a Python package or module to read data files from > the venerable old Filepro crossplatform database/IDE? No, but there is Filepro support in PHP, so you could write a PHP script which reads the data and then exports it t

Re: Tidy module?

2008-04-17 Thread M.-A. Lemburg
On 2008-04-17 21:00, Mark Reed wrote: > Is there an easy_installable egg with an interface to libtidy? I > found µTidy, but it looks like an inactive project, with no updates > since 2004, so I'm skeptical of its reliability. I found mxTidy, but > it's only available as part of some larger distri

Re: Database vs Data Structure?

2008-04-18 Thread M.-A. Lemburg
On 2008-04-18 05:37, erikcw wrote: > Hi, > > I'm working on a web application where each user will be creating > several "projects" in there account, each with 1,000-50,000 objects. > Each object will consist of a unique name, an id, and some meta data. > >

Re: How to print a unicode string?

2008-04-19 Thread M.-A. Lemburg
thon will have to convert these to Unicode before applying the UTF-8 codec and uses the default encoding for this, which is ASCII. You could wrap sys.stdout using a codecs.EncodedFile() which provides transparent recoding, but then you have problems with Unicode objects, since the recoder assumes t

MESSAGE RESPONSE

2008-04-23 Thread Blubaugh, David A.
Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. David Blubaugh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent

RE: Lucky gay sucking cock while butt fucked deep

2008-04-23 Thread Blubaugh, David A.
Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. David Blubaugh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent

Re: @classmethod question

2008-04-24 Thread M.-A. Lemburg
ithin the class definition, 'isinstance' has nothing to compare to because the class does not appear to exist. This is NOT a great example, but it outlines the the code: class RecipieClass: def __init__(self): pass @classmethod

RE: MESSAGE RESPONSE

2008-04-24 Thread Blubaugh, David A.
: Re: MESSAGE RESPONSE On Wed, Apr 23, 2008 at 10:24 AM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > Blubaugh, David A. schrieb: > > > Is there a way to block these messages. I do not want to be caught > > with filth such as this material. I could lose my job w

Re: convert xhtml back to html

2008-04-24 Thread M.-A. Lemburg
'meta', 'link' tags, not just the simple 'br' and 'hr' tags. Well, maybe there's a simple way to do that with regexps, but my simpleminded )]+/> doesn't work. I'm not enough of a regexp pro to figure out that lookahead stuff. I'm n

Re: Installer

2008-04-24 Thread M.-A. Lemburg
On 2008-04-24 18:39, Chris wrote: Hey all, I've created a python program that relies on pysqlite, wxpython, and matplotlib. Is there any way of creating an installer that will install all these modules, python 2.5 and my program? Assuming that you're on Windows, a well-working appr

Re: python-ldap - Operations Error

2008-04-24 Thread t . a . adjuster
on was to be sure that, when iterating over our search results, we just scrubbed out the referrals that were returned (based on the referrals being lists and the real search results being dictionaries). This is a bit quick and dirty, perhaps, but it's what did the trick for us. Ev

]ANN[ Vellum 0.16: Lots Of Documentation and Watching

2008-04-29 Thread Zed A. Shaw
Hi Everyone, Just putting out an announcement that I've released a new version of Vellum numbered 0.16. This version should be ready for people to use as not much of the internal structure has changed in a great many commits and it contains all the latest bug fixes. It also has the beginni

Re: Need Python alternative to Request-Tracker help desk software

2008-04-29 Thread M.-A. Lemburg
On 2008-04-29 22:15, Sells, Fred wrote: I've been tasked with either implementing Request-Tracker to upgrade our help desk issue tracking system or finding a Python equivalent (both in terms of functionality and wide spread use). Request-Tracker uses Apache and MySQL, which would al

Re: Problem with variables assigned to variables???

2008-04-30 Thread M.-A. Lemburg
On 2008-04-30 07:25, [EMAIL PROTECTED] wrote: I have a simple line of code that requires the following inputs - an input file, output file and a SQL expression. the code needs to be run with several different SQL expressions to produce multiple output files. To do this I first created a list

Re: Python -v import behavior

2008-05-01 Thread M.-A. Lemburg
On 2008-04-30 18:42, Sean Ryan wrote: Hi all, (A similar question was posted by a colleague, but did not appear to reach comp.lang.python or this list). I am wondering if the -v option causes the python application to be more tolerant to module import warnings and / or errors. The reason is

Re: Best way to store config or preferences in a multi-platform way.

2008-05-01 Thread M.-A. Lemburg
On 2008-05-01 13:37, Lance Gamet wrote: Hi, python beginner starting a new project here. This project will store most of its actual data in a shared-database, but I have a small amount of user specific data that I need to be stored like configuration or preferences for example, the list of

Re: psycopg2 ReferenceManual

2008-05-06 Thread M.-A. Lemburg
On 2008-04-30 16:52, David Anderson wrote: Hi all, where can I find the reference manual from the psycopg2 or the dbapi2.0 because in their official pages I could'nt find The Python DB-API 2.0 is defined in the PEP 249: http://www.python.org/dev/peps/pep-0249/ -- Marc-Andre Lemburg eGenix.com

Re: config files in python

2008-05-06 Thread M.-A. Lemburg
On 2008-05-06 01:16, Matimus wrote: On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote: Hi, In my application, I have some configurable information which is used by different processes. currently I have stored configration in a conf.py file as name=value pairs, and I am importing c

Re: config files in python

2008-05-06 Thread M.-A. Lemburg
On 2008-05-06 11:07, Jorge Vargas wrote: On Tue, May 6, 2008 at 4:33 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: On 2008-05-06 01:16, Matimus wrote: On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote: Hi, In my application, I have some configurable information whic

RE: Bit twiddling floating point numbers

2008-05-06 Thread Blubaugh, David A.
Sorry for the reply. I did not get your message until now. I was wondering if there was a way to develop floating-point mathematics package within a module. I was wondering if some of your work on bit twiddling floating - point numbers could be provided to me!!! Thanks. David Blubaugh

mxTexTools (Re: using sqlite3 - execute vs. executemany; committing ...)

2008-05-07 Thread M.-A. Lemburg
speed while still being programmable in Python and without a compiler. It is a low level parsing engine. Here's talk I gave on mxTextTools last year: http://www.egenix.com/library/presentations/EuroPython2007-Parsing-Languages-with-mxTextTools/ If you're looking for ways to hide the compl

Re: Writing elapsed time as a string

2008-05-08 Thread M.-A. Lemburg
On 2008-05-08 14:31, Gabriel Genellina wrote: En Fri, 02 May 2008 16:13:41 -0300, Simon Pickles <[EMAIL PROTECTED]> escribió: I'm sorry if this has been asked a thousand (million) times. Is there a nifty pythonesque way to produce a string representing an elapsed time period,

Re: Best technology for agent/web server architecture

2008-05-08 Thread M.-A. Lemburg
On 2008-05-08 16:16, Florencio Cano wrote: Hi, I would be interested in your opinion about what technology you considear the ideal technology for implementing in Python an agent that should comunicate information to a web server. I have read about SOAP but I'm now sure if this will be the

Using Python to shared memory resources between Linux and Windows

2008-08-26 Thread Blubaugh, David A.
To All, I was wondering if it was possible to utilize python to share a memory resource between a linux and windows system?? It should be stated that both the Linux (CENTOS 5) and windows are physically located on the same computer. Is any of this possible? Thanks, David Blubaugh

RE: Using Python to shared memory resources between Linux and Windows

2008-08-26 Thread Blubaugh, David A.
Diez, What you have said is extremely concerning. I am now using VMware. With Linux as the Master and windows as the guest operating system. I was wondering if you have ever had to develop a share memory resource between Linux and windows within a Vmware setup? Thanks for the help. I

FW: Using Python to shared memory resources between Linux and Windows

2008-08-26 Thread Blubaugh, David A.
Diez, What you have said is extremely concerning. I am now using VMware. With Linux as the Master and windows as the guest operating system. I was wondering if you have ever had to develop a share memory resource between Linux and windows within a Vmware setup? Thanks for the help. It

Re: Python and database unittests

2008-08-27 Thread M.-A. Lemburg
On 2008-08-26 23:35, Daniel wrote: > Hello, > > I'm writing an application that interacts with a database. As I think > about how to write the unittests, I want them to be able to run > without actually having to access a live database. The pattern that > best describes

Re: How can this script fail?

2008-08-27 Thread M.-A. Lemburg
On 2008-08-27 12:37, [EMAIL PROTECTED] wrote: > Hello, > > it's still me, being unable to load certain modules (for instance, > odbc) in scripts that run though IDLE. I've now written a self- > containing script that illustrates the whole problem: I don't think t

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