Re: Unicode/ascii encoding nightmare

2006-11-06 Thread Robert Kern
John Machin wrote: > Indeed yourself. Have you ever considered reading posts in > chronological order, or reading all posts in a thread? That presumes that messages arrive in chronological order and transmissions are instantaneous. Neither are true. -- Robert Kern "I have come to believe that t

Re: Unicode/ascii encoding nightmare

2006-11-06 Thread Gabriel Genellina
At Monday 6/11/2006 20:34, Robert Kern wrote: John Machin wrote: > Indeed yourself. Have you ever considered reading posts in > chronological order, or reading all posts in a thread? That presumes that messages arrive in chronological order and transmissions are instantaneous. Neither are tru

Re: SPE editor slow?

2006-11-06 Thread SPE - Stani's Python Editor
timmy schreef: > SPE - Stani's Python Editor wrote: > > timmy schreef: > > > > > >>hello i've been using the SPE editor on a moderately large project and > >>it's constantly pausing during editing, like it's attempting to check > >>something as i edit. > >>as you can imagine a 4 second pause every

Re: wing ide vs. komodo?

2006-11-06 Thread SPE - Stani's Python Editor
[EMAIL PROTECTED] schreef: > I have both, but the IDE I use every day is SPE, which is shareware. I'm > not savvy enough to enumerate a feature comparison, but I do find SPE > extremely friendly and intuitive. > > Gerry SPE is not shareware. It is open-source, gpl-licensed freeware. Donations ho

Re: Unicode/ascii encoding nightmare

2006-11-06 Thread John Machin
Gabriel Genellina wrote: > At Monday 6/11/2006 20:34, Robert Kern wrote: > > >John Machin wrote: > > > Indeed yourself. Have you ever considered reading posts in > > > chronological order, or reading all posts in a thread? > > > >That presumes that messages arrive in chronological order and > >tra

Re: python-ldap/win32 or python/ldap/win32

2006-11-06 Thread Michael Ströder
rcmn wrote: > i'm running around in circle trying to to use python/ldap/ on > win32(WinXP). Maybe this message sent to the python-ldap-dev mailing list helps. You're welcome to follow up on this list. Ciao, Michael. Original Message Subject: Experimental 2.2.0 Windows Build Dat

Re: simple way to un-nest (flatten?) list

2006-11-06 Thread bearophileHUGS
djc: > As it is possible that the tuples will not always be the same word in > variant cases > result = sum(r.values(), ()) > will do fine and is as simple as I suspected the answer would be. It is simple, but I suggest you to take a look at the speed of that part of your code into your program.

Re: auto indent

2006-11-06 Thread John Henry
M.N.Smadi wrote: > Hi there; > > i have a script that is not indented properly. Is there a way that i can > have it auto indented. > > thanks > moe smadi It depends what exactly you mean. I use Textpad and they have an "indent selected block" feature. -- http://mail.python.org/mailman/listinfo

Re: shutil: permission denied errors on windows

2006-11-06 Thread John Henry
I use the copy function a lot and never have problem. I suggest that you write a no brainer standalone test code and if it still fails there, then you have a problem with your installation. Antoine De Groote wrote: > Google tells quite some things about it, but none of them are satisfactory. > >

Re: Python Distilled

2006-11-06 Thread Simon Wittber
> http://www.python.org/dev/summary/2006-09-16_2006-09-30/#shrinking-python Excellent, just what I was hoping for. Thanks! -Sw. -- http://mail.python.org/mailman/listinfo/python-list

Re: wing ide vs. komodo?

2006-11-06 Thread John Henry
"cool" is in the eyes of the beholder. While I agree that this can be useful in some situations, I find it very annoying when all I want (and need) to do is a simple dumber search and yet it tells me tons of useless searches that I don't care for. The inability to debug multi-threaded application

Re: auto indent

2006-11-06 Thread John Machin
M.N.Smadi wrote: > Hi there; > > i have a script that is not indented properly. Is there a way that i can > have it auto indented. It depends on what you mean by "not indented properly". Indentation is part of the Python grammar. If the script compiles OK, and works as expected, but you have (say

Re: Pyro stability

2006-11-06 Thread Irmen de Jong
writeson wrote: > Irmen, > > Thanks, you're very good about answering Pyro related questions! Well, I do have an advantage here, being Pyro's author... :) --Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode/ascii encoding nightmare

2006-11-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Machin <[EMAIL PROTECTED]> wrote: > >Thomas W wrote: >> Ok, I've cleaned up my code abit and it seems as if I've >> encoded/decoded myself into a corner ;-). My understanding of unicode >> has room for improvement, that's for sure. I got some pointers and >> ini

Re: forwarding *arg parameter

2006-11-06 Thread Steven D'Aprano
On Mon, 06 Nov 2006 13:03:55 +, Tuomas wrote: > If you read the whole chain you find out what we were talking of. I had already read the whole thread, and I've read it again in case I missed something the first time, and I still have no idea why you think you need to do this. You explain *wha

sound process moduls in python ?

2006-11-06 Thread [EMAIL PROTECTED]
Hi, When I was talking with my friend, I wanted to share the music I'm listening with my friend. I mean, I wanted my friend to hear my music and my own sound . I order to achieve this, I think I need to append the output of my sound card to the input of the sound card. My questions: 1. Is my

Re: Pyro stability

2006-11-06 Thread Carl J. Van Arsdall
Irmen de Jong wrote: > writeson wrote: > >> Irmen, >> >> Thanks, you're very good about answering Pyro related questions! >> > > Well, I do have an advantage here, being Pyro's author. > And I don't know if you get this enough... but thanks. Pyro is fucking amazing and has been a great

