Re: "End Of Line" Confusion

2005-05-18 Thread ncf
First off, my apologies...Google Groups doesn't seem to want to let me reply inline. I refrained from putting the name in there as it's potentially offensive (gotta love America). If you would aid you, I can send you the entire Python script via. email. Editor was IDLE on Slackware Linux using the

Tiny RML2PDF re rml_1_0.dtd download

2005-05-18 Thread Justin Ezequiel
Can somebody please give me a URL to where I can download the DTD? I've Googled and browsed all through http://openreport.org/ with no success. I've subscribed to the OpenReport mailing list but messages I send to [EMAIL PROTECTED] bounce back with an unknown user: "openreport-list" BTW, anyone h

How to learn OO of python?

2005-05-18 Thread could ildg
I have learned python for over a month. I heard that it was very easy to learn, but when I tried to know OO of python, I found it really weird, some expressions seem very hard to understand, and I can't find enough doc to know any more about it. So, I wonder how did you master python? And where to

Re: How to learn OO of python?

2005-05-18 Thread Bloke
The best one I found was Dive Into Python - and it's free http://www.diveintopython.org/ Also, How to Think Like a computer scientist - can't remember the link. Bloke -- http://mail.python.org/mailman/listinfo/python-list

RE: Problem listing services with wmi

2005-05-18 Thread Tim Golden
[... snip my comparison of win32service & WMI ...] | Seems like your hunch was right, the first loop completes correctly. | Adding a counter to both loops shows that getting services from | win32service.EnumServicesStatus() gets 108 services, and getting them | through WMI gets to 87 and then h

Re: How to learn OO of python?

2005-05-18 Thread Pajo
Here's the link for download: http://ibiblio.org/obp/thinkCS/python.php Bloke wrote: > The best one I found was Dive Into Python - and it's free > > http://www.diveintopython.org/ > > Also, How to Think Like a computer scientist - can't remember the link. > > Bloke > -- http://mail.python.

Re: SSL (HTTPS) with 2.4

2005-05-18 Thread Bloke
I just removed my installation of Python 2.4.1, which was the one on the python.org web site. I installed the Activepython 2.4.1 and now I get the following error with the same code above: File "C:\Python24\lib\urllib2.py", line 1053, in unknown_open raise URLError('unknown url type: %s' % t

Re: Bug in Elementtree/Expat

2005-05-18 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Most examples in the book do not include such a declaration and yet are > properly rendered by Internet Explorer. > Is it mandatory and why is it that Expat crashes on it? It's not mandatory but it's probably good practice to make the

Re: newbie running IDLE with command line arguments

2005-05-18 Thread qwweeeit
Hi, I apologize not to have answered to your question in a coherent way. I can take as excuses that I don't know English very well or that I was mistaken by the fact that you refer a piece of code with the error traceback (instead of simply asking for how entering command parameters in IDLE). But

Re: Reading image dimensions with PIL

2005-05-18 Thread Will McGugan
Dave Brueck wrote: > > > If you're tossing images that are too _small_, is there any benefit to > not downloading the whole image, checking it, and then throwing it away? Its a 'webscraper' app that downloads images based on search criteria. The user may want only images above 640x480, althou

Re: setting up scipy in windows

2005-05-18 Thread Frithiof Andreas Jensen
"hawkesed" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Scipy looks like just the thing I want, if anyone has got it running on > a Windows box I would like to hear how you did it. With STANDARD Python 2.3 it installs from the Python 2.3 win 32 installers and runs. The

Re: Killing process

2005-05-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-05-01 05:07:27 -0700: > I actually tried mapping the PID to an integer value and it still > didn't work. At any rate, I found another way to do it. Thanks anyways. What the kind people have been trying to get through is that the win32api.TerminateProcess() does *

Re: Python forum

2005-05-18 Thread Jonas Melian
Skip Montanaro wrote: > I wonder if there's a way to gateway the tutor list to the > python-forum.org forum, probably to the beginner's forum. > > Skip > > Totally in agreement with this. Thus each one chooses if wants to posting from forum or mailing list -- http://mail.python.org/mailman/li

Re: Python forum

2005-05-18 Thread Jonas Melian
Dave Brueck wrote: > Amen! Generally they are an abomination. > > To make matters worse, many forums that become popular are saddled with so > many > advertisements that moving from one message to another becomes a... > grueling... > lesson... in... patience. > > -Dave Then that hasn't happ

Re: Python forum

2005-05-18 Thread Jonas Melian
Markus Weihs wrote: > > If you speak German, there is a forum at www.python-forum.de . > There is also an english one at http://python-forum.org/py/index.php, > but as you can see, there's not much traffic :-/ > There are few messages because they are not known. I believe that they would be due

Re: How to learn OO of python?

2005-05-18 Thread Asbjørn Sæbø
could ildg <[EMAIL PROTECTED]> writes: > I have learned python for over a month. > I heard that it was very easy to learn, but when I tried to know OO of python, > I found it really weird, some expressions seem very hard to understand, > and I can't find enough doc to know any more about it. Have

Re: Python forum

2005-05-18 Thread Jonas Melian
[EMAIL PROTECTED] wrote: > > What's wrong with this web forum ;-) > > http://groups-beta.google.com/group/comp.lang.python?hl=en > > c.l.python is a mailing list, usenet group and a web forum. How you > access it is up to you. There are also other nntp-to-web sites out > there, and you can even

How to debug a multithreaded windowsNT servvice with Boa Constructor

2005-05-18 Thread Gijs Korremans
Hi, I'm trying to debug a multithreaded windowsNT service with Boa Constructor but it's not working. I don't know how to debug a service (there's nothing on the internet about that) so I've made an extra module espacially for the debugger which starts all my threads. (if anyone knows how to deb

Multiple selections in Tix Hlist

2005-05-18 Thread theoryboy
I'm trying to implement multiple selection functionality in a Tix Hlist using a control-click. I've bound control-click to a function that uses selection_set to add to the selection, but it doesn't seem to work. Only the last clicked item appears selected (highlighted) in the display and the return

Re: speeding up Python script

2005-05-18 Thread Peter Dembinski
"Luis P. Mendes" <[EMAIL PROTECTED]> writes: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I have a 1000 line python script that takes many hours to finish. > It is running with six inside 'for' loops. > > I've searched the net for ways to speed up the proccess. > > Psyco improves

Re: How to learn OO of python?

2005-05-18 Thread Peter Dembinski
could ildg <[EMAIL PROTECTED]> writes: > I have learned python for over a month. > I heard that it was very easy to learn, but when I tried to know OO > of python, > I found it really weird, some expressions seem very hard to understand, > and I can't find enough doc to know any more about it. Th

Re: speeding up Python script

2005-05-18 Thread Tomasz Rola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 18 May 2005, Luis P. Mendes wrote: > Hi, > > I have a 1000 line python script that takes many hours to finish. It is > running with six inside 'for' loops. > > I've searched the net for ways to speed up the proccess. > > Psyco improves per

Re: speeding up Python script

2005-05-18 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The reason why I'm using six nested for loops is because I need to find the best output using those six variables as input. Here's the simplified code: for per in range(): ~for s in range(): ~for t in range(): for v in range()

Re: How to learn OO of python?

2005-05-18 Thread Harlin Seritt
I think I know what you mean. When I first started trying to learn the OOP aspect of Python I thought it was strange since I had started with OOP on Java and C++. Nonetheless, once you get the hang of it, OOP will make way more sense than all of the complications of Java and C++ class implementatio

Re: Python on a public library computer

2005-05-18 Thread Anton Vredegoor
Mike Meyer wrote: > > Sorry, no telnet. Every executable that is not listed is blocked. > > You sure? IE used to understand telnet: URLs, and would open a console > window talking to the remote end. It may have been doing it with an > external application, in which case this won't help you. Yes,

Re: SSL (HTTPS) with 2.4

