smtpd module

2008-02-05 Thread Stefan Witzel
Hello, the documentation of the smtpd module in the Python Library Reference is very short, I think. Are there any examples available? Especially I'm interested in the DebuggingServer. Thanks in advance. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: boolean decisions

2008-02-05 Thread news-noreply
Statestep (which includes Python code generation) might be something to look at. It's designed to help the user create simplified rules to begin with rather than derive them post hoc (it's really for much bigger problems where enumerating individual rules like you've done would be impractical) ...

Re: Using a class as a structure/container

2008-02-05 Thread Gabriel Genellina
En Wed, 06 Feb 2008 00:59:48 -0200, <[EMAIL PROTECTED]> escribi�: > Is it appropriate to use a class as a simple container in order to > access attributes using a series of dot operators? Is their a more > Pythonic way of doing this? For instance, I have a "container" class > which is never inst

problem with jpype and thread

2008-02-05 Thread silkenpy
I start using thread with simple example but now I have some problem. PYTHON is the best=== import threading import time from jpype import * def sleepFunction(): print"ya ali" classpath = "-Djava.class.path=praat.jar" startJVM(getDefaultJVMPa

Use full info and intelligent games and etc..... just click

2008-02-05 Thread [EMAIL PROTECTED]
Use full info and intelligent games and etc. just click www.freeonlinegames.c-o.in -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-05 Thread John Nagle
[EMAIL PROTECTED] wrote: > On Feb 5, 4:54 pm, Steven D'Aprano <[EMAIL PROTECTED] > cybersource.com.au> wrote: > >> Okay, you know how hard it is to create a software JIT compiler for a >> language as dynamic as Python? It's REALLY HARD, which is why it hasn't >> already been done[1]. Now you want

Re: package import

2008-02-05 Thread Steve Holden
Sean Allen wrote: > ok, what am i doing wrong? > > in current working directory i have: > > t.py > sub/t1.py > > t.py is: > > import sub.t1 > > i get: > > ImportError: No module named sub.t1 > > t.py is > > import sub > > i get: > > ImportError: No module named sub.t1 > > -- > > i am ob

package import

2008-02-05 Thread Sean Allen
ok, what am i doing wrong? in current working directory i have: t.py sub/t1.py t.py is: import sub.t1 i get: ImportError: No module named sub.t1 t.py is import sub i get: ImportError: No module named sub.t1 -- i am obviously missing something really basic here. have tried on multiple ma

Paramiko SFTP autologon using id_dsa.pub

2008-02-05 Thread Mike Hjorleifsson
I wrote a lil module using paramiko's module to send a file via sftp.. it works great using the username and password. I would prefer to use id_dsa.pub to have an autologon and not save the password anywhere on the disk.. I cant find a good example of this. Can anyone help ? -- http://mail.python.

Re: What does % mean/does in this context?

2008-02-05 Thread Mike Hjorleifsson
At first glance it looks like a replace for _button_cart with the dictionary items listed in the curly braces and stuffing them into a list item (cartitems) On Feb 2, 8:47 am, Tim Chase <[EMAIL PROTECTED]> wrote: > > for item in cart.values(): > > v = _button_cart % {"idx": idx,

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

2008-02-05 Thread Mike Hjorleifsson
on windows you can put this in HKEY_Local_Machine\Software\Microsoft \Windows\Current Version\Run and it will run at logon (or fast user switch) for each user or if you only want to do it for a specific user you need to determine their CSLID and put it in the same locale under the HKEY_USERS\Users

Re: Broke my IDLE!

2008-02-05 Thread Mike Hjorleifsson
Anyone know how to get idle working on OSX 10.5 (Leopard) ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Running files with the associated program...

2008-02-05 Thread Gabriel Genellina
En Tue, 05 Feb 2008 22:34:59 -0200, E-Lo <[EMAIL PROTECTED]> escribió: > How can I start a file (on Windows) with the associated program, http://docs.python.org/lib/os-process.html#l2h-2760 startfile(path[, operation]) Start a file with its associated application. When operation is not specified

Re: Data Manipulation - Rows to Columns

2008-02-05 Thread Gabriel Genellina
En Wed, 06 Feb 2008 01:52:08 -0200, Gabriel Genellina <[EMAIL PROTECTED]> escribió: > I have a text file with marked up data that I need to convert into a > text tab separated file. Sorry, I sent the code too early: rows = [] row = None for line in file1: line = line.strip() # remove lead

Re: Data Manipulation - Rows to Columns

2008-02-05 Thread Gabriel Genellina
En Wed, 06 Feb 2008 00:54:49 -0200, Tess <[EMAIL PROTECTED]> escribió: > I have a text file with marked up data that I need to convert into a > text tab separated file. > > The structure of the input file is listed below (see file 1) and the > desired output file is below as well (see file 2). > >

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread Steve Holden
xkenneth wrote: >> My question is: "What makes you think that there is a royal road to web >> development?" > I don't, I was just hoping there was something I was missing, or more > simple than anything I'd experienced. > >> You have already chosen some technology (Ajax and ZODB) without any >> ap

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread xkenneth
On Feb 5, 9:33 pm, xkenneth <[EMAIL PROTECTED]> wrote: > > My question is: "What makes you think that there is a royal road to web > > development?" > > I don't, I was just hoping there was something I was missing, or more > simple than anything I'd experienced. > > > > > You have already chosen so

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread xkenneth
> My question is: "What makes you think that there is a royal road to web > development?" I don't, I was just hoping there was something I was missing, or more simple than anything I'd experienced. > > You have already chosen some technology (Ajax and ZODB) without any > apparent justification. I'

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread [EMAIL PROTECTED]
On Feb 5, 10:04 pm, xkenneth <[EMAIL PROTECTED]> wrote: > All, > > I'm trying to build a simple web application, but i still need > things like sessions and Ajax. I tried to create a Zope product, but I > honestly can't think of anything more cryptic. I really don't enjoy > learning all of th

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread George Sakkis
xkenneth wrote: > For the DB backend I'm planning on using ZODB. ZODB is actually > quite amazing, and after using it, I honestly can't think of a > reason for using a SQL database. Well, one reason is that this probably rules out most of your options since most web frameworks include (or integra

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread Steve Holden
xkenneth wrote: > All, > > I'm trying to build a simple web application, but i still need > things like sessions and Ajax. I tried to create a Zope product, but I > honestly can't think of anything more cryptic. I really don't enjoy > learning all of the "magic code" and debugging an environ

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Steve Holden
Christian Heimes wrote: > Luis M. González wrote: >> The result is that it runs slighty faster in both, IP and CP, but >> cpython is still faster (around 2x) than ironpython. >> However, when using psyco simply blows everything out of the water... > > CPython is very fast here because it keeps blo

Re: Using a class as a structure/container

2008-02-05 Thread david . car7
On Feb 5, 9:59 pm, [EMAIL PROTECTED] wrote: > Is it appropriate to use a class as a simple container in order to > access attributes using a series of dot operators?  Is their a more > Pythonic way of doing this?  For instance, I have a "container" class > which is never instantiated directly, but

What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread xkenneth
All, I'm trying to build a simple web application, but i still need things like sessions and Ajax. I tried to create a Zope product, but I honestly can't think of anything more cryptic. I really don't enjoy learning all of the "magic code" and debugging an environment I have to study to know

Using a class as a structure/container

2008-02-05 Thread david . car7
Is it appropriate to use a class as a simple container in order to access attributes using a series of dot operators? Is their a more Pythonic way of doing this? For instance, I have a "container" class which is never instantiated directly, but only through another class. Access to certain attrib

Data Manipulation - Rows to Columns

2008-02-05 Thread Tess
Hello All, I have a text file with marked up data that I need to convert into a text tab separated file. The structure of the input file is listed below (see file 1) and the desired output file is below as well (see file 2). I am a complete novice with python and would appreciate any tips you ma

Re: Using Regular Expressions to Parse SQL

2008-02-05 Thread MRAB
On Feb 5, 6:18 pm, [EMAIL PROTECTED] wrote: > 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 = "(.+=)+?(.+)"

RE: Running files with the associated program...

2008-02-05 Thread Adam Pletcher
import subprocess proc = subprocess.Popen(r'C:\example.bmp', shell=True) - Adam From: [EMAIL PROTECTED] on behalf of E-Lo Sent: Tue 2/5/2008 6:34 PM To: python-list@python.org Subject: Running files with the associated program... Hello all, How can I start a

Re: nonblocking read of one xml element?

2008-02-05 Thread Paul Boddie
On 5 Feb, 07:09, [EMAIL PROTECTED] wrote: > So, I'm parsing a log file that's being written out in > real time. > > > 123foo > > 456bar > > <--- no , coz the file hasn't yet been closed This kind of "incomplete" XML (or perhaps ill-formed would be the better term) is reminiscent of

Running files with the associated program...

2008-02-05 Thread E-Lo
Hello all, How can I start a file (on Windows) with the associated program, Like if I want to open a bmp file, I want to to be shown in the program that all bmp files are associated with. I need a python code to do this. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Traversing python datatypes via http

2008-02-05 Thread Alan Gauld
"Mark" <[EMAIL PROTECTED]> wrote > Is it possible to traverse say python lists via http:// http is a network protocol. What does that have to do with traversing python lists? Can you clarify what you mean by that? > say there is a list in the memory > can we traverse the list using list/next lis

Re: Traversing python datatypes via http

2008-02-05 Thread Bernard
On 5 fév, 18:10, Mark <[EMAIL PROTECTED]> wrote: > Is it possible to traverse say python lists via http:// > > say there is a list in the memory > > can we traverse the list using list/next list/prev list/first list/last > > is there a pythonic library to do that? > > thanks I'm not sure I totally

Re: future multi-threading for-loops

2008-02-05 Thread castironpi
On Feb 5, 1:21 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Mon, 04 Feb 2008 19:22:29 -0800, castironpi 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 ) >

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Christian Heimes
Luis M. González wrote: > The result is that it runs slighty faster in both, IP and CP, but > cpython is still faster (around 2x) than ironpython. > However, when using psyco simply blows everything out of the water... CPython is very fast here because it keeps blocks of allocated integer objects

Re: Spawn new process -> get pid

2008-02-05 Thread Gabriel Genellina
En Tue, 05 Feb 2008 20:05:04 -0200, breal <[EMAIL PROTECTED]> escribió: > I need the program to start fully before I go on any further so that > it is available later in my script. After it is used I need to kill > the pid of the program I started. So, I was trying to use > my_process = subpro

Re: Show Image with WebKit

2008-02-05 Thread Gabriel Genellina
En Tue, 05 Feb 2008 13:36:00 -0200, Marcos Alcazar <[EMAIL PROTECTED]> escribió: > Hello to everybody, I'm from Argentina. > [... problem description ...] > Thanks, and sorry for my english :) I can't help with your specific problem, but try http://www.python.com.ar/ -- Gabriel Genellina --

Re: Why not a Python compiler?

2008-02-05 Thread Luis M. González
On 5 feb, 05:19, 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 wri

GOZERBOT 0.8-BETA released

2008-02-05 Thread bthate
gozerbot 0.8 is coming real soon in a chat channel near you and thus we have made a BETA of the upcoming 0.8 release available. new in 0.8: * third party addons for plugins * ipv6 udp * reboot without disconnects * owneruserhost is now a list * lots of bug fixes please test g

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

2008-02-05 Thread Gabriel Genellina
En Tue, 05 Feb 2008 15:30:28 -0200, jpw <[EMAIL PROTECTED]> escribió: > 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

Re: nonblocking read of one xml element?

2008-02-05 Thread mh
Stefan Behnel <[EMAIL PROTECTED]> wrote: > [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 node, includin

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Luis M. González
On 5 feb, 14:31, 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? > If yes, what are IronPython drawbacks vs CPython? > And is it

Traversing python datatypes via http

2008-02-05 Thread Mark
Is it possible to traverse say python lists via http:// say there is a list in the memory can we traverse the list using list/next list/prev list/first list/last is there a pythonic library to do that? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Project naming suggestions?

2008-02-05 Thread Wildemar Wildenburger
Neil Cerutti 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 fact, >> I see myself starting with

Re: Why not a Python compiler?

2008-02-05 Thread [EMAIL PROTECTED]
On Feb 5, 4:54 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > Okay, you know how hard it is to create a software JIT compiler for a > language as dynamic as Python? It's REALLY HARD, which is why it hasn't > already been done[1]. Now you want that done in *hardware*, which is

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread [EMAIL PROTECTED]
On Feb 5, 3:56 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > 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 g

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Istvan Albert
On Feb 5, 4:56 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > Could it be because .NET doesn't have arbitrary length integer types > and your little benchmark will create lots of integers > 2**32 ? > What is the result if you replace foo(a) with > def foo(a): return sqrt(a) Good observation,

Re: Spawn new process -> get pid

2008-02-05 Thread breal
On Feb 4, 9:25 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On 4 feb, 22:21, breal <[EMAIL PROTECTED]> wrote: > > > > > On Feb 4, 3:34 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > En Mon, 04 Feb 2008 20:59:16 -0200, breal <[EMAIL PROTECTED]> > > > escribió: > > > > > I have a so

Re: Why not a Python compiler?

2008-02-05 Thread Steve Holden
Steven D'Aprano wrote: > 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 translat

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

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

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

Re: interested????

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

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

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

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

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

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 th

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

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 defa

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 inter

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

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=all&lang=iron This doesn't look like Mono to me: IronPython 1.1 (

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, April 23 - 25, 2008. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand means that seats will fill up quickl

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 node, including children >but don't try to read past , so that

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 hav

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=all&lang=iron Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

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

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 C

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:

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 > idlelib.PyShell.main() > File "c:\Python25\lib\idlelib\PyShell.py", line 1404, i

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 pr

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

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

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

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 CPytho

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, g

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 instructi

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/, htt

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:

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

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 >

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 > idlelib.PyShell.main() > File "c:\Python25\lib\idlelib\PyShell.py", line 1404, i

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, wid

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 do

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 parall

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 metho

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. -- http://mail.python.o

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 -

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 o

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.

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 idlelib.PyShell.main() File "c:\Python25\lib\idlelib\PyShell.py", line 1404, in main shell = flist.open_shell() File "c:\Python25\lib\idlel

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 applic

  1   2   >