Re: OpenSource documentation problems

2005-09-06 Thread Adriaan Renting
>>>Terry Hancock <[EMAIL PROTECTED]> 08/31/05 11:59 pm >>> |> >I have NEVER seen a closed source application or programming |> >language that came with that much documentation and support. |> |>I'm no fan of Microsoft, but in general, the Win32 API is far |>better documented than is Python. (J

Re: dual processor

2005-09-06 Thread Paul Rubin
Steve Jorgensen <[EMAIL PROTECTED]> writes: > Given that Python is highly dependent upon dictionaries, I would > think a lot of the processor time used by a Python app is spent in > updating hash tables. That guess could be right or wrong, bus > assuming it's right, is that a design flaw? That's

round function problem

2005-09-06 Thread mg
Hi everybody... We try to white scripts with Pyrhon 2.4 for an acoustic simulation and we wrote these follow lines : c = 340 i =j=k= 1 sum_ = 23 table = [] freq = round((c/2*(sum_)**0.5),2) print freq table.append([freq,(i,j,k)]) print i,j,k,' freq',freq for item in table: print item The prob

Re: pexpect.exitstatus not working?

2005-09-06 Thread Adriaan Renting
I'm doing something along these lines: """Check if the task is finished and clean up.""" (pid, status) = os.waitpid(self._pid, os.WNOHANG) ## clean up the zombie assert(pid == self._pid) if os.WIFEXITED(status) or os.WIFSIGNALED(status): self._pid

Re: py2exe 0.6.1 released

2005-09-06 Thread Giovanni Bajo
Thomas Heller wrote: > * py2exe can now bundle binary extensions and dlls into the > library-archive or the executable itself. This allows to > finally build real single-file executables. > > The bundled dlls and pyds are loaded at runtime by some special > code that e

Pervasive Database Connection

2005-09-06 Thread Alex Le Dain
What is the best way to access a Pervasive database on another machine? cheers, Alex. -- http://mail.python.org/mailman/listinfo/python-list

Re: round function problem

2005-09-06 Thread Fredrik Lundh
"mg" wrote: > We try to white scripts with Pyrhon 2.4 for an acoustic simulation and > we wrote these follow lines : > > > c = 340 > i =j=k= 1 > sum_ = 23 > table = [] > freq = round((c/2*(sum_)**0.5),2) > print freq > table.append([freq,(i,j,k)]) > print i,j,k,' freq',freq > for item in table: p

Re: dual processor

