Re: Ordering Products

2005-07-19 Thread Kay Schluehr
Diez B.Roggisch wrote: > > I have to admit that I don't understand what you mean with the > > 'constant parts' of an expression? > > >From what I percieved of your example it seemed to me that you wanted to > evaluate the constants like 7*9 first, so that an expression like > > a * 7 * 9 * b > > wi

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

2005-07-19 Thread jkn
Hi Chris > Could anyone write a small program to log the Signal-to-Noise figures > for a Netgear DG834 router? > many people could, I'm sure, if not quite _anyone_ > I have been getting very variable SNR readings - and I would like to > collect some evidence to analyse. I see. > > What is need

How to write at a sppecific location

2005-07-19 Thread Pooja
Hi All I have one csv file which has some data related to test results. It has following information TestId,Expectedres,Actualres 101,12,13 102,13 103,14 If I want to write ActualRes value in the file , How to do that. I tried using seek but its not working. I am not able to write at a specific

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

2005-07-19 Thread ncf
I'm sure that nobody here is willing to write it for you. However, I believe that jkn was right in trying to get you to solve the problem. ;) You know what you need to do, but how are you going to do it? Create a flow chart ;) -- http://mail.python.org/mailman/listinfo/python-list

RE: How to write at a sppecific location

2005-07-19 Thread Vishnu
Hi Pooja, Check the fileinput module's input function. ~Vishnu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pooja Sent: Tuesday, July 19, 2005 12:29 PM To: [email protected] Subject: How to write at a sppecific location Hi All I have one csv fi

Re: goto

2005-07-19 Thread Sybren Stuvel
rbt enlightened us with: > Many of the world's most profitable software companies (MS for > example) have thousands of goto statements in their code... oh the > horror of it all. Why aren't these enlightened-by-the-gods > know-it-alls as profitable as these obviously ignorant companies? They write

Re: Windows command line problem

2005-07-19 Thread MarkE
I'm using getopt. I doubt getopt recognises \x96 as a command line parameter prefix. I suppose I could iterate over sys.argv doing a replace but that seems messy. I'd rather understand the problem. That said, and me not understanding code pages that much, I chcp'd the machines it works on both com

BOUNCE [EMAIL PROTECTED]: Non-member submission from [EMAIL PROTECTED]

2005-07-19 Thread owner-discussion
>From [EMAIL PROTECTED] Tue Jul 19 04:14:47 2005 Received: from mtl-smtpgw2.global.avidww.com (mtl-smtpgw2.global.avidww.com [172.24.33.104]) by paperboy.global.avidww.com (8.12.9/8.12.6) with ESMTP id j6J8ElvQ003608 for <[EMAIL PROTECTED]>; Tue, 19 Jul 2005 04:14:47 -0400 Receive

Re: Dictionary, keys and alias

2005-07-19 Thread Glauco
Steven D'Aprano wrote: > On Mon, 18 Jul 2005 12:17:37 +0200, Glauco wrote: > > >>I want to insert a concept of alias in a dict_based class. >> >>The idea is to have a facoltative name in the same dict that correspond >>at the same value. With this alias i can change original value. >> >>example

Re: Filtering out non-readable characters

2005-07-19 Thread Ross
On 15 Jul 2005 17:33:39 -0700, "MKoool" <[EMAIL PROTECTED]> wrote: >I have a file with binary and ascii characters in it. I massage the >data and convert it to a more readable format, however it still comes >up with some binary characters mixed in. I'd like to write something >to just replace al

Re: Windows command line problem

2005-07-19 Thread MarkE
This was discovered after consultation with a colleague who shall remain nameless but, well, nailed it basically. The answer appears to be: An example command line for running the script was written in a word document. The "Autocorrect" (sic) feature in word replaces a normal dash at least as I kno

Re: Python Programming Contest

2005-07-19 Thread Brian Quinlan
ThanhNam Nguyen wrote: > Since my NNTP server doesnt allow posting, I'll ask you directly > instead. > > Must I start from the first day? No. > For example: > > 1st day: A --> B 100 bucks > 2nd day: A --> B 60 bucks > 3rd day: A --> B 40 bucks > > What would the solution be? And for how much i

Re: Python Programming Contest

2005-07-19 Thread Brian Quinlan
ThanhNam Nguyen wrote: >>>1st day: A --> B 100 bucks >>>2nd day: A --> B 60 bucks >>>3rd day: A --> B 40 bucks >>>What would the solution be? And for how much in total? >>> >> >>There are two correct solutions: >> >>["A", "B"] # spend one night in A, then fly to B on day two (cost 80) >>["A", "A",

Documentation bug: Python console behaviour changed

