Re: PEP-xxx: Unification of for statement and list-comp syntax

2006-05-23 Thread Heiko Wundram
Am Mittwoch 24 Mai 2006 06:12 schrieb Tim Roberts: > At one time, it was said that the "%" operator was the fastest way to > concatenate strings, because it was implemented in C, whereas the + > operator was interpreted. However, as I recall, the difference was hardly > measurable, and may not eve

Re: NEWB: how to convert a string to dict (dictionary)

2006-05-23 Thread Heiko Wundram
Am Mittwoch 24 Mai 2006 07:52 schrieb manstey: > Hi, > > How do I convert a string like: > a="{'syllable': u'cv-i b.v^ y^-f', 'ketiv-qere': 'n', 'wordWTS': u'8'}" > > into a dictionary: > b={'syllable': u'cv-i b.v^ y^-f', 'ketiv-qere': 'n', 'wordWTS': u'8'} b = eval(a) (if a contains a dict-repr)

Re: can't figure out error: module has no attribute...

2006-05-23 Thread Chris_147
Thanks for the reply. you are indeed right, they were included from different places. from C:\Python24\Lib and D:\mydir But the strange thing is: anywhere on C: the file from C:\Python24\Lib was included. in D:\mydir the one from that directory BUT: anywhere else on D: apparantly the one from D:\

Re: python vs perl lines of code

2006-05-23 Thread H J van Rooyen
on Friday, May 19, 2006 11:26 PM [EMAIL PROTECTED] wrote: | All I would ask is what objective evidence does either of actually | have? How can you know? What is a fair way to even count line | numbers? From there how do we begin to objectively measure software | quality? That's why this discu

Re: Access C++, Java APIs from Python..

2006-05-23 Thread Ravi Teja
> I'm new to python. > I would like to know whether is it possible to access Java/C++ APIs from > python. > I have two applications written in Java and API, I wanted to call the APIs > of these applications from Python. > I'm developing web-based application using Zope. CPython can access Java thr

python and QRcode ?

2006-05-23 Thread bussiere maillist
i'am looking for some module and programs in ptyhon for making qrcode (special kind of barcode)But i only found documentation and programs in japanese.Does it exist program and documentation for python in qrcode in english ? regardsBussiere -- http://mail.python.org/mailman/listinfo/python-list

Access C++, Java APIs from Python..

2006-05-23 Thread Manoj Kumar P
Hi, I'm new to python. I would like to know whether is it possible to access Java/C++ APIs from python. I have two applications written in Java and API, I wanted to call the APIs of these applications from Python. I'm developing web-based application using Zope. Thanks in advance. -Manoj- "SAS

Re: NEWB: how to convert a string to dict (dictionary)

2006-05-23 Thread Jorge Godoy
manstey wrote: > Hi, > > How do I convert a string like: > a="{'syllable': u'cv-i b.v^ y^-f', 'ketiv-qere': 'n', 'wordWTS': u'8'}" > > into a dictionary: > b={'syllable': u'cv-i b.v^ y^-f', 'ketiv-qere': 'n', 'wordWTS': u'8'} > > Thanks, Matthew > > PS why in Python is it so often easy to conv

NEWB: how to convert a string to dict (dictionary)

2006-05-23 Thread manstey
Hi, How do I convert a string like: a="{'syllable': u'cv-i b.v^ y^-f', 'ketiv-qere': 'n', 'wordWTS': u'8'}" into a dictionary: b={'syllable': u'cv-i b.v^ y^-f', 'ketiv-qere': 'n', 'wordWTS': u'8'} Thanks, Matthew PS why in Python is it so often easy to convert one way but not the other? -- ht

Re: graphs and charts

2006-05-23 Thread Terry Hancock
Yaron Butterfield wrote: > What's the best way to on-the-fly graphs and charts using Python? Or > is Python not really the best way to do this? I quite enjoyed using Biggles for this: http://biggles.sf.net There are many different choices, though. Cheers, Terry -- Terry Hancock ([EMAIL PROT

Re: how to change sys.path?

2006-05-23 Thread Ben Finney
[Please provide some context when you respond in an existing discussion, by quoting the original message and removing any parts irrelevant to your reply.] "Ju Hui" <[EMAIL PROTECTED]> writes: > yes, we can change PYTHONPATH to add some path to sys.path value, but > how to remove item from sys.pat

Re: No math module??

2006-05-23 Thread Tim Roberts
WIdgeteye <[EMAIL PROTECTED]> wrote: > >On Tue, 23 May 2006 12:40:49 +1000, Ben Finney wrote: > >Ok this is weird. I checked: >/usr/local/lib/python2.3/lib-dynload/math.so > >Just as you have on your system and it's there. >So why in the heck isn't it loading with: >import math > >This is s

Re: Doubt with wx.CallAfter

2006-05-23 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >Hello together:: > >I have programmed this fuction: > >def OnNewMovie(self, event): >""" Local user receives a new movie event from a user""" > >#self.log.debug( "Got OnNewMovie, " + `event`) >if event.data[0] == self.pubId: >fDep.writ

Announcing WERD (1.0), the Phonetic Transliterator to Indic scripts

2006-05-23 Thread Atul
WERD is a phonetic transliterator that helps users write english text but read the same in the chosen Devanagari (Indic) font. WERD is expected to make it easy for Indians wanting to communicate over chat or email in their native language. Checkout http://werd.sourceforge.net/ WERD is written in

Re: newbie: windows xp scripting

2006-05-23 Thread Tim Roberts
"oscartheduck" <[EMAIL PROTECTED]> wrote: > >It wasn't, but after seeing your success I discovered what was wrong. >My destination directory didn't exist, and for some reason windows >wasn't automatically creating it to dump the files in. Right. The "copy" command never creates directories. It w

Re: Looking for help with Regular Expression

2006-05-23 Thread lao_mage
'''\[(.*?)\]''' ?-> when this char after(*, +, ?, {n}, {n,}, {n,m}), the match pattern is not greedy e.g.1 String: 512.16[3][b]] Pattern:'''\[(.*)\]''' This will match "[3][b]]" e.g.2 String: 512.16[3][b]] Pattern:'''\[(.*)?\]''' This will match "[3]" and "[b]" -- http://mail.python.org/mailman

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread vbgunz
> As for the code to actually make the application go, well, > if there is some automatic way to make that happen it hasn't dawned on > me yet. why not execute 'python -u /pathto/module.py' I could be wrong but hope I am not :) -- http://mail.python.org/mailman/listinfo/python-list

Re: documentation for win32com?

2006-05-23 Thread M�ta-MCI
Hi! MS-Office-2007 beta2, can downloaded here : http://www.microsoft.com/office/preview/beta/getthebeta.mspx (with a passport account). Doc, for COM access, are include in the help-system. @-salutations MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread vbgunz
>What are you building? I routinely do things like these by hand >www.greschke.com/unlinked/images/changeo.jpg >www.greschke.com/unlinked/images/pocus.jpg >www.greschke.com/unlinked/images/pis.jpg >www.greschke.com/unlinked/images/petm.jpg >and I can't imagine using a builder for anything 'simpl

Re: NEWB: reverse traversal of xml file

2006-05-23 Thread Serge Orlov
manstey wrote: > But will this work if I don't know parts in advance. Yes it will work as long as the highest part number in the whole file is not very high. The algorithm needs only store N records in memory, where N is the highest part number in the whole file. > I only know parts > by reading

Re: documentation for win32com?

2006-05-23 Thread Roger Upole
The Excel docs are your best bet. The examples they give are all MS-specific languages like VB, but most translate fairly easily to Python. You can also run makepy on the Excel typelib, which will generate a file with all the methods, events etc available thru the Excel object model. Also, searc

pickling multiple dictionaries

2006-05-23 Thread manstey
Hi, I am running a script that produces about 450,000 dictionaries. I tried putting them into a tuple and then pickling the tuple, but the tuple gets too big. Can I pickle dictionaries one after another into the same file and then read them out again? Cheers, Matthew -- http://mail.python.org/m

Re: Web framework comparison video

2006-05-23 Thread AndyL
Iain King wrote: > http://compoundthinking.com/blog/index.php/2006/03/10/framework-comparison-video/ > > Thought this might be interesting to y'all. (I can't watch it 'cos I'm > at work, so any comments about it would be appreciated :) Indeed it was. The headache factor is 1, for some reason my

Re: PEP-xxx: Unification of for statement and list-comp syntax

2006-05-23 Thread Tim Roberts
Edward Elliott <[EMAIL PROTECTED]> wrote: >bruno at modulix wrote: > >> Edward Elliott wrote: >>> You mean like this: >>> >>> s = "foo" + "bar" >>> s = 'foo' + 'bar' >>> s = 'foo' 'bar' >>> s = '%s%s' % ('foo', 'bar') >[snip] >> The real mantra is actually : >> "There should be one-- and preferab

Re: continue out of a loop in pdb

2006-05-23 Thread R. Bernstein
Here's the revision I just made for pydb's documentation (in CVS). I welcome suggestions for improvement. set_trace([cmdfile=None]) Enter the debugger before the statement which follows (in execution) the set_trace() statement. This hard-codes a call to the debugger at a given point

Re: global name not defined

2006-05-23 Thread NetKev
good point -- http://mail.python.org/mailman/listinfo/python-list

Re: dict literals vs dict(**kwds)

2006-05-23 Thread Alex Martelli
George Sakkis <[EMAIL PROTECTED]> wrote: > Bruno Desthuilliers wrote: > > > George Sakkis a écrit : > > > Although I consider dict(**kwds) as one of the few unfortunate design > > > choices in python since it prevents the future addition of useful > > > keyword arguments (e.g a default value or a

Re: continue out of a loop in pdb

2006-05-23 Thread R. Bernstein
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > > the code works with no problem, I am playing around with the pdb, i.e > > > > from pdb import * > > set_trace() for i in range(1,50): > > print i > > print "tired of this" > > print "I am out" > > > > [EMA

Re: performance difference between OSx and Windows

2006-05-23 Thread Alex Martelli
Brian <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi Brian, > > > > You may have already considered this, but since I didn't see it > > mentioned in your post, I'll reply anyway. > > > > I believe the Python binaries that Apple includes with OS X are always > > slightly behind the la

Re: continue out of a loop in pdb

2006-05-23 Thread R. Bernstein
Gary Wessle <[EMAIL PROTECTED]> writes: > Hi > > using the debugger, I happen to be on a line inside a loop, after > looping few times with "n" and wanting to get out of the loop to the > next line, I set a break point on a line after the loop structure and > hit c, that does not continue out of

Re: graphs and charts

2006-05-23 Thread Tim Heaney
Grant Edwards <[EMAIL PROTECTED]> writes: > > On 2006-05-23, Yaron Butterfield <[EMAIL PROTECTED]> wrote: > >> What's the best way to on-the-fly graphs and charts using Python? Or is >> Python not really the best way to do this? > > I like Gnuplot-py, but I've been a Gnuplot for 15+ years, so > I

Re: how to change sys.path?

2006-05-23 Thread Ju Hui
yes, we can change PYTHONPATH to add some path to sys.path value, but how to remove item from sys.path? -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for help with Regular Expression

2006-05-23 Thread James Stroud
ProvoWallis wrote: > Hi, > > I'm looking for a little advice about regular expressions. I want to > capture a string of text that falls between an opening squre bracket > and a closing square bracket (e.g., "[" and "]") but I've run into a > small problem. > > I've been using this: '''\[(.*?)\]''

Re: real time info to web browser from apache side ?

2006-05-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ben Finney <[EMAIL PROTECTED]> wrote: >"Joseph" <[EMAIL PROTECTED]> writes: > >> So I am looking more for a push technology than a pull from teh >> browser (user hit Ctrl-R to refresh is a pull). > >Not necessarily; just write the web page so that it instructs the >

Re: Guide to using python for bash-style scripting

2006-05-23 Thread James Stroud
4zumanga wrote: > I have a bunch of really horrible hacked-up bash scripts which I would > really like to convert to python, so I can extend and neaten them. > However, I'm having some trouble mapping some constructs easily, and > was wondering if anyone know of a guide to mapping simple uses of >

Looking for help with Regular Expression

2006-05-23 Thread ProvoWallis
Hi, I'm looking for a little advice about regular expressions. I want to capture a string of text that falls between an opening squre bracket and a closing square bracket (e.g., "[" and "]") but I've run into a small problem. I've been using this: '''\[(.*?)\]''' as my pattern. I was expecting th

Re: performance difference between OSx and Windows

2006-05-23 Thread Brian
[EMAIL PROTECTED] wrote: > Hi Brian, > > You may have already considered this, but since I didn't see it > mentioned in your post, I'll reply anyway. > > I believe the Python binaries that Apple includes with OS X are always > slightly behind the latest that you can get from the official sources.

Re: WeakrefValueDictionary of Callables?

2006-05-23 Thread Steve Holden
Lloyd Weehuizen wrote [top-posting, for which he should have his wrist smacked]: > Steve Holden wrote: > > Lloyd Weehuizen wrote: > >> Hey > >> > >> I'm trying to set up a WeakrefValueDictionary of callables however as > >> soon as my method that adds the callable to the dictionary exits the

Problem with installing MySQL-python-1.2.1_p2

2006-05-23 Thread Olivier Langlois
Hi, I have tried to install MySQL-python-1.2.1_p2 under Windows XP with Python 2.4.3 and I get some problems. 1- I get this warning when I run setup.py build: C:\tools\Python\lib\distutils\extension.py:133: UserWarning: Unknown Extension options: 'mysql_root' warnings.warn(msg) 2- When I comp

Re: determining available space for Float32, for instance

2006-05-23 Thread Robert Kern
David Socha wrote: > I am looking for a way to determine the maxium array size I can allocate > for arrays of Float32 values (or Int32, or Int8, ...) at an arbitrary > point in the program's execution. This is needed because Python cannot > allocate enough memory for all of the data we need to pro

Re: logging

2006-05-23 Thread Vinay Sajip
Baurzhan Ismagulov wrote: > Hello all, > > I want that each module has its own logger. I've defined the following > config file: > > [logger_root] > level=CRITICAL > handlers=console > > [logger_l01] > level=DEBUG > qualname=l01 > handlers=console > > I want logger_root to go to /dev/null, so I'v

determining available space for Float32, for instance

2006-05-23 Thread David Socha
I am looking for a way to determine the maxium array size I can allocate for arrays of Float32 values (or Int32, or Int8, ...) at an arbitrary point in the program's execution. This is needed because Python cannot allocate enough memory for all of the data we need to process, so we need to "chunk"

Re: dict literals vs dict(**kwds)

2006-05-23 Thread George Sakkis
Bruno Desthuilliers wrote: > George Sakkis a écrit : > > Although I consider dict(**kwds) as one of the few unfortunate design > > choices in python since it prevents the future addition of useful > > keyword arguments (e.g a default value or an orderby function), I've > > been finding myself late

Re: Telnet linebreaks

2006-05-23 Thread Patrick M. Nielsen
Oh, and, apologies for the "inpythonic" nature of this issue.On 5/24/06, Patrick M. Nielsen <[EMAIL PROTECTED] > wrote:Hey guys.I have begun playing with the Simple MUD server example from the Stackless website ( http://www.stackless.com/Members/rmtew/code/mud.py ) and it's all good so far, however

Telnet linebreaks

2006-05-23 Thread Patrick M. Nielsen
Hey guys.I have begun playing with the Simple MUD server example from the Stackless website( http://www.stackless.com/Members/rmtew/code/mud.py ) and it's all good so far, however, I've come to notice something that I remember from backin the days (some old mud code), but I don't remember what I di

Re: how to change sys.path?

2006-05-23 Thread Ben Finney
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > Ju Hui a écrit : > > what the relationship between it and the sys.path? > > Don't you guess ? He's following sound Python philosophy :-) -- \Hercules Grytpype-Thynne: "Well, Neddie, I'm going to be | `\ frank." Ned Seagoon:

Re: Running script in __main__ shows no output in IDLE

2006-05-23 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Shouldn't Idle have shown an error when trying to > read the string constant if it's not interpretable as a normal string, > then? Yes. In my python shell, it raised an error. I don't know for sure why this did not appear in IDLE, but there are far better tools anyw

Re: NEWB: reverse traversal of xml file

2006-05-23 Thread manstey
But will this work if I don't know parts in advance. I only know parts by reading through the file, which has 450,000 lines. -- http://mail.python.org/mailman/listinfo/python-list

Re: dict literals vs dict(**kwds)

2006-05-23 Thread Bruno Desthuilliers
George Sakkis a écrit : > Although I consider dict(**kwds) as one of the few unfortunate design > choices in python since it prevents the future addition of useful > keyword arguments (e.g a default value or an orderby function), I've > been finding myself lately using it sometimes instead of dict

Re: how to change sys.path?

2006-05-23 Thread Bruno Desthuilliers
Ju Hui a écrit : > yes, I mean I want change the sys.path value and save it for next > using. > > I can change the value of sys.path, but I can't "save" it permanently. No. > There is no python_path environment on my pc, sorry, I meant PYTHONPATH (all caps, no underscore). Like all environnement

Re: real time info to web browser from apache side ?

2006-05-23 Thread Ben Finney
"Joseph" <[EMAIL PROTECTED]> writes: > So I am looking more for a push technology than a pull from teh > browser (user hit Ctrl-R to refresh is a pull). Not necessarily; just write the web page so that it instructs the browser to do the pull automatically, without refreshing the entire page. Thi

Re: GUI viewer for profiler output?

2006-05-23 Thread Benjamin Niemann
Kent Johnson wrote: > Can anyone point me to a GUI program that allows viewing and browsing > the output of the profiler? I know I have used one in the past but I > can't seem to find it... If you use KDE, then you can convert the output of the hotshot profiler to into a format that KCachegrind c

Re: performance difference between OSx and Windows

2006-05-23 Thread [EMAIL PROTECTED]
Hi Brian, You may have already considered this, but since I didn't see it mentioned in your post, I'll reply anyway. I believe the Python binaries that Apple includes with OS X are always slightly behind the latest that you can get from the official sources. I'm not infront of my Mac right now, s

Re: documentation for win32com?

2006-05-23 Thread Ross Ridge
John Salerno wrote: > So does this mean that the code can be different each time, or is there > still a pre-determined way to refer to things, such as opening Excel, > reading a spreadsheet and working with it, etc.? For a given version of Excel, there's a "pre-determinied way" of doing those thin

Re: FAQ for XML with Python

2006-05-23 Thread Dave Kuhlman
Sybren Stuvel wrote: > Dave Kuhlman enlightened us with: >> For those who are beginners to using Python to process XML, I've >> recently updated my Python XML FAQ (PyXMLFaq). It has a number >> of code samples that may help you get started. > > You might want to include a list of things you assu

Re: real time info to web browser from apache side ?

2006-05-23 Thread Larry Bates
Joseph wrote: > I know about writing CGI application using Perl and Apache to refresh a > static webpage that displays on the browser. But now i have an > application requirement that I hope someone can help me. > > The server side sits in another room down the factory plant, its > monitoring som

Re: how to change sys.path?

2006-05-23 Thread John Salerno
Jarek Zgoda wrote: > John Salerno napisał(a): > >>> yes, I mean I want change the sys.path value and save it for next >>> using. >>> I can change the value of sys.path, but I can't "save" it permanently. >>> There is no python_path environment on my pc, what the relationship >>> between it and the

Re: Software Needs Philosophers

2006-05-23 Thread John D Salt
Eli Gottlieb <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: [Snips] > I correct: We live in a paradise where we finally have to processing > power to realize all those ideas that were too inefficient 20 years > ago. That sounds more reasonable. In my more jaundiced moments, I think that

Re: Software Needs Philosophers

2006-05-23 Thread John D Salt
"John A. Bailo" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: [Snips] > What exciting new ideas exist in software that are both important and > cannot be traced back to Doug Engbart's 1968 presentation at Xerox > Parc? The only two I would think worth mentioning are Nygaard et al's idea

UPDATE: Generating Cutter numbers

2006-05-23 Thread Gerard Flanagan
Gerard Flanagan wrote: > All > > would anyone happen to have code to generate Cutter Numbers: > > eg. http://www1.kfupm.edu.sa/library/cod-web/Cutter-numbers.htm > > or is anyone looking for something to do?-) (I'm under pressure!) > > def cutter(lname, fname, book_title): > > (maybe more to it

Re: Software Needs Philosophers

2006-05-23 Thread Emmanuel Florac
Le Tue, 23 May 2006 08:58:12 -0500, John D Salt a écrit : > > What exciting new ideas exist in software that are both important and > cannot be traced back to 1986 or earlier? Actually it looks like the latest breakthru was invention of LISP circa 1957. Well, Perhaps OO paradigm and Smalltalk,

Re: Guide to using python for bash-style scripting

2006-05-23 Thread Szabolcs Nagy
python subprocess module docs: http://docs.python.org/dev/lib/node517.html -- http://mail.python.org/mailman/listinfo/python-list

Re: What's with the @ sign

2006-05-23 Thread [EMAIL PROTECTED]
Thanks! I had no clue what that was (and searching for @ in the context of python was returning hundreds of thousands of hits XD) -- http://mail.python.org/mailman/listinfo/python-list

Best way to handle exceptions with try/finally

2006-05-23 Thread Carl J. Van Arsdall
Hey python people, I'm interested in using the try/finally clause to ensure graceful cleanup regardless of how a block of code exits. However, I still am interested in capturing the exception. The scenario is that I have an object that accesses a global memory space accessible via multiple th

Re: Accessing object parent properties

2006-05-23 Thread Ryan Forsythe
Cloudthunder wrote: > How can I set up method delegation so that I can do the following: > > A.run() > > and have this call refer to the run() method within the boo instance? Also, > what if I have tons of functions like run() within the boo instance and I > want all them to be directly accessib

Re: how to change sys.path?

2006-05-23 Thread Jarek Zgoda
John Salerno napisał(a): >> yes, I mean I want change the sys.path value and save it for next >> using. >> I can change the value of sys.path, but I can't "save" it permanently. >> There is no python_path environment on my pc, what the relationship >> between it and the sys.path? > > In Windows,

Re: dynamic drawing in web page

2006-05-23 Thread jmdeschamps
barbaros wrote: > Hello everybody, > > I need to put some dynamic drawings on my web page. More precisely, I > need to draw a number of geometric figures (circles, rectangles) which > evolve into a graphics windows according to some law (a little bit like > the solar system). I need also to have se

Re: A critic of Guido's blog on Python's lambda

2006-05-23 Thread Kay Schluehr
Ken Tilton wrote: > Is there any experiemntal macro package out there for Python? Maybe a > preprocessor, at least? Or are there ways to actually hack Python to > extend the syntax? Yes. I've just released EasyExtend that does this kind of job: http://www.fiber-space.de/EasyExtend/doc/EE.html I

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread Cam
> > What are you building? I routinely do things like these by hand > > www.greschke.com/unlinked/images/changeo.jpg > www.greschke.com/unlinked/images/pocus.jpg > www.greschke.com/unlinked/images/pis.jpg > www.greschke.com/unlinked/images/petm.jpg > > and I can't imagine using a builder for anyth

Re: Software Needs Philosophers

2006-05-23 Thread Paul Rubin
John D Salt writes: > What exciting new ideas exist in software that are both important and > cannot be traced back to 1986 or earlier? Automated spamming tools? ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - Web Display Technology

2006-05-23 Thread Blair P. Houghton
[EMAIL PROTECTED] wrote: > SamFeltus wrote: > > Here is a visual argument, > > http://samfeltus.com/swf/contact_globes.swf > > Here's a text-based argument. > > If I search Golge for "gardener, Athens, GA" then Google's spiders > won't have recorded your contact page. So I don't find you as a loca

Re: Software Needs Philosophers

2006-05-23 Thread Pascal Bourguignon
John D Salt writes: > <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > [Snips] >> Wrong. We live in a paradise of ideas and possibilities well beyond the >> wildest dreams of only 20 years ago. > > What exciting new ideas exist in software that are both important and > cannot be traced b

Re: real time info to web browser from apache side ?

2006-05-23 Thread Paul Rubin
"Joseph" <[EMAIL PROTECTED]> writes: > What are the current technology that allows for this. I know its > possible because I can use my browser sometimes to chat with people > online, and I swear that I don't have to do a Control-R everytime to > see that the other person's typing is updating cons

Re: Guide to using python for bash-style scripting

2006-05-23 Thread Bill Pursell
4zumanga wrote: > Yes, there is a stupid mistake in that script, last line should be: > > diff new_out1 new_out2 > > However, this is hopefully not important, what is important is the > general kind of (very simple) things I'm trying to do. I have been hoping for a good solution to this. An easy

real time info to web browser from apache side ?

2006-05-23 Thread Joseph
I know about writing CGI application using Perl and Apache to refresh a static webpage that displays on the browser. But now i have an application requirement that I hope someone can help me. The server side sits in another room down the factory plant, its monitoring some hardware environment, na

Re: Accessing object parent properties

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!" class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can d

Re: how to work with tab-delimited files?

2006-05-23 Thread Tim Chase
> So in this situation, when the file is being read, is that > single space still determined to be a tab, or do you have to > press tab twice to put a full tab between the names? If there is a literal tab in the file, it will come in (to your code) as a real tab. Your editor may have settings yo

Re: Method Delegation To Subinstances

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!" class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can d

Re: "Thinking like CS" problem I can't solve

2006-05-23 Thread gry
Alex Pavluck wrote: > Hello. On page 124 of "Thinking like a Computer Scientist". There is > an exercise to take the following code and with the use of TRY: / > EXCEPT: handle the error. Can somone help me out? Here is the code: > > def inputNumber(n): > if n == 17: > raise 'BadNumb

Re: "Thinking like CS" problem I can't solve

2006-05-23 Thread gry
Alex Pavluck wrote: > Hello. On page 124 of "Thinking like a Computer Scientist". There is > an exercise to take the following code and with the use of TRY: / > EXCEPT: handle the error. Can somone help me out? Here is the code: > > def inputNumber(n): > if n == 17: > raise 'BadNumb

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread Bob Greschke
"vbgunz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thank you very much for the link and info. It looks promising but I am > still on the lookout for a drag-n-drop Gui builder like vltc so if > anyone has more links to new projects I am definitely interested! > > PS. I do love th

Re: how to work with tab-delimited files?

2006-05-23 Thread Paddy
Hmm, check your editor to see if it has an option to display non-printable characters, or see if you can search for tabs in its find utility. If you find that your editor has the ability to insert spaces instead of tabs then turn it off. Thats all that comes to mind... - Pad. -- http://mail.p

Re: PHP's openssl_sign() using M2Crypto?

2006-05-23 Thread heikki
That is really strange, because PKey has had sign_init method since 2004. That code works for me (just tested). What version of M2Crypto are you using? I'd advice you upgrade to 0.15 if possible. See http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto -- Heikki Toivonen -- http://mai

how to work with tab-delimited files?

2006-05-23 Thread John Salerno
When you're using tabs to separate values in a text file, what do you do in the case where pressing the tab key doesn't really advance the cursor a full tab space (but instead just one or two spaces) because that's where the next tab stop is? Example: Joe Smith JohnSalerno So the second e

documentation for win32com?

2006-05-23 Thread John Salerno
Is there anything better to read on how to use this module for working with Office programs? This is not very heartening to read in the official docs: --- How do I know which objects are available? Good question. This is hard! You need to use the documentation with the pro

Re: Guide to using python for bash-style scripting

2006-05-23 Thread 4zumanga
Yes, there is a stupid mistake in that script, last line should be: diff new_out1 new_out2 However, this is hopefully not important, what is important is the general kind of (very simple) things I'm trying to do. -- http://mail.python.org/mailman/listinfo/python-list

Re: What's with the @ sign

2006-05-23 Thread soundinmotiondj
[EMAIL PROTECTED] wrote: > What's with code that has the @ symbol in front of classes or > functions? This has probably already been asked but I can't find any > info on it. http://www.python.org/doc/2.4.2/whatsnew/node6.html -- http://mail.python.org/mailman/listinfo/python-list

Guide to using python for bash-style scripting

2006-05-23 Thread 4zumanga
I have a bunch of really horrible hacked-up bash scripts which I would really like to convert to python, so I can extend and neaten them. However, I'm having some trouble mapping some constructs easily, and was wondering if anyone know of a guide to mapping simple uses of command line programs to p

Re: What's with the @ sign

2006-05-23 Thread Paddy
Oh please, please, can I answer! They are decorators. Check-out http://zephyrfalcon.org/weblog2/arch_e10_00610.html#e610 (decorate this), or http://paddy3118.blogspot.com/ " Python function attributes" and then " Function Attributes assigned by decorator". Of course there is also: http://wiki.pyt

Re: What's with the @ sign

2006-05-23 Thread Paddy
Oh please, please, can I answer! They are decorators. Check-out http://zephyrfalcon.org/weblog2/arch_e10_00610.html#e610 (decorate this), or http://paddy3118.blogspot.com/ " Python function attributes" and then " Function Attributes assigned by decorator". Of course there is also: http://wiki.pyt

Re: graphs and charts

2006-05-23 Thread Grant Edwards
On 2006-05-23, Yaron Butterfield <[EMAIL PROTECTED]> wrote: > What's the best way to on-the-fly graphs and charts using Python? Or is > Python not really the best way to do this? I like Gnuplot-py, but I've been a Gnuplot for 15+ years, so I'm biased. http://gnuplot-py.sourceforge.net/ -- Gr

Re: "Thinking like CS" problem I can't solve

2006-05-23 Thread Mel Wilson
Alex Pavluck wrote: > Hello. On page 124 of "Thinking like a Computer Scientist". There is > an exercise to take the following code and with the use of TRY: / > EXCEPT: handle the error. Can somone help me out? Here is the code: > [ ... ] What error? Python 2.4.2 (#1, Jan 23 2006, 21:24:54) [

graphs and charts

2006-05-23 Thread Yaron Butterfield
Hi, What's the best way to on-the-fly graphs and charts using Python? Or is Python not really the best way to do this? Thanks you! Yaron -- http://mail.python.org/mailman/listinfo/python-list

Re: Use of lambda functions in OOP, any alternative?

2006-05-23 Thread Pablo
The reason i would like a different approach to the lambda function is just a question of personal taste... i dont really like it. thanx! -- http://mail.python.org/mailman/listinfo/python-list

What's with the @ sign

2006-05-23 Thread [EMAIL PROTECTED]
What's with code that has the @ symbol in front of classes or functions? This has probably already been asked but I can't find any info on it. Here is a slice of code I found that uses this, can someone please explain what the @'s for?? :: def option_error_decorator(func): def wrapper(*a, **

Re: Using python for a CAD program

2006-05-23 Thread Paddy
baalbek wrote: > David Cuthbert wrote: > > > This does not mean the design itself should be stored as an RDBMS. As > > I've stated previously, CAD data (both electrical and, it appears, > > mechanical) does not lend itself to RDBMS relationship modeling. > > I simply do not agree with this. > > A

Re: Python - Web Display Technology

2006-05-23 Thread Paul Rubin
"SamFeltus" <[EMAIL PROTECTED]> writes: > > But your brain doesn't care. It's got a shortcut to your wallet, and > > the information on the screen is accessing that. > This was the most useful comment for me. I never fully considered that > Flash was aiming at a different part of the brain. HT

Re: Software Needs Philosophers

2006-05-23 Thread SamFeltus
Good question on new ideas vs old ideas. Seems to me the computer industry needs some young brains, raised around the internet, to generate some major new theoretical ideas for computers. Seems to me it must already be occuring below the radar. When it happens, it shouldn't be too hard to spot.

Re: Software Needs Philosophers

2006-05-23 Thread John A. Bailo
John D Salt wrote: > <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > [Snips] > >>Wrong. We live in a paradise of ideas and possibilities well beyond the >>wildest dreams of only 20 years ago. > > > What exciting new ideas exist in software that are both important and > cannot be trace

"Thinking like CS" problem I can't solve

2006-05-23 Thread Alex Pavluck
Hello. On page 124 of "Thinking like a Computer Scientist". There is an exercise to take the following code and with the use of TRY: / EXCEPT: handle the error. Can somone help me out? Here is the code: def inputNumber(n): if n == 17: raise 'BadNumberError: ', '17 is off limits.'

  1   2   >