Re: Elementary string-parsing

2008-02-05 Thread Marc 'BlackJack' Rintsch
On Tue, 05 Feb 2008 06:19:12 +, Odysseus wrote: In article [EMAIL PROTECTED], Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: Another issue is testing. If you rely on global names it's harder to test individual functions. [...] In programs without such global names you see quite

How to autorun a python script when a specific user logs on?

2008-02-05 Thread jack trades
I wrote a simple keylogger for a friend of mine that wants to keep track of his kid's (12 and 14 yr old boys) computer usage to make sure they aren't getting into the naughty parts of the web. The logger works great (source attached at bottom) but I ran into some troubles getting it to autorun on

Re: Too many open files

2008-02-05 Thread AMD
Thank you every one, I ended up using a solution similar to what Gary Herron suggested : Caching the output to a list of lists, one per file, and only doing the IO when the list reaches a certain treshold. After playing around with the list threshold I ended up with faster execution times than

Why not a Python compiler?

2008-02-05 Thread Santiago Romero
( Surely if this question has been asked for a zillion of times... ) ( and sorry for my english! ) I'm impressed with python. I'm very happy with the language and I find Python+Pygame a very powerful and productive way of writing 2D games. I'm not, at this moment, worried about execution

Re: (websearch) script ?

2008-02-05 Thread Bruno Desthuilliers
Stef Mientki a écrit : (snip) The most important one is a PHP script that searches text in all documents on my website. Does someone has such a script ? There's some good stuff in Zope for plain-text indexing. I think you could build from this (IIRC, looking for TextIndexNG should take you

Re: Why not a Python compiler?

2008-02-05 Thread Kay Schluehr
On Feb 5, 9:19 am, Santiago Romero [EMAIL PROTECTED] wrote: ( Surely if this question has been asked for a zillion of times... ) Sure. You can access comp.lang.python via google.google.com. It has a search function. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-05 Thread James Matthews
You can also compile parts of Python to speed them up! On Feb 5, 2008 9:37 AM, Kay Schluehr [EMAIL PROTECTED] wrote: On Feb 5, 9:19 am, Santiago Romero [EMAIL PROTECTED] wrote: ( Surely if this question has been asked for a zillion of times... ) Sure. You can access comp.lang.python via

Re: Why not a Python compiler?

2008-02-05 Thread cokofreedom
On Feb 5, 9:19 am, Santiago Romero [EMAIL PROTECTED] wrote: ( Surely if this question has been asked for a zillion of times... ) ( and sorry for my english! ) I'm impressed with python. I'm very happy with the language and I find Python+Pygame a very powerful and productive way of writing

Re: Windows - remote system window text

2008-02-05 Thread Tim Golden
Gabriel Genellina wrote: En Mon, 04 Feb 2008 17:25:00 -0200, rdahlstrom [EMAIL PROTECTED] escribió: On Feb 4, 2:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, i guess you will need a process on each machine you need to monitor, and then you do have a client server setup. Crap,

Re: Why not a Python compiler?

2008-02-05 Thread Jeroen Ruigrok van der Werven
-On [20080205 09:22], Santiago Romero ([EMAIL PROTECTED]) wrote: Why not a Python COMPILER? A lot of things within Python are very run-time dependent so creating a compiler is not trivial work. There are, however, endeavours underway like shed skin: http://code.google.com/p/shedskin

Any python implementation of XML-DSIG ?

2008-02-05 Thread Roland Hedberg
Or is XMLsig for Dynamic Languages (Ruby, Python, PHP and Perl) at http://xmlsig.sourceforge.net/ the only option ? -- Roland -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-05 Thread Nikola Stjelja
If you want to create standalone python applications I'd suggest you to use PyInstaller which is an excellent application that boundles everything you need to run your application in a standalone package. It works on windows, linux and I think mac but i'm not sure. On Feb 5, 2008 10:25 AM, James

Re: future multi-threading for-loops

