Re: Re: Progress migrating cffi and pycparser to libclang

2018-01-05 Thread Armin Rigo
port and use inside a CFFI build script in order to provide content to ffi.cdef(). A bientôt, Armin. -- https://mail.python.org/mailman/listinfo/python-list

mySQLdb

2013-02-02 Thread Armin Karner
I really hope you have a solution for me, because it is quite urgent and important.  I am looking forward to a quick answer! Yours faithfully Armin Karner-- http://mail.python.org/mailman/listinfo/python-list

occupywallst.org is looking for Python programmers

2011-11-12 Thread Harald Armin Massa
just got this from Richard: Justine told me they are looking for Python programmers. (It involves Django also.) so, if anyone is interested to help them out, please contact Justine. Best wishes Harald -- Harald Armin Massa no fx, no carrier pigeon - -- http://mail.python.org/mailman

Re: Problem displaying jpgs in Tkinter via PIL

2010-05-11 Thread Armin
Enthought distribution on my Mac is broken, but I can't figure out how to fix that. (I wiped my python installations and did a re-install, all to no avail.) As long as I don't need Tkinter for the GUI I'm envisioning, I don't really care however. On 2010-05-10 14:01:10 -0700,

Problem displaying jpgs in Tkinter via PIL

2010-05-10 Thread Armin
Hi everyone, I'm new to Python and have been playing around with it using the Enthought Python distribution for Mac OS X 10.6.3 (EPD academic license, version 6.1 with python 2.6.4). It's been great learning the basics, but I've started running into problems when I'm trying to use the PIL li

Re: python needs leaning stuff from other language

2009-04-02 Thread Armin
> >>> some_list[:] = ['a','b','c'] > >> >>> d[1] > >> 'b' > >> >>> some_list = [1,2,3] > >> >>> d[1] > >> 'b' > >> > >> the [:] form allows references into the list to remain valid while the > >> direct assignment dopes not. > > > > Ah .. thanks for clarifying this .. makes sense. > > > > Also, thank you Luis for your post. > > > > Esmail > > > > -- > > http://mail.python.org/mailman/listinfo/python-list > > -- > http://mail.python.org/mailman/listinfo/python-list A .clear() method wouldn't be beneficial: del mylist[:] -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

postfix type declaration

2009-03-30 Thread Armin
http://www.python.org/dev/peps/pep-3117/ Found it uber-funny! enjoy! It would have been cool if they actually accepted this! -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: splitting a large dictionary into smaller ones

2009-03-22 Thread Armin
g/mailman/listinfo/python-list sqlite3 module read more about it in python documentation. -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: what is the python version that NASA using?

2009-03-20 Thread Armin
ade it so often. maybe 2.2? -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: Holy hand grenade!

2009-03-20 Thread Armin
On Friday 20 March 2009 11:54:35 Aahz wrote: > http://www.telegraph.co.uk/news/newstopics/howaboutthat/5018294/Pub-evacuat >ed-after-Monty-Python-prop-mistaken-for-grenade.html LOL!!! -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: python equivalent of java technologies

2009-03-19 Thread Armin
On Thursday 19 March 2009 07:45:01 Jeremiah Dodds wrote: > On Tue, Mar 17, 2009 at 8:32 PM, Armin wrote: > > You could tell her to try Jython. In that, you can just use the Java > > implementations. :) Plus, you have things in Jython that Java doesn't :D > &g

Re: python equivalent of java technologies

2009-03-18 Thread Armin
the Java implementations. :) Plus, you have things in Jython that Java doesn't :D -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to Perl transalators

2009-03-18 Thread Armin
On Wednesday 18 March 2009 11:01:00 Boris Borcic wrote: > Armin wrote: > >> > >> Why on earth would you want to? That'd be like translating Shakespeare > >> into a bad rap song! > >> > > > > lol, actually I would prefer a rap song

Re: objectoriented -?- functional

2009-03-18 Thread Armin
; > >>> print("ll=", ll) > > > > ('ll=', [['a', 11], ['b', 33], ['a', 11], ['b', 33]]) > > > > But I expected to get ... > > ('ll=', [[11, 22], [33, 44], [22, 11], [44, 33]]) > > ... how would that elegantly be achieved with Python ? > > Sorry, I cannot infer the pattern. How would you do that at all? > > Peter > -- > http://mail.python.org/mailman/listinfo/python-list If you want to reimplement list.extend() (as I understand?) you will have to subclass it and change the behaviour. -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to Perl transalators

2009-03-17 Thread Armin
at'd be like translating Shakespeare > into a bad rap song! > > > Cheers, > Chris lol, actually I would prefer a rap song over Shakespeare, so your analogy doesn't work there ;) -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: How to do this in Python?

2009-03-17 Thread Armin
s you > found Python before it was too late! I should agree, that looks too much like C. (except there are no ; at the end of first two lines). And I'm sure you will much enjoy your adventure as a pythonista (pythanista?) just as I have after migration from C++. -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: array next pointer

2009-03-17 Thread Armin
eter name. Could you give an example of next() with a sentinel and describe its use case please? I have a little trouble understanding what you guys mean! thanks, -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: having a function called after the constructor/__init__ is done

2009-03-16 Thread Armin Moradi
it__(False) self.c = 4 print "B initialized" MyClass.on_load() def on_load(self): print 'hello!' Would this work? (posted it again to include the python-list in To:) -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: Lists aggregation

2009-03-16 Thread Armin
process > Some help? > > Thanks, Mattia > -- > http://mail.python.org/mailman/listinfo/python-list zip wouldn't work here, you can use list comprehensions: l = [(x, y) for x in l1 for y in l2] -- Armin Moradi -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe + SQLite problem

2009-02-01 Thread Armin
Hello, Thanks to all ... it's working now ! Google isn't always your friend :) I found in the net a lot but wrong examples for specification of "data_files". Now I have the correct one. Best Regards --Armin Gabriel Genellina wrote: En Sat, 31 Jan 2009 11:51:16 -0

Re: py2exe + SQLite problem

