Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Michele Simionato
On Oct 6, 12:57 pm, Bruno Desthuilliers > Michele Simionato a écrit : > > > I looked at the source code and it seems fine to me, but I have > > not used it directly, not stressed it. I need a > > production-level WSGI session middleware and I wonder what the > > players are (for instance how Beaker

Top Programming Languages of 2013

2007-10-06 Thread Dick Moores
Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create a file on users XP desktop

2007-10-06 Thread Matimus
On Oct 6, 8:31 pm, goldtech <[EMAIL PROTECTED]> wrote: > Can anyone link me or explain the following: > > I open a file in a python script. I want the new file's location to be > on the user's desktop in a Windows XP environment. fileHandle = open > (., 'w' ) what I guess I'm looking for is a

Re: How to create a file on users XP desktop

2007-10-06 Thread Scott David Daniels
goldtech wrote: > ... I want the new file's location to be on the user's desktop in > a Windows XP environment > How about: import os.path handle = open(os.path.expanduser(r'~\DeskTop\somefile.txt'), 'w') ... -Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create a file on users XP desktop

2007-10-06 Thread [EMAIL PROTECTED]
On Oct 6, 11:31 pm, goldtech <[EMAIL PROTECTED]> wrote: > Can anyone link me or explain the following: > > I open a file in a python script. I want the new file's location to be > on the user's desktop in a Windows XP environment. fileHandle = open > (., 'w' ) what I guess I'm looking for is

Re: reliable unit test logging

2007-10-06 Thread Gabriel Genellina
En Wed, 03 Oct 2007 11:37:57 -0300, Vyacheslav Maslov <[EMAIL PROTECTED]> escribi�: > I have one more question related to logging module, not unit test. I use > FileHandler to append information to file log, in fact location of log > file depends on some external factor and is calculated during

Re: How to create a file on users XP desktop

2007-10-06 Thread Josh Bloom
I believe you can use something like '%USERPROFILE%\DESKTOP' as the path on a windows machine to get to the current users desktop directory. I'm not sure if the python open() command will expand that correctly, but give it a shot. -Josh On 10/6/07, goldtech <[EMAIL PROTECTED]> wrote: > > Can any

Re: embedding python..

2007-10-06 Thread Gabriel Genellina
En Fri, 05 Oct 2007 20:40:40 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribi�: > I compiled the c program that is supposed to allow you to call a > procedure from the command line promt.. (it is from the embeding > example).. I am a little confused as to what all I am supposed to > d

How to create a file on users XP desktop

2007-10-06 Thread goldtech
Can anyone link me or explain the following: I open a file in a python script. I want the new file's location to be on the user's desktop in a Windows XP environment. fileHandle = open (., 'w' ) what I guess I'm looking for is an environmental variable that will usually be correct on most XP

Re: Need help to understand garbage collection

2007-10-06 Thread Gabriel Genellina
En Sat, 06 Oct 2007 14:16:36 -0300, David Tremouilles <[EMAIL PROTECTED]> escribi�: > I would need help to understand how garbage collection work and how to > "trace" objects... > In the example below an object is created and deleted. Not exactly: an object is created and bound to the name "a".

Tkinter text widget

2007-10-06 Thread goldtech
I thought the "DISABLED" made it so I could not edit it. But it also makes it so I can not scroll down. If you make the window smaller than the content then try to put a cursor in there to use up/down arrow you can't. What I want is not to be able to change text content, but no other action is dis

Re: Where's the Starship's crew?

2007-10-06 Thread Christian Tismer
exhuma.twn wrote: > On Oct 5, 10:31 am, Dick Moores <[EMAIL PROTECTED]> wrote: >> >> >> I didn't check on all of them, but the only one I found was Mark >> Hammond . >> >> Dick Moores > > Doing 6 random clicks,

esvect and reflectbox

2007-10-06 Thread Tom Jones
Hi, I am trying to create a leftarrow of \vv{}. I thought I could just reflect the vector, but the solution has escaped me. Could someone help me out? [EMAIL PROTECTED] [EMAIL PROTECTED] \cleaders\hbox{$#4\mkern0mu#2\mkern0mu$}\hfill% \mkern-1.5mu#3$% } was replaced with [EMAIL P

Re: Segmentation fault..

2007-10-06 Thread Bjoern Schliessmann
Abandoned wrote: > I run a my script and 3-4 minutes later give me an error > "segmentation fault". > What is the reason of this error ? The reason is that the process tries to write to a memory address it outside of its allocated segments. Regards, Björn -- BOFH excuse #20: divide-by-zero e

Re: Howto Launch a windows application ?

2007-10-06 Thread stef mientki
I finally found out what was wrong: stef mientki wrote: > hello, > > I'm trying to launch a windows application, > but as many others on this list, I've some trouble. > I read some other threads about this topic, > but sorry, I still don't understand all this (never heard of pipes). > > When I use

Re: which language allows you to change an argument's value?

2007-10-06 Thread John W. Kennedy
Roedy Green wrote: > On Sun, 30 Sep 2007 10:47:13 -, Summercool > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone > who said : >> and now n will be 3. I think C++ and PHP can let you do that, using >> their reference (alias) mechanism. And C, Python, and Ruby probably >> won't

Re: Python Magazine: Issue 1 Free!

2007-10-06 Thread Bruno Desthuilliers
Terry Reedy a écrit : > "Steve Holden" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | I've just been told by the editors at Python Magazine that the first > | issue is out. It's all-electronic so anyone can download and read it. > | Let them know what you think: > | > | http:/

Re: Adding behaviour for managing "task" dependencies

2007-10-06 Thread Bruno Desthuilliers
David a écrit : >>Any thoughts would be most appreciated, though I would like to stress >>that I don't think Python should support the syntax I'm proposing I'd >>just like to know if I can extend a copy of it to do that. >> > > > You can use syntax like this: > > class MyJob1(Job): > depends

Re: Create a string array of all comments in a html file...

2007-10-06 Thread Stefan Behnel
sophie_newbie wrote: > Hi, I'm wondering how i'd go about extracting a string array of all > comments in a HTML file, HTML comments obviously taking the format > "". > > I'm fairly stumped on how to do this? Maybe using regular expressions? from lxml import etree parser = etree.HTMLParser

Re: Cross platform way of finding number of processors on a machine?

2007-10-06 Thread Nick Craig-Wood
Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > John <[EMAIL PROTECTED]> wrote: > > Is there a way to find the number of processors on a machine (on linux/ > > windows/macos/cygwin) using python code (using the same code/cross > > platform code)? > > From processing

setuptools on mac

2007-10-06 Thread Calvin Spealman
I am trying to install the newest setuptools on my macbook. 2.3 was installed by default, and 2.4 is installed and is my default version now. However, when I try to import setuptools, which is required to _install_ setuptools, I get this error: macbkpro1:~/Desktop/setuptools-0.6c7 ironfroggy$ pyth

Re: xml modifications

2007-10-06 Thread dcleaner
Bruno Desthuilliers <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > dcleaner a écrit : >> hi there...i'm a begginer level user and i've stumbbled upon a >> problem a bit beyond my knowledge. i hope that somebody will be able >> to help me with my problem... >> >> the problem is: i'm trans

Need help to understand garbage collection

2007-10-06 Thread David Tremouilles
I would need help to understand how garbage collection work and how to "trace" objects... In the example below an object is created and deleted. Why in the second part of the example I do not see any object removed: import gc class Test(object): def __init__(self): pass gc.collect()

help on understanding garbage collection

2007-10-06 Thread David Tremouilles
Hello, I would need help to understand how garbage collection work and how to "trace" objects... An example is joined where and object is created and deleted. Why in the second part of the example I do not see any object removed: " Removed objects: 0 [] --

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Bruno Desthuilliers
Michele Simionato a écrit : > On Oct 6, 9:13 am, Bruno Desthuilliers [EMAIL PROTECTED]> wrote: >> - talking about routes, you say: >> >> """ >> I have no Ruby On Rails background, so I don't see the advantages of routes. >> """ >> >> I don't have any RoR neither, but as far as I'm concerned, one o

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Kay Schluehr
> I really, really like Django (and its community and the competence of > the developers) and I think it deserves what it has gained and more but > we are not here to decide who's the best (there's always no best). +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: How to do transparent (opaque) windows from Python

2007-10-06 Thread Matimus
On Oct 6, 8:21 am, Don Taylor <[EMAIL PROTECTED]> wrote: > I want to build an application in Python that can show an opaque window > so that you can still see and type into any window that it covers. > > Sort of like a software mylar transparency sheet placed over the screen. > I need to be able

Re: Segmentation fault..

2007-10-06 Thread Jorge Godoy
Bruno Desthuilliers wrote: > Jorge Godoy a écrit : >> Without seeing any code, it is hard to say anything. But the answer to >> the ultimate question is "42". > > Indeed. Err, what was the question, exactly ?-) As soon as calculations are finished, you'll know. :-) -- http://mail.python.org/ma