2005-09-06 Thread Michael Sparks
Jeremy Jones wrote: > Michael Sparks wrote: >>Steve Jorgensen wrote: >>>On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >>> >>> >>> Jeremy Jones <[EMAIL PROTECTED]> wrote: > One Python process will only saturate one CPU (at a time) because > of the GIL (glob

Re: Python compiled?

2005-09-06 Thread billiejoex
Clear. Thank you all. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pervasive Database Connection

2005-09-06 Thread Bryan Olson
Alex Le Dain wrote, in entirety: > What is the best way to access a Pervasive database on another machine? The best way, is, well ... Pervasively! Sorry. I can be kida a jerk like that. People often do get get hundreds, sometimes thousands of dollars worth of consultation from these groups, for

Re: Online Modification of Python Code

2005-09-06 Thread malv
Your algoreload() is of the hand of a master. I'll give it a try. Thank you Bengt! -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-06 Thread Roel Schroeven
Adriaan Renting wrote: > In my Windows days I realy liked the Borland documentation, it was > way better as the Visual Studio/MSDev docs. Borland C++Builder used > to come with a complete rewrite of the Win32 API docs, next to the > docs of it's own API. Yes, but the two are completely separat

python profiling, hotspot and strange execution time

2005-09-06 Thread cournape
Hi there, I have some scientific application written in python. There is a good deal of list processing, but also some "simple" computation such as basic linear algebra involved. I would like to speed things up implementing some of the functions in C. So I need profiling. I first tried to u

Re: python profiling, hotspot and strange execution time

2005-09-06 Thread Paul Rubin
[EMAIL PROTECTED] writes: >I have some scientific application written in python. There is a > good deal of list processing, but also some "simple" computation such > as basic linear algebra involved. I would like to speed things up > implementing some of the functions in C. So I need profiling.

Re: Job Offer in Paris, France : R&D Engineer (Plone)

2005-09-06 Thread Huron
> Working remotely hadn't occurred to me ;-). I was wondering > > 1) whether there would be legal or procedural obstacles for a > non-European wanting to work in Paris for a while; and If you are a member of the EU (the netherlands ?), there no such problem on our side. Only _you_ would have some

Re: round function problem

2005-09-06 Thread Gregory Bond
mg wrote: > Is it a bug or a control behavour ? I don't understand ?!?!?!?!... It's a case of applying different float-to-text rounding in different situations, on a variable that (even after round()) is not representable in binary floatingpoint. "print var" does one sort of string conversion

Re: Possible improvement to slice opperations.

2005-09-06 Thread Ron Adam
Patrick Maupin wrote: > I previously wrote (in response to a query from Ron Adam): > > >>In any case, you asked for a rationale. I'll give you mine: >> >> >L = range(10) >L[3:len(L):-1] == [L[i] for i in range(3,len(L),-1)] >> >>True >> > > After eating supper, I just realized that I c

Replacement for lambda - 'def' as an expression?

2005-09-06 Thread talin at acm dot org
I've been reading about how "lambda" is going away in Python 3000 (or at least, that's the stated intent), and while I agree for the most part with the reasoning, at the same time I'd be sad to see the notion of "anonymous functions" go - partly because I use them all the time. Of course, one can

Re: round function problem

2005-09-06 Thread Magnus Lycka
mg wrote: > The problem is simple. The function 'round' allow to obtain the value > with the specified number of digits after the ",". Then, when the > variable 'freq' is printed, there is no problem; but when freq is set in > the table and the table printed, all the digits are come back. > > I

Re: Django Vs Rails

2005-09-06 Thread Diez B. Roggisch
gene tani wrote: > http://griddlenoise.blogspot.com/2005/07/python-off-rails.html I don't think that opinion is very founded - especially what he thinks metaprogramming is about, and what not. What he seems not to grasp is the crucial difference between django and rails/subway (at least in the

Re: py2exe 0.6.1 released

2005-09-06 Thread Thomas Heller
"Giovanni Bajo" <[EMAIL PROTECTED]> writes: > Thomas Heller wrote: > >> * py2exe can now bundle binary extensions and dlls into the >> library-archive or the executable itself. This allows to >> finally build real single-file executables. >> >> The bundled dlls and pyds are

Re: python profiling, hotspot and strange execution time

2005-09-06 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes >Hi there, > > I have some scientific application written in python. There is a >good deal of list processing, but also some "simple" computation such >as basic linear algebra involved. I would like to speed things up >implementing some of

killing thread after timeout

2005-09-06 Thread Jacek Popławski
Hello. I am going to write python script which will read python command from socket, run it and return some values back to socket. My problem is, that I need some timeout. I need to say for example: os.system("someapplication.exe") and kill it, if it waits longer than let's say 100 seconds I

Re: Job Offer in Paris, France : R&D Engineer (Plone)

2005-09-06 Thread Paul Rubin
Huron <[EMAIL PROTECTED]> writes: > > 1) whether there would be legal or procedural obstacles for a > > non-European wanting to work in Paris for a while; and > If you are a member of the EU (the netherlands ?), there no such problem on > our side. Only _you_ would have some paperwork to do. I'm i

Re: killing thread after timeout

2005-09-06 Thread Jacek Popławski
After reading more archive I think that solution may be to raise an Exception after timeout, but how to do it portable? -- http://mail.python.org/mailman/listinfo/python-list

Re: Job Offer in Paris, France : R&D Engineer (Plone)