2009-01-31 Thread Armin
Gabriel Genellina wrote: En Fri, 30 Jan 2009 09:50:08 -0200, Armin escribió: Right at the end: "To install data files directly in the target directory, an empty string should be given as the directory." setup(..., data_files=[ ('', ['list/

Re: py2exe + SQLite problem

2009-01-30 Thread Armin
Gabriel Genellina wrote: En Thu, 29 Jan 2009 13:05:11 -0200, Armin escribió: I have frozen a running application which is using SQLite with py2exe. When I start the exe file I see in the log file of the exe: Traceback (most recent call last): File "dpconf.py", line 666, in

distutil problem ??

2009-01-29 Thread Armin
ollowing err msg: *** copy data files *** warning: install_data: setup script did not provide a directory for '' -- installing right in 'C:\pyDPCONF.2.3-dev\dist' error: can't copy '': doesn't exist or not a regular file Looks a little bit inconsistent ? --Armin PS: "." makes also problems -- http://mail.python.org/mailman/listinfo/python-list

py2exe + data_files

2009-01-29 Thread Armin
Hello, is there a way to place individual data files into to the standard 'dist' directory and not into a subdirectory of 'dist' --Armin -- http://mail.python.org/mailman/listinfo/python-list

py2exe + SQLite problem

2009-01-29 Thread Armin
e\main.pyc", line 255, in execute _sqlite.DatabaseError: no such table: genslaveopt The table exist in the database file ... no problem with the plain python version. How can I solve that problem ?? Best Regards --Armin -- http://mail.python.org/mailman/listinfo/python-list

py2exe + SQLite problem

2009-01-29 Thread Armin
e\main.pyc", line 255, in execute _sqlite.DatabaseError: no such table: genslaveopt The table exist in the database file ... no problem with the plain python version. How can I solve that problem ?? Best Regards --Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 372 -- Adding an ordered directory to collections

2008-06-19 Thread Armin Ronacher
devel. - Comparison behavor was documented - a note on Python 3 support was added (about keys-views) Regards, Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 372 -- Adding an ordered directory to collections

2008-06-18 Thread Armin Ronacher
efficient way on the C layer where one only has to iterate over the linked list offset times and return the item. And iteration for that linked list is most likely something like "for (n = 0; n != offset; ++n) iter = iter->next". Regards, Armin -- http://mail.python.org/mailman/listinfo/python-list

PEP 372 -- Adding an ordered directory to collections

2008-06-16 Thread Armin Ronacher
, 23), ('c', 19)]) >>> l = d.items() >>> l.insert(1, ('x', 0)) >>> odict(l) collections.odict([('a', 42), ('x', 0), ('b', 23), ('c', 19)]) Example Implementation == A poorl

Re: Python, PostgreSQL, What next?

2006-12-02 Thread Armin
> I've studied Python and studied PostgreSQL. Good. >What is the absolute next best step to take to merge these two finely >together? I've heard of Just download psycopg2. Python and PostgreSQL are a match made in heavan. Make your connection, do querys, get data, earn profits. Object-Rel

Re: hide python code !

2006-08-15 Thread Armin Steinhoff
C-Modules from the critical parts of your software. > > --- > First Iranian Open Source Community : www.python.ir Interesting ... but you are not a member of this community. Right? --Armin -- http://mail.python.org/mailman/listinfo/python-list

Europython 2006 call for proposals

2006-05-18 Thread Harald Armin Massa
Hello, I am writing this supporting the Python in Business Track. We are looking for talks proposals concerning the usage of Python in doing business. So, if you have a story to tell... Maybe you have written a webcrawler in Python and founded a search engine? Or you are using Python to organize

Re: lines of code per functional point

2006-05-09 Thread Harald Armin Massa
Bryan, at the end of the paper there is a reference to: http://page.mi.fu-berlin.de/~prechelt/documents/jccpp_tr.pdf In chapter 5.6 on page 19 of this publication you can find Figure 10, Displaying program length in comparison. I read the graphics (looking at the yellow boxes) that most of the

EuroPython 2006: Call for papers

2006-04-25 Thread Armin Rigo
Hi all, A shameless plug and reminder for EuroPython 2006 (July 3-5): * you can submit talk proposals until May 31st. * there is a refereed papers track; deadline for abstracts: May 5th. See the full call for papers below. A bientot, Armin Rigo & Carl Friedrich

Re: New Python website, new documentation ?

2006-03-30 Thread Armin Ronacher
everything compact and python.org for the companies and core developers Something really basic. Only small tutorials, a documentation with comments and a list of python applications. With a clean design and only few links per page. Something like the rubyonrails page for example. Regards, Armin

Re: Try Python!

2006-03-29 Thread Armin Ronacher
BartlebyScrivener wrote: > Armin, > > Mike Meyer already took a crack at this, and his starts right up just > by clicking on the link. > > http://www.mired.org/home/mwm/try_python/ Hm. Looks not that useful since you can't create any functions and you can remove the pr

Try Python!

2006-03-29 Thread Armin Ronacher
id - python trypy.py The last command starts the application. And here a screenshot of a running session: http://trac.pocoo.org/wiki/TryPy Regards, Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop: some history for the new-comers

2006-03-16 Thread Harald Armin Massa
Tim, > For most people 'developers' would mean people developing *with* python, > not developing python. one of the richest people on earth did define what developers are: http://www.ntk.net/ballmer/mirrors.html people developing with something. So, unless we get /F or BDFL to do an even more a

Re: New python.org site

2006-03-12 Thread Armin Ronacher
de, a download section and links to important python pages as well as a nice designed moinmoin wiki. Regards, Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_Oracle and UTF8

2006-02-27 Thread Harald Armin Massa
Gerhard, thanks, that import os os.environ["NLS_LANG"] = "German_Germany.UTF8" import cx_Oracle con = cx_Oracle.connect("me/[EMAIL PROTECTED]") really helped. At least now the query returns something encoded differently. I dared not to believe that there is no "direct encoding change api" withou

Re: cx_Oracle and UTF8

2006-02-23 Thread Harald Armin Massa
Dietz, thank you for your answer. > It's called NLS (national language support), >and it is like a locale-setting in python/C. I'm too lazy to google right Sad thing: I allready googled that and had to learn: you CAN definitely change some parameters, that is sort order and language for error me

cx_Oracle and UTF8

2006-02-22 Thread Harald Armin Massa
Hello, I am looking for a method to convince cx_Oracle and oracle to encode it's replies in UTF8. For the moment I have to... cn=cx_Oracle.connect("user","password", "database") cs=cn.Cursor() cs.execute("select column1, column2, column3 from table") for row in cs.fetchall(): t=[] for i

Re: How many web framework for python ?

2006-02-19 Thread Harald Armin Massa
Bruno, >In fact, there are actually too much *good* python web frameworks. I tended to share that opinion, just because there are more web frameworks then keywords in Python. But we should stop thinking of this as a bug; it is a feature. Because everyone and his girlfriend creates an own web fra

Re: Python vs. Lisp -- please explain

2006-02-19 Thread Harald Armin Massa
>>OK, but then we should change , >>which starts with "Python is an interpreted, interactive, >>object-oriented programming language." I second this motion. Even tried to persuade the site maintainer before. We should really, really change it. The perceived spee

Re: editor for Python on Linux

2006-02-19 Thread Armin Steinhoff
Mladen Adamovic wrote: > Hi! > > I wonder which editor or IDE you can recommend me for writing Python > programs. I tried with jEdit but it isn't perfect. > Nothing is perfect ... but try SciTE and Eric http://www.die-offenbachs.de/detlev/eric3.html --Armin

Re: Python multithreading on cluster system? Embedding python in PVM?

2006-02-19 Thread Armin Steinhoff
p would be very kind.Thanks. > http://pypvm.sourceforge.net --Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: Match First Sequence in Regular Expression?

2006-01-28 Thread Armin Steinhoff
he request: >I'm looking for a regular expression that matches the first, and only > the first, sequence of the letter 'a', and only if the length of the > sequence is exactly 3. --Armin > > > Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-10 Thread Armin Rigo
el like seeing your money back in exchange for some papers to fill and sign, please show up... A bientot, Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-10 Thread Armin Rigo
el like seeing your money back in exchange for some papers to fill and sign, please show up... A bientot, Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-27 Thread Harald Armin Massa
ges and got faster and faster and faster. Maybe only mediocre and less ideas need a great leader. Maybe a great idea can lead for itself? Harald -- GHUM Harald Massa persuadere et programmare Harald Armin Massa Reinsburgstraße 202b 70197 Stuttgart 0173/9409607 -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido at Google

2005-12-21 Thread Harald Armin Massa
> It seems that our master Guido van Rossum had an offer from google and > he accepted it!! Isn't Guido-Sans official title BDFL? *wink* whatever, if it's true, congratulations and best wishes. Now there is one *bot and the BDFL at google, we have still 3 bots in the wild, do we? Suggesting to n

Re: reddit.com rewritten in Python

2005-12-05 Thread Harald Armin Massa
Yeah! Another web framework for Python! Now we can proudly say: Python: the only language with more web frameworks than keywords Harald -- http://mail.python.org/mailman/listinfo/python-list

Re: reddit.com rewritten in Python

2005-12-05 Thread Harald Armin Massa
Yeah! Another web framework for Python! Now we can prouldy say: Python: the only language with more web frameworks than keywords Harald -- http://mail.python.org/mailman/listinfo/python-list

Re: python speed

2005-11-30 Thread Harald Armin Massa
>Faster than assembly? LOL... :) why not? Of course, a simple script like "copy 200 bytes from left to right" can be handoptimized in assembler and run at optimum speed. Maybe there is even a special processor command to do that. I learned that there was one generation of CPUs which had effective