2005-07-19 Thread Kay Schluehr
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 interpreter tells me instead: >>> quit 'Use Ctrl-Z plus Return to exit.' Nah, 'Ctrl-Z' is n

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Simon Dahlbacka
My console follows documentation: C:\tmp\GspRegTestApp>c:\Python24\python ActivePython 2.4.1 Build 245 (ActiveState Corp.) based on Python 2.4.1 (#65, Mar 30 2005, 09:33:37) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ^Z C:\tmp

OO design

2005-07-19 Thread chris
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. So its feels like I need to get into class programming

Re: goto

2005-07-19 Thread Robert Kern
rbt wrote: > IMO, most of the people who deride goto do so because they heard or read > where someone else did. Or perhaps, like me, they have had to maintain FORTRAN code written by a scientist who apparently hadn't heard of subroutines. "Spaghetti" doesn't quite describe it. I've settled on

Re: OO design

2005-07-19 Thread Chris Smith
> "chris" == chris <[EMAIL PROTECTED]> writes: chris> I have no problem writing bits of functional code to do any chris> of the above. But for the life of me I can't see how I can chris> hook them altogether in an OO based framework that I can chris> build and extend (with mo

Re: Python IDE

2005-07-19 Thread [EMAIL PROTECTED]
A lot of people swear by WingIDE and as an IDE I think it's the best one there is. (Personally I prefer jed or xjed but that's because I like to work that way) -- http://mail.python.org/mailman/listinfo/python-list

Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-19 Thread Jason Tishler
Dean, On Mon, Jul 18, 2005 at 05:59:20AM -0700, Dean N. Williams wrote: > Thanks for fixing this problem. You are quite welcome. Thanks for your patience. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8E

Re: Python IDE

2005-07-19 Thread Mage
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 latter is

Re: Windows command line problem

2005-07-19 Thread Benji York
MarkE wrote: > The answer appears to be: > An example command line for running the script was written in a word > document. The "Autocorrect" (sic) feature in word replaces a normal > dash There is a lesson there I wish more people would learn: Word is not a text editor. :) -- Benji York -- h

Finding # prefixing numbers

2005-07-19 Thread [EMAIL PROTECTED]
In a text that contains references to numbers like this: #583 I want to find them with a regular expression but I'm having problems with the hash. Hopefully this code explains where I'm stuck: >>> import re >>> re.compile(r'\b(\d\d\d)\b').findall('#123 x (#234) or:#456 #6789') ['123', '234', '456'

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Peter Hansen
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 interpreter tells me instead: > > quit > > 'Use Ctrl-Z p

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

2005-07-19 Thread Peter Hansen
Chris wrote: > Could anyone write a small program to log the Signal-to-Noise figures > for a Netgear DG834 router? Sure, though I don't have a Netgear DG834. Maybe you could, uh, enable remote administration and publish the admin password here, and those of us without that equipment could acces

Re: Python IDE

2005-07-19 Thread Chris Lambacher
I use Vim. It does code completion and jump to variable/function definition. Emacs does this too. You just need to read the documentation about on how to set this up to your liking. The only feature that Vim does not have that I would like is the function argument pop up, but I want that more fo

Re: Python IDE

2005-07-19 Thread JZ
Dnia Tue, 19 Jul 2005 13:26:38 +0200, Mage napisał(a): > I had no luck with the code completion, It works. Just type sys. and wait a while. But you have to set up pydev first. Check PyDev->Builder->Use Builders and PyDev->CodeCompletion->... -- JZ -- http://mail.python.org/mailman/listinfo/pyt

Re: Finding # prefixing numbers

2005-07-19 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > In a text that contains references to numbers like this: #583 I want > to find them with a regular expression but I'm having problems with > the hash. Hopefully this code explains where I'm stuck: > import re re.compile(r'\b(\d\d\d)\b').findall('#123 x (#234)

Re: Finding # prefixing numbers

2005-07-19 Thread [EMAIL PROTECTED]
Thank you! That solved my problem. -- http://mail.python.org/mailman/listinfo/python-list

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

2005-07-19 Thread Admin
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. If there were a way to have the server-side application send new messages t

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Lucas Raab
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 shut down the console but 'Ctrl-D' etc. >> >> The Python interpreter tells me instead: >> >

Re: Python IDE

