Re: pyPgSQL giving error!

2005-01-13 Thread Harald Massa
> I am using Redhat 9.0/python2.3. I installed pyPgSQL-2.4.tar.gz and it > was successfull. Now when I am trying to import that module, I got: > Type "help", "copyright", "credits" or "license" for more information. from pyPgSQL import PgSQL > Traceback (most recent call last): > File "", li

Re: py2exe problem

2005-01-26 Thread Harald Massa
Grant Edwards > LookupError: no codec search functions registered: can't find encoding > Googling for the error message will find you the answer. http://starship.python.net/crew/theller/moin.cgi/Py2Exe carries within "encodings" and "encodings again" receipes to get it working. A software d

Re: py2exe problem

2005-01-26 Thread Harald Massa
Thomas Heller <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: >> >> A software development system which REALLY solves the encodings >> problem WITHOUT creating a swarm of new ones could would challange >> even my devotedness to Python : > > AFAIK, McMillan Installer solves this by inclu

Re: py2exe problem

2005-01-27 Thread Harald Massa
Thomas, > Would the above (include all encodings stuff by default) be a good > solution, or do you have other ideas? I assume a good solution would involve switching pythons default from "ASCII" to "UNICODE" :) But ... as far as py2exe is concerned, yeah, I think it would be helpfull to includ

Re: Is there a market for python developers?

2005-02-03 Thread Harald Massa
> I am new to python and took my first attempts at working with this > language today. Is there a market for people who work with Python? Absolutely no. Only unimportant and unknown companies like Google, Nokia, Industrial Light and Magic as well as GHUM Harald Massa do work with

Re: Java RMI-like services in Python

2005-07-18 Thread Harald Massa
Maurice LING <[EMAIL PROTECTED]> wrote in news:dbfmbq$e49$1 @domitilla.aioe.org: > I am wondering if Python has services or frameworks that does the same > as Java RMI? google for pyro Harald -- http://mail.python.org/mailman/listinfo/python-list

Re: Py: a very dangerous language

2005-08-01 Thread Harald Massa
"yoda" > It was 6 a.m just one more lambda...I'll really sleep > now...seriously... I've got to go to work in a few hours I also love Python deeply, and really enjoyed the intense description of your experience. One experience I won and wanna share with you: allways go to bed exactly w

Re: Python dutch

2005-08-22 Thread Harald Massa
Sybren Stuvel , > I'd suggest learning English. The programming language is based on > English anyway. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. To be even more exact, it would help to learn or even b

Googling for wmi and python....

2005-02-06 Thread Harald Massa
I upgraded Python to 2.4 now the game really starts, looking all over the internet for all the packages ... I needed Tim Goldens WMI ... and googeld, dropping there: http://www.microsoft.com/technet/scriptcenter/scripts/python/misc/wmi/defau lt.mspx With comment: Sample scripts for retrieving

overwriting method in baseclass

2005-02-06 Thread Harald Massa
Hello! I am using a library (= code of so else) within Python. Somewhere in this library there is: class foo: def baa(self, parameters): print "something" self.baazanan(some other parameters) class mirbo(foo): def baazanan(self, lalala): print "heylo t

Re: overwriting method in baseclass

2005-02-07 Thread Harald Massa
bruno modulix <[EMAIL PROTECTED]> wrote in > >> So, what is the most elegant solution to administer these changes? > > > Use a version control system (svn is quite fine...). > Thanks for that recommendation, I really do use subversion for some time. But how can I use it to solve this problem

Re: overwriting method in baseclass

2005-02-09 Thread Harald Massa
marc, >> So HOW can SVN be of any use for THIS prob? > > Take a look at the Subversion documentation (the "book") and search > for `Vendor branches`. > [...] > The section deals specifically with the situation how to manage 3rd > party source code with subversion which you want to update from ti

head for grouped data - looking for best practice

2005-03-12 Thread Harald Massa
Old, very old informatical problem: I want to "print" grouped data with head information, that is: eingabe=[ ("Stuttgart","70197","Fernsehturm","20"), ("Stuttgart","70197","Brotmuseum","123"), ("Stuttgart","70197","Porsche","123123"), ("Leipzig","01491","Messe","91822"), ("Leipzig","01491","Scha

Re: How to send browser to open a different URL

2005-03-12 Thread Harald Massa
"Mike Wimpe" <[EMAIL PROTECTED]> wrote in news:1110628448.532469.117000 @g14g2000cwa.googlegroups.com: http://groups.google.de/groups?hl=de&lr=&c2coff=1&threadm= 2c60a528.0309251324.109d4af5%40posting.google.com&rnum=5&prev=/groups%3Fq% 3Dhttp%2520redirect%2520header%2520python%26hl%3Dde%26lr%3D%2

Re: head for grouped data - looking for best practice

2005-03-12 Thread Harald Massa
Steve, > Why don't you just pass a slice to itemgetter? py> for key, bereich in groupby(eingabe, itemgetter(slice(0, 2))): WHOW, that is great! that makes it really simple, just have to structure the SQL to make a real "cut first, serve first" structure. Thanks to all who helped! also the "f

Re: Beware complexity

2005-03-13 Thread Harald Massa
Philip, more often than not, all needed was included in Python years ago. Especially: > I wonder if anyone has any thoughts not on where Python should go but > where it should stop? The answer is included within the standard library. On any Python command prompt type: >>>import this The Zen

Re: Use macros in Excel via win32com

2004-12-19 Thread Harald Massa
chris, > I'm creating an excel document dynamically from scratch using Python > and the win32com module. All is well, but now I need to add a macro to > the spreadsheet and run it (to enable some sorting features in the > spreadsheet). I recommend to create the excel document not from scratch

Re: Example Code - Named Pipes (Python 2.4 + ctypes on Windows)

2005-03-26 Thread Harald Massa
"Srijit Kumar Bhadra" <[EMAIL PROTECTED]> wrote in > Here is an example of Multithreaded Pipe Server and Client using the > excellent ctypes library (Windows). Excellent. Maybe you would also like to post it to the http://starship.python.net/crew/theller/moin.cgi/CtypesModule Ctypes-Wiki for eas

Re: a=[ lambda t: t**n for n in range(4) ]

2005-04-23 Thread Harald Massa
Mage <[EMAIL PROTECTED]> wrote in news:mailman.2339.1114242211.1799.python- > The "lambda functions" was an unclear part of the tutorial I read. > Should I use them? Are they pythonic? > As far I see they are good only for type less a bit. And to obfusicate code. lambda is evil, do not play with

Re: query progress bar

2005-05-16 Thread Harald Massa
> it's for wx, the problem isn't making the progress bar itself, it's > knowing how long the query is going to run for. > i'm using pypgsql It is quite easy: from timemachine import oracle guesser=oracle(guess="SQL") guesser.set_hint(driver="pypgsql") guesser.set_hint(gui="wx") expected_runtim

Re: Dealing with marketing types...

2005-06-10 Thread Harald Massa
than that, in Python in Business Track we will do slots about using Python for real worthy enterprise apps which scale and are FULLY buzzword-compatible. Join us! Harald Armin Massa GHUM Harald Massa perusasion. python. postgresql. -- http://mail.python.org/mailman/listinfo/python-list