How to do transparent (opaque) windows from Python

2007-10-06 Thread Don Taylor
I want to build an application in Python that can show an opaque window so that you can still see and type into any window that it covers. Sort of like a software mylar transparency sheet placed over the screen. I need to be able to type 'through' the transparency into the underlying applicat

Re: unit testing

2007-10-06 Thread Ben Finney
Paul Rubin writes: > Ben Finney <[EMAIL PROTECTED]> writes: > > Or even better: > > > > def test_raises_good_exception(): > > try: > > thingy() > > Well if we're grading on style, maybe you really want to name the > function 'test_thingy' instea

Re: WebBased Vector 2D Graphics

2007-10-06 Thread Dorai
On Oct 5, 4:28 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi there > > > I currently have a Python program outputing to the command line, > > durations of 'completed Steps' and 'data items' in relation to time > > i.e. > > > --jfh > >

Re: slice with negative stride

2007-10-06 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: >>> mystr = 'my string' > > I would have then thought of the contents of mystr as: > > indices0 1 2 3 4 5 6 7 8 > contentm y s t r i n g > > with mystr[:3] = 'my ' > > Can someone explain to me how mystr[:3:-1] = 'gnirt'? A slice [i:j:k] includes the first i

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Lawrence Oluyede
Tim Chase <[EMAIL PROTECTED]> wrote: > Any respectable comparison of Python web frameworks should > include evaluation of at least Django and TG. Or at least give > good reason why the comparison excludes them. I think you didn't read the foreword of the comparison. That is by no means a comprehe

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Lawrence Oluyede
Jorge Godoy <[EMAIL PROTECTED]> wrote: > What is good, since a lot of good things from Pylons will work with TG and a > lot of good TG things will remain (and possibly be compatible with Pylons). > If you take a better look at "the next version", you'll also see that the > major concern was with WS