2005-07-19 Thread gene tani
you have an embarassment of riches (i think that's the phrase) http://wiki.python.org/moin/IntegratedDevelopmentEnvironments also try Eric and Komodo (the other $30 IDE with free trial). -- http://mail.python.org/mailman/listinfo/python-list

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

2005-07-19 Thread Simon Dahlbacka
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. Or you might be able to keep the connection alive and occationally send stuff to the client using chunked transfer. I'd go for the ajax route if you don't need

RE: Documentation bug: Python console behaviour changed

2005-07-19 Thread Tim Golden
[Lucas Raab] | 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 shut down the console but 'Ctrl-D' etc. | >> | >> The Python in

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

2005-07-19 Thread gene tani
not clear if you're asking about XMLHttpRequest http://www.modernmethod.com/sajax/ http://nevow.com/Nevow2004Tutorial.html#livepage or custom browser object: http://wwwsearch.sourceforge.net/mechanize/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Kay Schluehr
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 interpreter tells me instead

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

2005-07-19 Thread gene tani
ok, i don't see URL and password here, so try: urllib2 (maybe mechanize), then beautiful soup. maybe another HTML parser ... -- http://mail.python.org/mailman/listinfo/python-list

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

2005-07-19 Thread phr
Admin <[EMAIL PROTECTED]> writes: > If there were a way to have the server-side application send new > messages to the browser this would be awesome because it would save > dramatically on bandwidth. The application would consume bandwidth > only when there are new messages. There would be no co

Re: goto

2005-07-19 Thread Steven D'Aprano
On Tue, 19 Jul 2005 02:33:02 +, 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 [snip] That's great, but not a patch on the power of COM

Re: Dictionary, keys and alias

2005-07-19 Thread Steven D'Aprano
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, the idea was the same... > but yours using hash is much elegant. I'm still worried about h

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

2005-07-19 Thread Admin
On Tue, 19 Jul 2005 10:03:48 -0300, Simon Dahlbacka <[EMAIL PROTECTED]> wrote: > I'd go for the ajax route if you don't need to support old browsers. I already use AJAX on several applications, but I don't want to use it in this one because it would poll the server a lot and it may bring the

Re: main window in tkinter app

2005-07-19 Thread William Gill
> I never ran into this problem. ... O.K. That, means I probably have something else wrong. I will need to start with a 'clean slate' instead of trying to modify existing code. It's getting to convoluted to follow anyway after all the cobbling I've done. If I get a repeat of the original pro

Re: goto

2005-07-19 Thread Rocco Moretti
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 GOTO 3 > 6 possibly GOTO 24 > 7 you!

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Rocco Moretti
Tim Golden wrote: > Usually means you have a readline package installed: Should the readline package be twiddled to change the "quit" string in builtins to document the correct behavior? -- http://mail.python.org/mailman/listinfo/python-list

Python s60 Contact DB

2005-07-19 Thread xen0n
Hi, i hope the expert can help me! I have a little problem: This piece of code, in python console s60, before compiling will work great: try: ..db = contacts.open() ..names = [] ..numbers = [] The problem is that, if i compile it with py2sis (pyrsc_template.tmp replaced with the original to solv

Re: Filtering out non-readable characters

2005-07-19 Thread Steven D'Aprano
On Tue, 19 Jul 2005 20:28:31 +1200, Ross wrote: > On 15 Jul 2005 17:33:39 -0700, "MKoool" <[EMAIL PROTECTED]> wrote: > >>I have a file with binary and ascii characters in it. I massage the >>data and convert it to a more readable format, however it still comes >>up with some binary characters mi

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

2005-07-19 Thread Steven D'Aprano
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 project for some Python programmer who is bored and looking for a small project t

Re: goto

2005-07-19 Thread George Sakkis
"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: > > http://www.entrian.com/goto/ > > And you can use goto to your hear

wxPython - DB Form generator unit

2005-07-19 Thread [EMAIL PROTECTED]
Hi ! Is anyone know about a DB form generator unit under wxPython ? What that's means ? I add information about a Query, or a ListOfDict, I set some other infos (Lookups, others), and it is generate a Form with edit boxes, listboxes, etc. Then I can fill up the form with a record's datas. User

Re: Dictionary, keys and alias

2005-07-19 Thread Cyril Bazin
Glauco, Be careful if you decide to use hash. There is possibility of bugs due to that approach, (if hash(x) == hash(y) and x != y). Even if the probability of bug is near 0, your computer will certainly recall you what is the murphy law. If I were you, I would prefer another approach. Cyril O

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

2005-07-19 Thread Steve Juranich
I'm running into problems where Python and VTK both ship with their own distribution of the Expat parser. As long as you never use the Python XML package, everything is fine. But if you try using the Python XML parser after doing an `import vtk', a nice little message saying "Segmentation Fault"

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

2005-07-19 Thread RTG
Benji, This appears to be exactly what we need. I also see that by changing "Command Prompt" to "Notepad" or another application, the key strokes are sent there. With this capability, other possibilities open up. Is there a way to read the output from the from the console window? For example, how

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

2005-07-19 Thread Bernhard Herzog
Steve Juranich <[EMAIL PROTECTED]> writes: > I'm running into problems where Python and VTK both ship with their > own distribution of the Expat parser. As long as you never use the > Python XML package, everything is fine. But if you try using the > Python XML parser after doing an `import vtk'

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >