FarPy GUIE v0.5.1 Released!

2006-08-26 Thread [EMAIL PROTECTED]
http://farpy.holev.com/ http://sourceforge.net/projects/farpyguie About GUIE (GUI Editor) provides a simple WYSIWYG GUI editor for wxWidgets. The program was made in C# and saves the GUI that was created to a XML format I called GUIML. This GUIML is a pretty standard representation of the GUI

Re: Problem with List of List

2006-08-26 Thread Kirt
Fredrik Lundh wrote: Fredrik Lundh wrote: I have a code ==CODE= List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], ['3','b',

Re: Problem with List of List

2006-08-26 Thread Kirt
Fredrik Lundh wrote: Fredrik Lundh wrote: I have a code ==CODE= List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], ['3','b',

Re: Problem with List of List

2006-08-26 Thread Kirt
Kirt wrote: Fredrik Lundh wrote: Fredrik Lundh wrote: I have a code ==CODE= List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'],

Re: Problem with List of List

2006-08-26 Thread Paul Rubin
Kirt [EMAIL PROTECTED] writes: Actually here in my code ['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'] means: 1== Directory name; a,b,c,d=== Filename 6 == modified time So i want the out put like: Directory name: 1 Filename:a modified time:6 Try writing the code in a

Re: Finding the type of indexing supported by an object?

2006-08-26 Thread Derek Peschel
In article [EMAIL PROTECTED], Alex Martelli wrote: Derek Peschel [EMAIL PROTECTED] wrote: They are the same except for the expression in for key in Can they be combined into one function? How can I determine if the argument is They can easily be refactored, if that's what you mean: No,

Re: get a line of text from a socket...

2006-08-26 Thread Bryan Olson
KraftDiner wrote: Thanks I can't seem to get this example to do anything except sit there http://docs.python.org/lib/asyncore-example.html Yeah, the example code, by itself, will just sit there. As an example, it should probably include the calls to make it do something. Try adding the

Re: Problem with List of List

2006-08-26 Thread Fredrik Lundh
Kirt wrote: forgot to mention that the fix is to change the first for statement to: for x in List[:]: /F Thanx Fredrik Lundh for ur response. I tried ur fix But the output i am getting is repeated. I'm pretty sure I told you to *loop* over a copy, not *remove* things from a copy.

Re: Problem with List of List

2006-08-26 Thread Kirt
Paul Rubin wrote: Kirt [EMAIL PROTECTED] writes: Actually here in my code ['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'] means: 1== Directory name; a,b,c,d=== Filename 6 == modified time So i want the out put like: Directory name: 1 Filename:a modified time:6

Re: Finding the type of indexing supported by an object?

2006-08-26 Thread Derek Peschel
In article [EMAIL PROTECTED], Peter Otten wrote: Instead of the (unreliable) introspection approach you could let the client code decide: See my reply to Alex Martelli's post, where I explain my original desire for one function that works with a wide variety of present and future object types.

Re: Finding the type of indexing supported by an object?

2006-08-26 Thread Fredrik Lundh
Derek Peschel wrote: At the moment I only need to invert dicts and lists. Is subclassing dict and list considred good style? if it makes sense for your application, sure. however, it might be more convenient to just use a simple type check (e.g. looking for items) to distinguish between

Re: django's view.py as class not just methods

2006-08-26 Thread Skink
Rob Wolfe wrote: I didn't try it with django but maybe closure is the solution. Try this: index, detail and download functions can be mapped in urls.py now. Rob, thanks a lot. is gonna be good starting point skink -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Office and Python

2006-08-26 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], tobiah wrote: I should have pointed out that the delimiter is a tab right now. That's what I use in general, but I still call the files .csv files. Also this doesn't check for, or handle quoted fields. Why don't you use the `csv` module from the standard library?

Re: Taking data from a text file to parse html page

2006-08-26 Thread Anthra Norell
No, I am not running Linux to any extent. But I am very strict about case. There is not a single instance of se.py or sel.py anywhere on my system. You' ll have to find out where lower case sneaks in on yours. The zip file preserves case and in the zip file the names are upper case. I am

Re: Fw: Is this a good idea or a waste of time?

