Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Steve Holden
Xah Lee wrote: [mountains of irrelevant drivel which normal people would boil down to "I don't understand the doicumentation]. Even then, I'd still be on the side of the documentation. The answer to the questions are resounding yeses, you fucking asses. paypal me a hundred dollars and i'll rewri

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Steve Holden
Jimmy Retzlaff wrote: Terry Reedy wrote: I guess I don't understand some people's determination to not have users install fully useable Python on their Windows machines. Doing so seems no different to me than having to install (or upgrade) Shockwave, or Apple's Quicksomething for Windows (not use

Re: Missing Module when calling 'Import' _omnipy

2005-04-12 Thread Stefan Seefeld
[EMAIL PROTECTED] wrote: I found the fike _omnipy.pyd is that what you mean? yep. Here is my Lib Path: [...] As a first step you may consider adding the directory containing '_omnipy.pyd' to your PYTHONPATH variable. Second, you may read any documentation you can find at http://omniorb.sourceforge.

Re: Web Application Client Module

2005-04-12 Thread Chung Leong
"Raffi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > > I hope I'm posting this question to the correct newsgroups. We have a > web based database application that's accessed using IE. The > application opens a popup window to run in. With all the popup blockers > and com

permission

2005-04-12 Thread James
Is it possible to check if you have permission to access and or change a directory or file? -- http://mail.python.org/mailman/listinfo/python-list

Re: templating system

2005-04-12 Thread Erik Max Francis
Ksenia Marasanova wrote: Thanks! I've read "Known issues and caveats" on the website: """ EmPy was primarily intended for static processing of documents, rather than dynamic use, and hence speed of processing was not the primary consideration in its design. """ Have you noticed any speed problem

Re: permission

2005-04-12 Thread Skip Montanaro
James> Is it possible to check if you have permission to access and or James> change a directory or file? Yes, but it's generally much easier to try, then recover from any errors: try: f = open(somefile, "a") except IOError, msg: print "can't open", somefile, "for

Re: Why does StringIO discard its initial value?

2005-04-12 Thread Raymond Hettinger
[David Fraser] > Others may find this helpful ; it's a pure Python wrapper for cStringIO > that makes it behave like StringIO in not having initialized objects > readonly. Would it be an idea to extend cStringIO like this in the > standard library? It shouldn't lose performance if used like a stand

os.path.walk

2005-04-12 Thread Micheal
If I have os.path.walk(name, processDirectory, None) and processDirectory needs three arguments how can I ass them because walk only takes 3? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Raymond Hettinger
[Robin Becker] > People have mentioned the older v6 build scripts/tools still work. Last time I > tried they seemed a bit out of date. I routinely use the current CVS to build Py2.4 and Py2.5 with MSC6. It is effortless and I've had no problems. Raymond Hettinger -- http://mail.python.org/mai

RE: os.path.walk

2005-04-12 Thread Tony Meyer
> If I have os.path.walk(name, processDirectory, None) and > processDirectory needs three arguments how can I ass them > because walk only takes 3? Assuming that processDirectory is a function of yours that returns a bool, then you'd do something like: os.path.walk(name, processDirectory(a,b,

Re: singleton objects with decorators

2005-04-12 Thread Steven Bethard
James Stroud wrote: Other than using modules, I thought @classmethod took care of this kind of need: class SingleThing: some_values = {"fanciness":0} def __init__(self): raise Exception, "not enough preceding stars to be fancy enough" @classmethod def why_so_fancy(self): print "wh

Re: sort of a beginner question about globals

2005-04-12 Thread Steven Bethard
fred.dixon wrote: i have read the book and searched the group too -- im not gettin it. i want to read a global (OPTIONS) from file1 from a class method (func1) in file2 i want to understand how this works. -- #f

Global Variables

2005-04-12 Thread Bob Then
If I have a module File which has some fucontions but I need globals filename and path how can I set them so I can change them because I tryed. filename="log.txt" path="/home/Bob/" def change_filename(): filename=raw_input() def change_path(): path=raw_input() they don't change and witho

Read the windows event log

2005-04-12 Thread Austin
My codes are below: *** import win32evtlog def check_records(records): for i in range(0,len(records)): print records[i].SourceName h = win32evtlog.OpenEventLog(None,"System") flags = win32evtlog.EVENTLOG_BACKWARD_READ|win32evtlog.EVENTLOG_SEQUENTIAL_R

Doubt regarding sorting of a list specific field

2005-04-12 Thread praba kar
Dear All, I have doubt regarding sorting. I have a list that list have another list (eg) list = [[1234,'name1'],[2234,'name2'],[0432,'name3']] I want to sort only numeric value having array field. How I need to do for that. with regards Prabahar __

Re: Global Variables

2005-04-12 Thread George Sakkis
Use 'global': def change_filename(): global filename filename=raw_input() def change_path(): global path path=raw_input() Even better, don't use globals at all; in 99% if the time, there are better ways to achieve the same effect. George -- http://mail.python.org/mailman/listinf

Re: Python license (2.3)

2005-04-12 Thread Antoon Pardon
Op 2005-04-12, Robert Kern schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > >> What licence can I use? Somewhere they say you can combine python >> code with GPL code. Does that mean that the resulting code has >> to have both the GPL license as the PSF license, as both seem >> to want that de

Re: Doubt regarding sorting of a list specific field

2005-04-12 Thread vincent wehren
"praba kar" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Dear All, | |I have doubt regarding sorting. I have a list | that list have another list (eg) | | list = [[1234,'name1'],[2234,'name2'],[0432,'name3']] -> Be careful, 0432 is octal notation for 282. | | I want to

win32 readline maintenance (was Re: IPython - problem with...

2005-04-12 Thread Ville Vainio
> "Fernando" == Fernando Perez <[EMAIL PROTECTED]> writes: Fernando> Bummer. I wonder, if the changes are minor and easy, Fernando> perhaps you (or someone else) could offer Gary to take Fernando> over maintenance of readline/win32? It sounds Someone on the ipython mailing list

Re: Python license (2.3)

2005-04-12 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-12, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: What licence can I use? Somewhere they say you can combine python code with GPL code. Does that mean that the resulting code has to have both the GPL license as the PSF license, as both seem to want t

<    1   2   3