Re: Ordering Products

2005-07-19 Thread Kay Schluehr
Ron Adam wrote: Kay Schluehr wrote: Here might be an interesting puzzle for people who like sorting algorithms ( and no I'm not a student anymore and the problem is not a students 'homework' but a particular question associated with a computer algebra system in Python I'm currently

WG: creating new process with pipes under win xp -troubles

2005-07-19 Thread Michael Lieschnegg
hello! I wrote a python parent script which starts a separate script in a new process (under Windows XP Pro SP2, Python 2.4.1). Through anonymous pipes I have a bidirectional communication to the child. Now I embedded the parent script in a CPP program, but when I start the cpp dummy

Re: Python IDE

2005-07-19 Thread ncf
Honestly, I'm just using Python's own IDLE to do it all. It works rather well for my tastes :) -- http://mail.python.org/mailman/listinfo/python-list

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

2005-07-19 Thread Chris
Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router? I have been getting very variable SNR readings - and I would like to collect some evidence to analyse. What is needed is a program that logs into the router's html page every minute, and then

Re: Xah's edu corner: on Microsoft hatred

2005-07-19 Thread Malcolm
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 is an international group, and what might be acceptable in

Re: retrieving https pages

2005-07-19 Thread ncf
It might be checking the browser's User-agent. My best bet for you would to be to use something to record the headers your browser sends out, and mimic those in Python. If you look at the source code for urlopener (I think you can press Alt+M and type in urlopener), under the FancyURLopener

Re: main window in tkinter app

2005-07-19 Thread Eric Brunel
On Mon, 18 Jul 2005 16:57:51 GMT, William Gill [EMAIL PROTECTED] wrote: A short while ago someone posted that(unlike the examples) you should use Tk as the base for your main window in tkinter apps, not Frame. Thus : class MyMain(Frame): def __init__(self, master):

Out of Office AutoReply: Returned mail: Data format error

2005-07-19 Thread Romascanu, Dan (Dan)
Title: Out of Office AutoReply: Returned mail: Data format error I am out-of-office, on a business trip, untill July 23, 2005, and may be able to read your e-mail only after this date. If you need to contact me urgently, please call the mobile phone number +1-917-957-0270. Regards, Dan

re:c++ÈçºÎÏòpythonµÄœÅ±ŸŽ«µÝÒ»žöÀà×÷Ϊ²ÎÊý¡£

2005-07-19 Thread Hua
Hi, you should write in English, otherwise there is nobody understand your question. ` -- http://mail.python.org/mailman/listinfo/python-list

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 with

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

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

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: python-list@python.org Subject: How to write at a sppecific location Hi All I have one csv

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

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

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: mydict['a']

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 all

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 know

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 in total?

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, B] # spend two nights in A, then

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 now

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Simon Dahlbacka
My console follows documentation: C:\tmp\GspRegTestAppc:\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

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

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

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

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

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 access

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

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

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) or:#456

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

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: quit 'Use

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 interpreter

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

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

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

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

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! GOTO 21 8

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

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 mixed in.

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 to

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 heart's content. And

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

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', a

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

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 identify

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 print

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

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

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 never

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

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

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

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

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 is an international

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 Small

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 enabled

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:

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

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

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 python ?.

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

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 of

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

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

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

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 shut down the

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

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, the idea was the

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

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, in terms of

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

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

  1   2   >