Re: OO design

2005-07-19 Thread flupke
Robert Kern wrote: > chris wrote: > >> When I think about what I should do I end up with a class XY that has a >> method for everything I want to do eg. >> >> class XY: >> def read_file >> def scale_data >> def plot_data >> def shelve_data >> >> But somehow that doesn't feel right, especia

Re: Web Framework Reviews

2005-07-19 Thread flupke
Dave Cook wrote: > On 2005-07-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >>On the other hand I even in its current form I don't see how I would to >>the simple things that I need every day. Create a session, set a >>cookie, redirect to another url, perform HTTP autentication, create >>

Re: Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-19 Thread Chris
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> writes >On Tue, 19 Jul 2005 07:24:19 +0100, Chris wrote: >> Could anyone write a small program to log the Signal-to-Noise figures >> for a Netgear DG834 router? >Are you offering to pay somebody to do it, or just suggesting a pr

Re: Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-19 Thread Chris
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes >Chris, How would a wireless router show a signal to noise ratio? >Especially if it's providing the signal? The Netgear DG834 is a wired router. Its statistics page gives line loss and SNR. -- Chris -- http://mail.py

Re: Ordering Products

2005-07-19 Thread Kay Schluehr
Ron Adam wrote: > Kay Schluehr wrote: > > > > Hi Ron, > > > > I really don't want to discourage you in doing your own CAS but the > > stuff I'm working on is already a bit more advanced than my > > mono-operational multiplicative algebra ;) > > I figured it was, but you offered a puzzle: > >"He

Re: Python Programming Contest

2005-07-19 Thread Raymond Hettinger
[Brian Quinlan] > I'm doing to judge the solutions based on execution speed. It sucks but > that is the easiest important consideration to objectively measure. . . . > I'm always looking for feedback, so let me know what you think or if you > have any ideas for future problems. I'm curious about

Re: email format in python

2005-07-19 Thread Dark Cowherd
This seems to give reasonable results. import re pattern = r'[EMAIL PROTECTED],4}\b' pattobj = re.compile(pattern) ps = pattobj.search if ps(stringtocheck): But as lots of people have already told you on this list. This should only be used to give a warning and not prevent the use of that p

Re: Read only files

2005-07-19 Thread Mike Meyer
Pranav Bagora <[EMAIL PROTECTED]> writes: > Hello, > > I am getting a permission Denied error when i am > trying to make changes in some read only files in a > directory. How do we check and change the read only > attributes of files in python. You want the os.stat and os.chmod functions.

Re: email format in python

2005-07-19 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > Agree. In the case of user input validation, it might be ok to politely > inform the user that the address looks a bit funny, but refusing to work > with it will anger a user sooner or later. Yup. I use cryptographically signed addresses as one-time addre

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Mike Meyer
"Simon Dahlbacka" <[EMAIL PROTECTED]> writes: > Short answer: Not using HTTP. > > However, you can use something like AJAX to just load new data from > time to time and not the entire page. AJAX is overkill for this. If you just want to automatically refresh the page automatically, you can use a

access the text being generated in other windows

2005-07-19 Thread algebraist
hi, newbie question here i play poker on partypoker and ultimate bet (both of which have clients you have to download)... i was thinking of writing a program that used the hand histories these clients generate (in little text boxes within the client) is there a way python can access the text bein

Re: retrieving https pages

2005-07-19 Thread Mike Meyer
Eric <[EMAIL PROTECTED]> writes: > I'm using Linux - Manriva LE2005, python 2.3 (or i can also use python 2.4 > on my other system just as well). > Anyways... > I want to get a web page containing my stock grants. > The initial page is an https and there is a form on it to > fill in your username

Re: goto

2005-07-19 Thread Mike Meyer
Rocco Moretti <[EMAIL PROTECTED]> writes: > Leif K-Brooks wrote: >> rbt wrote: >> >>>IMO, most of the people who deride goto do so because they heard or read >>> where someone else did. >> 1 GOTO 17 >> 2 mean,GOTO 5 >> 3 couldGOTO 6 >> 4 with GOTO 7 >> 5 what G

