Initial release of new PythonQt binding

2006-11-15 Thread Florian Link
PythonQt is a dynamic and lightweight script binding of the Qt4 framework to the Python language. It can be easily embedded into Qt4 applications and makes any QObject derived object scriptable via Python without the need of wrapper code generation. The first public beta release is available as

Re: refactoring so that multiple changes can be made with one variable?

2006-11-15 Thread Steven D'Aprano
On Tue, 14 Nov 2006 10:41:53 -0500, John Salerno wrote: My code is below. For now I'm focusing on the lines where health (and armor) are increased in each character class. Let's say I decided to change the amount of increase in the future. As it is now, I'd have to go to each character

Re: reduce to be removed?

2006-11-15 Thread Robert Kern
Antoon Pardon wrote: On 2006-11-15, Robert Kern [EMAIL PROTECTED] wrote: Dustan wrote: 2. While I haven't taken a good look at NumPy, my intuition tells me it won't work with complex data types, which wouldn't work for me at all. Am I correct on that second one? No. numpy can make arrays

Re: reading csv problem

2006-11-15 Thread [EMAIL PROTECTED]
Thank you. On Nov 15, 1:33 pm, Cameron Walsh [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hello, I use csv to take information from file. import csv reader = csv.reader(open('t.csv')) for row in reader: print row # it is perfectly OK

Re: Tkinter: Strange behavior using place() and changing cursors

2006-11-15 Thread Eric Brunel
On Tue, 14 Nov 2006 17:45:52 +0100, Mudcat [EMAIL PROTECTED] wrote: The problem is I need the ability to change it dynamically. I don't want the cursor to be the double_arrow the whole time the mouse hovers inside that frame. It's supposed to be a resize arrow when the mouse is on the frame

Re: FAQ: How do I calculate what quoted strings and numbers mean?

2006-11-15 Thread p . lavarre
A FAQ that discusses good ways to handle Python-like literals and expressions would definitely be a useful addition to the FAQ. if nobody else does anything about it, I'll get there sooner or later. Thank you. eval(source, {'builtins': {}}) works enough like an evaluator of literals to

Re: Py3K idea: why not drop the colon?

2006-11-15 Thread Antoon Pardon
On 2006-11-15, Steven D'Aprano [EMAIL PROTECTED] wrote: On Tue, 14 Nov 2006 12:01:05 +, Antoon Pardon wrote: On 2006-11-13, Ben Finney [EMAIL PROTECTED] wrote: Michael Hobbs [EMAIL PROTECTED] writes: To be clear, this is the actual thrust of my argument. It seems redundant to have

Re: FAQ: How do I calculate what quoted strings and numbers mean?

2006-11-15 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: I was happy enough when I saw an improvement like: import os result = eval(os.system('pwd')) .../Desktop result = eval(os.system('pwd'), {whatever: {}}) Traceback (most recent call last): File stdin, line 1, in module File string, line 1, in module

Difference

2006-11-15 Thread Hodren Naidoo
Can someone plz tell me the differences between redirect and traverse in python metadata? -- Regards Hodren Naidoo -- http://mail.python.org/mailman/listinfo/python-list

Re: Py3K idea: why not drop the colon?

2006-11-15 Thread Christophe
Stephen Eilert a écrit : Well, I *hate* underscores with a passion. So it is kinda frustrating that I *have* to say __init__. The fact that the coding conventions for Python suggest things such as methods_called_this_or_that do not help. Everything else seems fine, since if there's voodoo

Re: Difference

2006-11-15 Thread Fredrik Lundh
Hodren Naidoo wrote: Can someone plz tell me the differences between redirect and traverse in python metadata? it's not clear what you mean by redirect, traverse or python metadata, so that's not very likely. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: CORBA: Fnorb Problems

2006-11-15 Thread rodmc
Thanks the fix you provided me with workds perfectly. Best, rod -- http://mail.python.org/mailman/listinfo/python-list

Re: A question on Encoding and Decoding.

2006-11-15 Thread rbsharp
Hello, I think this remark is more to the point. In my experience, the general problem is that python operates with the default encoding ascii as in sys.getdefaultencoding(). It is possible to set the defaultencoding in sitecustomize.py, with sys.setdefaultencoding('latin1'). I have placed

Re: Is python for me?

2006-11-15 Thread rodmc
[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. I am still fairly new to Python, I only started using it at the start of this year and then stopped for a while. However the project I

Re: Py3K idea: why not drop the colon?

2006-11-15 Thread Steven D'Aprano
On Wed, 15 Nov 2006 08:22:46 +, Antoon Pardon wrote: Redundancy is not something to be valued for its own sake. It is only valuable when it actually gains you something. In the same way it is not something to be eliminated for its own sake. On the contrary, redundancy implies more work

Re: Py3K idea: why not drop the colon?

2006-11-15 Thread Antoon Pardon
On 2006-11-15, Steven D'Aprano [EMAIL PROTECTED] wrote: On Wed, 15 Nov 2006 08:22:46 +, Antoon Pardon wrote: Redundancy is not something to be valued for its own sake. It is only valuable when it actually gains you something. In the same way it is not something to be eliminated for its

Re: Using signal.alarm to terminate a thread

2006-11-15 Thread Adrian Casey
Nick Craig-Wood wrote: Adrian Casey [EMAIL PROTECTED] wrote: Adrian Casey [EMAIL PROTECTED] wrote: import os, pexpect, threading def runyes(): print Running yes command... pexpect.run('yes', timeout=5) t = threading.Thread(target=runyes) t.start() t.join()

Re: Decimal() instead of float?

2006-11-15 Thread Fredrik Lundh
Steve Holden wrote: It /would/ be nice to see Decimal() become the default. I cannot imagine why in an otherwise human enough language, math wouldn't be included in that without going out of one's way to do it. :-) Speed has a lot to do with it. Have you timed some decimal operations

Problem reading with bz2.BZ2File(). Bug?

2006-11-15 Thread Clodoaldo Pinto Neto
When comparing two files which should be equal the last line is different: The first file is a bzip2 compressed file and is read with bz2.BZ2File() The second file is the same file uncompressed and read with open() The first file named file.txt.bz2 is uncompressed with: $ bunzip2 -k

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

2006-11-15 Thread Fredrik Lundh
Clodoaldo Pinto Neto wrote: The offending file is 5.5 MB. Sorry, i could not reproduce this problem with a smaller file. but surely you can post the repr() of the last two lines? /F -- http://mail.python.org/mailman/listinfo/python-list

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

2006-11-15 Thread Clodoaldo Pinto Neto
Fredrik Lundh wrote: Clodoaldo Pinto Neto wrote: The offending file is 5.5 MB. Sorry, i could not reproduce this problem with a smaller file. but surely you can post the repr() of the last two lines? This is the output: $ python bzp.py line number: 588317 '\x07' '' Clodoaldo --

biopython SProt

2006-11-15 Thread km
Hi all, Biopython's SProt module doesnt seem to work with current Uniprot KB . do anyone have a parser to read Uniprot format files ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

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

2006-11-15 Thread Leo Kislov
Clodoaldo Pinto Neto wrote: Fredrik Lundh wrote: Clodoaldo Pinto Neto wrote: The offending file is 5.5 MB. Sorry, i could not reproduce this problem with a smaller file. but surely you can post the repr() of the last two lines? This is the output: $ python bzp.py line number:

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

2006-11-15 Thread robert
sturlamolden wrote: robert wrote: t = r * sqrt( (n-2)/(1-r**2) ) yet too lazy/practical for digging these things from there. You obviously got it - out of that, what would be a final estimate for an error range of r (n big) ? that same const. * (1-r**2)/sqrt(n) which I found in that

Re: multi split function taking delimiter list

2006-11-15 Thread Paddy
Paddy wrote: Paddy wrote: [EMAIL PROTECTED] wrote: Hi, I'm looking for something like: multi_split( 'a:=b+c' , [':=','+'] ) returning: ['a', ':=', 'b', '+', 'c'] whats the python way to achieve this, preferably without regexp? Thanks. Martin I

Re: refactoring so that multiple changes can be made with one variable?

2006-11-15 Thread Neil Cerutti
On 2006-11-15, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Wed, 15 Nov 2006 18:57:39 +1100, Steven D'Aprano [EMAIL PROTECTED] declaimed the following in comp.lang.python: And last but most certainly not least, you can separate the adjustment values into (say) an INI file, read them in at

Re: sqlite3 views, if not exists clause

2006-11-15 Thread Josh
Tim Golden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Not a bug with the sqlite3 api that comes with python 2.5. as such, | since .execute pretty much passes its parameters through to the database | engine. Rather, the syntax you're using is a relatively late addition | to the

Re: Using signal.alarm to terminate a thread

2006-11-15 Thread Nick Craig-Wood
Adrian Casey [EMAIL PROTECTED] wrote: I'm running Kubuntu 06-06 with python 2.4.3 and the above code runs forever at 100% cpu utilization. Interesting... I wonder if that is a fixed bug. On Debian/etch with python-pexpect 2.1-1 I get Python 2.4.4c0 (#2, Jul 30 2006, 15:43:58) [GCC

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. Bug number

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: 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 and

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
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 fair

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 php

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! --

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

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 to

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 particular

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 every

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

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-cheap

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 load it

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:

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 files

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:

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,

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 the

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

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 the same package hierarchy without

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

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

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 you

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 a

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 skeleton

Re: Yield

2006-11-15 Thread Fredrik Lundh
Fredrik Lundh wrote: reference information: also see: http://effbot.org/pyfaq/what-is-a-generator.htm /F -- 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 a

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: 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

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

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: 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 terminating the

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

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,

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

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

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 you

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 should

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 is that 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 that if you

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: 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 much

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 strings. Do

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

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! /F --

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 strings. Do you

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 =

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. IMO:

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 make much

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's

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

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

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

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 form to

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 the file a php

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

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 recent build of)

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

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 how to

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 quite

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 own mind

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 tasks - and

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 the system

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 can

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 them.

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: 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. So a

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 much

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: 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 POV, you're of

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

  1   2   >