Re: installing python 3.0rc1 on Linux

2008-10-15 Thread tomohiro kusumi
I installed python3.0 rc1 on Linux with --enable-shared option on configure script. But the python3.0 says there is no libpython3.0.so although there is one under /usr/local/lib. The /etc/ld.so.conf script has that path in it too. # python3.0 python3.0: error while loading shared libraries: libpyt

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Martin v. Löwis
> What defines me as latin1-user? That your locale is based on Latin-1, e.g. because it is a German locale. How precisely that works depends on the operating system. > So my system seems to be an ASCII system? At least that's what Python determined. If Python couldn't have found out that you usu

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread Diez B. Roggisch
Robert Kern schrieb: dcharno wrote: Is it possible to use ctypes with a shared library which uses MMX/SSE intrinsics? I can load the library and access functions inside it, but I getting a seg fault when I hit one of the intrinsics. I'm wondering if there might be some sort of stack alignmen

Re: OOP books?

2008-10-15 Thread Rob Wolfe
Ken D'Ambrosio <[EMAIL PROTECTED]> writes: > Is there an intro-to-Python book where the emphasis isn't so > much on the language, but on OOP, itself? Or, failing that, at least > a Python book which doesn't just introduce the language, but gives > equal billing to OOP practices, etc. Take a look

Re: IDE Question

2008-10-15 Thread Fabio Zadrozny
>> Now, following that route, many people call Eclipse is the 21st >> century Emacs... ;-) >> > > I don't want to kick off an editor war or anything, but I don't think > that Eclipse is anywhere near being a 21st century emacs, Peace! I'm far from starting any war too (I don't usually try to convi

Re: OOP books?

2008-10-15 Thread Mike Driscoll
On Oct 15, 1:57 pm, Alan G Isaac <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > I have yet to read a Python book that only focuses on the OOP part, > > http://www.amazon.com/Scripting-Objects-Comparative-Presentation-Obje... > > fwiw, > Alan Isaac Wow! That's a pricey book! Have you read it

PDF warning under Ubuntu and Fedora

2008-10-15 Thread Stef Mientki
hello, Does anyone recognize this warning, which is produced under Ubuntu and Fedora but not under Windows ? ** (python:10896): WARNING **: Can't create printer "PDF" because the id "PDF" is already used (python:10896): GnomePrintCupsPlugin-WARNING **: The CUPS printer PDF could not be crea

Re: PDF warning under Ubuntu and Fedora

2008-10-15 Thread Chris Rebert
CUPS is the Common Unix Printing System. See http://en.wikipedia.org/wiki/CUPS for more info. Apparently something (your script or one of the libraries it uses perhaps?) is trying to create a new printer called "PDF" and failing because that name is already in use, hence the warnings. Cheers, Chri

Re: IDE Question

2008-10-15 Thread jdd
On Oct 15, 3:47 pm, "Fabio Zadrozny" <[EMAIL PROTECTED]> wrote: > You should be able to have it having multiple views for the same > file: although it does that by doing a new editor, and then you can > place that new editor as you want -- below some existing, to the > right, etc -- or you can

Re: Can Python fix vcard files?

2008-10-15 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Dotan Cohen wrote: > 2008/10/15 Lawrence D'Oliveiro <[EMAIL PROTECTED]>: >> >> What adds to the confusion is that quoted-printable has its own >> convention for soft-wrapping long lines, using an equals sign followed by >> a newline. > > My test file has newlines n

Loosely-coupled development environment (was: IDE Question)

2008-10-15 Thread Ben Finney
"Steve Phillips" <[EMAIL PROTECTED]> writes: > I am just wondering what seems to be the most popular IDE. The > reason I ask is I am currently at war with myself when it comes to > IDE's. It seems like every one I find and try out has something in > it that others don't and viceversa. This speaks

Re: IDE Question

2008-10-15 Thread Egon Frerich
Steve Phillips schrieb: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and viceversa. I am in search for the perfect I

Re: Python equivalent to SharePoint?