Re: Python IDE

2005-07-19 Thread Luis M. Gonzalez
linuxfreak wrote: > Hi guys, >Got going with python...and i must say its a pretty cool language. > Been using Xemacs to write me programs. But I want an IDE that would > give me auto-completion, online help and the like... Tried SPE and > Dr.Pyhton but the former crashes regulary and the latt

Re: socket programming

2005-07-19 Thread Terry Reedy
"Helge Aksdal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >* Terry Reedy <[EMAIL PROTECTED]> [2005/07/19 22:57]: > >> Ask your server administrator if you are bumping up against a hidden >> connection limit. Or if a query can ask about multiple accounts. > > how can i use a conn

Re: popen2 usage

2005-07-19 Thread Steven Bethard
jb wrote: > Hi there: > > I need help with popen2 usage. I am coding on Windows 2000 environment > and I am basically trying to run command line executable program that > accepts command line arguments from user. I want to be able to provide > these arguments through input pipe so that executable

Re: OO design

2005-07-19 Thread Terry Hancock
On Tuesday 19 July 2005 05:09 am, chris wrote: > So its feels like I need to get into class programming > with all its attendant benefits. However my biggest problem is a conceptual > one. I just can't get my head around defining suitable classes, how they > aquire data and communicate with each o

Re: How do I send keystrokes to a console window in Windows XP?

2005-07-19 Thread Peter Hansen
RTG wrote: > With this capability, other possibilities open up. > Is there a way to read the output from the from the console window? > For example, how can we capture the output of the dir command? Normally one does that using a call to things like os.popen, or using the new subprocess module.

Re: goto

2005-07-19 Thread Terry Hancock
On Monday 18 July 2005 06:48 am, Hayri ERDENER wrote: > hi, > what is the equivalent of C languages' goto statement in python? > best regards For the only valid uses of C's "goto", you should use the "try-except" or the "for/while-break-else" idioms. See the "language reference" for details on t

Re: What does "::" mean?

2005-07-19 Thread Robert Kern
could ildg wrote: > I know that ":" can do slice works. > But I saw "::" today and it puzzled me much, > I can't find it in the python doc, > so I raise this question here. > The code is as below: > -- > Jython 2.2a1 on java1.5.0_03 (JIT: null

Re: Python s60 Contact DB

2005-07-19 Thread could ildg
You should raise this question at Nokia python for series60 forum, I'm sure you can the answer there. http://discussion.forum.nokia.com/forum/forumdisplay.php?s=85e4c1acee330fddde6b47a7b2feae73&forumid=102 On 19 Jul 2005 06:47:10 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, i hope th

What does "::" mean?

2005-07-19 Thread could ildg
I know that ":" can do slice works. But I saw "::" today and it puzzled me much, I can't find it in the python doc, so I raise this question here. The code is as below: -- Jython 2.2a1 on java1.5.0_03 (JIT: null) Type "copyright", "credits" or

Re: I just wanna know about os.path module..

2005-07-19 Thread Terry Hancock
On Sunday 17 July 2005 12:47 pm, kimes wrote: > Thanks for all you guys help.. > I'm still confused about that.. > When I just call import os.path without calling import os.. > In that case, you mean 'import os' is called implicitly? > Why? and How? > > how python knows it should call import when

Re: Web Framework Reviews

2005-07-19 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: >>Templating engines like ZPT prefer to put some code in the template, >>Nevow prefers to put code in python and allow you to write some xhtml in >>python too. > > Oh yeah, now I remeber, I think this is a controversial idea. One important thing to realise about Nevow is

Re: OO design

2005-07-19 Thread corey . coughlin
I also have a little trouble with creating megaclasses. Usually I just try to think about what things are a little bit, and how I'm going to be using them. I think somebody else suggested a top down approach, and that makes a certain amount of sense. But at this point, you're probably getting ti

Re: How to kill easygui dialog?