2005-09-06 Thread Huron
> If you still think this, I'd be interested in chatting a little > further. Does the email address in the pdf go to you? If not, should > I write you directly? Can I call on the phone (you can leave me a > number at http://paulrubin.com)? Thanks. done, we will get in contact in a more private

Re: Job Offer in Paris, France : R&D Engineer (Plone)

2005-09-06 Thread Erik Max Francis
Paul Rubin wrote: > If you still think this, I'd be interested in chatting a little > further. Does the email address in the pdf go to you? If not, should > I write you directly? Can I call on the phone (you can leave me a > number at http://paulrubin.com)? Thanks. Do you even realize you're

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Torsten Bronger
Hallöchen! "talin at acm dot org" <[EMAIL PROTECTED]> writes: > [...] > > Anyway, here's an example, then, of how 'def' could be used: > > add = def( a, b ): >return a + b I'm really not an expert in functional programming, so I wonder what's the difference between "add = def" (assumed that

Re: Possible improvement to slice opperations.

2005-09-06 Thread Ron Adam
Steve Holden wrote: > Ron Adam wrote: > >> Steve Holden wrote: >> >> What misconception do you think I have? >> > This was not an ad hominem attack but a commentary on many attempts to > "improve" the language. Ok, No problem. ;-) >> No one has yet explained the reasoning (vs the mechanics)

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread en.karpachov
On Tue, 06 Sep 2005 12:19:21 +0200 Torsten Bronger wrote: > "talin at acm dot org" <[EMAIL PROTECTED]> writes: > > Anyway, here's an example, then, of how 'def' could be used: > > > > add = def( a, b ): > >return a + b > > I'm really not an expert in functional programming, so I wonder > what

Re: how to convert a PY to a PYC file

2005-09-06 Thread Fredrik Lundh
"Chavez Gutierrez, Freddy" wrote: >I want to distribute a Python application to several computers, but I don't > want they to be able to see the pure python code (the 'py' file). > > Is there a way to generate a 'pyc' file and distribute that only? sure. several ways, actually. see http://

Re: py2exe 0.6.1 released

2005-09-06 Thread svbrk
First: Thank you Thomas for the good work with py2exe. The single-file option is something I have been waiting for :-) Will it also be possible to build independent files (such as my_app_data.zip) into the executable? > > I tried it using the wx singlefile example, but unfortunately the resulting

Re: python xml DOM? pulldom? SAX?

2005-09-06 Thread jog
Thanks a lot for all your replies that was really great and helpfull. Now I have some problems with the indexing, it takes to much memory and akes to long. I have to look into it. -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe 0.6.1 released

2005-09-06 Thread Thomas Heller
[EMAIL PROTECTED] writes: > First: Thank you Thomas for the good work with py2exe. The single-file > option is something I have been waiting for :-) > Will it also be possible to build independent files (such as > my_app_data.zip) into the executable? Depends on how you want to access them at run

Re: Django Vs Rails

2005-09-06 Thread gene tani
Here's another, (i'm just flipping thru del.icio.us and furl tags, not endorsing any viewpoints. I've never looked at Django or Subway, but I do need to look at zope 3, i think): http://www.magpiebrain.com/archives/2005/08/14/rails_and_django Diez B. Roggisch wrote: > gene tani wrote: > > http:/

Python OpenCV wrapper

2005-09-06 Thread Claudio Grondi
What is the current status of Python OpenCV interface i.e. the opencv module? \OpenCV\samples\python\contours.py gives following ERROR: OpenCV Python version of contours Traceback (most recent call last): File "\OpenCV\samples\python\contours.py", line 6, in ? from opencv import cv ImportE

Re: py2exe 0.6.1 released

2005-09-06 Thread svbrk
>> However, the combinations >> Python 2.4.1 with wxPython 2.4.5.1 ansi >> ... > > You probably mean 2.5.5.1 ? It was 2.5.4.1 (an arbitrary choice of an old version, just to check if a recent wxPython change was the cause ). Svein -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-06 Thread Jeremy Jones
Michael Sparks wrote: >Jeremy Jones wrote: > > > > >>And maybe >>Steve's magical thinking programming language will have a ton of merit. >> >> > >I see no reason to use such derisory tones, though I'm sure you didn't mean >it that way. (I can see you mean it as extreme skepticism thoug

