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. > > The number of objects will grow and shr

Re: How to print a unicode string?

2008-04-19 Thread M.-A. Lemburg
On 2008-04-19 03:09, [EMAIL PROTECTED] wrote: > Another poster pointed me to >>> sys.stdout = codecs.getwriter("UTF-8")(sys.stdout) > and this works great. All I want now is some reassurance that this is > the most appropriate way for me to achieve what I want (e.g. least > likely to break with fut

Re: @classmethod question

2008-04-24 Thread M.-A. Lemburg
On 2008-04-24 05:27, Scott SA wrote: Hi, I'm using the @classemethod decorator for some convenience methods and for some reason, either mental block or otherwise, can't seem to figure out how to elegantly detect if the call is from an instance or not. Here's the problem: Within the class defi

Re: convert xhtml back to html

2008-04-24 Thread M.-A. Lemburg
On 2008-04-24 19:16, John Krukoff wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Tim Arnold Sent: Thursday, April 24, 2008 9:34 AM To: python-list@python.org Subject: convert xhtml back to html hi, I've got lots of xhtml pages that need t

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 approach is to w

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 also be appr

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 of

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 th

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 dat

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 conf.py fil

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

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

2008-05-07 Thread M.-A. Lemburg
On 2008-05-07 00:07, Vlastimil Brom wrote: Thanks for reminding me about the mxTextTools; I looked at this package very quickly several months ago and it seemed quite complex and heavy-weight, but maybe I will reconsider this after some investigation ... mxTextTools gives you almost full C spee

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, in terms of years

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 right o

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 this is here: > > http:/

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 this is related to IDLE or your set

Re: How can this script fail?

2008-08-27 Thread M.-A. Lemburg
On 2008-08-27 13:15, [EMAIL PROTECTED] wrote: > On Aug 27, 1:08 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > >> I don't think this is related to IDLE or your setup. The odbc >> module is very old and unmaintained, so it's possible that Windows >&

Re: (in memory) database

2008-09-01 Thread M.-A. Lemburg
On 2008-08-31 15:15, mark wrote: > Hi there, > > I need to extract data from text files (~4 GB) on this data some > operations are performed like avg, max, min, group etc. The result is > formated and written in some other text files (some KB). > > I currently think about database tools might be

Re: PyGUI as a standard GUI API for Python?

2008-09-04 Thread M.-A. Lemburg
On 2008-09-04 07:49, Kay Schluehr wrote: > 3) Following the public rumor mill and the latest hype RIA i.e. the > merge of web- and desktop applications with systems like Adobe AIR, > JavaFX, Google Gears and MS Silverlight is the future of frontend > development. With the exception of IronPython an

Re: PyGUI as a standard GUI API for Python?

2008-09-04 Thread M.-A. Lemburg
On 2008-09-04 11:14, Kay Schluehr wrote: > On 4 Sep., 10:31, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: >> On 2008-09-04 07:49, Kay Schluehr wrote: >> >>> 3) Following the public rumor mill and the latest hype RIA i.e. the >>> merge of web- and

Re: PyGUI as a standard GUI API for Python?

2008-09-04 Thread M.-A. Lemburg
On 2008-09-04 12:57, Banibrata Dutta wrote: > On Thu, Sep 4, 2008 at 3:45 PM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > >> On 2008-09-04 11:14, Kay Schluehr wrote: >>> On 4 Sep., 10:31, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: >>>>

Re: Can anyone suggest a good crypto package?

2008-09-04 Thread M.-A. Lemburg
On 2008-09-04 20:39, Fett wrote: > I need a crypto package that works on windows with python 2.5. Can > anyone suggest one for me? > > I have been searching for a couple days for a good cryptography > package to use for public/private key encryption, at this point I > would settle for symmetric ev

Re: Error importing mxTidy