2005-07-19 Thread William Park
[EMAIL PROTECTED] wrote: > I am using an easygui(http://www.ferg.org/easygui/index.html) dialog > (enterbox) to retrieve some info from a user. The program then goes on > and does a bit of processing, sometimes for several minutes. In the > meantime, the dialog stays there, dead but visible. I woul

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-19 Thread Mike Meyer
Thomas Bartkus <[EMAIL PROTECTED]> writes: > On Mon, 18 Jul 2005 19:56:24 -0400, Mike Meyer wrote: > >> "Thomas Bartkus" <[EMAIL PROTECTED]> writes: > Re-train on a new platform, > and re-write from scratch? >>> >>> What do you do when an open source project you were using gets >>> aband

Re: Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-19 Thread Grant Edwards
On 2005-07-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Chris, How would a wireless router show a signal to noise ratio? On a web page. > Especially if it's providing the signal? It receives as well. At least mine does. Data goes both in and out. -- Grant Edwards gra

Re: socket programming

2005-07-19 Thread John Hazen
* Helge Aksdal <[EMAIL PROTECTED]> [2005-07-19 11:23]: > if i then change to a console window, and telnet to this server it > sends me to another one. That's probably why my program dies, how > can i get my code to handle this? > > Trying xxx.xxx.xxx.xxx > telnet: connect to address xxx.xxx.xxx.xx

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Leif K-Brooks
Admin wrote: > I am creating a chat application like Messenger for the web (using the > browser) and I'm wondering if there is a way to receive new messages > from time to time from the server other than refreshing the page each 5 > sec. Here's a pretty basic example I wrote a while ago using Tw

Re: time string conversion

2005-07-19 Thread jepler
def smadi(s): h, m, s = s.split(":") h = int(h) m = int(m) s = float(s) return s + m*60 + h * 3600 >>> print smadi("16:23:20.019519") 59000.019519 Jeff pgpWjc1O3xtLf.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-19 Thread [EMAIL PROTECTED]
Chris, How would a wireless router show a signal to noise ratio? Especially if it's providing the signal? -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread John Machin
Kay Schluehr wrote: > > Peter Hansen schrieb: > >>Kay Schluehr wrote: >> >>>The documentation of the Python console behaviour is not correct >>>anymore for Python 2.4.1. At least for the Win2K system I'm working on >>>'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc. >>> >>>The Python int

Re: How to send a query to the browser from time to time?

2005-07-19 Thread [EMAIL PROTECTED]
rewrite the server to bake a /lastmsg/ folder with the last message in it. otherwise, my only suggestion is to use another protocol instead of http. -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows command line problem

2005-07-19 Thread [EMAIL PROTECTED]
I think the lesson there is 'dont depend on getopt, write your own command line parser'. I always write my own, as it's so easy to do. -- http://mail.python.org/mailman/listinfo/python-list

Re: OO design

2005-07-19 Thread Robert Kern
chris wrote: > When I think about what I should do I end up with a class XY that has a > method for everything I want to do eg. > > class XY: > def read_file > def scale_data > def plot_data > def shelve_data > > But somehow that doesn't feel right, especially when I expect the number of

Re: socket programming

2005-07-19 Thread Grant Edwards
On 2005-07-19, Helge Aksdal <[EMAIL PROTECTED]> wrote: > if i then change to a console window, and telnet to this > server it sends me to another one. What do you mean "sends me to another one"? The telnet protocol doesn't have any sort of "redirect" capability. > That's probably why my program

Re: Jython Released

2005-07-19 Thread Dave Benjamin
Ramza Brown wrote: >> >> I figured it out. You might want to document this somewhere. ;) >> java -cp jython_Release_2_2alpha1.jar >> org.python.util.install.Installation > > Did you try double clicking on the jar. That is what most do or at > least the last package supported that. Yeah. It ope

Re: socket programming

2005-07-19 Thread Helge Aksdal
* Jaime Wyant <[EMAIL PROTECTED]> [2005/07/19 23:09]: > I don't think you can use a limit to your advantage. If you are > bumping against some limit and you can't query for multiple accounts > then there doesn't seem to be much you can really do. The problem would be solved, if i just could get

Re: Finding # prefixing numbers