2005-05-18 Thread Lucas Raab
Bloke wrote: > I just removed my installation of Python 2.4.1, which was the one on > the python.org web site. I installed the Activepython 2.4.1 and now I > get the following error with the same code above: > > File "C:\Python24\lib\urllib2.py", line 1053, in unknown_open > raise URLError('

super() and automatic method combination

2005-05-18 Thread Paul Rubin
I'm trying the super() function as described in Python Cookbook, 1st ed, p. 172 (Recipe 5.4). class A(object): def f(self): print 'A' class B(object): def f(self): print 'b' class C(A,B): def f(self): super(c,s

Re: How to learn OO of python?

2005-05-18 Thread Philippe C. Martin
You might want to look at this first: http://pigseye.kennesaw.edu/~dbraun/csis4650/A&D/UML_tutorial/ http://uml.tutorials.trireme.com/ could ildg wrote: > I have learned python for over a month. > I heard that it was very easy to learn, but when I tried to know OO of > python, I found it re

RE: processing a Very Large file

2005-05-18 Thread DJTB
Robert Brewer wrote: > DJTB wrote: >> I'm trying to manually parse a dataset stored in a file. The >> data should be converted into Python objects. >> > > The first question I would ask is: what are you doing with "result", and > can the consumption of "result" be done iteratively? > > The pr

Re: processing a Very Large file

2005-05-18 Thread DJTB
Tim Peters wrote: > >>tuple_size = int(splitres[0])+1 >>path_tuple = tuple(splitres[1:tuple_size]) >>conflicts = Set(map(int,splitres[tuple_size:-1])) > > Do you really mean to throw away the last value on the line? That is, > why is the slice here [tuple_size:-1] rather

soundcard readout on a windows system

2005-05-18 Thread Jan Wienhausen
Hi, I would like to read out the soundcard with python on a win system. Is there any possibillity to do so? Thanks, Jan -- http://mail.python.org/mailman/listinfo/python-list

Re: speeding up Python script

2005-05-18 Thread Robert Kern
Luis P. Mendes wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > The reason why I'm using six nested for loops is because I need to find > the best output using those six variables as input. > > Here's the simplified code: > > for per in range(): > ~for s in range(): > ~fo

Re: Reading image dimensions with PIL

2005-05-18 Thread Fredrik Lundh
Will McGugan wrote: > I'm writing an app that downloads images. It rejects images that are > under a certain size - whithout downloading them completely. I've > implemented this using PIL, by downloading the first K and trying to > create a PIL image with it. PIL raises an exception because the fi

Re: newbie running IDLE with command line arguments

2005-05-18 Thread Philippe C. Martin
I might be missing it, but I do not see anyway to set command line params in IDLE. You might hage to set the values in your code: host, port, message = 'localhost', 9000, .; crypto wrote: > Hi, > > I am trying to use IDLE in order to test my program. My program is the > following: > >

Re: How to learn OO of python?

2005-05-18 Thread Philippe C. Martin
PS: if you're under linux, try umbrello: you design your classes with a graphical tool and umbrello will generate the code (Python too) for you. Philippe C. Martin wrote: > You might want to look at this first: > > http://pigseye.kennesaw.edu/~dbraun/csis4650/A&D/UML_tutorial/ > http://uml.tuto

Problem getting results from SQLServer Database (adodbapi)

2005-05-18 Thread Golawala, Moiz M (GE Infrastructure)
Hi All, Could someone please help me with an issue I am having. I am having problem returning values from a Stored Procedure that creates a dynamic table (table variable) inserts values during a procedure and then I select from that dynamic table to furnish values to python. This does not wor

Re: super() and automatic method combination

2005-05-18 Thread Laszlo Zsolt Nagy
> >I have the impression that this is supposed to call the f method >in both A and B, so it should print > > Not really true. The first parameter of 'super' should be a type, not an instance. > A > B > C >or maybe > B > A > C >depending on the resolution order. However, it only calls

Re: SSL (HTTPS) with 2.4

2005-05-18 Thread Bloke
Yes, on looking into it, sockets.ssl is not installed with activepython, so it doesn't recognise https. So I have removed it, and reinstalled the v 2.4.1 which I downloaded from www.python.org . This leaves me with with the problem where the script 'hangs' for a long time, then returns: Traceba

Looking for bored python newbies

2005-05-18 Thread cpu . crazy
Hey if you're a python newbie, and ur bored cause everything everybody else is doing hten you're not alone. How'd you like to start a project of your own or join a simple project? Plz contact me if you do with the subject line: Bored Newbie CPUFreak91 ([EMAIL PROTECTED]) (Still quite a newbie

Looking for bored python newbies

2005-05-18 Thread CPUFreak91
Are you a newbie to python? Are you bored? Does everybody else's cool projects seem to complex for you? I still pretty newbie myself and I feel like that. How about we newbies start a simple project of our own? -- http://mail.python.org/mailman/listinfo/python-list

Re: super() and automatic method combination

2005-05-18 Thread Duncan Booth
Paul Rubin wrote: > I'm trying the super() function as described in Python Cookbook, 1st > ed, p. 172 (Recipe 5.4). > > class A(object): > def f(self): > print 'A' > > > class B(object): > def f(self): > print 'b' > > > class C(A,B):

Re: Python forum

2005-05-18 Thread Skip Montanaro
>> If you speak German, there is a forum at www.python-forum.de . There >> is also an english one at http://python-forum.org/py/index.php, but >> as you can see, there's not much traffic :-/ Jonas> There are few messages because they are not known. I believe that Jonas> they

Re: Reading image dimensions with PIL

2005-05-18 Thread Will McGugan
Fredrik Lundh wrote: > the "right" way to do this is to use the ImageFile.Parser class. see the > last snippet on this page for an example: > > http://effbot.org/zone/pil-image-size.htm Excellent, thanks. Will -- http://www.willmcgugan.com "".join( [ {'*':'@','^':'.'}.get(c,None) or chr

Re: Python forum

2005-05-18 Thread Robert Kern
Skip Montanaro wrote: > (Is "forums" okay as a plural of "forum" or should I have used "fora"?) dict.org says _forums_. I used _fora_, but I'm silly. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Har

Re: SSL (HTTPS) with 2.4

2005-05-18 Thread Bloke
I just tried the https connection through a friends internet connection which uses a transparent proxy as follows: import urllib2 f = urllib2.urlopen('https://www.directshares.com.au/') print f.headers print f.read() f.close() This works fine. So it must be a problem with either the proxyhandler

Re: super() and automatic method combination

2005-05-18 Thread Laszlo Zsolt Nagy
>The trick is that C.f only calls A.f, but A.f needs to end up calling B.f >when it is used in a C. > > I believe your response only applies to single inheritance. For classes with muliple bases classes, you need to call the base methods one by one. BTW I prefer to call the base methods in th

Re: SSL (HTTPS) with 2.4

2005-05-18 Thread Bloke
Following my above comment, if my script works with http, then what is the problem with https, even when I change the ProxyHandler to specify https? -- http://mail.python.org/mailman/listinfo/python-list

Plone personalization

2005-05-18 Thread miumiun
I'm conducting some research about CMS systems and I have limited the choices to several that fit my needs. Many of them have live demos, so I can try and see, but I didn't find such for Plone. Is there one? I also didn't see one very important feature - personalization. I'm not sure if I am using

Re: speeding up Python script

2005-05-18 Thread Dan Sommers
On Wed, 18 May 2005 12:56:50 +0100, "Luis P. Mendes" <[EMAIL PROTECTED]> wrote: > The reason why I'm using six nested for loops is because I need to find > the best output using those six variables as input. > Here's the simplified code: > for per in range(): > ~for s in range(): > ~

Re: super() and automatic method combination

2005-05-18 Thread Michele Simionato
Paul Rubin: > It would be nice to make some decorators to do CLOS-like > automatic method combination ... You can't do that with decorators (I mean the automatic call of the supermethod) but you can with a metaclass. There is an example in my ACCU lectures: http://www.reportlab.org/~andy/accu2005

Re: Problem listing services with wmi

2005-05-18 Thread Jean-Sébastien Guay
Hi again Tim, >OK. I'm running 2.3 normally but I've run the scripts with >2.4 so I don't think it makes a difference. I'll leave the >set import logic in place so I don't have to remember. > > Any reason I should know about that you haven't updated to 2.4? I just got into Python, so I got the

Re: Plone personalization

2005-05-18 Thread Larry Bates
Plone/Zope does support the environment you describe. Viacom uses Zope (and I think Plone) to provide their live video streaming from their site. Since Plone/Zope are free you can download and test to your heart's desire. Larry Bates [EMAIL PROTECTED] wrote: > I'm conducting some research about

Re: super() and automatic method combination

2005-05-18 Thread Duncan Booth
Laszlo Zsolt Nagy wrote: > >>The trick is that C.f only calls A.f, but A.f needs to end up calling >>B.f when it is used in a C. >> >> > I believe your response only applies to single inheritance. For > classes with muliple bases classes, you need to call the base methods > one by one. super

Re: Python forum

2005-05-18 Thread Ivan Van Laningham
Hi All-- Robert Kern wrote: > > Skip Montanaro wrote: > > > (Is "forums" okay as a plural of "forum" or should I have used "fora"?) > > dict.org says _forums_. I used _fora_, but I'm silly. > It also says "appendixes" and "indexes" are OK. Yahoos. Metta, Ivan ---

RE: Problem listing services with wmi

2005-05-18 Thread Tim Golden
[Jean-Sébastien Guay] | Hi again Tim, Nice to hear back from you. | Any reason I should know about that you haven't updated to | 2.4? I just got into Python, so I got the latest version, but if there's | something wrong with 2.4 I'd like to know... No; there's no problem as such. At home, I'm

TypeError: ssl() argument 1 must be _socket.socket, not _socketobject -> Solution

2005-05-18 Thread Tarek Ziadé
Hi, by googling for a ssl socket problem, i've seen you guys had the same problem ie : http://mail.python.org/pipermail/python-list/2005-April/278179.html I have found the problem : If you trace a little bit and look at __module__ attribute of the socket, you will probably find out socket has

What are com_record objects

2005-05-18 Thread Gijs Korremans
Hi, I want to connect to a com object with win32.client. Through this com object a have to connect to an other device with object.Connect(struct IPADDRESS_STRUCT * ip) the struct IPADDRESS_STRUCT looks like this: Byte Offset NameTypeLength (Bytes) Description 0 b1 BYTE

Debugging from within emacs!

2005-05-18 Thread Andrew Markebo
Argh.. How do I debug my python-code from the inside of emacs, throw some breakpoints? and fire up the session, check backtraces and so on? /Andy Experimenting I have come this far: I have put a pdb.bat in my path, containing: "c:\Program Files\Python23\python.exe" -u "c:\Program

Re: super() and automatic method combination

2005-05-18 Thread Scott David Daniels
Laszlo Zsolt Nagy wrote: > >> The trick is that C.f only calls A.f, but A.f needs to end up calling >> B.f when it is used in a C. >> >> > I believe your response only applies to single inheritance. For classes > with muliple bases classes, you need to call the base methods one by one. > > BT

Re: What are com_record objects

2005-05-18 Thread Larry Bates
Python does have struct module that allows you to create C-style structures. Googling for "python struct" give us: http://docs.python.org/lib/module-struct.html I use it a lot to interface to COM object and to call methods in .DLLs. Larry Bates Gijs Korremans wrote: > Hi, > > I want to conne

Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread john67
The company I work for is about to embark on developing a commercial application that will cost us tens-of-millions to develop. When all is said and done it will have thousands of business objects/classes, some of which will have hundreds-of-thousands of instances stored in a DB. Our clients will

Re: super() and automatic method combination

2005-05-18 Thread Steven Bethard
Paul Rubin wrote: > I'm trying the super() function as described in Python Cookbook, 1st ed, > p. 172 (Recipe 5.4). > > class A(object): > def f(self): > print 'A' > > > class B(object): > def f(self): > print 'b' > > > class C(A,B):

Re: Looking for bored python newbies

2005-05-18 Thread bruno modulix
[EMAIL PROTECTED] wrote: > Hey if you're a python newbie, and ur bored cause everything everybody > else is doing hten you're not alone. How'd you like to start a project > of your own or join a simple project? > Plz contact me if you do with the subject line: Bored Newbie > > CPUFreak91 > ([E

RE: What are com_record objects

2005-05-18 Thread Stefan Schukat
Use the Record Method from win32com.client object = win32com.client.Dispatch("Server.Object") IPAddress = win32com.client.Record("IPADDRESS_STRUCT", object) IPAddress.b1 = 192 IPAddress.b2 = 168 IPAddress.b3 = 0 IPAddress.b4 = 1 object.connect(IPAddress) Stefan > -Original Message-

Re: pysqlite2.dbapi2.ProgrammingError: Incorrect number of bindingssupplied. The current statement uses 0, and there are -1 supplied.

2005-05-18 Thread F. GEIGER
Thank you Gerhard, "Gerhard Häring" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > F. GEIGER wrote: > > Arrgh, sorry for that post! > > > > self._dbc.execute(q, data) > > > > where data is None, works with MySQL. For SQLite I have to write > > > > if data is not No

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread bplumhoff
The answer seems to be yes. See http://www.artima.com/intv/speed.html HTH, Bernd -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorting x lists based on one list ... maybe an example would make sense:

2005-05-18 Thread Peter Otten
Philippe C. Martin wrote: > :-) Thanks, the lists will evolve and are also stored in 'csv' format in > external files at one point. I cannot use dictionaries because I need to > control the sorting (hash). > > In this specific case, list 1 represents students with their information, > list 2 repr