2006-08-26 Thread Hendrik van Rooyen
Simon Forman [EMAIL PROTECTED] Wrote: | Hendrik van Rooyen wrote: | Simon Forman [EMAIL PROTECTED] wrote: | | 8- | | | BTW, speaking of strictness, more stricter is invalid English, | | just stricter is the correct form. ;-)

Re: Consistency in Python

2006-08-26 Thread Hendrik van Rooyen
Paul Boddie [EMAIL PROTECTED] Wrote: | Hendrik van Rooyen wrote: | | There seems to be no common methods such as- | prepend - for adding something to the beginning | append - for adding something to the end | insert[j] - for adding something somewhere in the middle | | Or have

Re: Consistency in Python

2006-08-26 Thread Hendrik van Rooyen
Diez B. Roggisch [EMAIL PROTECTED] wrote, oder schrieb, of het geskryf: | Hendrik van Rooyen schrieb: | Hi, | | for S where S is a Standard Python type: | The slice notation S[n] returns either: | The n'th element of S, or | The value of the dictionary entry whose key is

question about class, functions and scope

2006-08-26 Thread nephish
lo there all, i have an app that runs three classes as threads in the same program. some of them need to be able to share some functions. Can i set a function before i define a class and have the class use it ? Kinda like this. def some_function(var1, var2): do something with var1, var2

[ANN] NumPy 1.0b4 now available

2006-08-26 Thread Travis E. Oliphant
The 4th beta release of NumPy 1.0 has just been made available. NumPy 1.0 represents the culmination of over 18 months of work to unify the Numeric and Numarray array packages into a single best-of-breed array package for Python. NumPy supports all the features of Numeric and Numarray with a

mechanize, how send forms?