Re: python speed

2005-11-30 Thread Harald Armin Massa
Dr. Armin Rigo has some mathematical proof, that High Level Languages like esp. Python are able to be faster than low level code like Fortran, C or assembly. I am not wise enough to understand that proof. Maybe I understood those papers totally wrong and he was saying something totally different

Re: Application Plugin Framework

2005-11-22 Thread Harald Armin Massa
Ron, > I'm attempting to develop a plugin framework for an application that I'm > working on. I wish to develop something in which all plugins exist in a > directory tree. The PIL of the effbot is doing exactly this. (Python Image Library). I know it, because I had to work around that dynamic

Re: Announce: PythonD 2.4.2 r 1.0 for DJGPP/DOS/Windows

2005-11-18 Thread Harald Armin Massa
Claudio, maybe it's because PythonD is running within DOS? (which, for archaelogical completeness, is an ancient operating system) Harald -- http://mail.python.org/mailman/listinfo/python-list

migrate from ZODB 3.3.1 --- to where, and how?

2005-10-25 Thread Harald Armin Massa
Hello, I am using ZODB "standalone" in version 3.3.1 within some application. Now I learn that the 3.3.x branch of ZODB is "retired". No problem so far, everything is running fine. BUT... "retired" gives me the hint that nothing GREAT will be done to this branch anymore :) Now I am questioning

