Re: lxml/ElementTree and .tail

2006-11-15 Thread Stefan Behnel
Hi, Chas Emerick wrote: > I looked around for an ElementTree-specific mailing list, but found none > -- my apologies if this is too broad a forum for this question. The lxml mailing list is always happy to receive feedback, but it's fine to ask here if it's not lxml specific. > I've been using

Re: Yield

2006-11-15 Thread Fredrik Lundh
olive wrote: >> http://docs.python.org/ref/yield.html > > This is a perfect example that demonstrate how the actual python is bad > and most of the time useless (at least for me). there's a place for (relatively) formal reference documentation, but it's hardly ever the right place to learn why

Re: Secure Python

2006-11-15 Thread timmy
Steven D'Aprano wrote: > On Thu, 16 Nov 2006 04:02:58 +0100, Fredrik Tolf wrote: > > >>Hi List! >> >>I was thinking about secure Python code execution, and I'd really >>appreciate some comments from those who know Python better than I do. >> >>I was thinking that maybe it could be possible to loa

Re: Yield

2006-11-15 Thread John Machin
On 16/11/2006 5:45 PM, olive wrote: > dwelch91 a écrit : >> http://docs.python.org/ref/yield.html > > This is a perfect example that demonstrate how the actual python is bad > and most of the time useless (at least for me). I think that you left the word "documentation" out after "python" :-) >

Re: Decimal() instead of float?

2006-11-15 Thread Fredrik Lundh
Hendrik van Rooyen wrote: > Nothing wrong with doing that - its not as if you are going to arithmetic with > them - adding my id to yours is generally not very useful... internal rowid's are best treated as pointers, though. they're more like memory addresses than labels. (from a design perspe

Re: Decimal() instead of float?

2006-11-15 Thread Hendrik van Rooyen
"John Salerno" <[EMAIL PROTECTED]> wrote: > John Machin wrote: > > > Here in Austraila, (I expect this is common to most countries), there > > are people who are utterly clueless about elementary data model rules, > > like identification "numbers" should be kept as strings. > > Do you mean that I

Re: Decimal() instead of float?

2006-11-15 Thread Hendrik van Rooyen
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > .. and seriously, under- > standing the various aspects of floats and decimals is utterly trivial > compared to all the nearly-magical things you need to understand to be > able to do geographical calculations at a sub-millimeter scale. heck, >

Re: Secure Python

2006-11-15 Thread Hendrik van Rooyen
"Fredrik Tolf" <[EMAIL PROTECTED]> wrote: > I was thinking that maybe it could be possible to load and run untrusted > Python code, simply by loading it in a module with a modified version of > __builtins__. Without any reachable function that do unsafe operations, > code running from there shoul

Re: Yield

2006-11-15 Thread olive
dwelch91 a écrit : > http://docs.python.org/ref/yield.html This is a perfect example that demonstrate how the actual python is bad and most of the time useless (at least for me). We really need mor example ! I would like to thanks Fredrik for his contribution to improve that. Olivier. -- htt

More puzzling behavior while subclassing datetime

2006-11-15 Thread [EMAIL PROTECTED]
With assistance from Gabriel and Frederik (and a few old threads in c.l.p.) I've been making headway on my specialized datetime class. Now I'm puzzled by behavior I didn't expect while attempting to use some of the alternate datetime constructors. Specifically, it appears if I call GeneralizedTim

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread John Bokma
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > Seriously though, there is no contradiction between the idea of > "people use Python instead of Java because they prefer to avoid pain" It sounds like a typical fanboy statement to me, since it implies that Java is always a pain, and Python is perfect

Re: Python-2.5.exe?

2006-11-15 Thread Nick Craig-Wood
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Andrew Burton wrote: > > > What Python is best for installing to a USB Drive? I've actually got > > 2.5 on a drive, but I forget which installation package I used. It > > seems to me that it was an EXE file, but I cannot seem to find one of > > thos

Re: Press button to load data

2006-11-15 Thread jim-on-linux
Just from a glance my thoughts are to start with one file and build on it. Make a class of it so you can loop it to use it over for each record. You wrote that the info was in a file on the hd. If it is in a file on the hd, use the open() function, read from the file, only one record and w

Re: Python deployment options.

2006-11-15 Thread Bill Maxwell
On 8 Nov 2006 03:42:09 -0800, "king kikapu" <[EMAIL PROTECTED]> wrote: > >I see...So, if these are the only options, the only "safe" bet is to >install the language on the machine (beeing Win, Linux or Mac) >and execute the .py files, right ?? No, those are not the only options. Check out PyI

Re: Secure Python

2006-11-15 Thread Steven D'Aprano
On Thu, 16 Nov 2006 04:02:58 +0100, Fredrik Tolf wrote: > Hi List! > > I was thinking about secure Python code execution, and I'd really > appreciate some comments from those who know Python better than I do. > > I was thinking that maybe it could be possible to load and run untrusted > Python c

Press button to load data

2006-11-15 Thread gilbert3b2g
I'm new to Python, and programming in general. What I'm trying to do here is to load a list of accounts from a file on my harddrive into a string of Buttons in Tkinter, and when I press one of the Buttons, which has one of my account name, it will load that account into a new window. But I don't un

Re: Python v PHP: fair comparison?

2006-11-15 Thread James Cunningham
On 2006-11-15 20:59:26 -0500, "walterbyrd" <[EMAIL PROTECTED]> said: > > Bruno Desthuilliers wrote: >> walterbyrd a écrit : > >> You mean there are web hosting companies that are still using Apache >> 1.3.x ? >> > > Practically all web-hosters still use Apache 1.3.x. Certainly all of > the low

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Steven D'Aprano
On Wed, 15 Nov 2006 22:58:55 +, John Bokma wrote: > Harry George <[EMAIL PROTECTED]> wrote: > >> Short answer: People use Python instead of Java because people (at >> least intelligent people) tend to avoid pain. > > Intelligent people don't suffer from fanboy sentiments. They just pick a

RE: Python v PHP: fair comparison?

2006-11-15 Thread bruce
ummm bruno... you don't 'need' apache to run php. in fact, although i'm from the old hard c/c++ world way before web apps, i haven't really found much for most general apps (not ui/not threaded stuff) that php can't do.. peace -Original Message- From: [EMAIL PROTECTED] [mailto:[EMA

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread John Bokma
"Matimus" <[EMAIL PROTECTED]> wrote: > > John Bokma wrote: >> Intelligent people don't suffer from fanboy sentiments. They just >> pick a language that works best for them. > > Adding to that, they pick the language that works best for them and > the situation. Yup. > Python has a significant

Secure Python

2006-11-15 Thread Fredrik Tolf
Hi List! I was thinking about secure Python code execution, and I'd really appreciate some comments from those who know Python better than I do. I was thinking that maybe it could be possible to load and run untrusted Python code, simply by loading it in a module with a modified version of __buil

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread John Bokma
Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > John Bokma a écrit : >> Harry George <[EMAIL PROTECTED]> wrote: >> >> >>>Short answer: People use Python instead of Java because people (at >>>least intelligent people) tend to avoid pain. >> >> >> Intelligent people don't suffer from fanboy se

Re: Python v PHP: fair comparison?

2006-11-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Luis M. González <[EMAIL PROTECTED]> wrote: . . . >Then look no further. Learn python and go kick php developers asses in >the market place. >There are thousands of php developers out there. Do y

Re: Decimal() instead of float?

2006-11-15 Thread John Machin
On 16/11/2006 8:57 AM, Terry Reedy wrote: > "John Salerno" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> John Machin wrote: >> >>> Here in Austraila, (I expect this is common to most countries), there >>> are people who are utterly clueless about elementary data model rules, >>>

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Gabriel Genellina wrote: > - php sucks :) > I think that it's such a braindead > language which turns people into braindead programmers :) > > In fairness, a lot of very serious work is done in PHP. I think yahoo and other major web-sites use php. I have issues with PHP as well. They will break

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Bruno Desthuilliers wrote: > walterbyrd a écrit : > You mean there are web hosting companies that are still using Apache > 1.3.x ? > Practically all web-hosters still use Apache 1.3.x. Certainly all of the lower priced hosters. > C'mon, let's be serious. I just ordered a dedibox - a small dedic

RE: Python v PHP: fair comparison?

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 22:11, bruce wrote: interesting ongoing thread... i've seen a number of these over the years.. my language is better than your language!! i'm sure this question on the php list would have findings/results that are essentially opposite of what is being discussed here!

Re: numpy/scipy: error of correlation coefficient (clumpy data)

2006-11-15 Thread sturlamolden
robert wrote: > here the bootstrap test will as well tell us, that the confidence intervall > narrows down by a factor ~sqrt(10) - just the same as if there would be > 10-fold more of well distributed "new" data. Thus this kind of error > estimation has no reasonable basis for data which is no

RE: Python v PHP: fair comparison?

2006-11-15 Thread bruce
interesting ongoing thread... i've seen a number of these over the years.. my language is better than your language!! i'm sure this question on the php list would have findings/results that are essentially opposite of what is being discussed here! -Original Message- From: [EMAIL PROTEC

Re: Python v PHP: fair comparison?

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 21:28, Bruno Desthuilliers wrote: >Michael Torrie a écrit : > > On Tue, 2006-11-14 at 18:55 -0800, Luis M. González wrote: > > > >>>- Python is more readable, and more general purpose > >> > >>Yes, php is only for web. > > > > Absolutely false. > > From a purely technical

Re: Yield

2006-11-15 Thread dwelch91
Mateuszk87 wrote: > Hi. > > may someone explain "yield" function, please. how does it actually work > and when do you use it? > > thanks in forward > > mateusz > http://docs.python.org/ref/yield.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Dan Lenski
walterbyrd wrote: > Some think it will. > > Up untill now, Java has never been standard across different versions > of Linux and Unix. Some think that is one reason that some developers > have avoided Java in favor of Python. Now that Java has been GPL'd that > might change. > > IMO: it won't make

Re: pyRTF and Footers

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 21:01, [EMAIL PROTECTED] wrote: > >I've been using the pyRTF module to generate some documents that I need > >for work. In general, the module is good, and pretty simple to use. > >However, I am running into a problem with footers that doesn't quite > >make sense to me.

Re: Python v PHP: fair comparison?

2006-11-15 Thread Carl Banks
walterbyrd wrote: > Trying to be as fair as I can be, my research shows that demand for > developers where PHP is the primary is *far* higher than jobs where > Python is the primary skills. Probably because PHP is so bug-prone and man-inefficient that a small website occupies a programmer's whole

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Bruno Desthuilliers
John Bokma a écrit : > Harry George <[EMAIL PROTECTED]> wrote: > > >>Short answer: People use Python instead of Java because people (at >>least intelligent people) tend to avoid pain. > > > Intelligent people don't suffer from fanboy sentiments. They just pick a > language that works best for

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Matimus
John Bokma wrote: > Intelligent people don't suffer from fanboy sentiments. They just pick a > language that works best for them. Adding to that, they pick the language that works best for them and the situation. Python has a significant advantage in many applications because it is dynamic and ca

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
walterbyrd a écrit : > Luis M. González wrote: > >>the new crop of web frameworks (Django, Turbo Gears, etc...). >> >> >>>- Newer versions of mod_python require Apache 2.0, which few hosters >>>have >> >>You can also get alder versions of mod_python. What's the problem? > > > The problem is that

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
walterbyrd a écrit : > Michael Torrie wrote: > > >>Absolutely false. Most of my standalone, command-line scripts for >>manipulating my unix users in LDAP are written in PHP, although we're >>rewriting them in python. >> > > > I would say that you are one of very few who use PHP for sys-admin >

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
Michael Torrie a écrit : > On Tue, 2006-11-14 at 18:55 -0800, Luis M. González wrote: > >>>- Python is more readable, and more general purpose >> >>Yes, php is only for web. > > > Absolutely false. From a purely technical POV, you're of course right. But PHP has been hacked (nobody in it's o

Re: pyRTF and Footers

2006-11-15 Thread E . Doxtator
Gabriel Genellina wrote: > At Wednesday 15/11/2006 20:08, [EMAIL PROTECTED] wrote: > > >I've been using the pyRTF module to generate some documents that I need > >for work. In general, the module is good, and pretty simple to use. > >However, I am running into a problem with footers that doesn't

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
walterbyrd a écrit : > Larry Bates wrote: > > >>I'd be surprised if there was more demand for PHP developers >>than Python developers. > > > Prepare to be surprised. From what I have seen demand for PHP > developers is off-the-scale higher than demand for Python developers. Anyone that knows h

Re: pyRTF and Footers

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 20:08, [EMAIL PROTECTED] wrote: I've been using the pyRTF module to generate some documents that I need for work. In general, the module is good, and pretty simple to use. However, I am running into a problem with footers that doesn't quite make sense to me. First, I d

Re: Python deployment options.

2006-11-15 Thread Maurice LING
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Richard Charts <[EMAIL PROTECTED]> wrote: > . > . > . > >>Well on a Win machine, probably. >>Almost every Linux machine you come across will have (most likely a >>fairly rece

Re: wrapping existing instance in new interface

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 19:30, [EMAIL PROTECTED] wrote: I am writing a class that subclasses datetime.datetime in order to add a few specialized methods. So far the __init__ looks like this: class myDateTime(datetime.datetime): def __init__(self, time, *args, **kwargs): if isinstan

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
walterbyrd a écrit : > Bjoern Schliessmann wrote: > >>walterbyrd wrote: >> >> >>>- PHP has a lower barrier to entry >> >>Which kind of barrier do you mean -- syntax, availability, ...? > > > Putting php into a web-site is as easy as throwing some php code into a > my html file, and maybe giving

Re: another newbie question

2006-11-15 Thread Bruno Desthuilliers
Mary Jane Boholst a écrit : > Hello everyone, > I have a question that google couldnt answer for me and thought that the > brains on here might be able to help. > I am trying to upload a file to a database What do you mean "upload a file to a database" ? I know how to uplaod a file (from a web fo

Threads and signals

2006-11-15 Thread Chad J. Schroeder
I've run into an "opportunity" in a Python application using threads and signals. Basically, there is a main process that spawns off a child thread that loops forever. In between iterations, the child thread sleeps for X seconds. All the while, the main thread loops forever doing its thing and

pyRTF and Footers

2006-11-15 Thread E . Doxtator
Hi All I've been using the pyRTF module to generate some documents that I need for work. In general, the module is good, and pretty simple to use. However, I am running into a problem with footers that doesn't quite make sense to me. My question is this: Is it possible to change the text of a f

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread John Bokma
Harry George <[EMAIL PROTECTED]> wrote: > Short answer: People use Python instead of Java because people (at > least intelligent people) tend to avoid pain. Intelligent people don't suffer from fanboy sentiments. They just pick a language that works best for them. -- John

Re: ANN: pyfaq 1.0b1 is now available

2006-11-15 Thread John Machin
Fredrik Lundh wrote: > After incorporating more than 60 comments, adding a bunch of new > articles, and having made a ludicrous amount of minor edits and > tweaks, I'm happy to announce a first "beta" release of the new > Python FAQ: > > http://effbot.org/pyfaq/ > > Many thanks to everyone who

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Maurice LING
walterbyrd wrote: > Some think it will. > > Up untill now, Java has never been standard across different versions > of Linux and Unix. Some think that is one reason that some developers > have avoided Java in favor of Python. Now that Java has been GPL'd that > might change. > > IMO: it won't mak

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Harry George
"walterbyrd" <[EMAIL PROTECTED]> writes: > Some think it will. > > Up untill now, Java has never been standard across different versions > of Linux and Unix. Some think that is one reason that some developers > have avoided Java in favor of Python. Now that Java has been GPL'd that > might change

wrapping existing instance in new interface

2006-11-15 Thread [EMAIL PROTECTED]
I am writing a class that subclasses datetime.datetime in order to add a few specialized methods. So far the __init__ looks like this: class myDateTime(datetime.datetime): def __init__(self, time, *args, **kwargs): if isinstance(time, str): timeTuple, tzOffset = self.magic

Re: Decimal() instead of float?

2006-11-15 Thread Aahz
In article <[EMAIL PROTECTED]>, John Salerno <[EMAIL PROTECTED]> wrote: >John Machin wrote: >> >> Here in Austraila, (I expect this is common to most countries), there >> are people who are utterly clueless about elementary data model rules, >> like identification "numbers" should be kept as strin

ANN: pyfaq 1.0b1 is now available

2006-11-15 Thread Fredrik Lundh
After incorporating more than 60 comments, adding a bunch of new articles, and having made a ludicrous amount of minor edits and tweaks, I'm happy to announce a first "beta" release of the new Python FAQ: http://effbot.org/pyfaq/ Many thanks to everyone who's contributed this far! -- ht

java python GPL

2006-11-15 Thread km
Hi all, what does Java released under GPL mean to python ? could it hamper python development on the long run? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Decimal() instead of float?

2006-11-15 Thread Terry Reedy
"John Salerno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John Machin wrote: > >> Here in Austraila, (I expect this is common to most countries), there >> are people who are utterly clueless about elementary data model rules, >> like identification "numbers" should be kept as s

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Bill
walterbyrd wrote: > Some think it will. > > Up untill now, Java has never been standard across different versions > of Linux and Unix. Some think that is one reason that some developers > have avoided Java in favor of Python. Now that Java has been GPL'd that > might change. > > IMO: it won't make

Re: Python-2.5.exe?

2006-11-15 Thread Martin v. Löwis
John Salerno schrieb: > Is it safe to assume that if you do this, Python first looks in > C:\Python25 for the dll file, before trying to find the non-existent (on > the USB drive) C:\Windows\System32? python25.dll is found through mechanisms of the operating system, not through code in Python. The

Re: Python-2.5.exe?

2006-11-15 Thread Fredrik Lundh
John Salerno wrote: >> python doesn't depend on the registry settings for normal use, so >> you can simply install python as usual, copy python25.dll from >> c:\windows\system32 to c:\python25, and then copy (or move) the >> entire c:\python25 tree to your USB drive. > > Is it safe to assume tha

Re: Python v PHP: fair comparison?

2006-11-15 Thread Luis M. González
walterbyrd ha escrito: > Luis M. González wrote: > > the new crop of web frameworks (Django, Turbo Gears, etc...). > > > > > - Newer versions of mod_python require Apache 2.0, which few hosters > > > have > > > > You can also get alder versions of mod_python. What's the problem? > > The problem i

Re: Decimal() instead of float?

2006-11-15 Thread John Salerno
John Machin wrote: > Here in Austraila, (I expect this is common to most countries), there > are people who are utterly clueless about elementary data model rules, > like identification "numbers" should be kept as strings. Do you mean that ID numbers that serve as a primary key in a database sho

Re: Python-2.5.exe?

2006-11-15 Thread John Salerno
Fredrik Lundh wrote: > python doesn't depend on the registry settings for normal use, so > you can simply install python as usual, copy python25.dll from > c:\windows\system32 to c:\python25, and then copy (or move) the > entire c:\python25 tree to your USB drive. Is it safe to assume that if yo

Will GPL Java eat into Python marketshare?

2006-11-15 Thread walterbyrd
Some think it will. Up untill now, Java has never been standard across different versions of Linux and Unix. Some think that is one reason that some developers have avoided Java in favor of Python. Now that Java has been GPL'd that might change. IMO: it won't make much difference. But I don't rea

Re: Python-2.5.exe?

2006-11-15 Thread Laurent Pointal
Andrew Burton wrote: > What Python is best for installing to a USB Drive? I've actually got > 2.5 on a drive, but I forget which installation package I used. Maybe this one ? http://www.voidspace.org.uk/python/movpy/ > It > seems to me that it was an EXE file, but I cannot seem to find one of

lxml/ElementTree and .tail

2006-11-15 Thread Chas Emerick
I looked around for an ElementTree-specific mailing list, but found none -- my apologies if this is too broad a forum for this question. I've been using the lxml variant of the ElementTree API, which I understand works in much the same way (with some significant additions). In particular, i

Re: Python v PHP: fair comparison?

2006-11-15 Thread tobiah
I've wrestled with this for quite a while, and I think that I've come up with a solution. Let the heavy lifting of the application be done with a back end python process. I was thinking that I might use cherrypy to sit there and wait for requests. Then, I would have PHP make calls to this back en

Re: Yield

2006-11-15 Thread John Henry
Thank you. This is very clear. I can see that this is useful in lots of situations. Fredrik Lundh wrote: > Mateuszk87 wrote: > > > may someone explain "yield" function, please. how does it actually work > > and when do you use it? > > it returns a value from a function without actually terminati

Re: modules and generated code

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 14:33, Nigel Rantor wrote: I have an IDL file that is used to generate a set of stub and skeleton code that is not human-modifiable. Eventually I would like to have my IDL in source control and have a setup script able to generate my stubs and skels and install them for

Re: modules and generated code

2006-11-15 Thread Fredrik Lundh
Nigel Rantor wrote: > Basically, I want the same top-level package to have bits of code in > different directories, but because Python requires the __init__.py file > it only picks up the first one in PYTHONPATH. would a single __init__.py function that does from-import-* on the various implem

Re: PyWin32-winxptheme and py2exe

2006-11-15 Thread Andrea Gavana
Hi Stefan, > You probably need to include the common Control Manifest to supprt > themes > see in the py2exe\samples\advanced directory for an example how to do > it. > I am already doing it. In my Setup.py there is a manifest file embedded in a Python string. Plus, I *also* have a file called My

Re: Yield

2006-11-15 Thread Mateuszk87
thx for the quick answer. i ll have a look. -- http://mail.python.org/mailman/listinfo/python-list

Re: Yield

2006-11-15 Thread Carsten Haese
On Wed, 2006-11-15 at 09:13 -0800, Mateuszk87 wrote: > Hi. > > may someone explain "yield" function, please. how does it actually work > and when do you use it? [There is probably a much better explanation of this somewhere on the net already, but I feel like writing this out myself.] "yield" is

Re: Yield

2006-11-15 Thread Fredrik Lundh
Fredrik Lundh wrote: > reference information: also see: http://effbot.org/pyfaq/what-is-a-generator.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: modules and generated code

2006-11-15 Thread Nigel Rantor
J. Clifford Dyer wrote: > > Maybe I'm missing something obvious, but it sounds like you are > over-complicating the idea of inheritance. Do you just want to create a > subclass of the other class? Nope, that isn't my problem. I have an IDL file that is used to generate a set of stub and skele

Re: Yield

2006-11-15 Thread Fredrik Lundh
Mateuszk87 wrote: > may someone explain "yield" function, please. how does it actually work > and when do you use it? it returns a value from a function without actually terminating the function; when the function is resumed, it'll continue to execute after the yield. a function that contains

Re: How to pass an argument to a python program open in IDLE?

2006-11-15 Thread [EMAIL PROTECTED]
On Nov 15, 7:56 am, [EMAIL PROTECTED] wrote: > Hello, > > I have open a Python program in the IDLE, but when I select the "run > module" under "run" menu, it > does not allow me to pass an argument to my Python program! > How do you pass an argument to a Python program under the IDLE? Thanks for

Editor w. Code Completion for COM-Libs (ActivePython 2.3)

2006-11-15 Thread Udo
Hello, I'm looking for an Python-editor which supports code completion for imported COM-Libs. I'm using ActivePython 2.3. Any hints? Thanks and kind regards Udo -- http://mail.python.org/mailman/listinfo/python-list

Heap cleanup in python extension

2006-11-15 Thread Alexander Eisenhuth
Hello Together, Shortly what I'm doing: - Extending python with boost.pthon extension - Using python C-Api for datatypes in the extension - extension has a thread (that can be stopped/started) - thread started: extension updates a dict (given as parameter to the extension) every 20 ms - the dic

Re: modules and generated code

2006-11-15 Thread J. Clifford Dyer
Nigel Rantor wrote: > Peter Otten wrote: >> Nigel Rantor wrote: >> >>> Peter Otten wrote: Nigel Rantor wrote: >> > So, if I have a tool that generates python code for me (in my case, > CORBA stubs/skels) in a particular package is there a way of > placing my > own code under t

Yield

2006-11-15 Thread Mateuszk87
Hi. may someone explain "yield" function, please. how does it actually work and when do you use it? thanks in forward mateusz -- http://mail.python.org/mailman/listinfo/python-list

using converters, adapters in sqlite3

2006-11-15 Thread matthewperpick
hello, i want to make use of sqlite3's "adapter" and "converter" capabilities but my classes are more complex than the point examples in the python documentation (http://docs.python.org/lib/node347.html), because they include foreign keys to othe rtables. I don't want to concatenate those with th

RE: PyWin32-winxptheme and py2exe

2006-11-15 Thread Stefan Schukat
You probably need to include the common Control Manifest to supprt themes see in the py2exe\samples\advanced directory for an example how to do it. Stefan > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Andrea Gavana > Sent: Tuesday, Nov

Re: plasTeX doesn't load LaTeX packages

2006-11-15 Thread Chris Lambacher
On Sat, Nov 11, 2006 at 01:23:30PM +0100, giovanni gherdovich wrote: > Hello, > > first of all: > Is this the right place to ask plastek-related > questions? I would suspect that the plastex-users mailing list would be the right forum for plasTeX related questions: http://sourceforge.net/mail/?gro

Re: Python-2.5.exe?

2006-11-15 Thread Fredrik Lundh
Andrew Burton wrote: > What Python is best for installing to a USB Drive? I've actually got > 2.5 on a drive, but I forget which installation package I used. It > seems to me that it was an EXE file, but I cannot seem to find one of > those today. > > Can the Python-2.5.msi installation file

Re: jython's future

2006-11-15 Thread Łukasz Langa
Ed Jensen: > Łukasz Langa <[EMAIL PROTECTED]> wrote: > >> Java was at 1.2 (and compiling Hello World took over 5 minutes) >> > > Bullshit. Complete and utter bullshit. > Someone else already gave you the hints on the actual relevance of my post but let me show you one more thing: htt

python-ldap and Python 2.5 (was: Python 2.5 Core Dump on Solaris 8)

2006-11-15 Thread Michael Ströder
Martin v. Löwis wrote: > Melissa Evans schrieb: > >>I've modified grappy.py, >>http://www.stacken.kth.se/~mattiasa/projects/grappy/, a postfix policy >>daemon for greylisting. to use LDAP as a backend instead of SQL (with >>python-ldap.) The daemon runs fine when testing but when I put it under >

Re: Python v PHP: fair comparison?

2006-11-15 Thread James Cunningham
On 2006-11-15 10:47:07 -0500, "Demel, Jeff" <[EMAIL PROTECTED]> said: > [...] > That's true, but I was lucky enough to find webfaction.com for python > hosting, including Django. Good prices and they know Python. I think > they used to be python-hosting.com or something. > > -Jeff Dirt-chea

Python-2.5.exe?

2006-11-15 Thread Andrew Burton
What Python is best for installing to a USB Drive? I've actually got 2.5 on a drive, but I forget which installation package I used. It seems to me that it was an EXE file, but I cannot seem to find one of those today. Can the Python-2.5.msi installation files from python.org be installed so

Re: Python v PHP: fair comparison?

2006-11-15 Thread Andy Dingley
walterbyrd wrote: > I don't know if this is a fair comparison or not. Who cares? Anything involving PHP is a "billion flies can't be wrong" type of statement. I agree completely with your observation about PHP's lower cost of access. This is ostensibly a good thing, but it also means that ever

Re: Is python for me?

2006-11-15 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > By large I mean an application with intensive operations, such as a > fancy GUI maybe a couple of threads, accessing a database, etc. > Threads are handled by the OS. GUI are (usually) handled by a lower-level lib like GTK or such. DB access mostly rely on the particula

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Michael Torrie wrote: > Absolutely false. Most of my standalone, command-line scripts for > manipulating my unix users in LDAP are written in PHP, although we're > rewriting them in python. > I would say that you are one of very few who use PHP for sys-admin tasks - and even you have switched t

Re: Python v PHP: fair comparison?

2006-11-15 Thread Paul Boddie
walterbyrd wrote: > > The problem is that the system requirements for django and turbogears > are sky-high. I think Django requires Apache 2.0 (and maybe mod_python > 3.x), and CherryPy (part of turbogears) requires Python 2.4. If you are > developing for a hosted environment, this can be a big pro

How to pass an argument to a python program open in IDLE?

2006-11-15 Thread tony . ha
Hello, I have open a Python program in the IDLE, but when I select the "run module" under "run" menu, it does not allow me to pass an argument to my Python program! How do you pass an argument to a Python program under the IDLE? Thanks for you help! -- http://mail.python.org/mailman/listinfo/

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Bjoern Schliessmann wrote: > walterbyrd wrote: > > > - PHP has a lower barrier to entry > > Which kind of barrier do you mean -- syntax, availability, ...? > Putting php into a web-site is as easy as throwing some php code into a my html file, and maybe giving the file a php extension. I can get

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Larry Bates wrote: > I'd be surprised if there was more demand for PHP developers > than Python developers. Prepare to be surprised. From what I have seen demand for PHP developers is off-the-scale higher than demand for Python developers. If you search the job boards, then -IMO- it is only fai

RE: Python v PHP: fair comparison?

2006-11-15 Thread Demel, Jeff
-Original Message- Behalf Of walterbyrd The problem is that the system requirements for django and turbogears are sky-high. I think Django requires Apache 2.0 (and maybe mod_python 3.x), and CherryPy (part of turbogears) requires Python 2.4. If you are developing for a hosted environment,

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Luis M. González wrote: > the new crop of web frameworks (Django, Turbo Gears, etc...). > > > - Newer versions of mod_python require Apache 2.0, which few hosters > > have > > You can also get alder versions of mod_python. What's the problem? The problem is that the system requirements for django

Re: Python speed on Solaris 10

2006-11-15 Thread Chris Miles
Since my post I have compiled Python 2.4.3 with Sun Studio 11 with "-fast" option (on Solaris 10) which has produced the fastest version of Python I've been able to test on this hardware, including the CentOS Linux version (which I'm pleased about). I haven't looked into more optimal gcc build

Re: Problem reading with bz2.BZ2File(). Bug?

2006-11-15 Thread Clodoaldo Pinto Neto
Leo Kislov wrote: > Confirmed on windows with 2.4 and 2.5: > > C:\p>\Python24\python.exe bzp.py > line number: 588317 > '\x1e' > '' > > C:\p>\Python25\python.exe bzp.py > line number: 588317 > '\x1e' > '' > > Looks like one byte of garbage is appended at the end of file. Please > file a bug report.

  1   2   >