Re: Cross platform way of finding number of processors on a machine?

2007-10-06 Thread Lawrence Oluyede
Paul Boddie <[EMAIL PROTECTED]> wrote: > From the experiments I've done with pprocess [1], pretending that a > hyperthreading "virtual CPU" is as good as a real CPU (or CPU core) > tends to be counter-productive: the performance benefits in moving > from the utilisation of one to two "virtual CPUs"

Re: slice with negative stride

2007-10-06 Thread Mark T
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm really confused about results of slices with negative strides. For > example > >>>mystr = 'my string' > > I would have then thought of the contents of mystr as: > > indices0 1 2 3 4 5 6 7 8 > contentm y s t r i n g > > wi

Re: slice with negative stride

2007-10-06 Thread Paul Hankin
On Oct 6, 1:05 pm, [EMAIL PROTECTED] wrote: > I'm really confused about results of slices with negative strides. For > example > > >>mystr = 'my string' > ... > Can someone explain to me how mystr[:3:-1] = 'gnirt'? You've omitted the first number in the slice: python uses a sensible default for it

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Michele Simionato
On Oct 6, 9:13 am, Bruno Desthuilliers wrote: > - talking about routes, you say: > > """ > I have no Ruby On Rails background, so I don't see the advantages of routes. > """ > > I don't have any RoR neither, but as far as I'm concerned, one of the > big points with routes is url_for(), that avoids

Re: Cross platform way of finding number of processors on a machine?

2007-10-06 Thread Paul Boddie
On 6 Okt, 12:45, [EMAIL PROTECTED] (Lawrence Oluyede) wrote: > > From processing : [...] > num = os.sysconf('SC_NPROCESSORS_ONLN') It's interesting what new (or obscure) standard library functions (and system functions) can be disco

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Bruno Desthuilliers
Michele Simionato a écrit : > At work we are shopping for a Web framework, so I have been looking at > the available options > on the current market. In particular I have looked at Paste and Pylons > and I have written my > impressions here: > > http://www.phyast.pitt.edu/~micheles/python/yet-anot

Re: my Python lib is broken

2007-10-06 Thread Bruno Rezende
Thanks for the information! Indeed, I was geting an error when trying to do: from xml.dom import minidom but it was because there is a xml.py file inside the same package, so it happens a conflict... On Oct 6, 9:22 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2007/10/6, Bruno Rezende <[EMAI

Re: my Python lib is broken

2007-10-06 Thread Guilherme Polo
2007/10/6, Bruno Rezende <[EMAIL PROTECTED]>: > Hi, > > I think I've broken my python installation (don't know how). All the > packages that are under 'lib' in python installation doesn't work the > way expected: > > >>> import xml > >>> xml.dom > Traceback (most recent call last): > File "", lin

Re: Segmentation fault..

2007-10-06 Thread Bruno Desthuilliers
Jorge Godoy a écrit : > Abandoned wrote: > >> Hi.. >> I run a my script and 3-4 minutes later give me an error "segmentation >> fault". >> What is the reason of this error ? >> >> I use in my script: >> Threading >> Psycopg2 >> open & write to txt >> urlopen >> >> My platform is ubuntu linux. >> >