2008-10-15 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Paul Boddie wrote: > ... any absence of steep licensing costs isn't necessarily > an advantage in the consulting business since such stuff usually gets > passed onto the brand-obsessed customer. Sounds like you're talking about customers being bigger businesses, ra

Re: Loosely-coupled development environment (was: IDE Question)

2008-10-15 Thread Joe Strout
On Oct 15, 2008, at 2:47 PM, Ben Finney wrote: Because of the inescapable central role in our craft of manipulating text files, essential in this development environment is a highly-customisable text editor with a broad *and* deep library of existing customisations, to maximise the amount of wor

Re: [egenix-info] Re: ANN: eGenix mxODBC - ODBC Database Interface for Python 3.0.2

2008-10-15 Thread eGenix Team: M.-A. Lemburg
On 2008-10-15 20:30, Terry Reedy wrote: > FYI > I initially parsed the subject line as > "eGenix mxODBC - ODBC Database Interface" for "Python 3.0.2" > and thought, "Wow, already prepared for the future" (6 months to a year) > ;-). It's going to look even better when we release version 4.0 in a ye

Re: IDE Question

2008-10-15 Thread Mike Driscoll
On Oct 15, 12:29 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > You can find a list and several reviews > onhttp://wiki.python.org/moin/IntegratedDevelopmentEnvironments > I think Wing IDE (http://www.wingware.com/products) is generally > thought to be the most sophisticated one; but it's neither

Re: PDF warning under Ubuntu and Fedora

2008-10-15 Thread Stef Mientki
Chris Rebert wrote: CUPS is the Common Unix Printing System. See http://en.wikipedia.org/wiki/CUPS for more info. Apparently something (your script or one of the libraries it uses perhaps?) is trying to create a new printer called "PDF" and failing because that name is already in use, hence the w

Re: read zipfile sequentially?

2008-10-15 Thread Alan G Isaac
On 10/15/2008 3:13 PM Tim Chase apparently wrote: http://mail.python.org/pipermail/python-list/2007-December/469320.html Ask and ye shall receive... Thank you! Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Python fix vcard files?

2008-10-15 Thread Dotan Cohen
2008/10/15 Lawrence D'Oliveiro <[EMAIL PROTECTED]>: Thanks. The RFC pages for vcard (http://www.ietf.org/rfc/rfc2426.txt and http://www.ietf.org/rfc/rfc2425.txt) are very difficult for me to read. I'm using the test file to learn, and I will work out the kinks on other files that I come across. Th

Re: OOP books?

2008-10-15 Thread Alan G Isaac
On 10/15/2008 4:07 PM Mike Driscoll apparently wrote: Wow! That's a pricey book! Have you read it? Is it good? Per page the price is right: it runs nearly 1300 pages! I have not read it, but I have read a chunk of his previous http://www.amazon.com/Programming-Objects-Comparative-Presentation-O

Re: File Management

2008-10-15 Thread Bruno Desthuilliers
erict1689 a écrit : I am writing this program in which I open up a file and update that information but to a new file. I already have a global variable for it A global variable ??? WHY ??? but how do I go about creating an openable file in the source code? It's in the FineManual(tm) If

Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-15 Thread Bruno Desthuilliers
Lawrence D'Oliveiro a écrit : In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: If you're an Emacs user who has used both python-mode.el (the python mode code distributed with Python and XEmacs) and python.el (the python mode code distributed with GNU Emacs), I'd like to get your impress

Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-15 Thread Bruno Desthuilliers
Paul Rubin a écrit : [EMAIL PROTECTED] writes: If you're an Emacs user who has used both python-mode.el (the python mode code distributed with Python and XEmacs) and python.el (the python mode code distributed with GNU Emacs), I'd like to get your impressions on how they compare and where you fe

memory use with regard to large pickle files

2008-10-15 Thread Catherine Moroney
I'm writing a python program that reads in a very large "pickled" file (consisting of one large dictionary and one small one), and parses the results out to several binary and hdf files. The program works fine, but the memory load is huge. The size of the pickle file on disk is about 900 Meg so

Re: PDF warning under Ubuntu and Fedora

2008-10-15 Thread Chris Rebert
On Wed, Oct 15, 2008 at 2:12 PM, Stef Mientki <[EMAIL PROTECTED]> wrote: > Chris Rebert wrote: >> >> CUPS is the Common Unix Printing System. See >> http://en.wikipedia.org/wiki/CUPS for more info. >> Apparently something (your script or one of the libraries it uses >> perhaps?) is trying to create

Re: OOP books?

2008-10-15 Thread Bruno Desthuilliers
Ken D'Ambrosio a écrit : Hi, all. Over the years, I've programmed in a fair number of languages; the ones with which I became most familiar were assembler, BASIC, Pascal, and "lately" (the last fifteen years or so) Perl. Now I'm trying my hand at Python. While I don't have any problems with

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread dcharno
Robert Kern wrote: Well, stack alignment would be a problem with how the shared library gets compiled, nothing to do with ctypes (I think). However, if you are The shared library is built with '-m32 -msse2' and works fine from a C/C++ test harness, so I think its compiled okay. > passing in

VipIMAGE 2009 – ECCOMAS Thematic Conference - FIRS T ANNOUNCE

2008-10-15 Thread [EMAIL PROTECTED]
--- (Apologies for cross-posting) International ECCOMAS Thematic Conference VipIMAGE 2009 - II ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROC

Re: IDE Question

2008-10-15 Thread Craig Allen
it's commercial, but I like WingIDE enough to recommend... I run it on Linux and Mac and it works well. -craig On Oct 15, 7:19 am, "Steve Phillips" <[EMAIL PROTECTED]> wrote: > Hi All, > I am just wondering what seems to be the most popular IDE. The reason > I ask is I am currently at war with m

Re: memory use with regard to large pickle files

2008-10-15 Thread Martin v. Löwis
> The program works fine, but the memory load is huge. The size of > the pickle file on disk is about 900 Meg so I would theoretically > expect my program to consume about twice that (the dictionary > contained in the pickle file plus its repackaging into other formats), > but instead my program n

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Robert Kern wrote: > Try to check the addresses of the ctypes values you are passing in. I'm > not entirely sure how to do that, though. Cast the address to an integer and print it out? I think the data needs to be 16-byte-aligned, so in hex, the units digit of the

Re: Overloading operators

2008-10-15 Thread Aaron "Castironpi" Brady
On Oct 15, 7:34 am, Mr.SpOOn <[EMAIL PROTECTED]> wrote: > Hi, > in a project I'm overloading a lot of comparison and arithmetic > operators to make them working with more complex classes that I > defined. > > Sometimes I need a different behavior of the operator depending on the > argument. For exa

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread Robert Kern
dcharno wrote: Robert Kern wrote: Well, stack alignment would be a problem with how the shared library gets compiled, nothing to do with ctypes (I think). However, if you are The shared library is built with '-m32 -msse2' and works fine from a C/C++ test harness, so I think its compiled okay

Re: IDE Question

2008-10-15 Thread Dick Moores
Have you seen Kelie Feng's video introducing the terrific and free IDE, Ulipad? Get Ulipad 3.9 from svn for the latest revision Mailing list for Ulipad:

Re: Loosely-coupled development environment

2008-10-15 Thread Ben Finney
Joe Strout <[EMAIL PROTECTED]> writes: > You've never used BBEdit? (Perhaps because of the platform you use > -- that's a Mac-only text editor, but it meets your criteria nicely. > The free version "TextWrangler" does a pretty darn good job too, > though of course has some limitations.) Not becau

How to get the output of channel.exec_command(cmd) while using paramiko ?

2008-10-15 Thread sactiw
Hi Friends, I am trying to create a file on remote machine and then setting its file permissions to remote only thus now this file will act as a lock for me and as any body else now can't create same file on that machine and when my work is over I will reset the file permissions and

writing emacs commands with your fav lang