Re: Django Vs Rails

2005-09-06 Thread Jaroslaw Zabiello
Dnia 5 Sep 2005 19:06:51 -0700, flamesrock napisał(a): > Firstly, this topic is NOT intended for trolling or starting any flame > wars. > > I want to know if anyone has experience with these frameworks, and if > so, how do they compare? Which one do you prefer? Django's ORM does not work with SQ

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Sybren Stuvel
talin at acm dot org enlightened us with: > I'd be sad to see the notion of "anonymous functions" go Same here. I think it's a beautyful concept, and very powerful. It also allows for dynamic function creation in cases where a name would not be available. > What about passing an anonymous functio

Re: python profiling, hotspot and strange execution time

2005-09-06 Thread Jeremy Jones
[EMAIL PROTECTED] wrote: >Hi there, > > I have some scientific application written in python. There is a >good deal of list processing, but also some "simple" computation such >as basic linear algebra involved. I would like to speed things up >implementing some of the functions in C. So I need p

Re: Command config, quitting, binary, Timer

2005-09-06 Thread bearophileHUGS
Dennis Lee Bieber: >Yes, but only when ref-counts go to 0... it may be that this tight loop never >allowed stuff to go to 0 ref-counts. It definitely never returned control, so >besides eating memory that way, any events for the GUI framework were also not >being handled and had to be queued.<

left/right mouse button events not trapped