2008-02-05 Thread Boris Borcic
[EMAIL PROTECTED] wrote: On Feb 5, 12:26 am, Gabriel Genellina [EMAIL PROTECTED] wrote: On 5 feb, 03:46, [EMAIL PROTECTED] wrote: Some timing stats: On Windows XP, Python 3.0a2. (...) Are threads an OS bottleneck? I don't understand your threading issues, but I would not use 3.0a2 for

Re: Problem with Image: Opening a file

2008-02-05 Thread mcl
On Feb 4, 10:43 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: On Feb 4, 6:51 pm,mcl[EMAIL PROTECTED] wrote: I am obviously doing something stupid or not understanding the difference between HTML file references and python script file references. I am trying to create a thumbnail of an

Re: Is it explicitly specified?

2008-02-05 Thread André Malo
* George Sakkis wrote: On Feb 4, 6:53 am, André Malo [EMAIL PROTECTED] wrote: Consider the function being part of a bigger system, where it's called from another function or method which should inherit the default value of the function, like: def g(foo, bar, x=None): ... f(x=x)

boolean decisions

2008-02-05 Thread Robin Becker
I have a couple of business decisions to make that essentially use 6 binary input variables. After the business users have gone back and forth for two weeks trying to build special case rules I asked them to make up a table containing all of the input possibilities and specify what should

Re: Windows - remote system window text

2008-02-05 Thread rdahlstrom
On Feb 5, 3:54 am, Tim Golden [EMAIL PROTECTED] wrote: Gabriel Genellina wrote: En Mon, 04 Feb 2008 17:25:00 -0200, rdahlstrom [EMAIL PROTECTED] escribió: On Feb 4, 2:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, i guess you will need a process on each machine you need to

Re: boolean decisions

2008-02-05 Thread Diez B. Roggisch
Robin Becker wrote: I have a couple of business decisions to make that essentially use 6 binary input variables. After the business users have gone back and forth for two weeks trying to build special case rules I asked them to make up a table containing all of the input possibilities and

Re: Why not a Python compiler?

2008-02-05 Thread Bruno Desthuilliers
Santiago Romero a écrit : ( Surely if this question has been asked for a zillion of times... ) Why not checking this by yourself ? google is down ?-) I'm impressed with python. I'm very happy with the language and I find Python+Pygame a very powerful and productive way of writing 2D games.

Re: boolean decisions

2008-02-05 Thread Paul Hankin
On Feb 5, 10:52 am, Robin Becker [EMAIL PROTECTED] wrote: I have a couple of business decisions to make that essentially use 6 binary input variables. After the business users have gone back and forth for two weeks trying to build special case rules I asked them to make up a table containing

Re: boolean decisions

2008-02-05 Thread Zentrader
and then choose the solution with the shortest number of terms or something Experience says that one should not assume that there is a one to one relationship, (the solution). Some event can trigger more than one combination of the 6 binary input variables. And experience says that the business

Re: Why not a Python compiler?

2008-02-05 Thread Dustan
On Feb 5, 2:37 am, Kay Schluehr [EMAIL PROTECTED] wrote: On Feb 5, 9:19 am, Santiago Romero [EMAIL PROTECTED] wrote: ( Surely if this question has been asked for a zillion of times... ) Sure. You can access comp.lang.python via groups .google.com. It has a search function. --

Re: Elementary string-parsing

2008-02-05 Thread Steve Holden
Marc 'BlackJack' Rintsch wrote: On Tue, 05 Feb 2008 06:19:12 +, Odysseus wrote: In article [EMAIL PROTECTED], Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: Another issue is testing. If you rely on global names it's harder to test individual functions. [...] In programs without

Re: Elementary string-parsing

2008-02-05 Thread Steve Holden
Dennis Lee Bieber wrote: On Tue, 05 Feb 2008 04:03:04 GMT, Odysseus [EMAIL PROTECTED] declaimed the following in comp.lang.python: Sorry, translation problem: I am acquainted with Python's for -- if far from fluent with it, so to speak -- but the PS operator that's most similar

