Re: problems trying to build python 2.6 as a shared library

2009-09-25 Thread Marco Nawijn
On Sep 25, 1:08 pm, Chris Withers wrote: > Hi All, > > I'm trying to build Python 2.6 as a shared library, so I did: > >    ./configure --enable-shared >    make >    make altinstall > > No obvious signs of failure, but when I try and use the resulting > python, I get: > > python2.6: error while l

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Paul Boddie : > On 25 Sep, 09:26, Donn wrote: >> >> You could use distutils (setup.py) and include a readme that explains what >> apt-get commands to use to install pygame, etc. Generally it's better to >> *not* >> include the kitchen-sink with your apps; rather expect the user to have

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Paul Boddie
On 25 Sep, 09:26, Donn wrote: > > You could use distutils (setup.py) and include a readme that explains what > apt-get commands to use to install pygame, etc. Generally it's better to *not* > include the kitchen-sink with your apps; rather expect the user to have those > libraries already or be ab

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Paul Boddie : > On 25 Sep, 08:15, Olof Bjarnason wrote: >> Hi! >> >> I write small games in Python/PyGame. I want to find a way to make a >> downloadable package/installer/script to put on my webpage, especially >> for Ubuntu users. >> >> I've skimmed a couple of tutorials on how to gene

problems trying to build python 2.6 as a shared library

2009-09-25 Thread Chris Withers
Hi All, I'm trying to build Python 2.6 as a shared library, so I did: ./configure --enable-shared make make altinstall No obvious signs of failure, but when I try and use the resulting python, I get: python2.6: error while loading shared libraries: libpython2.6.so.1.0: cannot open sha

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Paul Boddie
On 25 Sep, 08:15, Olof Bjarnason wrote: > Hi! > > I write small games in Python/PyGame. I want to find a way to make a > downloadable package/installer/script to put on my webpage, especially > for Ubuntu users. > > I've skimmed a couple of tutorials on how to generate .deb-files, but, > wow, it's

Re: can i use the browser to show the result of python

2009-09-25 Thread Dave Angel
Hacken wrote: I have write some python script i want to use browser(IE or FF) to call it, an show the returns! how to? You don't say much about your environment, nor the nature of your script. So my response will be very generic. If your script writes a valid html/xml/xhtml format to st

Re: PExpect on Windows System Using Cygwin

2009-09-25 Thread Dave Angel
Sean DiZazzo wrote: On Sep 24, 4:37 pm, Dave Angel wrote: Why not just use the subprocess module? It's built into the Windows distribution, and doesn't need cygwin. DaveA Can subprocess pass things like passwords to running processes like pexpect can? ~Sean I don't kn

Re: Finding application data after install - a solution?

2009-09-25 Thread Wolodja Wentland
On Fri, Sep 25, 2009 at 02:24 -0300, Gabriel Genellina wrote: > En Thu, 24 Sep 2009 08:21:59 -0300, Wolodja Wentland > >How do *you* deal with application data in your programs? Is there a way > >that works on as many platforms as possible? > On linux, using a configuration file like /etc/fooappli

Re: Date using input

2009-09-25 Thread Dave Angel
flebber.c...@gmail.com wrote: I don't think I am using re.compile properly, but thought as this would make my output an object it would be better for later, is that correct? #Obtain date def ObtainDate(date): date = raw_input("Type Date dd/mm/year: ") re.split('[/]+', date) date year = date[-1

Re: Poll: Do you use csv.Sniffer?

2009-09-25 Thread John Machin
On 25/09/2009 7:04 PM, Tim Chase wrote: Why do you need the sniffer? If your client can't do "save as" the same way twice, just read the spreadsheets directly! If I only had one contact and one client, it would be this easy...If you can get multiple points of contact at multiple client sites t

can i use the browser to show the result of python

2009-09-25 Thread Hacken
I have write some python script i want to use browser(IE or FF) to call it, an show the returns! how to? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python und Referenzen auf Variablen?