iso_8859_1 mystery/tkinter

2005-05-18 Thread phil
These work fine on Linux s.const = {} s.const['DEG'] = '%c' % (0xb0) s.const['DIV'] = '%c' % (0xf7) s.const['ANG'] = '%c' % (0xd8) On WinXP the symbols for division and angle work fine. But the symbol for degrees, a little circle, produces a vertical bar in Tkin

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread keirr
> So, given the very general requirements in the first paragraph, do you > think that Python could handle it? If anyone has direct experience > developing large apps in Python, I would appreciate your insight. I wouldn't, especially[1] if your thousands of business objects get allocated/dealloca

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Larry Bates
I don't see anything listed that would eliminate Python. You may want to take a quick look at some of the rather large applications that have been done with Zope (written in Python). Zope might even be a good application platform to build upon (can't say for sure, not enough detail about applicati

Re: Representing ambiguity in datetime?

2005-05-18 Thread Dan Christensen
Ron Adam <[EMAIL PROTECTED]> writes: > So it seems using 0's for the missing day or month may be how to do it. This doesn't allow more specific amounts of ambiguity. I suggest either a pair of dates, which represent the earliest and latest that the event could have been (and are equal if there i

Re: super() and automatic method combination

2005-05-18 Thread Laszlo Zsolt Nagy
>Which is fine so long as nobody else tries to add further subclasses later: > >class C(B): ... >class Mine(AB,C): ... > >Mine().f() > >Using super throughout this works (it calls f in Mine, AB, A, C, B, and >then Base), but your explicit call to the base classes means that if you >don't call C.

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread john67
Would the allocation/deallocation memory usage issue be different than it would be with Java? Both Python and Java have automatic garbage collection, correct? Is Python's not as effective as Java's? I think the memory issues for the two languages would be similar in this area, but maybe I am wro

REMINDER: BayPIGgies: May 19, 7:30pm (FIRST meeting at Google)

2005-05-18 Thread Aahz
NOTE: we are no longer meeting at Stanford; the May meeting is at Google in Mountain View. The next meeting of BayPIGgies will be Thurs, May 19 at 7:30pm. NOTE: to celebrate our first meeting at Google, Google will be providing a buffet dinner starting at 6:45pm. Alex will be repeating his OSCO

python 2.3 + cx_oracle on HP-UX Itanium

2005-05-18 Thread Bernard Delmée
Hello, because we are migrating to an Itanium HP-UX server, I will shortly need to compile python 2.3 and cx_oracle on that platform. I seem to recall people having problem compiling python on HP-UX in general, and am interested in opinions about which compiler to use. Should I require the HP comp

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Peter Dembinski
"keirr" <[EMAIL PROTECTED]> writes: [snap] > I wouldn't, especially[1] if your thousands of business objects get > allocated/deallocated as the system runs. Currently python's memory > usage can grow rapidly (from the perspective of the o/s) when large > numbers of objects are repeatedly created

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread keirr
>> I wouldn't, especially[1] if your thousands of business objects get >> allocated/deallocated as the system runs. Currently python's memory >> usage can grow rapidly (from the perspective of the o/s) when large >> numbers of objects are repeatedly created and freed. >Isn't it true that in recen

Re: "End Of Line" Confusion

2005-05-18 Thread Jordan Rastrick
If you email the script to me, I'd be happy to take a look at it and see if I come up with the same error (I'm running IDLE on a Windows XP box here, cant remember if the filesystem is FAT or NTFS ;-)) Although as a relative newbie I've never come across it myself, one possible source of such myst