2005-07-19 Thread Caleb Hattingh
You really owe it to yourself to try the PyParsing package, if you have to do this kind of thing with any frequency. The syntactic difference between PyParsing and regular expressions is greater than the syntactic difference between Python and C. thx Caleb On Tue, 19 Jul 2005 13:35:02 +0200,

Re: OO design

2005-07-19 Thread Caleb Hattingh
Chris > 1. get arbitrary numerical data (typically large data sets in columnar > format or even via COM from other packages. I generally have to deal with > one or more sets of X,Y data) > 2. manipulate the data (scaling, least squares fitting, means, peaks, > add/subtract one XY set from another

Re: socket programming

2005-07-19 Thread Jaime Wyant
On 7/19/05, Helge Aksdal <[EMAIL PROTECTED]> wrote: > * Terry Reedy <[EMAIL PROTECTED]> [2005/07/19 22:57]: > > > Ask your server administrator if you are bumping up against a hidden > > connection limit. Or if a query can ask about multiple accounts. > > how can i use a connection limit to my a

Re: Ordering Products

2005-07-19 Thread Ron Adam
Kay Schluehr wrote: > Hi Ron, > > I really don't want to discourage you in doing your own CAS but the > stuff I'm working on is already a bit more advanced than my > mono-operational multiplicative algebra ;) I figured it was, but you offered a puzzle: "Here might be an interesting puzzle f

Re: socket programming

2005-07-19 Thread Helge Aksdal
* Terry Reedy <[EMAIL PROTECTED]> [2005/07/19 22:57]: > Ask your server administrator if you are bumping up against a hidden > connection limit. Or if a query can ask about multiple accounts. how can i use a connection limit to my advantage? i know for certain that a query can't ask about multi

Re: socket programming

2005-07-19 Thread Terry Reedy
"Helge Aksdal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >* Jaime Wyant <[EMAIL PROTECTED]> [2005/07/19 21:26]: > >> It sounds really strange to connect to a server "several hundred" >> times. If I had to guess, the server monitored all of the connects >> coming from your IP ad

[ANN] python-dateutil 1.0

2005-07-19 Thread Gustavo Niemeyer
Changes since 0.9 - * Fixing parsing of XXhXXm formatted time after day/month/year has been parsed. * Adding patch by Jeffrey Harris optimizing rrule.__contains__. What is it? --- The dateutil module provides powerful extensions to the standard datetime module, availab

Re: socket programming

2005-07-19 Thread Helge Aksdal
* Jaime Wyant <[EMAIL PROTECTED]> [2005/07/19 21:26]: > It sounds really strange to connect to a server "several hundred" > times. If I had to guess, the server monitored all of the connects > coming from your IP address and eventually stopped accepting ANY > connections. That's really what it e

Re: Differences between RDFlib - 4RDF and Redfoot - 4Suite?

2005-07-19 Thread Elmo Mäntynen
On Fri, 15 Jul 2005 09:50:38 -0700, uche.ogbuji wrote: > I'd say for now if you just need quick RDF parsing, and you're not also > using plain XML, and stuff like Versa RDF query language aren't > important to you, you'll get along just fine with rdflib. Thanks for the insight! -- http://mail.p

Re: Web Framework Reviews

2005-07-19 Thread Valentino Volonghi aka Dialtone
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I think the difficulties will arise from the inability to visually > track closing tags. > ]]] versus You can do things like: t.html[ t.head[ t.title["Foobar"] ], t.body[ t.p["This is some content"] ] ] This is not

Re: Web Framework Reviews

2005-07-19 Thread [EMAIL PROTECTED]
> don't see why this would have problems 'scaling' or would be > more difficult to visualise than a the equivalent tag soup html. I think the difficulties will arise from the inability to visually track closing tags. ]]] versus > Templating engines like ZPT prefer to put some code in the templat

time string conversion

2005-07-19 Thread M.N.A.Smadi
hi; i have a string that look like 16:23:20.019519 (i.e. system time) without days and months. I want to convert it to just one long floating point number with as many decimal places as possible. is there a funciton to do that? thanks ms -- http://mail.python.org/mailman/listinfo/python-lis