2009-09-25 Thread Martin
Hi, this list is english only. I won't translate for you as I think you wouldn't be happy with it - as you can't read the recommendations - if you don't speak english. In that case you might want to try python...@python.net) (die Liste ist eigentlich nur english, ich übersetze das mal nicht, da d

Python und Referenzen auf Variablen?

2009-09-25 Thread Torsten Mohr
Hallo, ich möchte im Speicher eine verschachtelte Struktur aufbauen in der dict()s und list()s verwendet werden und tief ineinander verschachtelt sind. D.h. mehrere lists und dicts können jeweils wieder lists und dicts enthalten. Ich möchte als Einträge hauptsächlich int, float und string verwen

Re: Poll: Do you use csv.Sniffer?

2009-09-25 Thread Tim Chase
Why do you need the sniffer? If your client can't do "save as" the same way twice, just read the spreadsheets directly! If I only had one contact and one client, it would be this easy...If you can get multiple points of contact at multiple client sites to reliably & competently agree on a form

lxml and xmlsec

2009-09-25 Thread Roland Hedberg
Hi! Anyone know if it is possible to use xmlsec together with lxml ? -- Roland -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Ben Finney
Olof Bjarnason writes: > I write small games in Python/PyGame. I want to find a way to make a > downloadable package/installer/script to put on my webpage, especially > for Ubuntu users. As a program developer, you should be less concerned with the specifics of any particular distribution, and a

Re: iterate over list while changing it

2009-09-25 Thread Warpcat
iterate over a copy of the list: for i, x in enumerate(a[:]): Always worked for me ;) -- http://mail.python.org/mailman/listinfo/python-list

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: Read header and data from a binary file [LONG]

2009-09-25 Thread Gabriel Genellina
En Tue, 22 Sep 2009 18:18:16 -0300, Jose Rafael Pacheco escribió: Hello, I want to read from a binary file called myaudio.dat Then I've tried the next code: import struct name = "myaudio.dat" f = open(name,'rb') f.seek(0) chain = "< 4s 4s I 4s I 20s I I i 4s I 67s s 4s I" s = f.read(4*1+4*1

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Jean Daniel : > Maybe the distutils list is more adapted for this question: Yes > > The Zope community uses zc.sourcerelease to build rpm > http://www.mail-archive.com/distutils-...@python.org/msg06599.html > > Buildout is said to have undocumented features to build packages. > > Tarek

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Jean Daniel
Maybe the distutils list is more adapted for this question: The Zope community uses zc.sourcerelease to build rpm http://www.mail-archive.com/distutils-...@python.org/msg06599.html Buildout is said to have undocumented features to build packages. Tarek Ziade is working debian package with 'distr

Re: DBHandler class for logging?

2009-09-25 Thread Nebur
With a similar requirement, I made a small logging tool (usable as handler) which logs into nearly every DB (including Postgres - thanks to the SQLAlchemy library.) It has BSD license. You may use it (or parts of the code): http://www.reifenberg.de/rrlog/ (It does some more things you may not need,

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Donn
On Friday 25 September 2009 08:15:18 Olof Bjarnason wrote: > Does anyone have any hint on a more economic way of creating > single-file distribution packages You could use distutils (setup.py) and include a readme that explains what apt-get commands to use to install pygame, etc. Generally it's be

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Javier Collado
Hello, I recommend you to check this: https://wiki.ubuntu.com/PackagingGuide/Complete The best way to release the software to Ubuntu users is by means of a PPA (https://help.launchpad.net/Packaging/PPA) so that people can track your application updates automatically. Before the PPA is created you

Re: Most "active" coroutine library project?

2009-09-25 Thread Hendrik van Rooyen
On Thursday, 24 September 2009 15:42:36 Antoine Pitrou wrote: > Grant Edwards invalid.invalid> writes: > > Back when I worked on one of the first hand-held cellular > > mobile phones, it used co-routines where the number of > > coroutines was fixed at 2 (one for each register set in a Z80 > > CPU)

<    1   2