Re: SSL (HTTPS) with 2.4

2005-05-18 Thread "Martin v. Löwis"
Bloke wrote: > Following my above comment, if my script works with http, then what is > the problem with https, even when I change the ProxyHandler to specify > https? I believe there is a bug in the https implementations of certain Web services, in particular the Microsoft-ish ones. They are supp

Re: iso_8859_1 mystery/tkinter

2005-05-18 Thread "Martin v. Löwis"
phil wrote: > These work fine on Linux > s.const = {} > s.const['DEG'] = '%c' % (0xb0) > s.const['DIV'] = '%c' % (0xf7) > s.const['ANG'] = '%c' % (0xd8) > > On WinXP the symbols for division and angle work fine. > But the symbol for degrees, a little circle, produce

NaN support etc.

2005-05-18 Thread Andreas Beyer
Hi, How do I find out if NaN, infinity and alike is supported on the current python platform? I could do the following: try: nan = float('NaN') have_nan = True except ValueError: have_nan = False Is there an 'official' handle for obtaining this information? Similar: How do I get the max

wxpython and wxtextctrl

2005-05-18 Thread Nicolas Pourcelot
Hello, my script worked well until today : when I tried to launch it, I got the following : frame = MyFrame(None,-1,"Geometrie",size=wx.Size(600,400)) File "/home/nico/Desktop/wxGeometrie/version 0.73/geometrie.py", line 74, in __init__ self.commande.Bind(wx.EVT_CHAR, self.EvtChar)

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Dave Brueck
john67 wrote: > The company I work for is about to embark on developing a commercial > application that will cost us tens-of-millions to develop. [snip] > Right now it looks like Java is the language of choice that the app > will be developed in. However, I have been looking and reading a lot > abo

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, john67 <[EMAIL PROTECTED]> wrote: >The company I work for is about to embark on developing a commercial >application that will cost us tens-of-millions to develop. When all is >said and done it will have thousands of business objects/classes, some >of which will ha

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Steve M
This thread: http://mail.python.org/pipermail/python-dev/2005-January/051255.html discusses the problem with memory allocation in CPython. Apparently CPython is not good at, or incapable of, releasing memory back to the operating system. There are ways to compensate for this. I guess the comment