2008-09-08 Thread M.-A. Lemburg
On 2008-09-07 15:00, Mike Hostetler wrote: > I built and installed mx-experimental 3.0.0 from source and it seemed to go > fine. But when I try to import it, I get this: > > localhost% python -c "import mx.Tidy" > Traceback (most recent call last): > File "", line 1, in ? > File "mx/T

Re: how to find out the version of a certain installed package

2008-09-30 Thread M.-A. Lemburg
On 2008-09-30 18:17, Christophe wrote: > Hi, > > In a projecet I'm making using pycrypto, I need to find out the > current installed version of pycrypto. After looking around, I found > out that "pkg_resources.requires("pycrypto") will give me a string > containing the version number, but is this

Re: python bijection

2009-12-03 Thread M.-A. Lemburg
Raymond Hettinger wrote: > [Joshua Bronson] >> Raymond, do you think there might be any future in including a built- >> in bidict data structure in Python? > > I don't think so. There are several forces working against it: > > * the recipe is new, so it hasn't had a chance to mature > or to ga

Re: python bijection

2009-12-03 Thread M.-A. Lemburg
geremy condra wrote: > On Thu, Dec 3, 2009 at 7:04 AM, M.-A. Lemburg wrote: >> I think the only major CS data type missing from Python is some >> form of (fast) directed graph implementation à la kjGraph: >> >>http://gadfly.sourceforge.net/kjbuckets.html >> &g

Re: python bijection

2009-12-04 Thread M.-A. Lemburg
geremy condra wrote: > On Thu, Dec 3, 2009 at 12:57 PM, M.-A. Lemburg wrote: >> geremy condra wrote: >>> On Thu, Dec 3, 2009 at 7:04 AM, M.-A. Lemburg wrote: >>>> I think the only major CS data type missing from Python is some >>>> form of (fast)

Re: python bijection

2009-12-07 Thread M.-A. Lemburg
Terry Reedy wrote: > M.-A. Lemburg wrote: > >> Integrating an easy-to-use graph library into the collections >> module (and it's C companion) is good idea. >> >>>> This would have to be written in C, though, >>> That's currently in the works,

Re: python bijection

2009-12-07 Thread M.-A. Lemburg
Carl Banks wrote: > On Dec 4, 4:42 pm, Lie Ryan wrote: >> On 12/5/2009 9:41 AM, Carl Banks wrote: >> >> >> >> >> >>> On Dec 4, 12:46 pm, geremy condra wrote: >>> more common than full-blown graph package). Sure, its a tree, which is also a graph. In this case it looks to me more like a

Re: python bijection