Re: Project naming suggestions?

2008-02-05 Thread Neil Cerutti
On Feb 3, 2008 1:17 PM, [EMAIL PROTECTED] wrote: I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) Basically, I don't want to change a whole lot about Python. In fact, I see myself starting with the compiler module from Python

Re: Binary file Pt 1 - Only reading some

2008-02-05 Thread Mastastealth
On Feb 5, 1:17 am, Gabriel Genellina [EMAIL PROTECTED] wrote: Using the struct module  http://docs.python.org/lib/module-struct.html import struct data = info.read(15) str1, str2, blank, height, width, num2, num3 = struct.unpack(6s3s1cBBBh, data) Consider this like a first attempt, open

Using Regular Expressions to Parse SQL

2008-02-05 Thread ct60
Hello again - I do not seem to be able to get a handle on non-greedy pattern matching. I am trying to parse the following - note that there are no line breaks in the string: FROM ((qry_Scores_Lookup1 INNER JOIN CSS_Rpt1 ON (qry_Scores_Lookup1.desc = CSS_Rpt1.desc) AND

Re: boolean decisions

2008-02-05 Thread Diez B. Roggisch
I think the problem is actually less simple than that. Although they can enumerate many or all of the rows of the table I suspect that the business people don't always know why they choose particular outcomes; often they're not looking at most of the input choices at all they just concentrate

Re: boolean decisions

2008-02-05 Thread Paddy
On Feb 5, 10:52 am, Robin Becker [EMAIL PROTECTED] wrote: I have a couple of business decisions to make that essentially use 6 binary input variables. After the business users have gone back and forth for two weeks trying to build special case rules I asked them to make up a table containing

Re: Binary file Pt 1 - Only reading some

2008-02-05 Thread Mastastealth
On Feb 5, 8:50 am, Mastastealth [EMAIL PROTECTED] wrote: What is this value for? 6s3s1cBBBh and why is my unpack limited to a length of 16? Unfortunately it seems my understanding of binary is way too basic for what I'm dealing with. Can you point me to a simple guide to explaining most of

Re: Why not a Python compiler?

2008-02-05 Thread [EMAIL PROTECTED]
Why not a Python COMPILER? What about a Python JIT hardware chip, so the CPU doesn't have to translate. Although it seems to me that with today's dual and quad core processors that this might be a mute point because you could just use one of the cores. --

Re: Mysterious xml.sax Encoding Exception

2008-02-05 Thread JKPeck
On Feb 4, 4:09 pm, John Machin [EMAIL PROTECTED] wrote: On Feb 5, 9:02 am, JKPeck [EMAIL PROTECTED] wrote: On Feb 2, 12:56 am, Jeroen Ruigrok van der Werven [EMAIL PROTECTED] nomine.org wrote: -On [20080201 19:06], JKPeck ([EMAIL PROTECTED]) wrote: In both of these cases, there are

Show Image with WebKit

2008-02-05 Thread Marcos Alcazar
Hello to everybody, I'm from Argentina. My problem is the next. I receive in the request one image that i've upload, and I want to show that again in another page, how can i do that? I try this: from WebKit.Page import Page class gestorControl(Page): def actions(self): return

Re: best(fastest) way to send and get lists from files

2008-02-05 Thread Nick Craig-Wood
Abrahams, Max [EMAIL PROTECTED] wrote: I've looked into pickle, dump, load, save, readlines(), etc. Which is the best method? Fastest? My lists tend to be around a thousand to a million items. Binary and text files are both okay, text would be preferred in general unless there's a

Re: Does anyone else use this little idiom?

2008-02-05 Thread Nick Craig-Wood
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some code ... } where n is an integer representing how many times you want to execute some code. In Python, the

RE: Using Regular Expressions to Parse SQL

2008-02-05 Thread Reedick, Andrew
-Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, February 05, 2008 9:31 AM To: python-list@python.org Subject: Using Regular Expressions to Parse SQL My pattern does not even come close. Any help would

Re: boolean decisions

2008-02-05 Thread Robin Becker
Paul Hankin wrote: On Feb 5, 10:52 am, Robin Becker [EMAIL PROTECTED] wrote: I have a couple of business decisions to make that essentially use 6 binary input variables. After the business users have gone back and forth for two weeks trying to build special case rules I asked them to make up

Suggestions for structure of HTML-generating app

2008-02-05 Thread [EMAIL PROTECTED]
Hi, This isn't a strictly Python question but I wonder if someone could give me some clues here. I've been writing a number of stand-alone apps that use CherryPy as an embedded web server for displaying processed data and interacting with the application. To go along with this I've also been

Re: boolean decisions

2008-02-05 Thread Robin Becker
Diez B. Roggisch wrote: Robin Becker wrote: ... terms or something, but perhaps I am daft. Triggered this in some deep-rootet parts of my brain stem: http://en.wikipedia.org/wiki/Quine-McCluskey_algorithm . seems like the sort of thing I can deal with though at least for this

Re: boolean decisions

2008-02-05 Thread Robin Becker
Zentrader wrote: and then choose the solution with the shortest number of terms or something Experience says that one should not assume that there is a one to one relationship, (the solution). Some event can trigger more than one combination of the 6 binary input variables. And experience

Re: How to autorun a python script when a specific user logs on?

2008-02-05 Thread Hyuga
You know, I'm all for responsible parenting, and teaching kids about about responsible computer use, and even to an extent checking out things like browser history to make sure they're up to no good. But this is outright spying--a total invasion of privacy. Might as well put a hidden web cam in

Re: Using Regular Expressions to Parse SQL

2008-02-05 Thread Paul McGuire
On Feb 5, 8:31 am, [EMAIL PROTECTED] wrote: Hello again - I do not seem to be able to get a handle on non-greedy pattern matching. Regexps wont cut it when you have to parse nested ()'s in a logical expression. Here is a pyparsing solution. For your specific application, you will need to

Re: Suggestions for structure of HTML-generating app

2008-02-05 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Hi, This isn't a strictly Python question but I wonder if someone could give me some clues here. I've been writing a number of stand-alone apps that use CherryPy as an embedded web server for displaying processed data and interacting with the application. To go

Re: Pysqlite issue no attribute 'autocommit'

2008-02-05 Thread Gerhard Häring
Paul McNett wrote: Andy Smith wrote: Im trying to run a Python based program which uses MySQL with python-sqlite and Im recieving this error, 'Connection' object has no attribute 'autocommit' [...] No, why should it have one? It's not documented to have one. To do what you intend to

Re: future multi-threading for-loops

2008-02-05 Thread Christian Heimes
[EMAIL PROTECTED] wrote: Multi-threaded control flow is a worthwhile priority. It is? That's totally new to me. Given the fact that threads don't scale I highly doubt your claim, too. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: Why not a Python COMPILER? What about a Python JIT hardware chip, so the CPU doesn't have to translate. Although it seems to me that with today's dual and quad core processors that this might be a mute point because you could just use one of the cores. What about

Broke my IDLE!

2008-02-05 Thread Adam W.
I did a stupid thing and wrote in Up-Arrow under the advance key bindings section, and after hitting apply I got a load of exceptions. Now my shell wont open and my IDEL wont start anymore I uninstalled and reinstalled Python with no luck, the whacked settings must be lingering around

Re: Why not a Python compiler?

2008-02-05 Thread Jeff Schwab
Steve Holden wrote: [EMAIL PROTECTED] wrote: Why not a Python COMPILER? What about a Python JIT hardware chip, so the CPU doesn't have to translate. Although it seems to me that with today's dual and quad core processors that this might be a mute point because you could just use one of the

Re: extending python with array functions

2008-02-05 Thread Gabriel Genellina
En Tue, 05 Feb 2008 05:28:33 -0200, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] escribi�: On Mon, 04 Feb 2008 20:56:02 -0200, Gabriel Genellina wrote: - the array module http://docs.python.org/lib/module-array.html provides homogeneuos arrays that may be more efficient for your application.