2006-08-26 Thread Kowalski
from mechanize import Browser br = Browser() br.open(http://www.google.com;) #example for form in br.forms(): print form br.select_form(name=f) br[q] = Blah #??? #response1=br.submit() #??? -- http://mail.python.org/mailman/listinfo/python-list

Re: question about class, functions and scope

2006-08-26 Thread bearophileHUGS
nephish: is this legal ? is it pythonic? It's legan and pythonic. Functions are here for a purpose. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Python web service ...

2006-08-26 Thread nicolasg
Hi folks, I have accomplished to make a python program that make some image manipulation to bmp files. I now want to provide this program as a web service. A user can visit a site and through a web interface he should upload the file to the web server , the server then will do the image process

Re: Drag and Drop with PyQt4

2006-08-26 Thread Harshad
David Boddie wrote: I tested this code with Python 2.4.2, Qt 4.1.4 and PyQt 4.1, and I think you should be able to do the same in your code. First of all, thanks a lot for the very precise and quick help! Ot works now. 1. If you are prepared to try Qt's model/view classes, you can exert

Python daemon process

2006-08-26 Thread Thomas Dybdahl Ahle
Hi, I'm writing a program, using popen4(gnuchess), The problem is, that gnuchess keeps running after program exit. I know about the atexit module, but in java, you could make a process a daemon process, and it would only run as long as the real processes ran. I think this is a better way to stop

Re: Taking data from a text file to parse html page

2006-08-26 Thread Georg Brandl
Anthra Norell wrote: No, I am not running Linux to any extent. But I am very strict about case. There is not a single instance of se.py or sel.py anywhere on my system. You' ll have to find out where lower case sneaks in on yours. The zip file preserves case and in the zip file the names

Re: Taking data from a text file to parse html page

2006-08-26 Thread Anthra Norell
Yes! It just occurred to my that this could be the problem. I have to change that. Thanks for the hint. Frederic - Original Message - From: Georg Brandl [EMAIL PROTECTED] Newsgroups: comp.lang.python To: python-list@python.org Sent: Saturday, August 26, 2006 1:59 PM Subject: Re: Taking

Learning Python

2006-08-26 Thread JAG CHAN
Friends, As I had written earlier, I am trying to learn Python. I chose IDLE as an editor to learn Python. Now I find that it is an online editor. It is not possible for me to be always on online while learning. Kindly suggest me a suitable editor (for Windows XP) which does not require me to be

Re: mechanize, how send forms?

2006-08-26 Thread Paul McGuire
Kowalski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] from mechanize import Browser br = Browser() br.open(http://www.google.com;) #example for form in br.forms(): print form br.select_form(name=f) br[q] = Blah #??? #response1=br.submit() #??? Check out twill, it

Re: Learning Python

2006-08-26 Thread vbgunz
JAG CHAN wrote: Friends, As I had written earlier, I am trying to learn Python. I chose IDLE as an editor to learn Python. Now I find that it is an online editor. It is not possible for me to be always on online while learning. Kindly suggest me a suitable editor (for Windows XP) which does

Re: Learning Python

2006-08-26 Thread bearophileHUGS
JAG CHAN: As I had written earlier, I am trying to learn Python. I chose IDLE as an editor to learn Python. Now I find that it is an online editor. It is not possible for me to be always on online while learning. Kindly suggest me a suitable editor (for Windows XP) which does not require me

Re: mechanize, how send forms?

2006-08-26 Thread Duncan Booth
Kowalski wrote: from mechanize import Browser br = Browser() br.open(http://www.google.com;) #example for form in br.forms(): print form br.select_form(name=f) br[q] = Blah #??? #response1=br.submit() #??? Google publish an api for searching. Use that instead of trying

Re: Learning Python

2006-08-26 Thread JAG CHAN
[EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: JAG CHAN: As I had written earlier, I am trying to learn Python. I chose IDLE as an editor to learn Python. Now I find that it is an online editor. It is not possible for me to be always on online while learning. Kindly suggest me a

Re: Duck typing alows true polymorfisim

2006-08-26 Thread Dan Johnson
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] lets say you want a generic numerical algorithom like sum Ruby def sum lst lst.inject(0){|total,current| total*current} end Java // i dont know if there is a numeric super class for numbers [snip- int only example] There is,

Re: question about class, functions and scope

2006-08-26 Thread nephish
[EMAIL PROTECTED] wrote: nephish: is this legal ? is it pythonic? It's legan and pythonic. Functions are here for a purpose. Bye, bearophile cool enough, and thanks for the quick reply. shawn -- http://mail.python.org/mailman/listinfo/python-list

Live Coding in pygame

2006-08-26 Thread Julian Snitow
Here is a more visual example of the technique presented in Logan Koester's article, Live Coding in Python (http://www.logankoester.com/mt/2006/07/live_coding_with_python_1.html). It's very quick-and-dirty in style, partly because half of the program was written in a moment of inspiration, and

Re: Python web service ...

2006-08-26 Thread Ramon Diaz-Uriarte
On 26 Aug 2006 04:07:35 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi folks, I have accomplished to make a python program that make some image manipulation to bmp files. I now want to provide this program as a web service. A user can visit a site and through a web interface he should

Re: Learning Python

2006-08-26 Thread Duncan Booth
JAG CHAN wrote: Whenever I try to open IDLE, my zone firewall tells me pythonw.exe is trying to access the trusted zone. Whenever I try to open new IDLE window I get the following message: IDLE's subprocess didn't make connection.Either IDLE can't start a subprocess or personal firewall

Re: Learning Python

2006-08-26 Thread Andre Meyer
http://www.python.org/download/releases/2.4/bugs/IDLE now executes code in a separate process. To communicate between the main process and executing processes, IDLE opens a socket to 127.0.0.1 (the local machine). Some firewalls running on Windows machines interfere with this and can cause

Out-dated compiled modules (*.pyc)?

2006-08-26 Thread Anastasios Hatzis
Hi folks, how can I prevent Python from adding or using *.pyc files if executing a Python module? I have the strong feeling that the interpreter uses out-dated pyc file instead more recent py files. At least I already had some cases where application behaviour changed only by removing the

rollover effect

2006-08-26 Thread groves
hi I am trying to get a roll over effect on my canvas.(this is a virtual program which will eventually fit into my final program) Exactly i have a text on my screen and I want to have a brief discription across it whenever the user takes the mouse on it n hence giving information about the type

Re: Avoiding if..elsif statements

2006-08-26 Thread Ghalib Suleiman
Try it and see. Functions are first-class citizens in Python. On Aug 25, 2006, at 6:36 PM, unexpected wrote: I have a program where based on a specific value from a dictionary, I call a different function. Currently, I've implemented a bunch of if..elsif statements to do this, but it's gotten

Re: rollover effect

2006-08-26 Thread Simon Forman
groves wrote: hi I am trying to get a roll over effect on my canvas.(this is a virtual program which will eventually fit into my final program) Exactly i have a text on my screen and I want to have a brief discription across it whenever the user takes the mouse on it n hence giving

Re: Duck typing alows true polymorfisim

2006-08-26 Thread David Ells
Terry Reedy wrote: David Ells [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] def increment(x): return x += 1 'return x+1' works better ;-) tjr Heh, woops... thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: rollover effect

2006-08-26 Thread groves
Simon Forman wrote: groves wrote: hi I am trying to get a roll over effect on my canvas.(this is a virtual program which will eventually fit into my final program) Exactly i have a text on my screen and I want to have a brief discription across it whenever the user takes the mouse on

Re: Out-dated compiled modules (*.pyc)?

2006-08-26 Thread Simon Forman
Anastasios Hatzis wrote: Hi folks, how can I prevent Python from adding or using *.pyc files if executing a Python module? I have the strong feeling that the interpreter uses out-dated pyc file instead more recent py files. At least I already had some cases where application behaviour

Re: Python web service ...

2006-08-26 Thread NicolasG
For a one-shot thing, plain old CGI might be enough. You can have a static HTML page with the form for the upload, have python do the image part, and generate the return HTML with the image with a python script. If you plan to do this a lot, or want fairly sophisticated stuff, or DB access

Re: rollover effect

2006-08-26 Thread Simon Forman
groves wrote: Simon Forman wrote: groves wrote: hi I am trying to get a roll over effect on my canvas.(this is a virtual program which will eventually fit into my final program) Exactly i have a text on my screen and I want to have a brief discription across it whenever the

Re: question about class, functions and scope

2006-08-26 Thread nephish
nephish wrote: [EMAIL PROTECTED] wrote: nephish: is this legal ? is it pythonic? It's legan and pythonic. Functions are here for a purpose. Bye, bearophile cool enough, and thanks for the quick reply. shawn one more question. the functions defined above the classes that the

Re: rollover effect

2006-08-26 Thread groves
Sorry, as I am new to python so couldn't understand what yu were asking. Now the problem is that i annot use pmw in my project..is thre anyother alternative by which I can have a rollover mouse effect on the canvas. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: ASN.1 encoder decoder

2006-08-26 Thread Bruce Stephens
Doug Stell [EMAIL PROTECTED] writes: I looked at pyasn1. Unfortunately, it is not useful and provides a C interface. Thanks, anyhow. What makes you say that? It appears to me (looking at the code in CVS) to be written entirely in Python, and the home page, http://pyasn1.sourceforge.net/ shows

Re: rollover effect

2006-08-26 Thread Simon Forman
groves wrote: Sorry, as I am new to python so couldn't understand what yu were asking. Now the problem is that i annot use pmw in my project..is thre anyother alternative by which I can have a rollover mouse effect on the canvas. thanks Not a problem. Although IDE and GUI are terms that are

Re: Python web service ...

2006-08-26 Thread Tim Williams
At this time right now I prefer to do something that works the quickest possible... I never had any experience with CGI, do I need to set up a web server for that ? can you point me some usefull reading material so I can get a start ? I will post for a comment at Zope , I had installed once

Re: rollover effect

2006-08-26 Thread groves
Simon Forman wrote: groves wrote: Sorry, as I am new to python so couldn't understand what yu were asking. Now the problem is that i annot use pmw in my project..is thre anyother alternative by which I can have a rollover mouse effect on the canvas. thanks Not a problem. Although

Re: question about class, functions and scope

2006-08-26 Thread bearophileHUGS
nephish: one more question. the functions defined above the classes that the could be called from within the classes, they do not need a 'self' declaration because they are not part of a class, right? Class methods generally require the self as first parameter, functions don't need the self.

Re: rollover effect

2006-08-26 Thread SuperHik
groves wrote: Simon Forman wrote: groves wrote: Sorry, as I am new to python so couldn't understand what yu were asking. Now the problem is that i annot use pmw in my project..is thre anyother alternative by which I can have a rollover mouse effect on the canvas. thanks Not a problem.

marshal and unmarshal

2006-08-26 Thread leo
Hi, following is marshal and unmarshal script import marshal strng = print 'hello world' code = compile(strng, strng, exec) data = marshal.dumps(code) strng0 = marshal.loads(data) print repr(data) print -*100 print strng0 ###Result:

Re: Learning Python

2006-08-26 Thread SuperHik
JAG CHAN wrote: [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: JAG CHAN: As I had written earlier, I am trying to learn Python. I chose IDLE as an editor to learn Python. Now I find that it is an online editor. It is not possible for me to be always on online while learning. Kindly

Re: question about class, functions and scope

2006-08-26 Thread nephish
[EMAIL PROTECTED] wrote: nephish: one more question. the functions defined above the classes that the could be called from within the classes, they do not need a 'self' declaration because they are not part of a class, right? Class methods generally require the self as first parameter,

Re: rollover effect

2006-08-26 Thread Simon Forman
SuperHik wrote: groves wrote: Simon Forman wrote: groves wrote: Sorry, as I am new to python so couldn't understand what yu were asking. Now the problem is that i annot use pmw in my project..is thre anyother alternative by which I can have a rollover mouse effect on the canvas.

Dive into Python question

2006-08-26 Thread Fred C. Dobbs
I feel like an idiot. I'm going thru Dive Into Python and running the first program - odbchelper.py My output is pwd=secret;database=master;uid=sa;server=mpilgrim which has all the substrings reversed from the output documented in the book. I've run the downloaded code in Komodo, PythonWin and

Re: Dive into Python question

2006-08-26 Thread Simon Forman
Fred C. Dobbs wrote: I feel like an idiot. I'm going thru Dive Into Python and running the first program - odbchelper.py My output is pwd=secret;database=master;uid=sa;server=mpilgrim which has all the substrings reversed from the output documented in the book. I've run the downloaded code

Re: Python web service ...

2006-08-26 Thread Ravi Teja
Tim Williams wrote: At this time right now I prefer to do something that works the quickest possible... I never had any experience with CGI, do I need to set up a web server for that ? can you point me some usefull reading material so I can get a start ? I will post for a comment at

Re: random writing access to a file in Python

2006-08-26 Thread Paul Rubin
Claudio Grondi [EMAIL PROTECTED] writes: Is there a ready to use (free, best Open Source) tool able to sort lines (each line appr. 20 bytes long) of a XXX GByte large text file (i.e. in place) taking full advantage of available memory to speed up the process as much as possible? Try the

Re: Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

2006-08-26 Thread Patrick Maupin
[EMAIL PROTECTED] wrote: Aahz Taking a look at __slots__ is fine as long as you don't actually Aahz use them. Gabriel Why? http://groups.google.com/group/comp.lang.python/browse_thread/thread/451ad25f9c648404/f4ac2dfde32b16fd?lnk=stq=Python+__slots__+aahzrnum=2#f4ac2dfde32b16fd Skip

Re: Out-dated compiled modules (*.pyc)?

2006-08-26 Thread Cliff Wells
On Sat, 2006-08-26 at 18:54 +, Dennis Lee Bieber wrote: Normally, Python compares the date stamps of the files (and maybe some internal magic values) and only rebuilds the .pyc if the .py is newer. Perhaps the OP should check both the system date on his PC and the timestamp on the

Re: Dive into Python question

2006-08-26 Thread Fred C. Dobbs
Thanks, after I looked into it I realized that the output order can change arbitarily. It just seems kind of strange that the first example is one where your output might not match what the author tells you it should be - and yet there's no mention of this in the book (at least at that point.) --

Re: Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

2006-08-26 Thread skip
Aahz Taking a look at __slots__ is fine as long as you don't actually Aahz use them. Gabriel Why? Skip http://groups.google.com/group/comp.lang.python/browse_thread/thread/451ad25f9c648404/f4ac2dfde32b16fd?lnk=stq=Python+__slots__+aahzrnum=2#f4ac2dfde32b16fd Patrick The

Re: Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

2006-08-26 Thread Jarek Zgoda
[EMAIL PROTECTED] napisał(a): That said, It's not mentioned on the Python3.0 page of the wiki: http://wiki.python.org/moin/Python3.0 or in PEP 3000: http://www.python.org/dev/peps/pep-3000/ and I see no discussion about it in the Python 3000 mailing list archives:

Learning Python - Have Question.

2006-08-26 Thread AlbaClause
I'm just learning Python, and I have a question about os.path.join(dirpath, name) and its use. Simply put, I haven't figured out how to use it. I was looking through the Python reference material in the wee hours of the morning and checking out some of the modules. I was keenly interested in

Re: Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

2006-08-26 Thread Patrick Maupin
[EMAIL PROTECTED] wrote: Aahz Taking a look at __slots__ is fine as long as you don't actually Aahz use them. Gabriel Why? Skip

Re: Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

2006-08-26 Thread Patrick Maupin
Jarek Zgoda wrote: Having that said, should we hope __slots__ would disappear in (some) future (tomorrow?!, in next 10 microseconds?!)? Please, don't left us hopeless. Are you saying you _do_ hope that __slots__ disappear? Why? Regards, Pat --

Re: rollover effect

2006-08-26 Thread groves
SuperHik wrote: groves wrote: Simon Forman wrote: groves wrote: Sorry, as I am new to python so couldn't understand what yu were asking. Now the problem is that i annot use pmw in my project..is thre anyother alternative by which I can have a rollover mouse effect on the canvas.

Re: rollover effect

2006-08-26 Thread groves
Thanks a lot Ill have a look and try solving my problem -- http://mail.python.org/mailman/listinfo/python-list

Re: rollover effect

2006-08-26 Thread groves
Thanks a lot Ill have a look and try solving my problem -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python - Have Question.

2006-08-26 Thread iapain
I'm just learning Python, and I have a question about os.path.join(dirpath, name) and its use. Simply put, I haven't figured out how to use it. First thing you have to remember while using python is everything is an object. os.join.path concatenates one or more path for example

Re: Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

2006-08-26 Thread Carl Banks
Patrick Maupin wrote: The only assertion that was made explicitly enough to be testable came about in a followup to Aahz's original post, only AFTER someone asked what the side-effects associated with __slots__ were. Aahz responded: The main one is that inheritance becomes difficult to

Re: Python web service ...

2006-08-26 Thread iapain
My question is how difficult is to set up a web server that can run python easy ? should I try ZOPE or there is something better in mind ? Just install Apache and run Python as CGI thats the best solution I found for my apps. Thats the best and faster way to move python apps on web. --

Problem installing Kinterbasdb on mac

2006-08-26 Thread Manuel Cidrás Pidre
My question is to Mac users: Did you problems installing Kinterbasdb?. I have a lot of problems: .../... FINISHED PROBING DATABASE API FOR FEATURES. --- building 'kinterbasdb._kinterbasdb' extension gcc -arch ppc -arch

Re: f2py on windows XP - Unknown Switch??

2006-08-26 Thread John Machin
Sile wrote: Hello, I'm trying to get f2py working from the command line on windows XP. I have mingw32 as my C complier (after some advice on a previous thread) and Compaq Visual Fortran 6.5. Changing my C complier reduced my errors but I'm still having trouble. I think I have all the correct

Re: Python web service ...

2006-08-26 Thread Ramon Diaz-Uriarte
On 26 Aug 2006 09:12:50 -0700, NicolasG [EMAIL PROTECTED] wrote: For a one-shot thing, plain old CGI might be enough. You can have a static HTML page with the form for the upload, have python do the image part, and generate the return HTML with the image with a python script. If you plan

Re: random writing access to a file in Python

2006-08-26 Thread Claudio Grondi
Paul Rubin wrote: Claudio Grondi [EMAIL PROTECTED] writes: Is there a ready to use (free, best Open Source) tool able to sort lines (each line appr. 20 bytes long) of a XXX GByte large text file (i.e. in place) taking full advantage of available memory to speed up the process as much as

Re: wxGlade and __init__

2006-08-26 Thread Tim N. van der Leeuw
crystalattice wrote: I'm making a GUI for a console-based program I just wrote. I figured it would be mostly straight forward to convert it over in wxPython but now I'm confused. Hi Crystalattice, One thing you could do is make your original console-program a subclass of the

Re: random writing access to a file in Python

2006-08-26 Thread Paul Rubin
Claudio Grondi [EMAIL PROTECTED] writes: Try the standard Unix/Linux sort utility. Use the --buffer-size=SIZE to tell it how much memory to use. I am on Windows and it seems, that Windows XP SP2 'sort' can work with the file, but not without a temporary file and space for the resulting

Re: Learning Python - Have Question.

2006-08-26 Thread AlbaClause
iapain wrote: I'm just learning Python, and I have a question about os.path.join(dirpath, name) and its use. Simply put, I haven't figured out how to use it. First thing you have to remember while using python is everything is an object. os.join.path concatenates one or more path for

Re: Python daemon process

2006-08-26 Thread faulkner
process = subprocess.Popen(gnuchess) ... os.kill(process.pid, signal.SIGKILL) Thomas Dybdahl Ahle wrote: Hi, I'm writing a program, using popen4(gnuchess), The problem is, that gnuchess keeps running after program exit. I know about the atexit module, but in java, you could make a process a

Re: rollover effect

2006-08-26 Thread Diez B. Roggisch
groves schrieb: Thanks a lot Ill have a look and try solving my problem Ah, the summer ends and all of a sudden punctuation symbols are short. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: random writing access to a file in Python

2006-08-26 Thread Claudio Grondi
Paul Rubin wrote: Claudio Grondi [EMAIL PROTECTED] writes: Try the standard Unix/Linux sort utility. Use the --buffer-size=SIZE to tell it how much memory to use. I am on Windows and it seems, that Windows XP SP2 'sort' can work with the file, but not without a temporary file and space for

Re: random writing access to a file in Python

2006-08-26 Thread Paul Rubin
Claudio Grondi [EMAIL PROTECTED] writes: Does it mean, that in case of very large files: the size of available memory for the sorting operation (making it possible to work on larger chunks of data in memory) has less impact on the actual sorting speed than the speed of the data transfer

Re: RE Module

2006-08-26 Thread Roman
I looked at a book called beginning python and it claims that .*? is a non-greedy match. tobiah wrote: In python's RE module, they're like Perl: Greedy: .* Nongreedy: .*? Oh, I have never seen that. In that case, why did Roman's first example not work well for HTML tags? '.*?'

about daemons and IPC

2006-08-26 Thread sdistefano
Hey people! For the first time I'm doing a client/server application, and I'm really confused with IPC stuff. I read the fastest method is shared memory, but I tryed mmap and found it tedious for the amount of data I'm handling (which is 30K at most, but mmap seems to get tedious for anything

Re: about daemons and IPC

2006-08-26 Thread Paul Rubin
[EMAIL PROTECTED] writes: For the first time I'm doing a client/server application, and I'm really confused with IPC stuff. Client-server applications are traditionally done with sockets. I read the fastest method is shared memory, but I tryed mmap and found it tedious for the amount of data

MapReduce, Distributed Computing, and Ruby

2006-08-26 Thread BG Simp
Interesting concept; a drop dead simple distributed library in Ruby. Anything similar in Python? http://tech.rufy.com/2006/08/mapreduce-for-ruby-ridiculously-easy.html -- http://mail.python.org/mailman/listinfo/python-list

Re: wxGlade and __init__

2006-08-26 Thread crystalattice
Tim N. van der Leeuw wrote: crystalattice wrote: I'm making a GUI for a console-based program I just wrote. I figured it would be mostly straight forward to convert it over in wxPython but now I'm confused. Hi Crystalattice, One thing you could do is make your original

Re: Python web service ...

2006-08-26 Thread Luis M. González
[EMAIL PROTECTED] wrote: My question is how difficult is to set up a web server that can run python easy ? should I try ZOPE or there is something better in mind ? I also second the suggestion of using Karrigell. It comes with its own built-in server, and the task would be as simle as writing

[ python-Bugs-1545668 ] gcc trunk (4.2) exposes a signed integer overflows

2006-08-26 Thread SourceForge.net
Bugs item #1545668, was opened at 2006-08-23 23:14 Message generated for change (Comment added) made by tim_one You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1545668group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Feature Requests-1547300 ] Wireless on Python

2006-08-26 Thread SourceForge.net
Feature Requests item #1547300, was opened at 2006-08-27 00:36 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=1547300group_id=5470 Please note that this message will contain a

[ python-Bugs-1545668 ] gcc trunk (4.2) exposes a signed integer overflows

2006-08-26 Thread SourceForge.net
Bugs item #1545668, was opened at 2006-08-24 04:14 Message generated for change (Comment added) made by dhopwood You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1545668group_id=5470 Please note that this message will contain a full copy of the comment