2005-09-06 Thread mitsura
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The purpose is to get the position of the mouse pointer on the bitmap. However, for some reason, the left (I also t

Installation question

2005-09-06 Thread Nx
I would like to know how to install Qt3 for following setup Already Installed : Suse 9.2 64 version Python 2.3 (for 64) lives in /usr/bin/python2.3 Qt3 (for Python 2.3) Python 2.4 (for 32) lives in /usr/local/bin/python2.4 Want to install Qt3 (for Python 2.4) without messing up my existing ins

tutorials/basic (Re: learning python)

2005-09-06 Thread adDoc's networker Phil
. on-line tutorials? hundreds of e-books sorted by subtopic    http://www.awaretek.com/tutorials.html --  Python Newbies should visit our Python411 Podcast Series Page   -- Python for Mobile Devices     Table of Conte

tutorials / text or web processing (Re: learning python)

2005-09-06 Thread adDoc's networker Phil
. need specifics on text or web processing? dozens of tutors.py sorted by subtopic    http://www.awaretek.com/tutorials.html     Table of Contents [rearranged] [ beginner`s applications ]: *Text and String Processing (3)* . *Unicode (4)* *Regular Expressions(5)* *HTML and XML (14)* *Internet: Ne

execute commands independantly

2005-09-06 Thread Mike Tammerman
Hi, I am trying to execute an executable or a pyton script inside my program. I looked at the subprocess and os module. But all the functions in these modules blocks my application. What I want to do is run the subprocess without any concern. I don't care of its return type or child signals. Just

Re: execute commands independantly

2005-09-06 Thread Leif K-Brooks
Mike Tammerman wrote: > Hi, > > I am trying to execute an executable or a pyton script inside my > program. I looked at the subprocess and os module. But all the > functions in these modules blocks my application. subprocess doesn't block unless you call .wait(): from subprocess import Popen pro

Re: Command config, quitting, binary, Timer

2005-09-06 Thread bearophileHUGS
Bearophile>This can be fixed with a different dictionary that doesn't contain the leading 0s,< No other dict is necessary: ! _nibbles = {"0":"", "1":"0001", "2":"0010", "3":"0011", ! "4":"0100", "5":"0101", "6":"0110", "7":"0111", ! "8":"1000", "9":"1001", "A":"1010",

Re: Possible improvement to slice opperations.

2005-09-06 Thread Patrick Maupin
Ron Adam wrote: >> This should never fail with an assertion error. You will note that it >> shows that, for non-negative start and end values, slicing behavior is >> _exactly_ like extended range behavior. > Yes, and it passes for negative start and end values as well. Umm, no: .>> for stride

Python xml.dom, help reading attribute data

2005-09-06 Thread Thierry Lam
Let's say I have the following xml tag: 1 I can't figure out what kind of python xml.dom codes I should invoke to read the data 1? Any help please? Thanks Thierry -- http://mail.python.org/mailman/listinfo/python-list

Re: Python xml.dom, help reading attribute data

2005-09-06 Thread Jeremy Jones
Thierry Lam wrote: >Let's say I have the following xml tag: > >1 > >I can't figure out what kind of python xml.dom codes I should invoke to >read the data 1? Any help please? > >Thanks >Thierry > > > In [20]: import xml.dom.minidom In [21]: s = '''1''' In [22]: x = xml.dom.minidom.parseString(

Re: left/right mouse button events not trapped

2005-09-06 Thread Claudio Grondi
I don't know much about wxPython, but the left/right mouse button events _ARE_ trapped, but not when clicking on the image, probably because they are registered to the panel not to the image. Just resize the window and click next to the image. Hope this helps for now, before you get a respon

Re: execute commands independantly

2005-09-06 Thread Rune Strand
Mike Tammerman wrote: > I am trying to execute an executable or a pyton script inside my > program. I looked at the subprocess and os module. But all the > functions in these modules blocks my application. What I want to do is > run the subprocess without any concern. I don't care of its return ty

py2exe uses __init__ for class names when logging

2005-09-06 Thread flupke
Hi, when i run my program and use the logging component, i see this: 2005-09-02 17:07:48,193 INFO windowmain 97 Main window created 2005-09-02 17:07:49,020 DEBUG windowmain 103 Frame 2005-09-02 17:07:49,145 INFO firebird 195 Starting up the database However when i run py2exe on my app and run i

Re: left/right mouse button events not trapped

2005-09-06 Thread Claudio Grondi
Below code which does the trick :)) Claudio import string import wx # import images import os import cStringIO import xml.sax from wxPython.wx import * # from Main import opj class DisplayPicture(wx.Frame): cD = 0 def __init__(self, parent, id, title, bmp, w, h): wxFrame.__init__(

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Rocco Moretti
[EMAIL PROTECTED] wrote: > On Tue, 06 Sep 2005 12:19:21 +0200 > Torsten Bronger wrote: > > >>"talin at acm dot org" <[EMAIL PROTECTED]> writes: >> >>>Anyway, here's an example, then, of how 'def' could be used: >>> >>>add = def( a, b ): >>> return a + b >> >>I'm really not an expert in function

check if a webpage is forwarding to a other webpage

2005-09-06 Thread martijn
H! I'm busy with testing python and now i'm trying to check if a url makes a forward to a other location with the same content. So it will be possible to scan unique website's. I already made these checks: the html forward: the header: Content-Location: othersite.com the url - check: if '-':

launching adobe reader with arguments from os.system call

2005-09-06 Thread Greg Miller
Currently I am launching adobe reader using the following call: os.system("path.file.pdf") this works fine for opening the pdf doc at the beginning. We would like to enhance this and open the document to either a page or a nameddest in the doc. The syntax for that in the DOS command prompt world i

Re: left/right mouse button events not trapped

2005-09-06 Thread mitsura
Thanks Claudio! This really really made my day. I have been searching for the problem for hours! Thanks again. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-06 Thread Grant Edwards
On 2005-09-06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > >> > distributing DLLs have been a solved problem for at least >> > 15-20 years... >> >> There are days when some poeple might disagree with that. ;) > > distributing them has never been a problem. installing them in

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Leif K-Brooks
Sybren Stuvel wrote: > It also allows for dynamic function creation in cases where a name > would not be available. What cases are those? -- http://mail.python.org/mailman/listinfo/python-list