2009-12-07 Thread M.-A. Lemburg
geremy condra wrote: > On Mon, Dec 7, 2009 at 7:51 AM, M.-A. Lemburg wrote: >> Terry Reedy wrote: >>> M.-A. Lemburg wrote: >>> >>>> Integrating an easy-to-use graph library into the collections >>>> module (and it's C companion) is good idea

Graph library for Python (was: Re: python bijection)

2009-12-07 Thread M.-A. Lemburg
geremy condra wrote: > How interested are you in a C port of graphine? I haven't had > any specific requests for it, but if its something you need I > can shuffle it towards the top of the to do pile. There are two main reasons for a C implementation: 1. performance 2. memory footprint These

Re: Graph library for Python

2009-12-07 Thread M.-A. Lemburg
geremy condra wrote: > On Mon, Dec 7, 2009 at 2:51 PM, M.-A. Lemburg wrote: >> geremy condra wrote: >>> How interested are you in a C port of graphine? I haven't had >>> any specific requests for it, but if its something you need I >>> can shuffle it towar

Re: Graph library for Python

2009-12-09 Thread M.-A. Lemburg
geremy condra wrote: > On Mon, Dec 7, 2009 at 6:28 PM, M.-A. Lemburg wrote: >>>> * Graph.__init__ should be able to take a list or set >>>> of nodes and edges as initializer >>> >>> The format of this will need to be thought all the way >>>

Re: Dangerous behavior of list(generator)

2009-12-14 Thread M.-A. Lemburg
exar...@twistedmatrix.com wrote: > On 08:45 am, tjre...@udel.edu wrote: >> Tom Machinski wrote: >>> In most cases, `list(generator)` works as expected. Thus, >>> `list()` is generally equivalent to `[>> expression>]`. >>> >>> Here's a minimal case where this equivalence breaks, causing a serious >>

Re: converting string to a date format

2009-12-22 Thread M.-A. Lemburg
tekion wrote: > All, > I know there is a datetime module for converting and manipulate date > format. I have this string date format: 24/Nov/2009:10:39:03 -0500 > and would like to convert it to a date format of "2009-11-24 > 10:39:03". At the moment I am reading datetime module trying to find >

Re: Difference Between Two datetimes

2009-12-29 Thread M.-A. Lemburg
W. eWatson wrote: > According to one web source, this program: > > import datetime > bree = datetime.datetime(1981, 6, 16, 4, 35, 25) > nat = datetime.datetime(1973, 1, 18, 3, 45, 50) > > difference = bree - nat > print "There were", difference, "minutes between Nat and Bree" > > yields: > Ther

Re: Fractional Hours from datetime?

2010-01-11 Thread M.-A. Lemburg
W. eWatson wrote: > Maybe there's a more elegant way to do this. I want to express the > result of datetime.datetime.now() in fractional hours. > > Here's one way. > > dt=datetime.datetime.now() > xtup = dt.timetuple() > h = xtup[3]+xtup[4]/60.0+xtup[5]/3600.00+xtup[6]/10**6 > # now is in fracti

Re: Generic Python Benchmark suite?

2010-01-19 Thread M.-A. Lemburg
Anand Vaidya wrote: > Is there a generic python benchmark suite in active development? I am > looking forward to comparing some code on various python > implementations (primarily CPython 2.x, CPython 3.x, UnladenSwallow, > Psyco). > > I am happy with something that gives me a relative number eg:

Re: setattr() oddness

2010-01-20 Thread M.-A. Lemburg
Dieter Maurer wrote: > Steven D'Aprano writes on 18 Jan 2010 > 06:47:59 GMT: >> On Mon, 18 Jan 2010 07:25:58 +0100, Dieter Maurer wrote: >> >>> Lie Ryan writes on Sat, 16 Jan 2010 19:37:29 +1100: On 01/16/10 10:10, Sean DiZazzo wrote: > Interesting. I can understand the "would take tim

Re: Interesting Problem

2010-01-20 Thread M.-A. Lemburg
Victor Subervi wrote: > Hi; > I think I finally have an interesting problem for y'all. I need to import a > script from a lower dir, forcing me to change dirs: > > cwd = os.getcwd() > os.chdir('%s/..' % cwd) > sys.path.append(os.getcwd()) > from templateFrame import top, bottom > os.chdir(cwd) I

Re: Using jython to call python procedures/methods

2010-01-20 Thread M.-A. Lemburg
KB wrote: > Hi there, > > I have an application that only publishes a Java API. I can use jython > to access java classes, but jython currently (to the best of my > knowledge) does not support numpy/scipy. > > Ideally I would like to have jython call a "native" python routine > where I have the n

Re: ctypes for AIX

2010-01-26 Thread M.-A. Lemburg
Waddle, Jim wrote: > I need to use ctypes with python running on AIX. It appears that python is > being developed mostly for windows. Is there a policy concerning getting > functions like ctypes working on AIX. If you can provide patches to get ctypes working on AIX, we'd consider adding those t

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
Daniel wrote: > Just got done reading this thread: > > http://groups.google.com/group/comp.lang.python/browse_thread/thread/b31a5b5f58084f12/0e09f5f5542812c3 > > and I'd appreciate feedback on this recipe: > > http://code.activestate.com/recipes/576980/ > > Of course, it does not meet all of th

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
M.-A. Lemburg wrote: > Daniel wrote: >> Just got done reading this thread: >> >> http://groups.google.com/group/comp.lang.python/browse_thread/thread/b31a5b5f58084f12/0e09f5f5542812c3 >> >> and I'd appreciate feedback on this recipe: >> &

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
geremy condra wrote: > On Tue, Jan 26, 2010 at 12:37 PM, M.-A. Lemburg wrote: > > > >> You are also using CBC mode, even though you are really after >> ECB mode (your code doesn't use chaining). With ECB mode, you >> don't need the IV string. > &

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
Daniel wrote: > On Jan 26, 12:37 pm, "M.-A. Lemburg" wrote: >> Note that your code has a padding bug: the decoder doesn't >> undo the padding. You're lucky though, since pickle will only >> read as much data as it needs and not complain about the extra >

Re: Ad hoc lists vs ad hoc tuples

2010-01-27 Thread M.-A. Lemburg
Iain King wrote: > On Jan 27, 10:20 am, Floris Bruynooghe > wrote: >> One thing I ofter wonder is which is better when you just need a >> throwaway sequence: a list or a tuple? E.g.: >> >> if foo in ['some', 'random', 'strings']: >> ... >> if [bool1, bool2, boo3].count(True) != 1: >>... >

Re: different behaviour for user defined exception with attribute args

2009-09-29 Thread M.-A. Lemburg
Visco Shaun wrote: > Hi all > > For an exception defined as below > > class OptionError(Exception): > def __init__(self, args): > self.args = args This should read: def __init__(self, *args): self.args = args (notice the * !) self.args holds the constructor argument tu

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-10-02 Thread M.-A. Lemburg
nnect Python Database Interface for free ! eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ >

Re: mktime, how to handle dates before 01-01-1970 ?

2009-10-07 Thread M.-A. Lemburg
Christian Heimes wrote: > Ben Finney wrote: >> If you're committed to changing the epoch anyway, I would recommend >> using http://en.wikipedia.org/wiki/Astronomical_year_numbering> >> (epoch at 4004 BCE) since it is widely used to unify dates referring to >> human history. > > I prefer JDN or MJD

Re: mktime, how to handle dates before 01-01-1970 ?

2009-10-07 Thread M.-A. Lemburg
Christian Heimes wrote: > M.-A. Lemburg schrieb: >> Christian Heimes wrote: >>> Ben Finney wrote: >>>> If you're committed to changing the epoch anyway, I would recommend >>>> using http://en.wikipedia.org/wiki/Astronomical_year_numbering> >>

Re: AES decrypting in Python

2009-10-07 Thread M.-A. Lemburg
Mike Driscoll wrote: > Hi, > > I am working on a project where I need to decrypt some data that has > been encrypted with AES. It looks like M2Crypto is the module of > choice for these sorts of things, but I cannot figure out how to do > this stuff from the docs. I have the following PHP code tha

Re: windows side-by-side configuration woes on windows HPC

2009-10-08 Thread M.-A. Lemburg
Nick Touran wrote: > Copying my local copy of Python 2.6 to a Windows HPC 2008 system is giving > dll side-by-side configuration errors for some third-party packages > (matplotlib, pyMSSQL, in particular). I understand that there is a tradition > of Python supporting XCOPY deployment, and would rea

mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-09 Thread M.-A. Lemburg
John Yeung wrote: > On Oct 6, 4:10 pm, Stef Mientki wrote: >> >> thanks guys, >> mx works a bit better > > Another popular Python date library is dateutil: > > http://labix.org/python-dateutil > > It gives a certain amount of credit to mxDateTime (praising it but not > being very clear

Re: mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-12 Thread M.-A. Lemburg
Tim Chase wrote: >> Month arithmetic is a bit of a mess, since it's not clear how >> to map e.g. Jan 31 + one month. > > "Jan 31 + one month" usually means "add one to the month value and then > keep backing off the day if you get an exception making the date", so > you'd get Feb 31, exception, Fe

Re: mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-12 Thread M.-A. Lemburg
Rhodri James wrote: > On Fri, 09 Oct 2009 13:39:43 +0100, Tim Chase > wrote: > >>> Month arithmetic is a bit of a mess, since it's not clear how >>> to map e.g. Jan 31 + one month. >> >> "Jan 31 + one month" usually means "add one to the month value and >> then keep backing off the day if you get

Re: mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-12 Thread M.-A. Lemburg
Chris Rebert wrote: > On Mon, Oct 12, 2009 at 4:27 AM, Piet van Oostrum wrote: >>> greg (g) wrote: >> >>> g> MRAB wrote: > And when someone says "January 30", do they really mean the day before > the last day of the month? >> >>> g> No, no, that's January -2, a *completely* different

Re: windows side-by-side configuration woes on windows HPC

2009-10-12 Thread M.-A. Lemburg
-4B40-8C14-157CFDFFEE4E&displaylang=en > On Thu, Oct 8, 2009 at 1:12 PM, M.-A. Lemburg wrote: > >> Nick Touran wrote: >>> Copying my local copy of Python 2.6 to a Windows HPC 2008 system is >> giving >>> dll side-by-side configuration errors for some t

Re: pickle's backward compatibility

2009-10-13 Thread M.-A. Lemburg
exar...@twistedmatrix.com wrote: > On 03:17 pm, pengyu...@gmail.com wrote: >> Hi, >> >> If I define my own class and use pickle to serialize the objects in >> this class, will the serialized object be successfully read in later >> version of python. >> >> What if I serialize (using pickle) an objec

Re: pickle's backward compatibility

2009-10-13 Thread M.-A. Lemburg
exar...@twistedmatrix.com wrote: > On 02:48 pm, m...@egenix.com wrote: >> exar...@twistedmatrix.com wrote: >>> On 03:17 pm, pengyu...@gmail.com wrote: Hi, If I define my own class and use pickle to serialize the objects in this class, will the serialized object be successfully r

Re: windows side-by-side configuration woes on windows HPC

2009-10-16 Thread M.-A. Lemburg
is why the msvcr71.dll was needed. It's usually not a good idea to mix VC runtime in a single process and since Python requires the VC 90 DLLs, it's likely safer to recompile the extension in question using Python 2.6 and VS 2008. > -nick > > On Mon, Oct 12, 2009 at 2:41 PM, M.-A

Re: Building Python on Solaris 10?

2009-10-29 Thread M.-A. Lemburg
Judy Booth wrote: > Can anyone point me towards some instructions for building Python on > Solaris 10? > We need this for some of our test scripts and so far we cannot get this > to build. > > We have tried both Python 2.6.4 and 3.1.1 and both fail with messages > like this: > Include/pyport.h:

Re: Pyfora, a place for python

2009-11-03 Thread M.-A. Lemburg
Kee Nethery wrote: > I just noticed the tag line "a place for Python". Looked it up online > (http://pyfora.org/) and it will be interesting to see if it can fill > the void that I experience (no centralized place to post and view user > submitted sample code) in the existing Python community. The

Re: Freezing python files into executables

2009-11-03 Thread M.-A. Lemburg
dent parts are in /usr/lib64. Python normally doesn't support this. It only has a prefix and an exec_prefix, but those only allow to do things like prefix=/usr and exec_prefix=/usr64, not changing the lib/ part in /usr/lib/. > Thanks. > > On Tue, Nov 3, 2009 at 11:32 AM, M.-A. Le

Re: Freezing python files into executables

2009-11-03 Thread M.-A. Lemburg
Rami Chowdhury wrote: > On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian > wrote: > >> Hello, >> I have been using freeze.py on 32 bit linux distributions without a >> problem. But recently I tried to do the same on RHEL5 x86_64 and ran >> into some issues. >> >> 1) When I ran the sc

Re: open source linux -> windows database connectivity?

2009-11-12 Thread M.-A. Lemburg
Tony Schmidt wrote: > I am trying to read a Pervasive database on a Windows machine from a > Python script on a Linux machine. > > I understand that this can be done with a proprietary ODBC-to-ODBC > bridge called mxODBC or Easysoft OOB. The product is called "mxODBC Connect" and allows connectin

Re: open source linux -> windows database connectivity?

2009-11-13 Thread M.-A. Lemburg
Tony Schmidt wrote: >> Note: The client part of this product is free. You only need to >> get a license for the server part. > > Yeah, but don't I need the server part to make the connection? Sure, but you don't need to get a license per client, unlike for e.g. the combination mxODBC + EasySoft O

Re: bootstrapping on machines without Python

2009-11-13 Thread M.-A. Lemburg
Jonathan Hartley wrote: > While examining py2exe et al of late, my thoughts keep returning to > the idea of writing, in C or similar, a compiled stand-alone > executable 'bootstrapper', which: > 1) downloads and install a Python interpreter if none exists > 2) runs the application's Python source c