Re: Broke my IDLE!

2008-02-05 Thread Adam W.
Tried running IDEL from the command prompt to get this: Traceback (most recent call last): File c:\Python25\Lib\idlelib\idle.pyw, line 21, in module idlelib.PyShell.main() File c:\Python25\lib\idlelib\PyShell.py, line 1404, in main shell = flist.open_shell() File

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-05 Thread Matthew_WARREN
As other have said, it's because exec_command uses a new session each time. You may get some joy with this, untested exec_command('cd /some/where; somecommand') uses the semi-colon to separate multiple commands on one command line. Matt.

Removing the Close, Min, Maximize and frame with ANY gui toolkit

2008-02-05 Thread Daniel Folkes
I was wondering if anyone knew how to remove the Minimize, Maximize and Close from the frame around a gui. Removing everything would work even better. I would prefer instructions for tkinter, but any GUI would suffice(glade, gtk, wx, Qt). I really would like to make a widget like object instead

Re: future multi-threading for-loops

2008-02-05 Thread dmitrey
On Feb 5, 5:22 am, [EMAIL PROTECTED] wrote: Some iterables and control loops can be multithreaded. Worries that it takes a syntax change. for X in A: def f( x ): normal suite( x ) start_new_thread( target= f, args= ( X, ) ) Perhaps a control-flow wrapper, or method on