Re: GETTING IMAGEDATA FROM A BUTTON

2005-09-06 Thread Peter Hansen
pythonprogrammer wrote: > Does anyone know how to get pixeldata from the image of a button > without taking a screenshot? Platform? Versions of stuff? GUI framework? List of things you've tried and/or what Google searches you've attempted? What does "pixeldata" mean to you (as it's not a ter

Re: check if a webpage is forwarding to a other webpage

2005-09-06 Thread garabik-news-2005-05
[EMAIL PROTECTED] wrote: > H! > > I'm busy with testing python and now i'm trying to check if a url makes > a forward to a other location with the same content. > > So it will be possible to scan unique website's. > I already made these checks: > > the html forward: > > > the header: > Content

Re: execute commands independantly

2005-09-06 Thread Eric McGraw
If you want it to return when the program is finished then use os.system('app') but if you just want to start it and return right away, use os.startfile('app') -- http://mail.python.org/mailman/listinfo/python-list

Re: Python xml.dom, help reading attribute data

2005-09-06 Thread Alan Kennedy
[Thierry Lam] > Let's say I have the following xml tag: > > 1 > > I can't figure out what kind of python xml.dom codes I should invoke to > read the data 1? Any help please? This is job for xpath. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= from xml import xpath from xml.dom i

Generators and Decorators doing my head in ..

2005-09-06 Thread simonvc
Hi Can someone please help me understand this (i shouldn't have tried to learn decorators and generators at the same time..). Im trying to create a decorator that counts the number of times a function is run. Somthing like: def FunctionCounter(): n=0 while 1: yield n n=n+

Re: py2exe 0.6.1 released

2005-09-06 Thread cmkl
Hi, I didnt succeed to bundle vpython-3.2.3 with py2exe-0.6.1 - regardless if its build as single file or not: "This application has requested the Runtime to terminate it in an unusual way" and so on... This error message seems not generated by py2exe. At least I could not find a reference to i

Re: Generators and Decorators doing my head in ..

2005-09-06 Thread Paul McGuire
Compare this to your original: def logFunctionCalls(function): ec = FunctionCounter() def decoratedFunction(*args,**kwargs): print "Entering function:", function.__name__, ec.next() function(*args,**kwargs) return decoratedFunction @logFunctionCalls def doWork(): p

Re: Job Offer in Paris, France : R&D Engineer (Plone)

2005-09-06 Thread Terry Reedy
"Erik Max Francis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Paul Rubin wrote: > >> If you still think this, I'd be interested in chatting a little >> further. Does the email address in the pdf go to you? If not, should >> I write you directly? Can I call on the phone (you

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Sybren Stuvel
Leif K-Brooks enlightened us with: >> It also allows for dynamic function creation in cases where a name >> would not be available. > > What cases are those? An example: def generate_randomizer(n, m): randomizer = def(x): return x ** n % m return randomizer Sybren -- The proble

Re: Job Offer in Paris, France : R&D Engineer (Plone)

2005-09-06 Thread Paul Rubin
"Terry Reedy" <[EMAIL PROTECTED]> writes: > > Do you even realize you're having this conversation over the Python > > mailing list/newsgroup, rather than by private email? > > Did you consider asking *that* question privately ;-? Hehe, good comeback. Seriously, I figured enough other clpy people

Re: Generators and Decorators doing my head in ..

2005-09-06 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: > Im trying to create a decorator that counts the number of times a > function is run. Your code doesn't work because decorators are run at function creation time, not at function run time. Try this instead: from itertools import count def logFunctionCalls(function):

Re: Django Vs Rails

2005-09-06 Thread D H
flamesrock wrote: > D H, > 'flamesrock' refers to the Calgary Flames, not the act of flaming. > It was just a joke about your statement and your name. I thought it was obvious enough that a smiley wasn't necessary. I don't care though, flames happen on comp.lang.python all the time. Go with R

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Paul Rubin
Sybren Stuvel <[EMAIL PROTECTED]> writes: > An example: > > def generate_randomizer(n, m): > randomizer = def(x): > return x ** n % m > > return randomizer You're a little bit confused; "name" doesn't necessarily mean "persistent name". You could write the above as: def gener

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread D H
talin at acm dot org wrote: > I've been reading about how "lambda" is going away in Python 3000 (or See the page built from earlier threads about this: http://wiki.python.org/moin/AlternateLambdaSyntax Your syntax is the same used in boo: http://boo.codehaus.org/Closures -- http://mail.python.or

which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Hi, I am looking for the reg path that is modified/created by the pyton installer to associate *.pyc with python.exe as I wish to associate *.pyc with pythonw.exe Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Hi, I am looking for the reg path that is modified/created by the pyton installer to associate *.pyc with python.exe as I wish to associate *.pyc with pythonw.exe Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-06 Thread Jorgen Grahn
On Mon, 5 Sep 2005 22:48:19 +0200, billiejoex <[EMAIL PROTECTED]> wrote: >> there are "noob" questions and there are uneducated questions, yours >> are of the latter ( actually yours are STATEMENTS not questions ), and >> just trolling for what it is worth, if you would take the time to read >> wha

Re: execute commands independantly

2005-09-06 Thread Mike Tammerman
You're right, I tried subprocess.call and os.spawn* functions. Popen is what I will be happy with. Thanks a lot. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Pervasive Database Connection

2005-09-06 Thread [EMAIL PROTECTED]
Use the pervasive client. You'll need the SDK to actually access any data though. -- http://mail.python.org/mailman/listinfo/python-list

Re: killing thread after timeout

2005-09-06 Thread [EMAIL PROTECTED]
You'll need a watchdog thread that handles the other threads. The watchdog thread just builds a table of when threads were started, and after a certain # of seconds, expires those threads and kills them. -- http://mail.python.org/mailman/listinfo/python-list

Re: which reg values modified my python installer under windows

2005-09-06 Thread keirr
Philippe, You wrote: I wish to associate *.pyc with pythonw.exe is there some reason why Tools->Folder Options->File Types (from a Windows Explorer menu) won't work? You could do it from a cmd prompt with assoc and ftype if you needed to script it. All the best, Keir. -- http://mail.pyth

Re: Django Vs Rails

2005-09-06 Thread bruno modulix
D H wrote: (snip) > Go with Rails. Django is only like a month old. Please take time to read the project's page. Django has in fact three years of existence and is already used on production websites, so it's far from pre-alpha/planning stage. -- bruno desthuilliers python -c "print '@'.join

Re: Generators and Decorators doing my head in ..

2005-09-06 Thread bruno modulix
Paul McGuire wrote: (snip) > (This is a quick-and-dirty example, but it works. A proper iterator s/iterator/decorator/ (snip) -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailma

Python versus Perl

2005-09-06 Thread Dieter Vanderelst
Dear all, I'm currently comparing Python versus Perl to use in a project that involved a lot of text processing. I'm trying to determine what the most efficient language would be for our purposes. I have to admit that, although I'm very familiar with Python, I'm complete Perl noob (and I hope

Re: Possible improvement to slice opperations.

2005-09-06 Thread Magnus Lycka
Ron Adam wrote: > Ok, lets see... This shows the problem with using the gap indexing model. > > L = range(10) > > [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ] # elements > 0 1 2 3 4 5 6 7 8 9 10 # index's > > L[3::1] -> [3, 4, 5, 6, 7, 8, 9] 3rd index to end... ok > L[3

Re: Pervasive Database Connection

2005-09-06 Thread Dave Brueck
Alex Le Dain wrote: > What is the best way to access a Pervasive database on another machine? Hi Alex, You can use ODBC / ADO to access Pervasive DBs. I found this page helpful: http://www.mayukhbose.com/python/ado/index.php -Dave -- http://mail.python.org/mailman/listinfo/python-list

Re: Django Vs Rails

2005-09-06 Thread Alan Kennedy
[D H] >>Go with Rails. Django is only like a month old. [bruno modulix] > Please take time to read the project's page. Django has in fact three > years of existence and is already used on production websites, so it's > far from pre-alpha/planning stage. But the APIs still aren't 100% stable.

Re: which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Keir, I forgot to mention that I want to do it automatically from my application's installer. Regards, Philippe keirr wrote: > Philippe, > > You wrote: I wish to associate *.pyc with pythonw.exe > > is there some reason why Tools->Folder Options->File Types (from a > Windows Explorer me

Re: Django Vs Rails

2005-09-06 Thread D H
bruno modulix wrote: > D H wrote: > > (snip) > >>Go with Rails. Django is only like a month old. > > > Please take time to read the project's page. Django has in fact three > years of existence and is already used on production websites, so it's > far from pre-alpha/planning stage. > Don't

ANN: PyDev 0.9.8.1 released

2005-09-06 Thread Fabio Zadrozny
Hi All, PyDev - Python IDE (Python Development Enviroment for Eclipse) version 0.9.8.1 has been released. Check the homepage (http://pydev.sourceforge.net/) for more details. Details for Release: 0.9.8.1 Major highlights: --- * Java 1.4 support reintroduced. * Styles a

Re: ANN: PyInstaller 1.0 in the works: package your Python app into a single-file executable

2005-09-06 Thread Trent Mick
[Giovanni Bajo wrote] > Hello, > > http://pyinstaller.hpcf.upr.edu/ > > PyInstaller is a program that packages Python programs into stand-alone > executables, under both Windows and Linux. This is similar to the famous > py2exe, but PyInstaller is also able to build fully-contained (single file)

Re: Pervasive Database Connection

2005-09-06 Thread [EMAIL PROTECTED]
http://www.pervasive.com/developerzone/access_methods/oledbado.asp -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-06 Thread Jorgen Grahn
On Mon, 05 Sep 2005 21:43:07 +0100, Michael Sparks <[EMAIL PROTECTED]> wrote: > Steve Jorgensen wrote: ... >> I don't get that. Python was never designed to be a high performance >> language, so why add complexity to its implementation by giving it >> high-performance capabilities like SMP? > > I

Re: improvements for the logging package

2005-09-06 Thread Trent Mick
[Rotem wrote] > while working on something in my current project I have made several > improvements to the logging package in Python, two of them are worth > mentioning: > 1. addition of a logging record field %(function)s, which results in > the name > of the entity which logged the record. My ver

Re: Python compiled?

2005-09-06 Thread Grant Edwards
On 2005-09-06, Jorgen Grahn <[EMAIL PROTECTED]> wrote: > I also believe it's better to convince the end user to install Python before > installing the application[1], rather than to try to sneak in an interpreter > with py2exe or something -- an interpreter which the end user cannot update, > mana

Re: Django Vs Rails

2005-09-06 Thread bruno modulix
D H wrote: > bruno modulix wrote: > >> D H wrote: >> >> (snip) >> >>> Go with Rails. Django is only like a month old. >> >> >> Please take time to read the project's page. Django has in fact three >> years of existence and is already used on production websites, so it's >> far from pre-alpha/pl

Re: Django Vs Rails

2005-09-06 Thread gene tani
just to make it really easy, there's some really good blogs and detailed analyses of the frameworks, competition is good: http://del.icio.us/tag/rails+django gene tani wrote: > Here's another, (i'm just flipping thru del.icio.us and furl tags, not -- http://mail.python.org/mailman/listinfo/pyth

Re: dual processor

2005-09-06 Thread Jorgen Grahn
On Tue, 06 Sep 2005 08:57:14 +0100, Michael Sparks <[EMAIL PROTECTED]> wrote: ... > Are you so sure? I suspect this is due to you being used to writing code > that is designed for a single CPU system. What if you're basic model of > system creation changed to include system composition as well as >

  1   2   >