slice with negative stride

2007-10-06 Thread ajcppmod
I'm really confused about results of slices with negative strides. For example >>mystr = 'my string' I would have then thought of the contents of mystr as: indices0 1 2 3 4 5 6 7 8 contentm y s t r i n g with mystr[:3] = 'my ' Can someone explain to me how mystr[:3:-1] = 'gnirt'? I

my Python lib is broken

2007-10-06 Thread Bruno Rezende
Hi, I think I've broken my python installation (don't know how). All the packages that are under 'lib' in python installation doesn't work the way expected: >>> import xml >>> xml.dom Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'dom'

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Michele Simionato
On Oct 6, 7:15 am, Jorge Godoy <[EMAIL PROTECTED]> wrote: > Tim Chase wrote: > > Any respectable comparison of Python web frameworks should > > include evaluation of at least Django and TG. Or at least give > > good reason why the comparison excludes them. Mine is not a respectable comparison of

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Jorge Godoy
Lawrence Oluyede wrote: > Thomas Wittek <[EMAIL PROTECTED]> wrote: >> At least, you missed Turbo Gears :) >> http://turbogears.org/ >> For me, it feels more integrated than Pylons. > > Yeah, so integrated that the next version will be based upon Pylons ;-) ? What is good, since a lot of good thi

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Jorge Godoy
Tim Chase wrote: > Any respectable comparison of Python web frameworks should > include evaluation of at least Django and TG. Or at least give > good reason why the comparison excludes them. When he said that he didn't want anything complex neither anything that used a templating system, I thou

Re: Segmentation fault..

2007-10-06 Thread Jorge Godoy
Abandoned wrote: > Hi.. > I run a my script and 3-4 minutes later give me an error "segmentation > fault". > What is the reason of this error ? > > I use in my script: > Threading > Psycopg2 > open & write to txt > urlopen > > My platform is ubuntu linux. > > I'm sorry my bad english. > King re

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Tim Chase
>> At work we are shopping for a Web framework, so I have been >> looking at the available options on the current market. > > At least, you missed Turbo Gears :) > http://turbogears.org/ > For me, it feels more integrated than Pylons. Django [1] barely gets anything more than a mention as well.

Segmentation fault..

2007-10-06 Thread Abandoned
Hi.. I run a my script and 3-4 minutes later give me an error "segmentation fault". What is the reason of this error ? I use in my script: Threading Psycopg2 open & write to txt urlopen My platform is ubuntu linux. I'm sorry my bad english. King regards.. -- http://mail.python.org/mailman/list

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Lawrence Oluyede
Thomas Wittek <[EMAIL PROTECTED]> wrote: > At least, you missed Turbo Gears :) > http://turbogears.org/ > For me, it feels more integrated than Pylons. Yeah, so integrated that the next version will be based upon Pylons ;-) ? -- Lawrence, oluyede.org - neropercaso.it "It is difficult to get a ma

Re: Cross platform way of finding number of processors on a machine?

2007-10-06 Thread Lawrence Oluyede
John <[EMAIL PROTECTED]> wrote: > Is there a way to find the number of processors on a machine (on linux/ > windows/macos/cygwin) using python code (using the same code/cross > platform code)? >From processing : def cpuCount(): ''' Retur

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Thomas Wittek
Michele Simionato: > At work we are shopping for a Web framework, so I have been looking at > the available options > on the current market. At least, you missed Turbo Gears :) http://turbogears.org/ For me, it feels more integrated than Pylons. -- Thomas Wittek Web: http://gedankenkonstrukt.de/

Yet another comparison of Python Web Frameworks

2007-10-06 Thread Michele Simionato
At work we are shopping for a Web framework, so I have been looking at the available options on the current market. In particular I have looked at Paste and Pylons and I have written my impressions here: http://www.phyast.pitt.edu/~micheles/python/yet-another-comparison-of-web-frameworks.html I d

Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...')

2007-10-06 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, timw.google wrote: > I want to write a python script that runs rsync on a given directory > and host. I build the command line string, but when I try to run > subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),or > os.system(cmd), I get prompted for my log

Re: tkinter question

2007-10-06 Thread Hendrik van Rooyen
"Kevin Walzer" <[EMAIL PROTECTED]> wrote: > I find "pack" to be more flexible than "grid," so I prefer it for > complex layouts. "grid" is better for simple layouts. *does a double take* are you serious? - my experience is that pack is only good for simple single row or single column stuff. -

Re: Please Help me

2007-10-06 Thread Hendrik van Rooyen
Jean-Francois Canac wrote: 8< -- duplicate request --- see other answer. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list