Re: App idea, Any idea on implementation?

2008-02-05 Thread Matthew_WARREN
Ok, probably not the answer your after. csound can do this easily. If you doing it via python, you'll need some way of FFT analysing sample data and analysing that to get which frequencies have the most energy... although I'm sure there are some, I don't know the names of any python libs that

Re: Binary file Pt 1 - Only reading some

2008-02-05 Thread Gabriel Genellina
En Tue, 05 Feb 2008 11:50:25 -0200, Mastastealth [EMAIL PROTECTED] escribi�: On Feb 5, 1:17 am, Gabriel Genellina [EMAIL PROTECTED] wrote: Using the struct module  http://docs.python.org/lib/module-struct.html import struct data = info.read(15) str1, str2, blank, height, width, num2, num3

Re: Broke my IDLE!

2008-02-05 Thread kdwyer
On Feb 5, 5:05 pm, Adam W. [EMAIL PROTECTED] wrote: Tried running IDEL from the command prompt to get this: Traceback (most recent call last): File c:\Python25\Lib\idlelib\idle.pyw, line 21, in module idlelib.PyShell.main() File c:\Python25\lib\idlelib\PyShell.py, line 1404, in main

Must COMMIT after SELECT (was: Very weird behavior in MySQLdb execute)

2008-02-05 Thread John Nagle
Steve Holden wrote: John Nagle wrote: Carsten Haese wrote: On Mon, 2008-02-04 at 11:30 -0800, John Nagle wrote: Restarting the MySQL instance changes the database. The entry google.com disappears, and is replaced by www.google.com. This must indicate a hanging transaction that wasn't

Re: future multi-threading for-loops