Re: Cursor navigation

2005-07-19 Thread Andy Dustman
TA wrote: > Hi, > > This might be a silly question, but I was wondering how you would navigate > backwards in a PostgreSQL cursor when the Python DB-API 2.0 allows records > to be fetched in a forward-only manner? This is untrue: cursor.scroll() is an optional DB-API 2.0 extension. http://www.pyt

Re: Web Framework Reviews

2005-07-19 Thread Tim Parkin
[EMAIL PROTECTED] wrote: > One remark regarding stan. For me it is inconceivable that one would > build (and debug) any complicated webpage as stan does it, one element > at a time: > > docFactory = loaders.stan( > t.html[t.head[t.title["Session example"]], > t.body[display_se

Re: socket programming

2005-07-19 Thread Jaime Wyant
It sounds really strange to connect to a server "several hundred" times. If I had to guess, the server monitored all of the connects coming from your IP address and eventually stopped accepting ANY connections. jw On 7/19/05, Helge Aksdal <[EMAIL PROTECTED]> wrote: > i've recently made my very f

Re: Jython Released

2005-07-19 Thread Ramza Brown
Dave Benjamin wrote: > Dave Benjamin wrote: > >> Ramza Brown wrote: >> >>> This is an update from Brian Zimmer of the Jython group, new release: >> >> >> Great news! >> >>> - new installer >> >> >> How do I use it? > > > I figured it out. You might want to document this somewhere. ;) > java -cp

How to kill easygui dialog?

2005-07-19 Thread utabintarbo
I am using an easygui(http://www.ferg.org/easygui/index.html) dialog (enterbox) to retrieve some info from a user. The program then goes on and does a bit of processing, sometimes for several minutes. In the meantime, the dialog stays there, dead but visible. I would prefer that either another dial

Re: CONNCET TO SOAP SERVICE

2005-07-19 Thread Oliver Andrich
Hi, I am not sure if this addresses your problem, but I access a rich SOAP based webservice set on a Tomcat Server implemented using Axis with SOAPpy. We use basic auth as specified in http for access control to these services. For me it is enough to create my proxy classes this way. proxy = SOA

popen2 usage

2005-07-19 Thread jb
Hi there: I need help with popen2 usage. I am coding on Windows 2000 environment and I am basically trying to run command line executable program that accepts command line arguments from user. I want to be able to provide these arguments through input pipe so that executable does not require any

Re: OO design

2005-07-19 Thread Dave Cook
On 2005-07-19, chris <[EMAIL PROTECTED]> wrote: > I've been scripting with python for a while now. Basically writing a few > functions and running in the ipython shell. That's been very useful. But the > more I do this the more I see that I'm doing more or less the same thing > over and over again

Re: Web Framework Reviews

2005-07-19 Thread Josef Meile
> "barely use python with it" and "can only be used with these two" are > not entirely true. Zope development can be done in a through-the-web > (TTW) fashion or via filesystem products. When developing TTW, it > is true that you are somewhat limited in the amount of Python that > you will be abl

socket programming

2005-07-19 Thread Helge Aksdal
i've recently made my very first socket program in python, however i've stumbled upon a problem. this program connects to a server serveral hundred time while it's executed (it's not possible to let connection stay up, because the server closes it), and after a time my program dies with the error:

Re: Web Framework Reviews

2005-07-19 Thread John Ziniti
[EMAIL PROTECTED] wrote: > I thought it would make sense to write up some of my experiences with > python based web frameworks: > > http://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html > From the web-page: """ Zope - Generation Z ... Weakness: Not pythonic. In fact you can barely u

Re: Web Framework Reviews

2005-07-19 Thread Valentino Volonghi aka Dialtone
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I think you should take what you posted above and put it up on your > main site, because right now there is no way to find any information > like this. Your entire intro is about templating and leaves one with > no clues as to what else is there. Ri

Re: dictionary as property

2005-07-19 Thread Thanos Tsouanas
On Tue, Jul 19, 2005 at 07:00:10PM +0200, Gerhard Haering wrote: > On Tue, Jul 19, 2005 at 07:56:20PM +0300, Thanos Tsouanas wrote: > > Hello. > > > > (How) can I have a class property d, such that d['foo'] = 'bar' will run > > a certain function of the class with 'foo' and 'bar' as it's arguments

Re: Web Framework Reviews

2005-07-19 Thread [EMAIL PROTECTED]
> It seems to me that you really never tracked Nevow, your information is > very incomplete. I think you should complete it before talking about Nevow I think you should take what you posted above and put it up on your main site, because right now there is no way to find any information like this

Re: main window in tkinter app

2005-07-19 Thread William Gill
It also seems to operate the same with or without " app.mainloop()". Is an explicit call to mainloop needed? William Gill wrote: > O.K. I tried from scratch, and the following snippet produces an > infinite loop saying: > > File "C:\Python24\lib\lib-tk\Tkinter.py", line 1647, in __getattr__

Re: goto

2005-07-19 Thread Fernando Perez
Steven Bethard wrote: > Fernando Perez wrote: >> Steven Bethard wrote: >> >>>Download the goto module: >>> http://www.entrian.com/goto/ >>>And you can use goto to your heart's content. And to the horror of all >>>your friends/coworkers. ;) >> >> That is actually a _really_ cool piece of code

Re: Jython Released

2005-07-19 Thread Dave Benjamin
Dave Benjamin wrote: > Ramza Brown wrote: > >> This is an update from Brian Zimmer of the Jython group, new release: > > Great news! > >> - new installer > > How do I use it? I figured it out. You might want to document this somewhere. ;) java -cp jython_Release_2_2alpha1.jar org.python.util.

Re: Jython Released

2005-07-19 Thread Dave Benjamin
Ramza Brown wrote: > This is an update from Brian Zimmer of the Jython group, new release: Great news! > - new installer How do I use it? Thanks, Dave -- http://mail.python.org/mailman/listinfo/python-list

Re: main window in tkinter app

2005-07-19 Thread William Gill
O.K. I tried from scratch, and the following snippet produces an infinite loop saying: File "C:\Python24\lib\lib-tk\Tkinter.py", line 1647, in __getattr__ return getattr(self.tk, attr) If I comment out the __init__ method, I get the titled window, and print out self.var ('1') import

Re: Dictionary, keys and alias

2005-07-19 Thread Terry Reedy
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 19 Jul 2005 10:20:04 +0200, Glauco wrote: > >>> The only niggly worry I have is I'm not sure when hash can be used, >>> when >>> it is unique, or even if is it guaranteed to be unique. >>> >> >> Thank Steve,

Read only files

2005-07-19 Thread Pranav Bagora
Hello, I am getting a permission Denied error when i am trying to make changes in some read only files in a directory. How do we check and change the read only attributes of files in python. Please Help, Pranav __ Do you Yahoo!? Yahoo

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Claudio Grondi
"Lucas Raab" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Peter Hansen wrote: > > Kay Schluehr wrote: > > > >> The documentation of the Python console behaviour is not correct > >> anymore for Python 2.4.1. At least for the Win2K system I'm working on > >> 'Ctrl-Z' does not s

Your message to CMake awaits moderator approval

2005-07-19 Thread cmake-bounces
Your mail to 'CMake' with the subject test will be discarded. The reason it is being discarded is: Post by non-member to a members-only list The mailing lists at Kitware all require membership on the list to post. This is to avoid SPAM. If you are not a member on the list, and you po

gdb python C API

2005-07-19 Thread derrick
I have written a c program to interface with a newly installed version of python 2.4.1 on my system. The C program calls a module written in python that goes on to parse an xml file and do other xml specific operations. When I use the module in python, it seems to work alright, but when I try to us

Re: Web Framework Reviews

2005-07-19 Thread Dave Cook
On 2005-07-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On the other hand I even in its current form I don't see how I would to > the simple things that I need every day. Create a session, set a > cookie, redirect to another url, perform HTTP autentication, create > filter, use another tem

Re: OO design

2005-07-19 Thread gene tani
fav DP books: http://www.oreilly.com/catalog/hfdesignpat/ http://www.netobjectives.com/dpexplained/ -- http://mail.python.org/mailman/listinfo/python-list

Re: goto

2005-07-19 Thread rbt
On Wed, 2005-07-20 at 03:43 +1000, Steven D'Aprano wrote: > On Tue, 19 Jul 2005 11:29:58 -0400, rbt wrote: > > >> It should not really come as a shock that the same fellow who came up with > >> a brilliant efficient way > >> to generate all permutations (http://tinyurl.com/dnazs) is also in favor

Re: Python IDE

2005-07-19 Thread Dave Cook
On 2005-07-19, linuxfreak <[EMAIL PROTECTED]> wrote: > you guys using and what do you think is the best IDE...or should i > stick with Xemacs/emacs??? http://pydev.sf.net You get the stability of Eclipse with that, but also the fat. I swear I had code completion working in this, but last time I

Re: Web Framework Reviews

2005-07-19 Thread Valentino Volonghi aka Dialtone
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have not used Nevow but I have seen a few examples of how it works > and I kept track of it over the years. > > It used to be very similar to how Cheetah or ZPT does its job. You had > a template, and you filled it with data to produce an output. I

Re: goto

2005-07-19 Thread Steven D'Aprano
On Tue, 19 Jul 2005 11:29:58 -0400, rbt wrote: >> It should not really come as a shock that the same fellow who came up with a >> brilliant efficient way >> to generate all permutations (http://tinyurl.com/dnazs) is also in favor of >> goto. >> >> Coming next from rbt: "Pointer arithmetic in py

Re: dictionary as property

2005-07-19 Thread Gerhard Haering
On Tue, Jul 19, 2005 at 07:56:20PM +0300, Thanos Tsouanas wrote: > Hello. > > (How) can I have a class property d, such that d['foo'] = 'bar' will run > a certain function of the class with 'foo' and 'bar' as it's arguments? You could implement a custom container type that will do what you want.

Re: Web Framework Reviews

2005-07-19 Thread [EMAIL PROTECTED]
I have not used Nevow but I have seen a few examples of how it works and I kept track of it over the years. It used to be very similar to how Cheetah or ZPT does its job. You had a template, and you filled it with data to produce an output. It seems that it has now more features such a form submis

dictionary as property

2005-07-19 Thread Thanos Tsouanas
Hello. (How) can I have a class property d, such that d['foo'] = 'bar' will run a certain function of the class with 'foo' and 'bar' as it's arguments? Thanks in advance. -- Thanos Tsouanas .: My Music: http://www.thanostsouanas.com/ http://thanos.sians.org/ .: Sians Music: http://www.

Re: secure uploading

2005-07-19 Thread Jorgen Grahn
On 16 Jul 2005 18:28:33 -0700, macaronikazoo <[EMAIL PROTECTED]> wrote: > well I want a script to upload something automatically, so i need a > python script to do that for me. Well, you need /something/. If you are on a Unix machine, you'd be better off with a cron job. > my hoster has ssl enabl

Re: Xah's edu corner: on Microsoft hatred

2005-07-19 Thread John Bokma
"Default User" <[EMAIL PROTECTED]> wrote: > A good newsreader and aggressive use of filtering is the best way to > handle such people. The best way is to complain with their ISP/USP and have their account canceled. Kill filing (filtering) is just closing your eyes. -- John Sm

Re: Xah's edu corner: on Microsoft hatred

2005-07-19 Thread John Bokma
"Malcolm" <[EMAIL PROTECTED]> wrote: > > "John Bokma" <[EMAIL PROTECTED]> wrote >> A typical Xah Lee posting... wake me up when he is able to write a >> single post that makes and sense, and doesn't contain fuck or similar >> words. >> > Obscene language isn't acceptable on comp.lang.c. > > It

Re: email format in python

2005-07-19 Thread Jorgen Grahn
On Mon, 18 Jul 2005 06:44:36 -0400, Benji York <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> I want to have the python equivalent function of this >> (that checks email format) >> ... >> if (ereg("[[:alnum:[EMAIL PROTECTED]:alnum:]]+\.[[:alnum:]]+", ... > > While it is possible to tra

Re: python certification

2005-07-19 Thread Luis M. Gonzalez
[EMAIL PROTECTED] wrote: > i want to get a small certificate or diploma in python. > it should be online cuz i live in pakistan and wont have teast centers > near me. > it should be low cost as i am not rich. > and hopefully it would be something like a a begginer certification cuz > i am new to py

Re: Xah's edu corner: on Microsoft hatred

2005-07-19 Thread Default User
J|rgen Exner wrote: > Just for the records at Google et.al. in case someone stumbles across > Xah's masterpieces in the future: > Xah is very well known as the resident troll in many NGs and his > 'contributions' are less then useless. > > Best is to just ignore him. I already had him killfil

Re: Can I make the Python build use an already-installed version of Expat?

2005-07-19 Thread Steve Juranich
On 7/19/05, Bernhard Herzog <[EMAIL PROTECTED]> wrote: > This sounds like this bugreport on sourceforge: > http://python.org/sf/1075984 Thanks! I applied the workaround posted by `bos' and things seem to work now. -- Steve Juranich Tucson, AZ USA -- http://mail.python.org/mailman/listinfo/pyth

Re: python certification

2005-07-19 Thread [EMAIL PROTECTED]
I haven't had a change to check it out, but www.guruishcool.com has a python certificate. -- http://mail.python.org/mailman/listinfo/python-list

Re: Web Framework Reviews

2005-07-19 Thread Valentino Volonghi aka Dialtone
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I thought it would make sense to write up some of my experiences with > python based web frameworks: > > http://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html You've never used Nevow, have you? Comparing it to Cheetah or ZPT means that you

Re: print ending with comma

2005-07-19 Thread André Roberge
[EMAIL PROTECTED] wrote: [snip] > > A "\n" character is written at the end, unless the print statement ends > with a comma. > > What it doesn't say is that if the print statement does end with a > comma, a trailing space is printed. > -- > But this isn't exactly correct either. If you run this pr

Jython Released

2005-07-19 Thread Ramza Brown
This is an update from Brian Zimmer of the Jython group, new release: "There is a new release of Jython available at Sourceforge: http://sourceforge.net/project/showfiles.php?group_id=12867 This release includes many major changes since the last full release: - new-style classes - Java Coll

Re: print ending with comma

2005-07-19 Thread Duncan Booth
wrote: > I recently ran into the issue with 'print' were, as it says on the web > page called "Python Gotchas" > (http://www.ferg.org/projects/python_gotchas.html): > > The Python Language Reference Manual says, about the print statement, > > A "\n" character is written at the end, unless the p

Re: Are there any decent python memory profilers available?

2005-07-19 Thread Michael Hudson
[EMAIL PROTECTED] writes: > I have a rather large python application (uses around 40MB of memory to > start) that gradually chews up memory over many hours. I've done a > little googling around, but it looks like I'm faced with prowling > through the gc.get_objects() myself. I need a tool to ident

print ending with comma

2005-07-19 Thread jamesthiele . usenet
I recently ran into the issue with 'print' were, as it says on the web page called "Python Gotchas" (http://www.ferg.org/projects/python_gotchas.html): The Python Language Reference Manual says, about the print statement, A "\n" character is written at the end, unless the print statement ends wit

Re: goto

2005-07-19 Thread rbt
On Tue, 2005-07-19 at 10:02 -0400, George Sakkis wrote: > "rbt" <[EMAIL PROTECTED]> wrote: > > > On Mon, 2005-07-18 at 12:27 -0600, Steven Bethard wrote: > > > Hayri ERDENER wrote: > > > > what is the equivalent of C languages' goto statement in python? > > > > > > Download the goto module: > > >

Web Framework Reviews

2005-07-19 Thread [EMAIL PROTECTED]
Hello All, I thought it would make sense to write up some of my experiences with python based web frameworks: http://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html best, Istvan. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >