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

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

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

<    1   2   3