Re: Python vs Ruby

2005-10-21 Thread Harald Armin Massa
Casey, > I have heard, but have not been able to verify that if a program is > about > 10,000 lines in C++ > it is about > 5,000 lines in Java > and it is about > 3,000 lines in Python (Ruby to?) BTW: it is normally only 50 lines in Perl. Not that you could read it, though Harald -- http://ma

Re: Python's Performance

2005-10-10 Thread Harald Armin Massa
Fredrik, but still some very valuable people write: """ What is Python? Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java. """ taken from http://www.python.org/doc/Summary.html maybe someone could update that??? Haral

Re: Soap Question (WSDL)

2005-10-01 Thread Armin
, Armin -- http://mail.python.org/mailman/listinfo/python-list

Soap Question (WSDL)

2005-09-29 Thread Armin
RL is http://www.flickr.com/services/soap/ What am I supposed to do here? Help is very much appreciated at this point. Thanks, Armin -- http://mail.python.org/mailman/listinfo/python-list

multiple replaces

2005-09-16 Thread Harald Armin Massa
again, and again ... another try of templating txt=""" whatever the machine with bing 10% of boo is foo """ h1=txt.replace("%","%%") h2=h1.replace("","%(tree)s") h3=h2.replace("","%(house)s") house="something awfull" tree="something beautifull" print h3 % locals() --> the approach allows

Re: Should I move to Amsterdam?

2005-08-24 Thread Armin Steinhoff
gt; > > http://www.slate.com/id/2124561/entry/2124562/ > > Nice little series by Seth Stevenson for Americans daydreaming about > emigration. Somewhere, anywhere ... maybe Amsterdam? > > I've never been to the Netherlands myself, but it >sounds very civi

Re: Dabo in 30 seconds?

2005-08-01 Thread Harald Armin Massa
Cliff (who has a love/hate relationship with Twisted) wrote: > Twisted, for one, can't be used without knowing Python. In fact, > without knowing Python quite well. For that matter, it can't easily be > used . Is "using" really a verb that is fitting for working with twisted? As much as I read

Re: PEP on path module for standard library

2005-07-22 Thread Harald Armin Massa
>Having path descend from str/unicode is extremely useful since I can >then pass a path object to any function someone else wrote without >having to worry about whether they were checking for basestring. I use path.py from Jason to encapsulate a lot of the windows plattform specialities of path dea

