ANN: eGenix mxODBC Zope Database Adapter 1.0.9

2005-10-17 Thread M.-A. Lemburg
ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS.

FrOSCon 2006 - Call for Papers

2006-01-16 Thread M.-A. Lemburg
I'm sending this on behalf of Sebastian Bergmann, one of the organizers of FrOSCon: Hello, The first Free and Open Source Conference FrOSCon takes place on 24th and 25th June 2006 in St. Augustin, near Bonn, Germany, Organized by a committed team, it aims to become a significant event for

ANN: Central Python Events Calendar

2012-10-23 Thread M.-A. Lemburg
[Please help spread the word by forwarding to other relevant mailing lists, user groups, etc. world-wide; thanks] ANNOUNCING Central Python Events Calendars maintained by the Python

EuroPython 2014/2015 Conference Team - Call for Proposals

2013-05-16 Thread M.-A. Lemburg
The EuroPython Society (EPS) is happy to announce the Call for Proposals for the EuroPython Conference in 2014 and 2015. This Call for Proposals is meant to collect proposals from teams that volunteer for organizing the EuroPython conference in 2014-2015. The Call for Proposals document

ANN: Python Events Calendar - Please submit your 2014 events

2014-01-15 Thread M.-A. Lemburg
[Please help spread the word by forwarding to other relevant mailing lists, user groups, etc. world-wide; thanks :-)] ANNOUNCING Python Events Calendars - Please submit your 2014 events maintained by

EuroPython has a new blog

2014-01-21 Thread M.-A. Lemburg
The EuroPython Society has setup a new blog for EuroPython in its efforts to provide more conference facilities for the EuroPython organization and to enhance the EuroPython attendee experience. http://blog.europython.eu/ There’s an RSS feed in case you want to subscribe to it:

EuroPython Society website now live

2014-01-21 Thread M.-A. Lemburg
The EuroPython Society has created a new website to collect information on EuroPython, the society and its workings: http://www.europython-society.org/ For those who don’t know: the society is a Swedish non-profit organization which was formed in 2004 by the EuroPython organizers to put on

Work on Call for Participation for EuroPython 2015 has started

2014-02-03 Thread M.-A. Lemburg
[Please help spread the word by forwarding to other relevant mailing lists, user groups, etc.; thanks :-)] The EuroPython Society (EPS) has started work on preparing the Call for Participation (CFP) for organizing the EuroPython 2015 conference: http://www.europython-society.org/ For 2015,

ANN: PSF Python Marketing Brochure - Last call for Ad Sponsors

2014-02-12 Thread M.-A. Lemburg
[Please help spread the word by forwarding to other relevant mailing lists, user groups, etc. world-wide; thanks :-)] ANNOUNCING PSF Python Marketing Brochure - Last call for Ad Sponsors Please support the

ANN: Python Job Board - Call for volunteers