Re: NaN support etc.

2005-05-18 Thread Sébastien Boisgérault
Search for: + fpconst / PEP 754 + Tim Peters IEEE 754 accident """what-the-world-needs-now-is-nannanny.py-ly y'rs"" - SB -- http://mail.python.org/mailman/listinfo/python-list

Re: Markov chain with extras?

2005-05-18 Thread temp
Hi Tiissa, Thanks for the reply. I want to use it for music. So given list 1 (melody), list 2 (chords) could be generated by a Markov chain. Also, given the chords the melody could be generated again by a chain. I haven't had time to play around with your code and as I've only been studying pyth

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread john67
LOL! That is really funny, in a dark humor kind of way. I don't want the project to fail either. I am not convinced that we will succeed if we go the Java route. However, I am just a grunt in the chain and not in a position to make the decision. I hope I can have some influence on the decision

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread EHP
> Python has good database support, it works well on a wide range of > platforms, and it's great at tying together different processes, machines, > etc. - for example, it's fairly easy to get Python to access C code, > dynamic libraries, system APIs, and external programs. It's easier to test > tha

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Ivan Van Laningham
Hi All-- john67 wrote: > > LOL! That is really funny, in a dark humor kind of way. I don't want > the project to fail either. I am not convinced that we will succeed if > we go the Java route. However, I am just a grunt in the chain and not > in a position to make the decision. I hope I can

Re: EpyDoc problem

2005-05-18 Thread Laszlo Zsolt Nagy
>Looks like it is a problem with wxWidgets. There is no problem if I do >not import wx. How to overcome this problem? >Currently I cannot document modules that import wx. :-( > > I found the answer on the wxPython-users list. It is disappointing that the standard documentation tool has no suppo

Re: speeding up Python script

2005-05-18 Thread Lonnie Princehouse
Quick tip- Try xrange instead of range. This will use dramatically less memory if your search space is large, which will speed things up /if/ your machine is being forced to swap. Besides that, without seeing the code for your functions, it's hard to offer more advice. Your algorithm is necess

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Kay Schluehr
john67 wrote: > Would the allocation/deallocation memory usage issue be different than > it would be with Java? Both Python and Java have automatic garbage > collection, correct? In recent Python versions the CPython interpreter offers a cycle-collector which weakens the most profound counter ar

Re: iso_8859_1 mystery/tkinter

2005-05-18 Thread vincent wehren
""Martin v. Löwis"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | phil wrote: | > These work fine on Linux | > s.const = {} | > s.const['DEG'] = '%c' % (0xb0) | > s.const['DIV'] = '%c' % (0xf7) | > s.const['ANG'] = '%c' % (0xd8) | > | > On Win

Build impure modules

2005-05-18 Thread Frederik Vanrenterghem
Is it possible to build Python modules like md5.so, without building the entire python distribution? I'm working on an arm device (ipaq), and building the whole thing would take a long time... (cross-compiling with OpenEmbedded isn't working out either). Thx, -- Frederik Vanrenterghem

Re: super() and automatic method combination

2005-05-18 Thread Steven Bethard
Laszlo Zsolt Nagy wrote: > I tested this and I realized that if you change the parameter list in > the descendants then it is not wise to use super. > I'm going to publish the example below, I hope others can learn from it > too. > [snip and fixed formatting] > > Example (bad): > > class A(obj

Re: speeding up Python script

2005-05-18 Thread Grant Edwards
On 2005-05-18, Luis P. Mendes <[EMAIL PROTECTED]> wrote: > I have a 1000 line python script that takes many hours to > finish. It is running with six inside 'for' loops. [...] > How can I dramatically improve speed? In probably order of efficacy: 1) Use a better algorithm 2) Replace 'for'

Re: SSL (HTTPS) with 2.4

2005-05-18 Thread Trent Mick
[Bloke wrote] > I just removed my installation of Python 2.4.1, which was the one on > the python.org web site. I installed the Activepython 2.4.1 and now I > get the following error with the same code above: > > File "C:\Python24\lib\urllib2.py", line 1053, in unknown_open > raise URLError(

Re: Sorting x lists based on one list ... maybe an example would make sense:

2005-05-18 Thread Ron Adam
Philippe C. Martin wrote: >>Another way would be to merge the three lists into one of 3-tuples, sort, >>and unmerge, similarly to the DSU pattern -- which raises the question: >>why are you using three lists in the first place? > > > :-) Thanks, the lists will evolve and are also stored in 'csv'

[pysqlite] pysqlite2.dbapi2.OperationalError: cannot commit transaction - SQL statements in progress

2005-05-18 Thread F. GEIGER
I've troubles to let my app take off using pysqlite. What I wonder most for now is that "pysqlite2.dbapi2.OperationalError: cannot commit transaction - SQL statements in progress" when I do this: t = time.time() n = len(self) while len(self): del self[0] self.comm

  1   2   >