2008-10-15 Thread [EMAIL PROTECTED]
Here's a little tutorial that lets you write emacs commands for processing the current text selection in emacs in your favorite lang. Elisp Wrapper For Perl Scripts http://xahlee.org/emacs/elisp_perl_wrapper.html plain text version follows. - Elisp Wrapper For

How to transfer data structure or class from Python to C/C++?

2008-10-15 Thread Hongtian
Hi friends, I am a newer of Python. I want to ask below question: I have a C/C++ application and I want to use Python as its extension. To do that, I have to transfer some data structure from C/C++ application to Python and get some data structure from Python to C/C++ application. I have research

Re: OOP books?

2008-10-15 Thread Asun Friere
On Oct 16, 7:12 am, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: [snip] > Not a word about Python in it, > but:http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-... > > A must-read if you want to understand OO (MHO of course). Yes, if only to see how many of the design patt

Re: rope python-emacs problem

2008-10-15 Thread nullius . filius
On Oct 15, 7:19 pm, "Rustom Mody" <[EMAIL PROTECTED]> wrote: > Ive been trying to useropefor python in emacs and I get > a backtrace which starts with > AttributeError: 'module' object has no attribute 'samefile' > > Any ideas? I searched for a variable 'samefile' in ropemacs and its associated pa

like using python

2008-10-15 Thread gdyren
as the subject -- http://mail.python.org/mailman/listinfo/python-list

Re: how to support chinese in dos window

2008-10-15 Thread gdyren
On 10月16日, 上午10时18分, [EMAIL PROTECTED] wrote: > Create a new py named test.py,the content is "print "中"" > now in dos window python test.py > return "SyntaxError: Non-ASCII character '\xd6' in file test.py on > line 1, but no encodi > ng declared; seehttp://www.python.org/peps/pep-0263.htmlfor deta

iter with stepsize

2008-10-15 Thread Alan G Isaac
If I have a sequence, I can get every other or every fifth element by slicing. Is there an equivalent for iterators? More specifically, I want every fifth line of a big file. What is the most efficient way to get them? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: iter with stepsize

2008-10-15 Thread Paul Rubin
Alan G Isaac <[EMAIL PROTECTED]> writes: > If I have a sequence, I can get every other or every fifth > element by slicing. Is there an equivalent for iterators? itertools.islice -- http://mail.python.org/mailman/listinfo/python-list

UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in

2008-10-15 Thread MOS37F MOS37F
import shelve from ShelfFile import ABC from zipfile import ZipFile, ZIP_DEFLATED ShelfFilePath = 'E:\DIR\DIR\DIR\ShelfFile' def TEST(): ShelfFileObject = shelve.open(ShelfFilePath) RetrievedObject = ShelfFileObject['abc'] ShelfFileObject.close() return RetrievedObject Ret

Re: How to transfer data structure or class from Python to C/C++?

2008-10-15 Thread bearophileHUGS
Hongtian: > Could you please guide me to do that? or tell me some document to have > a research? You can start googling for: - SWIG - Boost.Python - SIP - ctypes (built-in module) - And more. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: iter with stepsize

2008-10-15 Thread Alan G Isaac
Alan G Isaac <[EMAIL PROTECTED]> writes: If I have a sequence, I can get every other or every fifth element by slicing. Is there an equivalent for iterators? On 10/15/2008 11:12 PM Paul Rubin apparently wrote: itertools.islice Oh, of course. I'm a bit embarrassed not to have thought to lo

Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-15 Thread Michele Simionato
On Oct 14, 7:37 pm, [EMAIL PROTECTED] wrote: > If you're an Emacs user who has used both python-mode.el (the python mode > code distributed with Python and XEmacs) and python.el (the python mode code > distributed with GNU Emacs), I'd like to get your impressions on how they > compare and where you

Re: IDE Question

2008-10-15 Thread Aaron "Castironpi" Brady
On Oct 15, 1:07 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > Steve Phillips wrote: > > Hi All, > > I am just wondering what seems to be the most popular IDE. The reason > > I ask is I am currently at war with myself when it comes to IDE's. It > > seems like every one I find and try out has somethi

Re: default value in __init__