2014-03-05 Thread M.-A. Lemburg
[Please help spread the word by forwarding to other relevant mailing lists, user groups, etc. world-wide; thanks :-)] Dear Python Community, for many years, the Python Job board (http://legacy.python.org/community/jobs/) was run by volunteers - most of the time by just one volunteer at a time

EuroPython Workgroups: Call for Volunteers

2014-10-11 Thread M.-A. Lemburg
(This post is also available for online reading at: http://www.europython-society.org/post/99718376575/europython-workgroups-call-for-volunteers) Dear EuroPython community, the EuroPython Society is happy to announce a new organizational concept that we'd like to put in place for the next

EuroPython 2015 Call for Participation: On-site Teams

2014-11-01 Thread M.-A. Lemburg
The EuroPython Society (EPS) is happy to announce the Call for Participation (CFP) for EuroPython 2015. The purpose of this call is to select teams willing to help organize the EuroPython conference on-site at a suitable location. Call for Participation (CFP) Please

EuroPython 2015: Submitted Proposal

2014-12-15 Thread M.-A. Lemburg
The EuroPython Society (EPS) is happy to announce that we have received the amended proposal from the ACPySS team in Spain (http://www.pyss.org/) to hold EuroPython 2015 in Bilbao, Spain. We had been discussing questions with them in the last couple of days. On-site Team Proposal

EuroPython 2015 will be in Bilbao, Spain !

2014-12-24 Thread M.-A. Lemburg
The EuroPython Society (EPS) is happy to announce that we have decided to accept the proposal from the on-site team ACPySS (http://www.pyss.org/) in Spain to hold EuroPython 2015 in Bilbao, Spain. The decision was made in Monday’s EPS board meeting. We are extremely happy to have received the

ANN: eGenix mx Base Package 2.0.6 (mxDateTime, mxTextTools, etc.)

2004-12-06 Thread M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Extension Package Version 2.0.6 Open Source Python extensions providing important and useful services for Python programmers.

Re: Weak references (- E04 - Leadership! Google, Guido van Rossum, PSF)

2006-01-13 Thread M.-A. Lemburg
Duncan Booth wrote: Alex Martelli wrote: It IS true that in Python you cannot set arbitrary attributes on arbitrary objects. The workaround is to use a dict, indexed by the id of the object you want to set arbitrary attributes on; this has the helpful consequence that separate namespaces

Re: string to datetime parser?

2006-01-13 Thread M.-A. Lemburg
beza1e1 wrote: Is there a library which can parse strings and output a datetime object? It should be as magical as possible and allow things like: 12:30 tomorrow 10.10.2005 02-28-00 28/03/95 1995-03-28 1996.Feb.29 (Thu) 16:45:23.7 Is there anything like that out there? My Google can't

ANN: eGenix mxODBC Zope Database Adapter 1.0.9

2005-10-17 Thread M.-A. Lemburg
ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS.

Re: [Python-Dev] Revised PEP 349: Allow str() to return unicode strings

2005-08-23 Thread M.-A. Lemburg
Thomas Heller wrote: Neil Schemenauer [EMAIL PROTECTED] writes: [Please mail followups to [EMAIL PROTECTED] The PEP has been rewritten based on a suggestion by Guido to change str() rather than adding a new built-in function. Based on my testing, I believe the idea is feasible. It would be

FrOSCon 2006 - Call for Papers

2006-01-16 Thread M.-A. Lemburg
I'm sending this on behalf of Sebastian Bergmann, one of the organizers of FrOSCon: Hello, The first Free and Open Source Conference FrOSCon takes place on 24th and 25th June 2006 in St. Augustin, near Bonn, Germany, Organized by a committed team, it aims to become a significant event for

Re: mxDateTime on Mac: Fatal Python Error

2005-03-07 Thread M.-A. Lemburg
[EMAIL PROTECTED] wrote: I'm trying to get mxDateTime working on a Mac so that I can use pyscopg and cx_Oracle. The Egenix base package builds and installs quite happily, but then when I try to import it I get import mx.DateTime Fatal Python error: Interpreter not initialized (version mismatch?)

Re: ANN: BigDecimal - decimal arithmetic on very large intergers

2005-04-01 Thread M.-A. Lemburg
[EMAIL PROTECTED] wrote: BigDecimal is a Python class that supports decimal arithmetic on very large integers. BigDecimal was inspired by the posting of BigDec to c.l.py by Tim Peters. BigDecimal implements all the commonly used integer methods. (It doesn't implement any of the

Re: Some notes about float approximations in mxNumber

2005-04-04 Thread M.-A. Lemburg
Kay Schluehr wrote: Hi Marc, I was a bit surprised to find the very slow Farey approximation by means of the FareyRational class in the mxNumber package. If the goal was to reconstruct a rational from a float it is not a good choice and should be replaced by a continued fractions

Re: oracle interface

2005-04-07 Thread M.-A. Lemburg
Andrew Dalke wrote: In searching I find there several different ways to connect to an Oracle server on MS Windows: mxODBC - http://www.egenix.com/files/python/mxODBC.html built on top of the ODBC drivers for a given database mxODBC works nicely with Oracl on Windows. There are two

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread M.-A. Lemburg
Peter Herndon wrote: Another option is adodbapi, which in my experience is much faster than mx.ODBC. Much faster ? See http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/iis/reskit/iischp7.mspx and scroll down to Table 7.1: Table 7.1 TPS (transactions per

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread M.-A. Lemburg
[EMAIL PROTECTED] wrote: I do have a standard install of Python as well as Plone. Can you have two? I have run the mxInstaller for both instances however, whether I run the ide from my standard install or my plone install the pythonpath is the same (ie c:\...\plone 2\python). My machine

Re: MS SQL Server/ODBC package for Python

2005-04-18 Thread M.-A. Lemburg
Peter Herndon wrote: :) Knock away, as my info isn't scientific anyway. In my case, ASA is *not* local. The db is running on a 500MHz x 2 server with 768MB RAM, over 100BaseT connection. That same server is also running the MSSQL instance, and IIS. Running your benchmark, I ran into a couple of

Re: HTML cleaner?

2005-04-25 Thread M.-A. Lemburg
Ivan Voras wrote: Is there a HTML clean/tidy library or module written in pure python? I found mxTidy, but it's a interface to command-line tool. Not true: mxTidy integrates tidy as C lib. It's not an interface to the command line tool. What I'm searching is something that will accept a list

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 feature, too :) However, it's usually

Re: Must COMMIT after SELECT

2008-02-07 Thread M.-A. Lemburg
On 2008-02-07 14:29, Steve Holden wrote: Paul Boddie wrote: With PostgreSQL, my impression is that the intended way of using cursors is not entirely compatible with the DB-API: you declare cursors only when you know what the query will be, not in advance, and they can only be used with

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 looking for a reliable

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 to in_use = 1, used,

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 for whether the port is currently in use. When choosing a port

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, Carl

Re: How about adding rational fraction to Python?

2008-02-25 Thread M.-A. Lemburg
On 2008-02-25 16:03, Steven D'Aprano wrote: On Sun, 24 Feb 2008 23:09:39 -0800, Carl Banks wrote: On Feb 25, 2:04 am, Paul Rubin http://[EMAIL PROTECTED] wrote: Carl Banks [EMAIL PROTECTED] writes: Try doing numerical integration sometime with rationals, and tell me how that works out. Try

Re: mx Base module

2008-02-25 Thread M.-A. Lemburg
in advance M -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Feb 25 2008) Python/Zope Consulting and Support ...http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime

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): '''Database class keeping track of the order and data'''

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 not into site-packages/ as

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 PST date_parts =

Re: Time Zone application after strptime?

2008-03-12 Thread M.-A. Lemburg
Jim Carroll wrote: M.-A. Lemburg mal at 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: How can I use the PST (or any other time zone name

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: get an object-relational mapper: now you

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 database. If you don't want to process the

Re: Learning curve for new database program with Python?

2008-04-07 Thread M.-A. Lemburg
On 2008-04-07 15:30, Greg Lindstrom wrote: On Sun, Apr 6, 2008 at 2:31 AM, John Nagle [EMAIL PROTECTED] wrote: Basic SQL isn't that hard. Learn CREATE, SELECT, INSERT, UPDATE, and DELETE syntax. That's enough for most simple applications. And then learn more advanced SQL: joins,

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 :-) Interesting comments in a time where everyone

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 5.3, Python 2.5.2

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 to some other

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

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 shrink as

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 future

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

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

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

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

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

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 file

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 which is used by different

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

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

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

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='abcdefghijklmnop' Initial16bytes='0123456789ABCDEF' crypt = AES.new(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)) Or more simply: cursor.execute(sql, row) that's always annoyed me with

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

2009-03-19 Thread M.-A. Lemburg
On 2009-03-19 13:40, Tim Chase wrote: DB-API 2.0 has cursor.executemany() to make this differentiation at the API level. mxODBC will lift this requirement in the next version, promised :-) glad to hear...will executemany() take an arbitrary iterable? My (albeit somewhat-antiquated)

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 mar...@v.loewis.de 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 only 't' (i.e. how do you know it does

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 m...@egenix.com wrote: unicodeTest.c #includePython.h static PyObject *unicode_helper(PyObject *self,PyObject *args){ PyObject *sampleObj = NULL; Py_UNICODE *sample = NULL; if (!PyArg_ParseTuple(args, O

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 m...@egenix.com 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. #includePython.h static

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 if

Re: Unicode problem in ucs4

2009-03-23 Thread M.-A. Lemburg
On 2009-03-23 12:57, abhi wrote: Is there any way by which I can force wchar_t to be 2 bytes, or can I convert this UCS4 data to UCS2 explicitly? Sure: just use the appropriate UTF-16 codec for this. /* Generic codec based encoding API. object is passed through the encoder function

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

2009-04-02 Thread M.-A. Lemburg
On 2009-04-02 17:32, Martin v. Löwis wrote: I propose the following PEP for inclusion to Python 3.1. Thanks for picking this up. I'd like to extend the proposal to Python 2.7 and later. Please comment. Regards, Martin Specification = Rather than using an imperative

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 (and perhaps other people's) concern is that 2.7

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 namespace packages using that O(1) check ? One of the namespace

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 ? Again - this wouldn't be O(1). More importantly, it breaks

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 for __pkg__.py files to detect namespace packages

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 argument for adding yet another

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 PEP doesn't apply. The way

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 lives in site-packages into smaller distribution

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. The PEP provides a way to solve

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 see the large number of Zope and PEAK

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 the only

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 there is the need for a function

Re: Builing Python 2.6 on AIX 5.2

2008-10-07 Thread M.-A. Lemburg
On 2008-10-07 12:24, brasse wrote: OK. I have made some changes in the source that lets me build on AIX 5.2. I thought I could post the patch here and perhaps someone can tell me if I am on the wrong track or if this is an OK fix on AIX. Thanks. Please post the patch on the Python bug tracker,

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: ANNOUNCING

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-length records I want to read in random order. That

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

2008-10-23 Thread M.-A. Lemburg
On 2008-10-23 09:26, Gilles Ganault wrote: On Thu, 23 Oct 2008 00:24:01 -0200, Gabriel Genellina [EMAIL PROTECTED] wrote: In case you didn't notice, B.D. already provided the answer you're after - reread his 3rd paragraph from the end. Yes, but it doesn't work with this wrapper (APSW

Re: [ANN]pygccxml - 1.0

2008-10-23 Thread M.-A. Lemburg
On 2008-10-23 09:20, Matthieu Brucher wrote: Hi, I'm trying to use your package, but the gccxml installer is not available from your website anymore. Is it possible for you to upload it again ? Works for me:

Re: OS 10.5 build 64 bits

2008-10-23 Thread M.-A. Lemburg
Hi Robin, On 2008-10-23 17:55, Robin Becker wrote: I'm trying to build Python from the unix sources on an OS 10.5 machine. This is because we're getting strange faults when using the built in python 2.5 together with some precompiled versions of MySQLdb PIL etc etc. The build works if I

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. apparently this issue is known http

Re: Python26 compilation problem

2008-10-23 Thread M.-A. Lemburg
On 2008-10-23 18:32, Mathew wrote: I am getting Modules/config.c:39: error: expected declaration specifiers or '...' before numeric constant because of extern void initsocket(2)(void); in config.c What is this? How do I fix it? Without more information on platform, compiler, OS

Re: 2.6, 3.0, and truly independent intepreters

2008-10-25 Thread M.-A. Lemburg
These discussion pop up every year or so and I think that most of them are not really all that necessary, since the GIL isn't all that bad. Some pointers into the past: * http://effbot.org/pyfaq/can-t-we-get-rid-of-the-global-interpreter-lock.htm Fredrik on the GIL *

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
On 2008-10-25 08:39, Akira Kitada wrote: Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. Failed to find the necessary bits to build these modules: _bsddb _sqlite3 _tkinter gdbm linuxaudiodev

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
newer FreeBSD should make my life easier, but I would rather want Python continue to support old system like this as long as it's not getting very hard to maintain the clean code base. Sure, the more platforms the better. Thanks, On Sat, Oct 25, 2008 at 10:53 PM, M.-A. Lemburg [EMAIL

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 instead of measuring how often

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, and most nodes have a substantial

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: locals()[foo]=bar foo 'bar' That is incorrect. People

Re: python openssl x509 CA

2008-10-31 Thread M.-A. Lemburg
On 2008-10-31 11:10, Marcin Jurczuk wrote: Hello, I'm fighting with Certificate Authority functionality with python I stuck on following problem: How to sign CSR using CA key and write resulted certificate. You can do it using following openssl cmd: openssl ca -cert CA/cert.pem -keyfile

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 that the error message is misleading. With the setup:

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 #process the message fini = [m for m in self.messages if m.finished

  1   2   3   4   5   6   7   8   9   10   >