Re: PEP on path module for standard library

2005-07-22 Thread Harald Armin Massa
> When you try to 'freeze' an application module, >and Jason's 'path' module is present in any of the directories that are >looked at by freeze's module finder (your app doesn't have to import >it), freeze goes into an infinite loop of imports, eventually getting a >'maximum recursion depth' except

Re: How do you program in Python?

2005-07-05 Thread Harald Armin Massa
Peter, > I do all my work using Scite Me too! > So, any time I need to test the changes, I hit four keys (which at this > point is understandably more like a "chord" that I hit without direct > awareness of it) and I'm done. Sounds pretty close to old-style BASIC > and since I've come that route

Re: Considering moving from Delphi to Python [Some questions]

2005-07-05 Thread Harald Armin Massa
> I want some feedback on folllwing: > anybody who has experience in writing SOAP servers in Python and data > entry heavy web applications. > Any suggestions? > darkcowherd > I have never written SOAP Servers. But I have very very good experience in creating entry heavy web application using Pytho

Post-EuroPython 2005 PyPy Sprint 1st - 7th July 2005

2005-06-12 Thread Armin Rigo
eel free to ask any questions there! .. _`PyPy sprint mailing list`: http://codespeak.net/mailman/listinfo/pypy-sprint -- Armin Rigo & the PyPy team -- http://mail.python.org/mailman/listinfo/python-list

Re: PyXML/expat and the empty elements

2005-05-17 Thread Armin Steinhoff
Armin Steinhoff wrote: > > > Hi all, > > is it possible to get the name of an empty element specified > by ... the expat parser seems only to recognize > the form > > Regards > > Armin Ok ... found the root of the problem. The expat parser is OK

PyXML/expat and the empty elements

2005-05-17 Thread Armin Steinhoff
Hi all, is it possible to get the name of an empty element specified by ... the expat parser seems only to recognize the form Regards Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: pyvm -- faster python

2005-05-13 Thread Armin Steinhoff
Stelios Xanthakis wrote: > Armin Steinhoff wrote: > >>> >>> pyvm has that. A big part of it is written in "lightweight C++" [1]. >> >> >> >> Realy ? I have downloaded the lwc distribution and checked it out. >> It was a surprise t

Re: pyvm -- faster python

2005-05-13 Thread Armin Steinhoff
c). A low level OOP language would be very suitable > for a python VM. > > pyvm has that. A big part of it is written in "lightweight C++" [1]. Realy ? I have downloaded the lwc distribution and checked it out. It was a surprise that none of the examples are working. I'

Re: GIL release

2005-03-18 Thread Armin Steinhoff
the OS ... the access to the GIL is managed by 'cooperative scheduling'. --Armin Thanks, agb. -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a C program from a Python Script

2004-12-09 Thread Armin Steinhoff
Python solution? I would compile that C program into a shared library (*.so or *.dll ) in order to use that shared library with ctypes ... that's the easiest way, IMHO :) ( http://starship.python.net/crew/theller/ctypes ) Regards Armin Thank you, Brad -- http://mail.python.org/mailman/lis

CTYPE 0.9.2 porting problems

2004-12-06 Thread Armin Steinhoff
# XXX But this not! WHY on earth? >> BUT this IS working!! arg = byref(v) result = f(arg) self.failIfEqual(result.contents, v.value) I see always a crash of Python if the library call time() is used ... but it happens only with this call. What could be in

Psyco 1.3 released

2004-12-03 Thread Armin Rigo
built-in functions that read the local variables -- locals(), eval(), execfile(), vars(), dir(), input() -- now work correctly! A bientot, Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: Protecting Python source

2004-11-29 Thread Armin Steinhoff
from zip files where the zip files are password protected ? Any other ideas ? Use Pyrex in order to convert the critical parts to C modules ... Regards Armin Many thanks, Alan -- http://mail.python.org/mailman/listinfo/python-list