2008-10-15 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Steven D'Aprano wrote: > On Thu, 09 Oct 2008 01:39:30 -0700, kenneth (a.k.a. Paolo) wrote: > >> On Oct 9, 10:14 am, Christian Heimes <[EMAIL PROTECTED]> wrote: >> >>> No, it always contains the default argument because default values are >>> created just ONE TIME <

Re: How to transfer data structure or class from Python to C/C++?

2008-10-15 Thread Aaron "Castironpi" Brady
On Oct 15, 8:08 pm, Hongtian <[EMAIL PROTECTED]> wrote: > Hi friends, > > I am a newer of Python. I want to ask below question: > > I have a C/C++ application and I want to use Python as its extension. > To do that, I have to transfer some data structure from C/C++ > application to Python and get s

Re: default value in __init__

2008-10-15 Thread Aaron "Castironpi" Brady
On Oct 15, 11:05 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message <[EMAIL PROTECTED]>, Steven D'Aprano > wrote: > > > On Thu, 09 Oct 2008 01:39:30 -0700, kenneth (a.k.a. Paolo) wrote: > > >> On Oct 9, 10:14 am, Christian Heimes <[EMAIL PROTECTED]> wrote: > > >

Re: Overloading operators

2008-10-15 Thread Kay Schluehr
On 15 Okt., 14:34, Mr.SpOOn <[EMAIL PROTECTED]> wrote: > Hi, > in a project I'm overloading a lot of comparison and arithmetic > operators to make them working with more complex classes that I > defined. > > Sometimes I need a different behavior of the operator depending on the > argument. For exam

Re: default value in __init__

2008-10-15 Thread Aaron "Castironpi" Brady
On Oct 15, 11:33 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Aaron "Castironpi" Brady wrote: > > [about how default argument behavior should, in his opinion, be changed] > > Say what you like. The language is as it is by choice. Were it, for some > reason, to change we would then be receiving pos

Re: Making class attributes non-case-sensitive?

2008-10-15 Thread Rafe
Thanks for the COM pointers Matt. I'll definitely look in to these. Perhaps this will become a non-issue when I use one of these COM wrappers... > Anybody who is used to developing at all is going to > accept that the software is case sensitive. Case sensitive? Yes. Letting types create hard to d

Re: default value in __init__

2008-10-15 Thread Steve Holden
Aaron "Castironpi" Brady wrote: [about how default argument behavior should, in his opinion, be changed] Say what you like. The language is as it is by choice. Were it, for some reason, to change we would then be receiving posts every week that didn't understand the *new* behavior. Sometimes peop

Re: default value in __init__

2008-10-15 Thread Chris Rebert
On Wed, Oct 15, 2008 at 9:43 PM, Aaron Castironpi Brady <[EMAIL PROTECTED]> wrote: > On Oct 15, 11:33 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> Aaron "Castironpi" Brady wrote: >> >> [about how default argument behavior should, in his opinion, be changed] >> >> Say what you like. The language i

Re: [NEWBIE] csv to excel format problem

2008-10-15 Thread Anders Eriksson
Hello Marco and welcome to the wonderful world of Python, Your problem is that the file is a text file so the values you are reading are text which you then write to the Excel sheet. So you need to convert the text value to a float value. Now the Big Cahonas has already been there so it's include

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-15 Thread sulyokpeti
On okt. 15, 09:04, J Peyret <[EMAIL PROTECTED]> wrote: > On Oct 12, 8:19 am, [EMAIL PROTECTED] wrote: > > > I would like to get some opinions on this approach. > > Thanks. > > I realize I will be minority here, but... > > I've never quite understood why folks want to repeat the database's > metadat

Re: rope python-emacs problem

2008-10-15 Thread rustom
[EMAIL PROTECTED] wrote: > On Oct 15, 7:19�pm, "Rustom Mody" <[EMAIL PROTECTED]> wrote: > > Ive been trying to useropefor python in emacs and I get > > a backtrace which starts with > > AttributeError: 'module' object has no attribute 'samefile' > > > > Any ideas? > > I searched for a variable 'sam

<    1   2