2008-02-05 Thread dmitrey
On Feb 5, 6:11 pm, Christian Heimes [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Multi-threaded control flow is a worthwhile priority. It is? That's totally new to me. Given the fact that threads don't scale I highly doubt your claim, too. I would propose for X IN A for parallel and

Need help porting a C++ / Python Embedded app to multiple platforms

2008-02-05 Thread jpw
I am writing a Python / C++ embed app and it need to work on 3 platforms I have the PYTHONPATH variable set correctly and have gone back and downloaded compiled and installed the latest Python 2.5.1 on Solaris and Linux. adding in the --enable-shared when running the ./ configure ... file Mac -

IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread dmitrey
Hi all, the url http://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? If yes, what are IronPython drawbacks vs CPython? And is it possible to use IronPython in Linux? D. --

Re: How to autorun a python script when a specific user logs on?

2008-02-05 Thread jack trades
Hyuga [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You know, I'm all for responsible parenting, and teaching kids about about responsible computer use, and even to an extent checking out things like browser history to make sure they're up to no good. But this is outright

Re: future multi-threading for-loops

2008-02-05 Thread John Nagle
Christian Heimes wrote: [EMAIL PROTECTED] wrote: Multi-threaded control flow is a worthwhile priority. It is? That's totally new to me. Given the fact that threads don't scale I highly doubt your claim, too. There's plenty that can be done to automatically extract parallelism from

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Jeff
IronPython runs on top of .NET. I would be suspect of any claims that it is faster than cPython, just as I would of claims that Stackless or Jython are faster. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Regular Expressions to Parse SQL

2008-02-05 Thread ct60
Firstly, thanks to those who posted. I just do not understand how the non-greedy operator works. Using the following code: import re s = qry_Lookup.desc = CSS_Rpt1.desc AND qry_Lookup.lcdu1 = CSS_Rpt1.lcdu pat = (.+=)+?(.+) m = re.match(pat, s) if m is None: print No Match else: for

Re: Why not a Python compiler?

2008-02-05 Thread Jeff
I'm surprised no one has mentioned Pyrex. It can be used to write stand-alone C programs using near-Python syntax: Pyrex: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Stand-alone how-to: http://www.freenet.org.nz/python/embeddingpyrex/ Pyrex how-to: http://ldots.org/pyrex-guide/,

Re: Removing the Close, Min, Maximize and frame with ANY gui toolkit

2008-02-05 Thread Mike Driscoll
On Feb 5, 11:17 am, Daniel Folkes [EMAIL PROTECTED] wrote: I was wondering if anyone knew how to remove the Minimize, Maximize and Close from the frame around a gui. Removing everything would work even better. I would prefer instructions for tkinter, but any GUI would suffice(glade, gtk, wx,

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Steve Holden
Jeff wrote: IronPython runs on top of .NET. I would be suspect of any claims that it is faster than cPython, just as I would of claims that Stackless or Jython are faster. Well don't be. There are benchmarks that clearly show IronPython as faster for selected tests. Other tests show CPython

Re: Removing the Close, Min, Maximize and frame with ANY gui toolkit

2008-02-05 Thread 3c273
Google for overrideredirect(). Louis Daniel Folkes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I was wondering if anyone knew how to remove the Minimize, Maximize and Close from the frame around a gui. Removing everything would work even better. I would prefer instructions for

Re: Project naming suggestions?

2008-02-05 Thread Kay Schluehr
On 5 Feb., 14:41, Neil Cerutti [EMAIL PROTECTED] wrote: On Feb 3, 2008 1:17 PM, [EMAIL PROTECTED] wrote: I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) Basically, I don't want to change a whole lot about Python. In

Re: Project naming suggestions?

2008-02-05 Thread Kay Schluehr
On 5 Feb., 14:41, Neil Cerutti [EMAIL PROTECTED] wrote: On Feb 3, 2008 1:17 PM, [EMAIL PROTECTED] wrote: I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) Basically, I don't want to change a whole lot about Python. In

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Mike C. Fletcher
dmitrey wrote: Hi all, the url http://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? On certain platforms, I believe so, for certain types of operations. Not sure if Mono also

Re: Broke my IDLE!

2008-02-05 Thread Chris
On Feb 5, 7:05 pm, Adam W. [EMAIL PROTECTED] wrote: Tried running IDEL from the command prompt to get this: Traceback (most recent call last): File c:\Python25\Lib\idlelib\idle.pyw, line 21, in module idlelib.PyShell.main() File c:\Python25\lib\idlelib\PyShell.py, line 1404, in main

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Jean-Paul Calderone
On Tue, 05 Feb 2008 14:22:39 -0500, Mike C. Fletcher [snip] PyPy is attempting to address this issue via a separate interpreter, but it's currently just playing catch-up on performance most of the time. It does have a JIT, and might one day be fast enough to be a usable replacement for CPython,

Re: Broke my IDLE!

2008-02-05 Thread Adam W.
I finally found away around it myself, I commented out line 1357 in lib \lib-tk\Tkinter.py that told it to call the settings, after I did that it fired right up, I went into the bindings and selected the default, closed out, uncommented that line, and I was back in buisness. On Feb 5, 2:27 pm,

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-05 Thread Charles_hans
Thank you, Matt, for your valuable advice! I did try using ';' to issue three commands at once and it works! However, I have more problems with issuing ClearCase commands, which is what I am really doing. Under telnet, I could issue commands one by one, just as typing at the command prompt. Now

Re: Project naming suggestions?

2008-02-05 Thread Kay Schluehr
On 5 Feb., 14:41, Neil Cerutti [EMAIL PROTECTED] wrote: On Feb 3, 2008 1:17 PM, [EMAIL PROTECTED] wrote: I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) Basically, I don't want to change a whole lot about Python. In

