Re: Using a python web client behind a proxy (urllib and twisted.web)

2005-04-13 Thread Mike Meyer
Matthijs <[EMAIL PROTECTED]> writes: > I have been trying to make a script that will download several rss > feeds to my computer. The only problem I have is that I have to go > through a proxy. > > First I tried using urllib (python 2.4, win32) but I found that the > http_proxy and no_proxy code w

Re: templating system

2005-04-13 Thread Ville Vainio
> "Erik" == Erik Max Francis <[EMAIL PROTECTED]> writes: Erik> All I meant by that note was that EmPy was not primarily Erik> designed for blazing speed; that is, it could easily be made Erik> much more efficient in a lot of ways. I've never had a need It would be interesting to

Re: Newbie Tkinter Question

2005-04-13 Thread Hans Georg Krauthaeuser
Peter Otten schrieb: > Pseud O'Nym wrote: > > >>the following fragment doesn't cause any errors and results in buttons the >>correct size for the images, but the buttons don't work, and the images >>aren't displayed. If I add a text property, and remove the images, they >>work fine, so the rest o

Re: how to explain such codes, python's bug or mine?

2005-04-13 Thread MaHahaXixi
yes, i use the 2th way <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > The second style can be used: >j = range(20) > print j > L = [x for x in j if x > 10] > j = L > > There are another method such poping the item based on last index to 0: > for i in range(len(j)-1,

Re: Programming Language for Systems Administrator

2005-04-13 Thread Ville Vainio
> "zsolt" == pythonUser 07 <[EMAIL PROTECTED]> writes: zsolt> Python is great, but having much "admin" type experience, zsolt> I've found python to be less than Ideal when dealing with zsolt> system calls and standard Input Ouput. Have you tried the 'subprocess' module to see whet

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-13 Thread "Martin v. Löwis"
Roger Binns wrote: >- I could make some sort of installer that did all the non-Python > interpretter > pieces and it would have to be compatible with anyone else doing the same > thing. > > The first is a waste of my time and effort, and I do the second except I also > include the P

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-13 Thread Roger Binns
> Here is the situation I see. I use debian linux systems. Installing all the > dependencies is trivial and if your program has a debian package it would be > a single command. Note that there is *nothing* precluding running using the system Python other than you have to have the dependencies pres

Re: Newbie Tkinter Question

2005-04-13 Thread Peter Otten
Pseud O'Nym wrote: > the following fragment doesn't cause any errors and results in buttons the > correct size for the images, but the buttons don't work, and the images > aren't displayed. If I add a text property, and remove the images, they > work fine, so the rest of my code's OK. I've searche

Re: how to explain such codes, python's bug or mine?

2005-04-13 Thread MaHahaXixi
yes. i understand now. but i use another trick. list is in vary size, so i do not wanna copy it. "Jim" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > MaHahaXixi wrote: > j = range(20) > print j > > > > [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] > >

Re: how to explain such codes, python's bug or mine?

2005-04-13 Thread MaHahaXixi
SORRY, my inattention "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "MaHahaXixi" <[EMAIL PROTECTED]> wrote: > > > for python, i am a newbie, but i did not found the warning of such usage > > from the python tutorial > > "4.2 for Statements" > > "It is not saf

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Bengt Richter
On 13 Apr 2005 18:20:06 -0700, Paul Rubin wrote: >Dick Moores <[EMAIL PROTECTED]> writes: >> I need to figure out how to compute pi to base 12, to as many digits >> as possible. I found this reference, >> , but I really don't >> un

Re: Simple Python + Tk text editor

2005-04-13 Thread Jonathan Fine
Paul Rubin wrote: Jonathan Fine <[EMAIL PROTECTED]> writes: I'm looking for a simple Python + Tk text editor. I want it as a building block/starting point. Something wrong with IDLE? Thanks for this suggestion. For some reason, I did not think of IDLE as an editor. Must have been a blind spot. Th

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Bengt Richter
On Thu, 14 Apr 2005 11:05:17 +1000, John Machin <[EMAIL PROTECTED]> wrote: >On Wed, 13 Apr 2005 08:28:29 -0400, Roy Smith <[EMAIL PROTECTED]> wrote: > >>In article <[EMAIL PROTECTED]>, >> "Dan Bishop" <[EMAIL PROTECTED]> wrote: >> >>> But there's no reason other than tradition why you should arran

Re: Global Variables

2005-04-13 Thread Tim Roberts
"Bob Then" <[EMAIL PROTECTED]> wrote: >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(): global filename > filename=raw_input()

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Bengt Richter
On Thu, 14 Apr 2005 03:14:51 GMT, Doug Schwarz <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, > Dick Moores <[EMAIL PROTECTED]> wrote: > >> Dan wrote at 18:02 4/13/2005: >> >On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> >> >wrote: >> > >> > > I'm just trying to h

Re: Image Module

2005-04-13 Thread Terry Hancock
On Tuesday 12 April 2005 06:01 pm, Nicholas S. Graham wrote: > I want to convert a field of 4:2:2 digital video data into a viewable > format (.jpg or something) using the Image module. Any suggestions?? I'll assume that by "Image" module, you mean Python Imaging Library. I doubt it supports yo

Re: String manipulation

2005-04-13 Thread vincent wehren
"Nicholas Graham" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | | I'm writing a program that requires some string manipulations. Let's say | I have a string | | s='x' | | Now, the ascii code for 'x' is 0x78. I want to be able to perform | operations on this number, and prin

String manipulation

2005-04-13 Thread Nicholas Graham
I'm writing a program that requires some string manipulations. Let's say I have a string s='x' Now, the ascii code for 'x' is 0x78. I want to be able to perform operations on this number, and print the character corresponding to the results of the operation. For example, the pseudo-code lo

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Bengt Richter
On Wed, 13 Apr 2005 21:52:45 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: [...] > >If you replace >a, a1 = 10L*(a%b), 10L*(a1%b1) >with >a, a1 = 12L*(a%b), 12L*(a1%b1) > >and >sys.stdout.write(`int(d)`) >with >sys.stdout.write('%X'%d`) Typo, sorry ^

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-13 Thread kosh
On Wednesday 13 April 2005 9:11 pm, Roger Binns wrote: > "Terry Reedy" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > I guess I don't understand some people's determination to not have users > > install fully useable Python on their Windows machines. > > Ok, here is how you ins

Re: Freezing python application

2005-04-13 Thread Roman Yakovenko
Sorry for previous post - hit the wrong button Hi. I would like to freeze python application on linux. There are a few tools that make the job to be done: freeze ( comes with python ) cx_Freeze Gordon McMillan's installer I have one problem with all of them: they require python to be

Freezing python application

2005-04-13 Thread Roman Yakovenko
Hi. I would like to freeze python application on linux. There are a few tools that make the job to be done: freeze ( comes with python ) cx_Freeze Gordon McMillan's installer Is it possible to freeze python application on linux in such way that it doesn't depends on python installed on cu

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
Doug Schwarz wrote at 20:14 4/13/2005: In article <[EMAIL PROTECTED]>, Dick Moores <[EMAIL PROTECTED]> wrote: > Dan wrote at 18:02 4/13/2005: > >On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> > >wrote: > > > > > I'm just trying to help an artist acquaintance who needs (I just

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-13 Thread Roger Binns
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I guess I don't understand some people's determination to not have users > install fully useable Python on their Windows machines. Ok, here is how you install BitPim which contains a frozen Python: - Download and run

Re: Best editor?

2005-04-13 Thread Greg Ewing
Mike Meyer wrote: Gee, it's changed from eight to eighty. Probably because eight is a small app by todays standards. Then again, it's not like 80 is large these days. Yeah, it's probably time to upgrade it to 800. :-) -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchur

Re: Programming Language for Systems Administrator

2005-04-13 Thread Greg Ewing
Peter Maas wrote: This is only true for trivial bash scripts. I have seen bash scripts which were quite hard to read especially for beginners. I've seen shell scripts which are quite hard to read even for experts! -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch,

Re: The convenient database engine for a "Distributed" System

2005-04-13 Thread Greg Ewing
Grig Gheorghiu wrote: I also recommend Firebird. I like the fact that the database is in its own file that can be copied from one platform to another. Although you can only do that between platforms having the same byte order. Backing up and restoring is a more reliable way to do cross-platform dat

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Apr 11)

2005-04-13 Thread Greg Ewing
Simon Brunning wrote: "You need to recursively subdivide the cake until you have a piece small enough to fit in your input buffer. Then the atomicity of the cake-ingestion operation will become apparent." - Scott David Daniels Actually it was me who wrote that, not Scott. (Darn. I finally say somet

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Doug Schwarz
In article <[EMAIL PROTECTED]>, Dick Moores <[EMAIL PROTECTED]> wrote: > Dan wrote at 18:02 4/13/2005: > >On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> > >wrote: > > > > > I'm just trying to help an artist acquaintance who needs (I just > > >learned) the first 3003 digits of

Re: sort of a beginner question about globals

2005-04-13 Thread Steven Bethard
fred.dixon wrote: #global1.py import global2 import global3 import sys constant = 'dumb' option = sys.argv[1:] pass #global2.func1() a=global2.class1() a.func1() print newvar #global2.py import __main__ pass class class1: def func1(self): __main__.newvar = "string" pass The othe

Re: Text & Unicode processing references on the web.

2005-04-13 Thread anthony hornby
Hi Martin, Thanks for the useful links :-) Anthony. On Sat, 2005-04-09 at 13:46 +0200, "Martin v. LÃwis" wrote: > anthony hornby wrote: > > Can anyone point out some good "Python & Unicode" and "Python & Text > > processing" resources on the net to get me started? Any good book > > recommendation

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Steve Holden
Dan wrote: On 13 Apr 2005 12:06:26 -0400, [EMAIL PROTECTED] (Roy Smith) wrote: Scott David Daniels <[EMAIL PROTECTED]> wrote: If you think those are fun, try base (1j - 1) Get real. I can't imagine using anything so complex. Well said. :-) Oh, no, now we're sunk three-holes-in-the-ground-ly y'

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Steve Holden
Dick Moores wrote: Dan wrote at 18:02 4/13/2005: On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm just trying to help an artist acquaintance who needs (I just >learned) the first 3003 digits of pi to the base 12. Now you've got me curious. Why would an artist want t

Re: Python documentation moronicities (continued)

2005-04-13 Thread Steve Holden
runes wrote: Steve, thank you for givig me those links. I'll go there if I manage to structure an improvement suggestion. RTFM :-) [The links came from the documentation] And about the link to the Howto: I suppose many people don't read the manual from a to z but with a particular problem in mind.

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Paul Rubin
Dick Moores <[EMAIL PROTECTED]> writes: > I don't believe GNU "bc" is available for Windows, is it? I don't know. It probably works ok under Cygwin at least. -- http://mail.python.org/mailman/listinfo/python-list

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
Paul Rubin wrote at 18:20 4/13/2005: Dick Moores <[EMAIL PROTECTED]> writes: > I need to figure out how to compute pi to base 12, to as many digits > as possible. I found this reference, > , but I really don't > understand it well enough. Could someone show m

Re: Python documentation moronicities (continued)

2005-04-13 Thread runes
Steve, thank you for givig me those links. I'll go there if I manage to structure an improvement suggestion. And about the link to the Howto: I suppose many people don't read the manual from a to z but with a particular problem in mind. Hence the link could ble locateded several places, perhaps re

Re: .

2005-04-13 Thread John E. Carty
Report spam to: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] > Nuf said. -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming Language for Systems Administrator

2005-04-13 Thread Bryan
pythonUser_07 wrote: Python is great, but having much "admin" type experience, I've found python to be less than Ideal when dealing with system calls and standard Input Ouput. For example, I've written complex tools that use perforce, I've taken advantage of both regular IO and the perforce marshal

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Ivan Van Laningham
Hi All-- Dick Moores wrote: > > Dan wrote at 18:02 4/13/2005: > >On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> > >wrote: > > > > > I'm just trying to help an artist acquaintance who needs (I just > > >learned) the first 3003 digits of pi to the base 12. > > > >Now you've got

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Paul Rubin
Dick Moores <[EMAIL PROTECTED]> writes: > I need to figure out how to compute pi to base 12, to as many digits > as possible. I found this reference, > , but I really don't > understand it well enough. Could someone show me how to do what I need? Using the G

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
Dan wrote at 18:02 4/13/2005: On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm just trying to help an artist acquaintance who needs (I just >learned) the first 3003 digits of pi to the base 12. Now you've got me curious. Why would an artist want the first 3003 digit

Re: Compute pi to base 12 using Python?

2005-04-13 Thread John Machin
On Wed, 13 Apr 2005 08:28:29 -0400, Roy Smith <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, > "Dan Bishop" <[EMAIL PROTECTED]> wrote: > >> But there's no reason other than tradition why you should arrange them >> into groups of 10. > >Well, it is traditional for people to have 10 fin

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dan
On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm just trying to help an artist acquaintance who needs (I just >learned) the first 3003 digits of pi to the base 12. Now you've got me curious. Why would an artist want the first 3003 digits of pi to the base 12? Da

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dan
On 13 Apr 2005 12:06:26 -0400, [EMAIL PROTECTED] (Roy Smith) wrote: >Scott David Daniels <[EMAIL PROTECTED]> wrote: >>If you think those are fun, try base (1j - 1) > >Get real. I can't imagine using anything so complex. Well said. :-) Dan -- http://mail.python.org/mailman/listinfo/python-lis

Re: Can't Stop Process On Windows

2005-04-13 Thread Dan
On Tue, 12 Apr 2005 06:53:04 -0600, Dave Brueck <[EMAIL PROTECTED]> wrote: >Are you calling select with a long timeout? An alternative would be to call >select with a much shorter timeout, but call it multiple times from a loop. That seems to have fixed the problem. Changed it from no timeout

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
Bengt Richter wrote at 14:52 4/13/2005: import sys def main(): k, a, b, a1, b1 = 2L, 4L, 1L, 12L, 4L while 1: p, q, k = k*k, 2L*k+1L, k+1L a, b, a1, b1 = a1, b1, p*a+q*a1, p*b+q*b1 d, d1 = a/b, a1/b1 while d == d1: output(d) a, a1 = 10

Re: Utah Python Users Group

2005-04-13 Thread Ivan Van Laningham
Hi All-- Matthew Thorley wrote: > > lugal wrote: > > Is anyone aware if there's a Utah-based Python User Group? If not, does > > any else from Utah have any interest in forming a Utah-based Python > > User Group? > > > I'm in Utah, I don't know of any groups but I might be interested. > Ditto.

Re: sort of a beginner question about globals

2005-04-13 Thread fred.dixon
this is what i am using to test with. my program is not much more involved just longer and with a GUI. I did test it and everything works, just wondered if there was something evil and bad about importing main. # #global1.py import global2 import glo

RE: os.path.walk

2005-04-13 Thread Tony Meyer
> I think if you try this you will find that it doesn't work because > os.path.walk will try to call the *result* of processDirectory(a,b,c) > for each directory in the path. Opps. I missed the "path", so gave an answer for os.walk. Apologies. The actual answer, then, I guess is that the OP c

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

2005-04-13 Thread John W. Kennedy
Xah Lee wrote: http://python.org/doc/2.4.1/lib/module-re.html http://python.org/doc/2.4.1/lib/node114.html - QUOTE The module defines several functions, constants, and an exception. Some of the functions are simplified versions of the full featured methods for compiled regular expressions.

Re: terminate exectutioin in PythonWin

2005-04-13 Thread Neil Hodgson
Jim: > Great thanks! PythonWin isn't hot on keyboard shortcuts but ironically > calls this a KeyboardInterrupt :| I don't think the keyboard can be accessed in this situation so the icon is provided. > Know any keyboard shortcuts for debug view? e.g. open it, run(debug), > step etc. No

.

2005-04-13 Thread
Nuf said. -- http://mail.python.org/mailman/listinfo/python-list

Re: Utah Python Users Group

2005-04-13 Thread Matthew Thorley
lugal wrote: > Is anyone aware if there's a Utah-based Python User Group? If not, does > any else from Utah have any interest in forming a Utah-based Python > User Group? > I'm in Utah, I don't know of any groups but I might be interested. -Matthew -- http://mail.python.org/mailman/listinfo/pyth

Re: numarray.array can be VERY slow

2005-04-13 Thread Robert Kern
Jim wrote: Edward C. Jones wrote: Steven Bethard wrote: > As mentioned, this has nothing to do with numarray, and everything to > do with your inexplicable use of lists. Why don't you just write this > as: > > arr = numarray.ones((8, 8, 256, 256), Float64) The code I posted was simplified fro

JUST ANOTHER SPAMMER!

2005-04-13 Thread .
Nuf said. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python license (2.3)

2005-04-13 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>: Yes, the license text and the copyright notice must be attached. It doesn't mean that the PSF license is the operative one for the derivative

Re: permission

2005-04-13 Thread Mike Meyer
Skip Montanaro <[EMAIL PROTECTED]> writes: > 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: Especially since the answer to the question may change bet

Re: sort of a beginner question about globals

2005-04-13 Thread Steven Bethard
fred.dixon wrote: ok I'm sorry, I'm not sure what your doing there. if i have to guess it looks like yo might me modifying the imported modules dict with another dict. Yes, this takes all the atrributes of the options object and sets them as attributes of the module. If you're afraid of __dict__,

Re: exporting imports to reduce exe size?

2005-04-13 Thread Mike Meyer
Ron_Adam <[EMAIL PROTECTED]> writes: > In looking at ways to reduce the size of exe's created with py2exe, > I've noticed that it will include a whole library or module even if I > only need one function or value from it. > > What I would like to do is to import individual functions and then > e

Re: Embedding threaded Python

2005-04-13 Thread Tom Cocagne
You only need to call PyEval_InitThreads() for multithreaded C-code. The Python threads operate on a different principle. Tom Ricardo wrote: > If I embed Python in a C app and the Python code is threaded, but the C > code isn't, do I need to call PyEval_InitThreads() ? - or do you only need >

Utah Python Users Group

2005-04-13 Thread lugal
Is anyone aware if there's a Utah-based Python User Group? If not, does any else from Utah have any interest in forming a Utah-based Python User Group? -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib does not send to all recipients

2005-04-13 Thread Steve Holden
[EMAIL PROTECTED] wrote: That seems reasonable. However, using the 'mail' utility I can deliver the same mail successfully. I assume mail is using sendmail under the covers, which is doing the same negotiation with the same SMTP server? The facts would appear to suggest that both sources are acce

Re: build flow? SCons? AAP? process creation?

2005-04-13 Thread corey . coughlin
good point, I hadn't checked the docs too closely. Shame it's only in 2.4 though, we're still running 2.2 around here, but it would be nice to have a reason to upgrade, anyway. Thanks for the pointer! -- http://mail.python.org/mailman/listinfo/python-list

Re: Compute pi to base 12 using Python?

2005-04-13 Thread [EMAIL PROTECTED]
Dan Bishop wrote: > Dick Moores wrote: > > I need to figure out how to compute pi to base 12, to as many digits > as > > possible. I found this reference, > , > > but I really don't understand it well enough. > > How many stars are in "***

Re: Newbie Tkinter Question

2005-04-13 Thread Paul Rubin
"Pseud O'Nym" <[EMAIL PROTECTED]> writes: > class App: > def __init__(self, master): > frame = Frame(master) > frame.pack(side=LEFT, fill=Y) > image1 = PhotoImage(file='button_a.gif') > self.button = Button(frame, image=image1) > self.button.pack(side=TOP) > > Can anyone enli

Newbie Tkinter Question

2005-04-13 Thread Pseud O'Nym
Hi, the following fragment doesn't cause any errors and results in buttons the correct size for the images, but the buttons don't work, and the images aren't displayed. If I add a text property, and remove the images, they work fine, so the rest of my code's OK. I've searched this group and Python

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Bengt Richter
On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote at 03:19 4/13/2005: >>On Wed, 13 Apr 2005 02:06:11 -0700, Dick Moores <[EMAIL PROTECTED]> wrote: >> >> >I need to figure out how to compute pi to base 12, to as many digits as >> >possible. I found this

Re: Removing comments... tokenize error

2005-04-13 Thread qwweeeit
My code, besides beeing cumbersome and criptic, has another quality: it is buggy! I apologize for that; obviously I discovered it after posting (in the best tradition of Murphy's law!). When I will find the solution I let you know, also if the problem is made difficult for the fact that the for cyc

Re: Read the windows event log

2005-04-13 Thread Roger Upole
You'll need to read in a loop until no records are returned. Roger "Austin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My codes are below: > > *** > import win32evtlog > > def check_records(records): >for i in range(0,len(records)):

Re: Web Application Client Module

2005-04-13 Thread Raffi
Berislav Lopac wrote: > Raffi wrote: > > 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 compromised browsers o

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-13 Thread "Martin v. Löwis"
Peter Hansen wrote: >> The last I recall reading in this forum was that the regular >> distribution is compiled with a copy of the compiler >> *provided by* Microsoft. [...] > By 'provided by' I meant *donated by*, as in given > free (apparently) to the PSF or at least to one of > the core develope

Re: Programming Language for Systems Administrator

2005-04-13 Thread pythonUser_07
Python is great, but having much "admin" type experience, I've found python to be less than Ideal when dealing with system calls and standard Input Ouput. For example, I've written complex tools that use perforce, I've taken advantage of both regular IO and the perforce marshalled IO. Under heavy

Re: sort of a beginner question about globals

2005-04-13 Thread fred.dixon
it seems that i can import __main__ where i set the global and then access the var from my local func. is ther any gotcha's involveld in this ? -- http://mail.python.org/mailman/listinfo/python-list

python guru... ViewCVS

2005-04-13 Thread bruce
hi... i'm playing/testing a python file (viewcvs.cgi/viewcvs.pyc) and i need to talk with someone for a few minutes... i have no knowledge of python. the file apparently opens up/reads a config file. however, i'm confused at figuring out how to debug the file, to see what/where it's going in the

Re: permission

2005-04-13 Thread Kartic
James said the following on 4/12/2005 11:00 PM: Is it possible to check if you have permission to access and or change a directory or file? James - You can use the access() in the os module. import os print os.access('C:\\', os.R_OK | os.W_OK) # check for read/write access # hopefully print True p

Re: Python license (2.3)

2005-04-13 Thread Bengt Richter
On Wed, 13 Apr 2005 13:30:18 -0400, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > >"Antoon Pardon" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> I see this as my contribution to the communities who has provided me >> with all kinds of things that are usefull to me. I'm willing to p

Re: preallocate list

2005-04-13 Thread John Machin
On Wed, 13 Apr 2005 14:28:51 +0100, Jim <[EMAIL PROTECTED]> wrote: >Thanks for the suggestions. I guess I must ensure that this is my bottle >neck. > > def readFactorsIntoList(self,filename,numberLoads): 1. "numberLoads" is not used. > factors = [] > f = open(self.basedir + f

Re: PyChart into web site error

2005-04-13 Thread Damjan
>>>AttributeError: 'module' object has no attribute 'argv' >>> >>>Why my script doesn't have sys.argv? ... >> How are you serving the pages? > > Apache 2.0.48, mod_python 3.1.3 and Python 2.3.3 > on my mdk 10.0 Obviosly when using mod_python there's no sys.argv (and what would it contain if it ex

Re: templating system

2005-04-13 Thread Ksenia Marasanova
On 4/13/05, James Carroll <[EMAIL PROTECTED]> wrote: > I've had fantastic results with SimpleTAL > http://www.owlfish.com/software/simpleTAL/ > > It uses the Zope Page Templates style markups (which are wysiwyg in > dreamweaver) and then pulls contents from python functions and > 'contexts' ve

Re: PyChart into web site error

2005-04-13 Thread Lee Harr
On 2005-04-13, Michele Petrazzo <[EMAIL PROTECTED]> wrote: > Lee Harr wrote: >> On 2005-04-12, Michele Petrazzo <[EMAIL PROTECTED]> wrote: >> >>>I'm using PyChart like a module for create charts into a little web >>>site, but when I try to create one, I have this error: >>> >>>/var/www/html/lgt/dr

Re: templating system

2005-04-13 Thread Ksenia Marasanova
> In the interests of full disclosure, I'm the author of EmPy. > Cool :) > All I meant by that note was that EmPy was not primarily designed for > blazing speed; that is, it could easily be made much more efficient in a > lot of ways. I've never had a need to do so, so it's always been low > pri

Re: sort of a beginner question about globals

2005-04-13 Thread fred.dixon
ok I'm sorry, I'm not sure what your doing there. if i have to guess it looks like yo might me modifying the imported modules dict with another dict. isn't there a way i can just assign to a var and have it seen no matter what part of the code is currently executing ? -- http://mail.python.org/m

Re: build flow? SCons? AAP? process creation?

2005-04-13 Thread Dennis Benzinger
[EMAIL PROTECTED] schrieb: [...] So if I do wind up having to write this thing myself, I've been checking the docs on process creation, and have a couple questions if anyone can fill me in. It looks like the os.spawn* commands can start nonblocking sub-processes, but there doesn't seem to be a way

Re: HTTPSConnection script fails, but only on some servers (long)

2005-04-13 Thread Paul Winkler
[EMAIL PROTECTED] wrote: > I have a couple of recipes at the python cookbook site, that allows > python to do proxy auth and ssl. The easiest one is: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/301740 Thanks for that John! I gave it a whirl, changed the user, passwd, host, and phos

Re: smtplib does not send to all recipients

2005-04-13 Thread dccarson
That seems reasonable. However, using the 'mail' utility I can deliver the same mail successfully. I assume mail is using sendmail under the covers, which is doing the same negotiation with the same SMTP server? -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python + Tk text editor

2005-04-13 Thread Paul Rubin
Jonathan Fine <[EMAIL PROTECTED]> writes: > I'm looking for a simple Python + Tk text editor. > > I want it as a building block/starting point. Something wrong with IDLE? -- http://mail.python.org/mailman/listinfo/python-list

build flow? SCons? AAP? process creation?

2005-04-13 Thread corey . coughlin
Hey guys, here's a little question. I'm looking for something like a build system, where I can set up a bunch of jobs with dependencies, and have them run in parallel. Ideally, I'd like a system where jobs can be run in parallel, all the stdout and stderr for each job is kept in a database of som

Re: are DLLs needed to run glade interfaces in python with Windows?

2005-04-13 Thread stefan . eletzhofer
On Wed, Apr 13, 2005 at 11:58:12AM -0700, Fernando wrote: > Hi, > I've a .glade file with a little interface I made. I've managed to > load it from a python script, using pyGTK, but the only way it succeed > was copying into the same directory the "libxml2.dll" and > "libglade-2.0.0.dll" files. >

are DLLs needed to run glade interfaces in python with Windows?

2005-04-13 Thread Fernando
Hi, I've a .glade file with a little interface I made. I've managed to load it from a python script, using pyGTK, but the only way it succeed was copying into the same directory the "libxml2.dll" and "libglade-2.0.0.dll" files. I think you only need to install theese as packages in Linux, but I'm

Re: printing with wxPython

2005-04-13 Thread Peter Hansen
Fabio Pliger wrote: Yeah, There are two about printing... there is also an example in the wxDemo... but they all talk about printing text... In my case i need to print (or at least to make a print preview) a bitmap (or a panel...) The technique used should be the same. Basically you need to be doi

Simple Python + Tk text editor

2005-04-13 Thread Jonathan Fine
Hi I'm looking for a simple Python + Tk text editor. I want it as a building block/starting point. I need basic functions only: open a file, save a file, new file etc. It has to be open source. Anyone know of a candidate? -- Jonathan http://qatex.sourceforge.org -- http://mail.python.org/mailman/

Re: preallocate list

2005-04-13 Thread Dan Christensen
Bill Mill <[EMAIL PROTECTED]> writes: > Bill Mill <[EMAIL PROTECTED]> writes: > >> I would profile your app to see that it's your append which is taking >> ages, but to preallocate a list of strings would look like: >> >> ["This is an average length string" for i in range(approx_length)] I don't

THE GREATEST NEWS EVER! °º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.· (newsgroup-post 134)

2005-04-13 Thread RonGrossi_38_2513
The Greatest News Ever! http://groups-beta.google.com/group/alt.politics.bush/browse_thread/thread/f9b35b05a72da1e1/66f1a43881a0fe82#66f1a43881a0fe82 ·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.··._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.··._._.·º°`°º·.

Re: exporting imports to reduce exe size?

2005-04-13 Thread Ron_Adam
On Tue, 12 Apr 2005 12:14:38 -0400, Chris Cioffi <[EMAIL PROTECTED]> wrote: >My first thought is what if the function you are using uses other >functions(maybe not exported by the module/package)? For example: if >some_func() makes a call to _some_weird_module_specific_func(), how >are you going

Re: HTTPSConnection script fails, but only on some servers (long)

2005-04-13 Thread pyguy2
I have a couple of recipes at the python cookbook site, that allows python to do proxy auth and ssl. The easiest one is: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/301740 john [EMAIL PROTECTED] wrote: > Well HTTPSConnection does not support proxies. (HTTP/CONNECT + switch to HTTPS)

How to call a function in embeded python code in delphi?

2005-04-13 Thread Tom
delphi 7 python 2.3 win98 Python for Delphi V3.25 In Delphi: 1 Create a new Form ; 2 Drop a TMemo(Memo1) to contain python code; 3 Drop a TPythonInputOutput (PythonInputOutput1) ; 4 Drop a TPythonEngine (PythonEngine1) ; 5 Drag a PythonDelphiVar component and name it bx. Set the VarName

Re: domain specific UI languages

2005-04-13 Thread Stefan Seefeld
max(01)* wrote: hi. in a previous thread, mr lundh talks about the possibility to create "domain specific UI languages" using tkinter. can he (or anyone else who pleases) explain what they are? give some examples (simple is better)? Without having read the original thread, I imagine such a beast

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Grant Edwards
On 2005-04-13, Dan Bishop <[EMAIL PROTECTED]> wrote: > Pi has an interesting representation in bases between 0 and 1, > exclusive. There are a finite number of digits after the radix point, > but an infinite number _before_ it. You really oughtn't make me think so hard right after lunch. -- Gr

Re: HTTPSConnection script fails, but only on some servers (long)

2005-04-13 Thread Paul Winkler
Thanks for the replies, Steve and Andreas! I will check out pycurl, thanks very much for the tip. Meanwhile, I'm trying to prepare a bug report re. httplib and get as much information as possible. Something I neglected to mention: when the script hits the problematic server, it always takes abo

  1   2   3   >