Re: Unicode/ascii encoding nightmare

2006-11-06 Thread John Machin
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > John Machin <[EMAIL PROTECTED]> wrote: > > > >Thomas W wrote: > >> Ok, I've cleaned up my code abit and it seems as if I've > >> encoded/decoded myself into a corner ;-). My understanding of unicode > >> has room for improvement, that's for

Re: assigning values in __init__

2006-11-06 Thread Steve Holden
John Salerno wrote: > Let's say I'm making a game and I have this base class: > > class Character(object): > > def __init__(self, name, stats): > self.name = name > self.strength = stats[0] > self.dexterity = stats[1] > self.intelligence = stats[2] >

Re: sound process moduls in python ?

2006-11-06 Thread alf
[EMAIL PROTECTED] wrote: > Hi, > > When I was talking with my friend, I wanted to share the music I'm > listening with > my friend. I mean, I wanted my friend to hear my music and my own sound . > > I order to achieve this, I think I need to append the output of my sound > card to > the input o

PyPotrace Version 1.0 released on Sourceforge!!!

2006-11-06 Thread The Eternal Squire
All, This is to let you know that I have designed, tested, and released a simple wrapper around Peter Selig's Potrace raster to vector conversion facility. This is the same conversion engine as is used in Inkscape. This wrapper incorporates the Potrace code so that a separate dll for Potrace is

Re: Is there any python lib for calling CVS api?

2006-11-06 Thread Kevien Lee
Paul : Thanks ,but the viewvc lib so simple useable for python:( Paul Boddie wrote: > [EMAIL PROTECTED] wrote: > > Hi everyone, this should be a quick question. I'm writing some scripts > > to take some file and move them into a CVS repository, but it's pretty > > slow, because it uses system ca

Re: assigning values in __init__

2006-11-06 Thread Steven D'Aprano
On Mon, 06 Nov 2006 16:57:58 -0500, John Salerno wrote: > Let's say I'm making a game and I have this base class: > > class Character(object): > > def __init__(self, name, stats): > self.name = name > self.strength = stats[0] > self.dexterity = stats[1] >

Re: Python Distilled

2006-11-06 Thread The Eternal Squire
Try also Diet Python on SourceForge. It's the first step toward a shrunken Python for embedded Win32 systems. Cheers, The Eternal Squire Simon Wittber wrote: > > http://www.python.org/dev/summary/2006-09-16_2006-09-30/#shrinking-python > > Excellent, just what I was hoping for. Thanks! > > -

Re: assigning values in __init__

2006-11-06 Thread Ben Finney
John Salerno <[EMAIL PROTECTED]> writes: > Let's say I'm making a game and I have this base class: > > class Character(object): > > def __init__(self, name, stats): > self.name = name > self.strength = stats[0] > self.dexterity = stats[1] > self.intelligenc

Re: Projecting MUD maps

2006-11-06 Thread Scott David Daniels
Diez B. Roggisch wrote: > But there is no cookbook-algorithm that will produce perfect MUD-maps. For > such a beast, you have to cough up one on your own, with things like > constraint solvers and the like. Certainly over _my_ head, at least without > deep studies of planar graph representation pro

using split function

2006-11-06 Thread [EMAIL PROTECTED]
Hi, I have to write a code in python to read a matrix from a text file and for that i am using following code. But it gives an error saying "NameError: name 'split' is not defined". Can anyone help me with this. - #!/usr/bin/python import numpy file

Re: using split function

2006-11-06 Thread ina
[EMAIL PROTECTED] wrote: > Hi, > > I have to write a code in python to read a matrix from a text file and > for that i am using following code. But it gives an error saying > "NameError: name 'split' is not defined". Can anyone help me with this. > -

Nested Dictionary Sorting

2006-11-06 Thread Sam Loxton
Hi, I am fairly new to the python language and am trying to sort a nested Dictionary of a Dictionary which I wish to sort by value. The dictionary does not have to be restructured as I only need it sorted in this way for printing purposes. The following is an example of my Dictionary printed w

Re: sqlite error?

2006-11-06 Thread Frank Millman
John Salerno wrote: > >> Am I using the ? placeholder wrong in this example? > >> > >> > >> t = ('hi', 'bye') > >> > >> self.connection.execute("INSERT INTO Personal (firstName, lastName) > >> VALUES ?", t) > >> [snip] > > Thanks guys. I'll try this. I thought the ? stood for the whole tuple. Def

distutiles extension question

2006-11-06 Thread Eric S. Johansson
How can I limit when my code run only when it's a build or install setup.py command and only after the setup method? I need to do some processing after setup.py runs and I've been successful writing the code to do what I need but the problem is it runs every time I run setup.py regardless of th

Re: Unicode/ascii encoding nightmare

2006-11-06 Thread Hendrik van Rooyen
"John Machin" <[EMAIL PROTECTED]> wrote: 8<--- > I strongly suggest that you read the docs *FIRST*, and don't "tinker" > at all. > > HTH, > John This is *good* advice - its unlikely to be followed though, as the OP is prolly just like most of us - you unpack

Re: using split function

2006-11-06 Thread Gabriel Genellina
> I have to write a code in python to read a matrix from a text file and > for that i am using following code. But it gives an error saying > "NameError: name 'split' is not defined". Can anyone help me with this. A few hints: - don't use "file" as a name - it shadows the builtin "file" type -

Re: Nested Dictionary Sorting

2006-11-06 Thread Peter Otten
Sam Loxton wrote: > I am fairly new to the python language and am trying to sort a nested > Dictionary of a Dictionary which I wish to sort by value. The dictionary > does not have to be restructured as I only need it sorted in this way > for printing purposes. > > The following is an example of

<    1   2