Re: Broke my IDLE!

2008-02-05 Thread Steve Holden
Adam W. wrote: I finally found away around it myself, I commented out line 1357 in lib \lib-tk\Tkinter.py that told it to call the settings, after I did that it fired right up, I went into the bindings and selected the default, closed out, uncommented that line, and I was back in buisness.

Re: Is it explicitly specified?

2008-02-05 Thread Terran Melconian
Exactly, and if you use idiom func(*args, **kwargs) you can distinguish all the usage cases: def func(*args, **kwargs): Nice... but I would still like to be able to specify the key's default value in the func signature, and in this case this would not be The workaround I have seen for

Re: nonblocking read of one xml element?

2008-02-05 Thread Stefan Behnel
[EMAIL PROTECTED] wrote: I'm parsing a log file that's being written out in real time. This is part of an event loop, so I want to have some code that looks like this: when logfile is readable: read one entry node, including children but don't try to read past /entry, so

Professional Grant Proposal Writing Workshop (April 2008: Gorham, Maine)

2008-02-05 Thread Anthony Jones
The Grant Institute's Grants 101: Professional Grant Proposal Writing Workshop will be held in Gorham, Maine, April23 - 25, 2008. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand means that seats will fill up

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Stefan Behnel
[EMAIL PROTECTED] schrieb: Mike C. Fletcher: Not sure if Mono also provides a speedup. There is a set of good benchmarks here, the answer is negative: http://shootout.alioth.debian.org/sandbox/benchmark.php?test=alllang=iron This doesn't look like Mono to me: IronPython 1.1 (1.1)

ZSI receiving complex type problem

2008-02-05 Thread catherine_jervis
I have a ZSI client talking to a perl program through SOAP. The perl program has defined a return type of $esmith::recExtend, where esmith::recExtend is a complex type defined in the WSDL as follows: complexType name=EsmithRecExtend sequence element name=databasename

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread bearophileHUGS
Mike C. Fletcher: Not sure if Mono also provides a speedup. There is a set of good benchmarks here, the answer is negative: http://shootout.alioth.debian.org/sandbox/benchmark.php?test=alllang=iron Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: extending python with array functions

2008-02-05 Thread Janwillem
Gabriel Genellina wrote: En Tue, 05 Feb 2008 05:28:33 -0200, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] escribi�: On Mon, 04 Feb 2008 20:56:02 -0200, Gabriel Genellina wrote: - the array module http://docs.python.org/lib/module-array.html provides homogeneuos arrays that may be more

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Istvan Albert
On Feb 5, 12:31 pm, dmitrey [EMAIL PROTECTED] wrote: Hi all, the urlhttp://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? This is a second time around that IronPython piqued my interest

Tkinter fonts setting