Re: ANN: a mini-language for encapsulating deep-copy operations on Python data structures

2009-11-18 Thread M.-A. Lemburg
Steve Howell wrote: > During the last few days I have written code in support of a small DDL > language that encapsulates a concise representation of the > manipulations needed to make a deep subcopy of a Python-like data > structure. It is inspired by syntax from mainstream modern languages, > inc

Re: python and netezza

2009-11-23 Thread M.-A. Lemburg
Shan wrote: > Is there any module in python to connect with netezza database?(like > cx_Oracle which is used to connect Oracle from python) You can use our mxODBC database adapters together with the Netezza ODBC drivers. For single-tier setups (client application and database on the same server o

Re: csv and mixed lists of unicode and numbers

2009-11-25 Thread M.-A. Lemburg
Sibylle Koczian wrote: > Hello, > > I want to put data from a database into a tab separated text file. This > looks like a typical application for the csv module, but there is a > snag: the rows I get from the database module (kinterbasdb in this case) > contain unicode objects and numbers. And of

Re: HTML Parser which allows low-keyed local changes (upon serialization)

2010-02-01 Thread M.-A. Lemburg
Robert wrote: > I think you confused the logical level of what I meant with "file > position": > Of course its not about (necessarily) writing back to the same open file > (OS-level), but regarding the whole serializiation string (wherever it > is finally written to - I typically write the auto-con

Re: how to decode rtf characterset ?

2010-02-01 Thread M.-A. Lemburg
Stef Mientki wrote: > hello, > > I want to translate rtf files to unicode strings. > I succeeded in remove all the tags, > but now I'm stucked to the special accent characters, > like : > > "Vóór" > > the character "ó" is represented by the string r"\'f3", > or in bytes: 92, 39,102, 51 > so I t

Re: matching strings in a large set of strings

2010-05-06 Thread M.-A. Lemburg
Dennis Lee Bieber wrote: > On Thu, 29 Apr 2010 11:38:28 +0200, "Karin Lagesen" > declaimed the following in comp.lang.python: > >> Hello. >> >> I have approx 83 million strings, all 14 characters long. I need to be >> able to take another string and find out whether this one is present >> within

Python conference and user group statistics

2010-07-12 Thread M.-A. Lemburg
Hello, I am currently working on a Python Software Foundation (PSF) project to create marketing material for Python with the aim of providing this to Python conferences and user groups. In order to come up with reasonable figures for the number of brochures and flyers to print, I'd like to get a

Re: DBI module deprecated at Python 2.5--what to use in its place?

2009-07-10 Thread M.-A. Lemburg
dana wrote: > I have a variety of Python 2.4 scripts that utilitize the DBI and ODBC > modules together. Although I don't have Python 2.5, I've been informed > the DBI module has been deprecated at 2.5. A few questions: > > 1) Although deprecated, will it work at all in 2.5? Does the fact that > i

Re: Remoting over SSH

2009-07-10 Thread M.-A. Lemburg
Lucas Carvalho wrote: > Hussein B wrote: >> Hey, >> I want to perform commands on a remote server over SSH. >> What do I need? >> Thanks. >> > Hi, > If you want to use the SSH2 protocol into a python code, you should > take a look at this module: paramiko [1]. > > [1] http://www.lag.net/paramik

Re: Balanced binary tree implementation

2009-07-23 Thread M.-A. Lemburg
Lucas P Melo wrote: > Hello, > > I would like to use a balanced binary tree implementation (preferably > within some API). > Any hints about where I could find it? > > I am looking for something that implements insertion, deletion, search > and a special search that returns the lesser element big

Re: RSA cryptography between Python and Java

2009-07-28 Thread M.-A. Lemburg
Rob Knop wrote: > I've created an RSA key in Java. I have exported the public key by > making it into a X509EncodedKeySpec and spitting out the result of > getEncoded(). > > I want to use this public key to encode something in python that I will > send to Java, and then decode in Java with the co

Re: Python server locks up

2009-09-14 Thread M.-A. Lemburg
Zac Burns wrote: > I have a server running Python 2.6x64 which after running for about a > month decides to lock up and become unresponsive to all threads for > several minutes at a time. While it is locked up Python proceeds to > consume large amounts of continually increasing memory. > > The bas

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-23 Thread M.-A. Lemburg
snfctech wrote: > Does anyone have experience building a data warehouse in python? Any > thoughts on custom vs using an out-of-the-box product like Talend or > Informatica? > > I have an integrated system Dashboard project that I was going to > build using cross-vendor joins on existing DBs, but

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-24 Thread M.-A. Lemburg
e the data directly without the Python script - without having to go through an external temporary resource. Anyway, just a suggestion. > On Sep 23, 2:02 am, "M.-A. Lemburg" wrote: >> snfctech wrote: >>> Does anyone have experience building a data warehouse in python?

Re: Crypto and export laws

2009-09-25 Thread M.-A. Lemburg
Austin Bingham wrote: > I'm trying to get a handle on how python intersects with > crypto-related export control laws in the US and elsewhere. My current > understanding, per the PSF's wiki, is that any crypto related and > potentially export-sensitive code is in the ssl wrapper, and that, in > fac

Re: Crypto and export laws

2009-09-25 Thread M.-A. Lemburg
Piet van Oostrum wrote: >>>>>> "M.-A. Lemburg" (M-L) wrote: > >> M-L> Depending on how close a country follows the Wassenaar >> M-L> Arrangement (http://www.wassenaar.org/) OpenSSL, Python >> M-L> and all other open-source software falls

Re: [DB-SIG] dbf files and compact indices

2010-09-19 Thread M.-A. Lemburg
Ethan Furman wrote: > Carl Karsten wrote: >> On Sat, Sep 18, 2010 at 11:23 PM, Ethan Furman >> wrote: >>> Thanks for the suggestion, but I don't want to be tied to Foxpro, which >>> means I need to be able to parse these files directly. I have the dbf >>> files, now I need the idx and cdx files

Re: PEP 249 (database api) -- executemany() with iterable?

2010-10-14 Thread M.-A. Lemburg
Terry Reedy wrote: > On 10/12/2010 11:10 AM, Roy Smith wrote: >> PEP 249 says about executemany(): >> >> Prepare a database operation (query or command) and then >> execute it against all parameter sequences or mappings >> found in the sequence seq_of_parameters. >> >> ar

Re: Unicode questions

2010-10-20 Thread M.-A. Lemburg
Tobiah wrote: > I've been reading about the Unicode today. > I'm only vaguely understanding what it is > and how it works. > > Please correct my understanding where it is lacking. > Unicode is really just a database of character information > such as the name, unicode section, possible > numeric

Re: time difference interms of day

2010-10-26 Thread M.-A. Lemburg
Steve Holden wrote: > On 10/24/2010 1:55 PM, mukkera harsha wrote: >> Hello >> I was wondering if there is an existing function that would let me >> determine the difference in time. To explain: >> >> Upon starting a program: >> >> startup = time.time() >> >> After some very long processing:

Re: DateTime object

2010-11-04 Thread M.-A. Lemburg
jf wrote: > Hi, > > I've a bug in my code and I'm trying de reproduce it. > > To trace the bug I print arguments, and it produces this: > {'date': } > > My question is: what is: ? > > I use mx.DateTime put if I print it I get: > > > So what kind of object is ? You might be using the old Pyt

EuroPython 2017: Official dates available

2017-03-03 Thread M.-A. Lemburg
We are very happy to officially announce the confirmed dates for EuroPython 2017 in Rimini, Italy: EuroPython 2017: July 9-16 2017 *** http://ep2017.europython.eu/ *** The conference will be held at the Rimini PalaCongressi and structured as follows: * Jul

EuroPython 2017: Welcome our new Logo

2017-03-18 Thread M.-A. Lemburg
Blue sea. Yellow sand. EuroPython goes to Rimini 2017 with a brand new logo. Colorful waves play with beach umbrellas to shape the foundation symbol with different patterns that visually immerse us in our new location, one of the most popular sea places in Italy. New place, new dates, new style and

EuroPython 2017: We have liftoff!

2017-03-20 Thread M.-A. Lemburg
We are excited to announce the launch of the EuroPython 2017 website: *** http://ep2017.europython.eu/ *** The EuroPython conference will take place in sunny Rimini, Italy, this year, from July 9 - 16. EuroPython 2017 - The European Python Conference --

EuroPython 2017: Get ready for EuroPython Call for Proposals

2017-03-24 Thread M.-A. Lemburg
Thinking of giving your contribution to EuroPython? Starting from March 27th you can submit a proposal on every aspect of Python: programming from novice to advanced levels, applications and frameworks, or how you have been involved in introducing Python into your organization. We offer a variety

EuroPython 2017: Call for Proposals is open

2017-03-27 Thread M.-A. Lemburg
We’re looking for proposals on every aspect of Python: programming from novice to advanced levels, applications and frameworks, or how you have been involved in introducing Python into your organization. EuroPython is a community conference and we are eager to hear about your experience. Please al

EuroPython 2017: Launching early-bird sales tomorrow

2017-04-03 Thread M.-A. Lemburg
We are starting ticket sales tomorrow and, as is tradition, we have allocated a number of tickets to be sold at very low rates - in fact you can save between 40-50% on these early-bird rates, compared to the regular ticket prices. Sales at the early-bird rate will open tomorrow, April 4th,

EuroPython 2017: Early-bird Tickets now on sale!

2017-04-04 Thread M.-A. Lemburg
Interested in attending EuroPython? Entry tickets are now on sale and available on our website. *** Buy your EuroPython ticket *** https://ep2017.europython.eu/en/registration/buy-tickets/ Tickets for EuroPython will be sold in three phases: First, we’ll have a short ea

EuroPython 2017: Discounted flights available

2017-04-19 Thread M.-A. Lemburg
This year the Lufthansa group is our preferred airline for EuroPython. The co-operation provides a 5-10% discount for flights to the conference going to Bologna and Florence. *** https://ep2017.europython.eu/en/location/come-to-rimini/ *** Airlines include Lufthansa, Swiss, Austrian, Belgium A

EuroPython 2017: How you can sponsor us

2017-04-24 Thread M.-A. Lemburg
Check out our brand new brochure with all details about our sponsor packages, options and lounge events, available on our website. Sponsoring EuroPython guarantees you highly targeted visibility and the opportunity to present yourself and your company in a professional and innovative environment.

EuroPython 2017: Talk voting is open

2017-05-01 Thread M.-A. Lemburg
At EuroPython, we let our attendees have a significant say in the selection of the sessions which are presented at the conference. We call this "talk voting" - attendees can tell us which submitted talks they’d like to see at the conference. To be eligible to vote for talks, you need to be a regi

<    1   2   3   4   5   6   7   >