2008-02-05 Thread Unnamed One
First question - is it possible to set font to default OS font for window text? It would be preferable, while on my Windows XP system Tkinter sets small Helvetica-style font by default. Secondly, can I set font globally (or specify default font for widgets)? In fact, all I want is to get

Re: polling for output from a subprocess module

2008-02-05 Thread Thomas Bellman
Christian Heimes [EMAIL PROTECTED] writes: Thomas Bellman wrote: The readlines() method will read until it reaches end of file (or an error occurs), not just what is available at the moment. You can see that for your self by running: Bad idea ;) Why is it a bad idea to see how the

Re: boolean decisions

2008-02-05 Thread Jared Grubb
Quine-McCluskey isn't too bad to do once or twice by hand, but if you change even one row in your dataset, you'll have to repeat the ENTIRE Q-M algorithm. It gets very tedious. For your application, I'd just use a hash table. You dont need the reduced form of your data, you just need a look-up

Re: Client side GUI-like web framework ?

2008-02-05 Thread Luis M. González
On Feb 4, 2:45 pm, USCode [EMAIL PROTECTED] wrote: Wouldn't it be handy if there was a web framework that allowed you to create pages and control the interface like you would using a client-side GUI framework such as Tkinter? The framework would need a small, fast web server that would

Re: Client side GUI-like web framework ?

2008-02-05 Thread Fred Pacquier
USCode [EMAIL PROTECTED] said : Thanks Jay and I guess in my original post I didn't explicitly specify Python but that is what I was after. After poking around a bit pyjamas looks like it might be exactly what I was after except the main pyjamas website http://pyjamas.pyworks.org appears

Re: polling for output from a subprocess module

2008-02-05 Thread Ivo
Thomas Bellman wrote: [EMAIL PROTECTED] wrote: try: test = Popen(test_path, stdout=PIPE, stderr=PIPE, close_fds=True, env=test_environ)

Re: Suggestions for structure of HTML-generating app

2008-02-05 Thread Bernard
On 5 fév, 10:09, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, This isn't a strictly Python question but I wonder if someone could give me some clues here. I've been writing a number of stand-alone apps that use CherryPy as an embedded web server for displaying processed data and

Re: Very weird behavior in MySQLdb execute

2008-02-05 Thread John Nagle
Paul Boddie wrote: On 4 Feb, 20:30, John Nagle [EMAIL PROTECTED] wrote: This has me completely mystified. Some SELECT operations performed through MySQLdb produce different results than with the MySQL graphical client. This failed on a Linux server running Python 2.5, and I can reproduce

Re: interested????

2008-02-05 Thread Ivo
no -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-05 Thread [EMAIL PROTECTED]
On Feb 5, 11:44 am, Steve Holden [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Why not a Python COMPILER? What about a Python JIT hardware chip, so the CPU doesn't have to translate. Although it seems to me that with today's dual and quad core processors that this might be a mute

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-05 Thread Martin v. Löwis
Do you think that paramiko can replace telnet in my application? Thanks. You need to use .invoke_shell(), then send() and recv(). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Does anyone else use this little idiom?

2008-02-05 Thread Eduardo O. Padoan
On Feb 5, 2008 1:30 PM, Nick Craig-Wood [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some code ... } where n is an integer representing how

Re: Why not a Python compiler?

2008-02-05 Thread Steven D'Aprano
On Tue, 05 Feb 2008 13:22:13 -0800, [EMAIL PROTECTED] wrote: On Feb 5, 11:44 am, Steve Holden [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Why not a Python COMPILER? What about a Python JIT hardware chip, so the CPU doesn't have to translate. Although it seems to me that with

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Christian Heimes
dmitrey wrote: Hi all, the url http://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? If yes, what are IronPython drawbacks vs CPython? And is it possible to use IronPython in Linux?

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Arnaud Delobelle
On Feb 5, 8:01 pm, Istvan Albert [EMAIL PROTECTED] wrote: On Feb 5, 12:31 pm, dmitrey [EMAIL PROTECTED] wrote: Hi all, the urlhttp://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true?

  1   2   >