Re: text editor suggestion?

2006-08-20 Thread Alexander Jakopin
John Salerno <[EMAIL PROTECTED]> wrote: > Ok, I know it's been asked a million times, but I have a more specific > question so hopefully this won't be just the same old post. I've tried a > few different editors, and I really like UltraEdit, but it's > Windows-only and I'm working more on Linux

Get paid to post in forums..

2006-08-20 Thread bloggerer
myLot promises to pay as you talk on its discussion boards. You can post and reply to whatever topic that you like. to join: http://www.mylot.com/?ref=blogger1 The following is taken from their website: ** How does this work? We have implemented a system to

PIL problem: IOError: cannot identify image file

2006-08-20 Thread h112211
Hi, I installed the newest available PIL (1.1.5 for Python 2.4) from their site, but cannot seem to open any files. The following from PIL import Image i = Image.open(file('c:\\image2.png')) results in File "C:\Program Files\Python24\lib\site-packages\PIL\Image.py", line 1745, in open ra

Re: How to get the ascii code of Chinese characters?

2006-08-20 Thread Fredrik Lundh
Gerhard Fiedler wrote: >> No. ASCII characters range is 0..127 while Unicode characters range is >> at least 0..65535. > > Actually, Unicode goes beyond 65535. you may want to look up "at least" in a dictionary. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get the ascii code of Chinese characters?

2006-08-20 Thread Fredrik Lundh
many_years_after wrote: > Well, people may input from keyboard. They input some Chinese > characters, then, I want to create a number. The same number will be > created if they input the same Chinese characters. assuming you mean "code point" rather than "ASCII code" (ASCII is a specific encodin

Re: How to get the ascii code of Chinese characters?

2006-08-20 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Fredrik Lundh wrote: > Gerhard Fiedler wrote: > >>> No. ASCII characters range is 0..127 while Unicode characters range is >>> at least 0..65535. >> >> Actually, Unicode goes beyond 65535. > > you may want to look up "at least" in a dictionary. Maybe you need to

Re: PIL problem: IOError: cannot identify image file

2006-08-20 Thread h112211
Doh! Apparently Image.open() wants a path, not a file. So i = Image.open('c:\\image2.png') works fine. -- http://mail.python.org/mailman/listinfo/python-list

Re: Permission Denied

2006-08-20 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, AlbaClause wrote: > Then, to execute the file from from the shell prompt, I had to create a > 'bin' directory in my home folder, cuz I didn't want to litter > my /usr/local/bin folder with useless Python scripts. Executable files can be kept anywhere, you don't nee

Re: tkinter btn visual state with tkMessageBox

2006-08-20 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> Wrote: | | Hendrik van Rooyen wrote: | > <[EMAIL PROTECTED]> wrote: | > | > To: | > | > | > | why is the button sunken when called through a bind method, and not | > | with the command attribute? | > | Thank you! | > | | > | | > | ## Cut'nPaste example | > | from Tkinter import

Re: sum and strings

2006-08-20 Thread Paddy
Rhamphoryncus wrote: > > It's worthwhile to note that the use of + as the concatenation operator > is arbitrary. It could just have well been | or &, and has no > relationship with mathematically addition. The effect of the string concatenation operator is only secondary. Secondary to the use o

Re: Permission Denied

2006-08-20 Thread AlbaClause
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, AlbaClause wrote: > >> Then, to execute the file from from the shell prompt, I had to create a >> 'bin' directory in my home folder, cuz I didn't want to litter >> my /usr/local/bin folder with useless Python scripts. > > Executable fi

Re: text editor suggestion?

2006-08-20 Thread Jorgen Grahn
On Sat, 19 Aug 2006 02:06:15 -0400, John Salerno <[EMAIL PROTECTED]> wrote: > Ben Finney wrote: > >> The two big names in text editing, Vim and Emacs, will both meet these >> criteria easily. They also have the advantage that you'll find one or >> the other, or both, on just about any Unix system i

Easy Validators

2006-08-20 Thread Ron Adam
Sometimes it's good to check things while working on them. This seems like a good way to do that. You could probably put these in a module and just import them. from validators import * I'm interested if anyone can think of ways to improve this further. Each validator consists of an as

Re: sum and strings

2006-08-20 Thread Rhamphoryncus
Paddy wrote: > Rhamphoryncus wrote: > > > > > It's worthwhile to note that the use of + as the concatenation operator > > is arbitrary. It could just have well been | or &, and has no > > relationship with mathematically addition. > > The effect of the string concatenation operator is only seconda

Re: Permission Denied

2006-08-20 Thread Stargaming
AlbaClause schrieb: > Lawrence D'Oliveiro wrote: > > >>In message <[EMAIL PROTECTED]>, AlbaClause wrote: >> >> >>>Then, to execute the file from from the shell prompt, I had to create a >>>'bin' directory in my home folder, cuz I didn't want to litter >>>my /usr/local/bin folder with useless Pyth

Create a Multilanguage PDF in Python

2006-08-20 Thread Perseo
Hi guys, I'm disprate with the Pdf Unicode. I try to create a class using ufpdf but some chars are not correct and now I would like try Python because a friend tolds me that it's very powerful. I need a simple script in Python that grab all Records from a MySql table and print in the pdf file. Th

convert a long string in binary

2006-08-20 Thread bussiere maillist
i've got a very long string and i wanted to convert it in binary like string = """Monty Python, or The Pythons, is the collective name of the creators of Monty Python's Flying Circus, a British television comedy sketch show that first aired on the BBC on October 5, 1969. A total of 45 episodes wer

Text parsing

2006-08-20 Thread Michiel Sikma
Hello everybody. Inspired by an example from the book Beginning Python: From Novice to Professional, I started working on a simple text parser which I can hopefully then extend into a more comprehensive system. I've got a little problem, though. My code: test.py import sys

Re: convert a long string in binary

2006-08-20 Thread bearophileHUGS
bussiere maillist: > i've got a very long string > and i wanted to convert it in binary Not much tested: _nibbles = {"0":"", "1":"0001", "2":"0010", "3":"0011", "4":"0100", "5":"0101", "6":"0110", "7":"0111", "8":"1000", "9":"1001", "A":"1010", "B":"1011",

Re: How to get the ascii code of Chinese characters?

2006-08-20 Thread Gerhard Fiedler
On 2006-08-20 05:56:05, Fredrik Lundh wrote: >>> No. ASCII characters range is 0..127 while Unicode characters range is >>> at least 0..65535. >> >> Actually, Unicode goes beyond 65535. > > you may want to look up "at least" in a dictionary. As a homework, try to parse "at least until" and "goe

Re: sum and strings

2006-08-20 Thread Gerhard Fiedler
On 2006-08-20 07:18:44, Rhamphoryncus wrote: >> shallow = [] >> [shallow.extend(i) for i in deep] > > I'm sure this has been mentioned before, but listcomps are for when you > want to store the list and use it for further things, not for when you > want a side effect. TOOWTDI. Can you please ex

Re: tkinter btn visual state with tkMessageBox

2006-08-20 Thread jmdeschamps
Hendrik van Rooyen wrote: > <[EMAIL PROTECTED]> Wrote: > | > | Hendrik van Rooyen wrote: > | > <[EMAIL PROTECTED]> wrote: > | > > | > To: > | > > | > > | > | why is the button sunken when called through a bind method, and not > | > | with the command attribute? > | > | Thank you! > | > | > | > |

Re: Text parsing

2006-08-20 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Michiel Sikma wrote: > My code: > > test.py > import sys > > def preparse(file): > block = [] > for line in file: > if line.strip(): > block.append(line) > elif block: > yi

Re: sum and strings

2006-08-20 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Gerhard Fiedler wrote: > On 2006-08-20 07:18:44, Rhamphoryncus wrote: > >>> shallow = [] >>> [shallow.extend(i) for i in deep] >> >> I'm sure this has been mentioned before, but listcomps are for when you >> want to store the list and use it for further things, not for wh

Re: How to get the ascii code of Chinese characters?

2006-08-20 Thread Fredrik Lundh
Gerhard Fiedler wrote: >>> Actually, Unicode goes beyond 65535. >> >> you may want to look up "at least" in a dictionary. > > As a homework, try to parse "at least until" and "goes beyond" and compare > the two (a dictionary is not necessarily of help with this :) > > "range is least 0..65535"

Re: PIL problem: IOError: cannot identify image file

2006-08-20 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Doh! Apparently Image.open() wants a path, not a file. So > > i = Image.open('c:\\image2.png') > > works fine. it works fine on files too, if you open them in *binary* mode. -- http://mail.python.org/mailman/listinfo/python-list

Re: Permission Denied

2006-08-20 Thread Jorge Godoy
Stargaming <[EMAIL PROTECTED]> writes: > In the most cases, PATH is preconfigured to include "." (. is the current > directory as .. is the parent one). You can use ./yourpythonscript in this > case. I most cases on Unix boxes it isn't configured to include ".". This is so for safety reasons (so

Re: write eof without closing

2006-08-20 Thread Fredrik Lundh
cage wrote: > I want to use a program that has a 'pipe' mode, in which you can use > stdin to send commands to the program. I found out that, when in pipe > mode and you are using the keyboard as input source you can do Ctrl-D to > 'signal' the program that you have finished typing your command

Need advice on how to improve this function

2006-08-20 Thread Matthew Wilson
I wrote a function that converts a tuple of tuples into html. For example: In [9]: x Out[9]: ('html', ('head', ('title', 'this is the title!')), ('body', ('h1', 'this is the header!'), ('p', 'paragraph one is boring.'), ('p', 'but paragraph 2 ',

time.localtime() Format Question

2006-08-20 Thread OleMacGeezer
Hello Everyone, I am a brand new Python programmer with barely a month of experience under my belt. Here are my specs: Mac OSX Panther 10.3.9 Jython 2.1 implementation with Hermes BBS python module installed And now the problem... Right now I am having a small problem figuring out how to pr

Re: Create a Multilanguage PDF in Python

2006-08-20 Thread Rob Wolfe
"Perseo" <[EMAIL PROTECTED]> writes: > Hi guys, > > I'm disprate with the Pdf Unicode. I try to create a class using ufpdf > but some chars are not correct and now I would like try Python because > a friend tolds me that it's very powerful. > I need a simple script in Python that grab all Records

Re: PyThreadState_Swap(NULL)

2006-08-20 Thread Bryan
let me try to ask the question again in a simpler more generic way. i thought that the following lines of code, could not fail even if another library in the same process initialized the python interpreter first. if (!Py_IsInitialized()) { Py_Initialize(); } PyEval_InitThreads(); interpr

Help in using introspection to simplify repetitive code

2006-08-20 Thread [EMAIL PROTECTED]
Hello. I'm writing a proxy class, i.e: a class whose methods mostly delegate their functionality to other class object. Most of the methods (which are quite a lot) defined in the class would end up being: def thisIsTheMethodName(self): self._handlerClass.thisIsTheMethodName() The handler obje

Re: Help in using introspection to simplify repetitive code

2006-08-20 Thread Simon Percivall
[EMAIL PROTECTED] wrote: > Hello. > I'm writing a proxy class, i.e: a class whose methods mostly delegate > their functionality to other class object. Most of the methods (which > are quite a lot) defined in the class would end up being: > > def thisIsTheMethodName(self): > self._handlerClass.

Re: urllib2, proxies and https

2006-08-20 Thread John J. Lee
Astan Chee <[EMAIL PROTECTED]> writes: > Hi again, > According to > https://demo.launchpad.net/products/python/+bug/56872 > or more specifically, the example of its working code: > http://librarian.demo.launchpad.net/3507227/urllib2_proxy_auth.py > I can use urllib2 via proxy to access a https sit

Re: convert a long string in binary

2006-08-20 Thread [EMAIL PROTECTED]
bussiere maillist wrote: > i've got a very long string > and i wanted to convert it in binary > like > > string = """Monty Python, or The Pythons, is the collective name of > the creators of Monty Python's Flying Circus, a British television > comedy sketch show that first aired on the BBC on Octo

import

2006-08-20 Thread fegge
i have written script save as hello.py. i can run it. but why cant i import it as a modular in other programs? -- http://mail.python.org/mailman/listinfo/python-list

Re: import

2006-08-20 Thread bugnthecode
How are you trying to import it? Is it in the same directory as your other script? If not is your python path set correctly? When importing a module that you have written you exlude the .py extension. You should be using: import hello Hope that helps, Will -- http://mail.python.org/mailman/list

Re: import

2006-08-20 Thread figo_wei01
bugnthecode 写道: > How are you trying to import it? Is it in the same directory as your > other script? If not is your python path set correctly? > > When importing a module that you have written you exlude the .py > extension. You should be using: > import hello > > Hope that helps, > Will i am

Re: import

2006-08-20 Thread resnak
Try putting it in C:\Python24\Lib\site-packages instead. [EMAIL PROTECTED] wrote: >bugnthecode 写道: > >> How are you trying to import it? Is it in the same directory as your >> other script? If not is your python path set correctly? >> >> When importing a module that you have written you exl

Re: import

2006-08-20 Thread 01
resnak wrote: > Try putting it in C:\Python24\Lib\site-packages instead. i have done that , dest not work as well. -- http://mail.python.org/mailman/listinfo/python-list

Re: import

2006-08-20 Thread Georg Brandl
[EMAIL PROTECTED] wrote: > bugnthecode 写道: > >> How are you trying to import it? Is it in the same directory as your >> other script? If not is your python path set correctly? >> >> When importing a module that you have written you exlude the .py >> extension. You should be using: >> import hello

Send to all clients using UDP in Twisted

2006-08-20 Thread Elliot Hughes
Hi Everyone, I am trying to right a server that can receive a message and send it to all clients using UDP on twisted. I have got it so far that it can echo to the client that sent the message but not to the rest. I tried using multicast but that requires almost total rewrite, and the client which

Re: import

2006-08-20 Thread [EMAIL PROTECTED]
If your still having trouble how are you running python? If you run cmd and THEN type python it is not operating in the python24 directory and runs in the directory cmd was in before the command. Otherwise make sure you don't have any previous python installs. -- http://mail.python.org/mailman/li

Re: time.localtime() Format Question

2006-08-20 Thread Greg Krohn
OleMacGeezer wrote: > Hello Everyone, > Hola > (2006, 8, 19, 23, 39, 15, 5, 231, 0) > > Well, that obviously was not what I wanted or needed. I don't > need seconds, or whatever that is that follows after > seconds...And that isn't the format I wanted either. I'm sorry I didn't have time to gr

Re: import

2006-08-20 Thread 01
Georg Brandl wrote: > [EMAIL PROTECTED] wrote: > > bugnthecode 写道: > > > >> How are you trying to import it? Is it in the same directory as your > >> other script? If not is your python path set correctly? > >> > >> When importing a module that you have written you exlude the .py > >> extension. Y

Re: import

2006-08-20 Thread Georg Brandl
01 wrote: > Georg Brandl wrote: >> [EMAIL PROTECTED] wrote: >> > bugnthecode 写道: >> > >> >> How are you trying to import it? Is it in the same directory as your >> >> other script? If not is your python path set correctly? >> >> >> >> When importing a module that you have written you exlude the .py

Input from the same file as the script

2006-08-20 Thread poggle . themammal
Can the input to the python script be given from the same file as the script itself. e.g., when we execute a python script with the command 'python http://mail.python.org/mailman/listinfo/python-list

Re: Input from the same file as the script

2006-08-20 Thread Georg Brandl
[EMAIL PROTECTED] wrote: > Can the input to the python script be given from the same file as the > script itself. e.g., when we execute a python script with the command > 'python > When I ran the below the python interpreter gave an error. *sigh* Why do you think that we could guess what error t

Re: Problem installing Python 2.4.3 on FreeBSD 5.3-RELEASE-p31

2006-08-20 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > I assume this is related to the configure warning... ? Same error with > just a standard "./configure" and "make". > > Any help would be great :) If you don't need the curses module, go on with the installation. It's a known bug in FreeBSD's curses header file. Rega

Re: import

2006-08-20 Thread Bill Pursell
Georg Brandl wrote: > 01 wrote: > > Georg Brandl wrote: > >> [EMAIL PROTECTED] wrote: > >> > bugnthecode 写道: > >> > > >> >> How are you trying to import it? Is it in the same directory as your > >> >> other script? If not is your python path set correctly? > >> >> > >> >> When importing a module t

Access to sys.argv when python interpreter is invoked in some modes like 'python -c "command"'

2006-08-20 Thread poggle . themammal
The python tutorial says "When the script name is given as '-' (meaning standard input), sys.argv[0] is set to '-'. When -c command is used, sys.argv[0] is set to '-c'. " but when we use a command say 'python -c "command"' where can we access "sys.argv" (are there some commands where "sys.argv" is

Re: Access to sys.argv when python interpreter is invoked in some modes like 'python -c "command"'

2006-08-20 Thread Simon Forman
[EMAIL PROTECTED] wrote: > The python tutorial says > "When the script name is given as '-' (meaning standard input), > sys.argv[0] is set to '-'. When -c command is used, sys.argv[0] is > set to '-c'. " but when we use a command say 'python -c "command"' > where can we access "sys.argv" (are ther

[ANN] PyYAML-3.04: YAML parser and emitter for Python

2006-08-20 Thread Kirill Simonov
Announcing PyYAML-3.04 A new release of PyYAML, featuring LibYAML bindings and support for recursive structures, is now available: http://pyyaml.org/wiki/PyYAML Changes === * Include experimental LibYAML bindings. * Fully support recur

radio buttons in curses

2006-08-20 Thread Fabian Braennstroem
Hi, I want to add some radio and check buttons to my curses script. As I understand it, there are no buttons in the 'basic' curses module. Now, I found the curses-extra module, but I not able to download and install it. Does anybody have an idea, where I can download the module or, even better, h

Re: sum and strings

2006-08-20 Thread Alex Martelli
Rhamphoryncus <[EMAIL PROTECTED]> wrote: ... > > > I believe the prefered method to flatten a list of lists is this: > > > > > > shallow = [] > > > for i in deep: > > > shallow.extend(i) > > > > > > Yes, it's three lines. It's also very easy to read. reduce() and > > > sum() are not. > > >

What do you want in a new web framework?

2006-08-20 Thread emrahayanoglu
Hello Everyone, Now, I'm working on a new web framework. I tried many test on the other programming languages. Then i decided to use python on my web framework project. Now i want to listen all of you. What do you want in that web framework(Easy use of Database, Easy use of XML, GUI Designer, etc

What do you want in a new web framework?

2006-08-20 Thread emrahayanoglu
Hello Everyone, Now, I'm working on a new web framework. I tried many test on the other programming languages. Then i decided to use python on my web framework project. Now i want to listen all of you. What do you want in that web framework(Easy use of Database, Easy use of XML, GUI Designer, etc

newbie question about import tools

2006-08-20 Thread pascal . roca
i have just downloas python and trying to import tools module C:\Documents and Settings\toto>python Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v Type "help", "copyright", "credits" or "license" >>> import tools Traceback (most recent call last): File "", line 1, in ? ImportError: No module nam

Re: newbie question about import tools

2006-08-20 Thread Christoph Haas
On Sunday 20 August 2006 21:39, [EMAIL PROTECTED] wrote: > i have just downloas python and trying to import tools module > > C:\Documents and Settings\toto>python > Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v > Type "help", "copyright", "credits" or "license" > > >>> import tools > > Traceback

Re: newbie question about import tools

2006-08-20 Thread Lawrence Oluyede
<[EMAIL PROTECTED]> wrote: > do i need to download tools.pyc ? Python doesn't have any "tools" module builtin. So, what tool is? -- Lawrence - http://www.oluyede.org/blog "Nothing is more dangerous than an idea if it's the only one you have" - E. A. Chartier -- http://mail.python.org/mailman/l

Re: What do you want in a new web framework?

2006-08-20 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, emrahayanoglu wrote: > Now, I'm working on a new web framework. I tried many test on the other > programming languages. Then i decided to use python on my web framework > project. > > Now i want to listen all of you. What do you want in that web > framework(Easy use of Dat

Re: What do you want in a new web framework?

2006-08-20 Thread 3KWA
[EMAIL PROTECTED] wrote: > Hello Everyone, > > Now, I'm working on a new web framework. I tried many test on the other > programming languages. Then i decided to use python on my web framework > project. > > Now i want to listen all of you. What do you want in that web > framework(Easy use of Data

Re: What do you want in a new web framework?

2006-08-20 Thread Dave Richards
Really, really good documentation.DaveOn 20 Aug 2006 11:58:50 -0700, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:Hello Everyone,Now, I'm working on a new web framework. I tried many test on the other programming languages. Then i decided to use python on my web frameworkproject.Now i want to liste

uploading files to file system/zipping/downloading problems

2006-08-20 Thread OriginalBrownster
I am currently uploading a file from a users computer to the file system on my server using python, just reading the file and writing the binaries. total_data=' ' while True: data = upload_file.file.read(8192) if not data: break t

Re: Help in using introspection to simplify repetitive code

2006-08-20 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello. > I'm writing a proxy class, i.e: a class whose methods mostly delegate > their functionality to other class object. Most of the methods (which > are quite a lot) defined in the class would end up being: > > def thisIsTheMethodN

Re: Create a Multilanguage PDF in Python

2006-08-20 Thread Perseo
Hi again, WORKS!!! I download all I need as python + reportlab. Only 2 questions: 1. I need all of this package? because it is 6Mb! 2. How can I connect my software with MySql. In my Hosting is present the Python support but I don't thing that the MySQLdb is present. How can I solve this little

Re: Create a Multilanguage PDF in Python

2006-08-20 Thread Perseo
Hi Rob, thank you for your answer, but I'm a newbie in Web application written in Python. Now I try your suggestion ... Thanks Perseo Rob Wolfe wrote: > "Perseo" <[EMAIL PROTECTED]> writes: > > > Hi guys, > > > > I'm disprate with the Pdf Unicode. I try to create a class using ufpdf > > but som

Python Expert

2006-08-20 Thread Perseo
Hi guys, we are looking for a python developer for a European project. This project is multilangual and free it is called EuroCv and it need a module for exporting data in PDF. As web developer I try to create this module but It's too complicate for me. Check out the service www.eurocv.eu for more

List comparison help please

2006-08-20 Thread Bucco
I am trying to compare a list of items to the list of files generated by os.listdir. I am having trouble getting this to work and think I may be going down the wrong path. Please let me know if hter is a better way to do this. THis is what I have for my class so far: import os, sys class Match

Re: Permission Denied

2006-08-20 Thread Jorgen Grahn
On Sun, 20 Aug 2006 10:35:31 -0300, Jorge Godoy <[EMAIL PROTECTED]> wrote: > Stargaming <[EMAIL PROTECTED]> writes: > >> In the most cases, PATH is preconfigured to include "." (. is the current >> directory as .. is the parent one). > > I most cases on Unix boxes it isn't configured to include "."

Re: cloning generator iterators

2006-08-20 Thread Michael
Bernhard Mulder wrote: > [ attempt to clone/fork a generator ] You can do this, but you can't pickle the results. (If you want pickling, use Stackless - I've not tried pickling generators in stackless because I don't use stackless, but it looks pretty clear you can pickle them there) > Question

Re: uploading files to file system/zipping/downloading problems

2006-08-20 Thread Pontus Ekberg
On Sun, 20 Aug 2006 13:49:22 -0700, OriginalBrownster wrote: > I am currently uploading a file from a users computer to the file > system on my server using python, just reading the file and writing the > binaries. > > total_data=' ' > while True: > data = upload_file.

Re: Text to MP3 using pyTTS - Non-programmer question

2006-08-20 Thread Michael
Marc Shapiro wrote: > From what I've seen, pyTTS is Windows only.  Is there a package that > runs on linux that provides similar functionality.  I have festival and > festlite, but I would prefer a Python solution. From: http://www.cam.org/~nico/cicero/cicero-README.txt """ Cicero TTS: A Small,

Re: How to get the ascii code of Chinese characters?

2006-08-20 Thread Gerhard Fiedler
On 2006-08-20 10:31:20, Fredrik Lundh wrote: >> "range is least 0..65535" : upper_bound >= 65535 >> "goes beyond 65535" : upper_bound > 65535 >> >> For some discussions (like how to represent code points etc) this >> distinction is crucial. > > do you know anything about how Unicode is used in r

Re: Send to all clients using UDP in Twisted

2006-08-20 Thread Martin P. Hellwig
Elliot Hughes wrote: > Hi Everyone, I am trying to right a server that can receive a message > and send it to all clients using UDP on twisted. I have got it so far > that it can echo to the client that sent the message but not to the > rest. I tried using multicast but that requires almost total r

Re: List comparison help please

2006-08-20 Thread Felipe Almeida Lessa
20 Aug 2006 14:47:14 -0700, Bucco <[EMAIL PROTECTED]>: > I am trying to compare a list of items to the list of files generated > by os.listdir. I am having trouble getting this to work and think I > may be going down the wrong path. Please let me know if hter is a > better way to do this. THis i

Re: What would be the best way to run python client in the background

2006-08-20 Thread gel
Tim Golden wrote: > | > [gel] > | > > | > | I have written a python client server app [...] > | > | I want to run the client end of the app more or less invisibly > | > | (no console) on the XP clients when ever a users logs on. > > While this isn't answering the question you first > asked, might

looking for help with dex tracker

2006-08-20 Thread [EMAIL PROTECTED]
I have a project on sourceforge that is going to be a tracker for csound currently it is a text editor with some external programs attached. There is no complex thing to do to join just post to http://groups.google.com/group/dexrow-software-and-programming-group the software is available at h

Re: List comparison help please

2006-08-20 Thread Simon Forman
Bucco wrote: > I am trying to compare a list of items to the list of files generated > by os.listdir. I am having trouble getting this to work and think I > may be going down the wrong path. Please let me know if hter is a > better way to do this. THis is what I have for my class so far: > > imp

Re: List comparison help please

2006-08-20 Thread Bucco
Simon Forman wrote: > 1) Don't use "dir", "file", and "list" as variable names, those are > already python built in objects (the dir() function, list type, and > file type, respectively.) Thanks. My own stupidity on this one. > 2) 'r' is the default for open(), omit it. "self.flist = > open(

Re: What would be the best way to run python client in the background

2006-08-20 Thread gel
Roger Upole wrote: > You can use the Task Scheduler to run a script at login. > It's not as robust as creating a service, but it's much less > work. > > Roger > OK thanks Roger I will have a bit a look at that option. It is fairly important for the solution to be robust, but this maybe eno

string validation/ form validation

2006-08-20 Thread OriginalBrownster
Hi there: I just had a quick thought of something that might be useful to me when creating my web app and I wanted some help on the idea; since this group has been helpful in the past. in my app I have a few html forms that require the user to enter in data, in string form is it possible to vali

Re: string validation/ form validation

2006-08-20 Thread Simon Forman
OriginalBrownster wrote: > Hi there: > > I just had a quick thought of something that might be useful to me when > creating my web app and I wanted some help on the idea; since this > group has been helpful in the past. > > in my app I have a few html forms that require the user to enter in > data,

Re: uploading files to file system/zipping/downloading problems

2006-08-20 Thread Jordan
Assuming your upload_file.file.read() function works, the overwriting should be the only issue. Just want to point out that total_data += data is not advisable for this example (speed/efficiency issue, although i'm sure it could probably be even faster than what I replace it with if u decided to u

Re: write eof without closing

2006-08-20 Thread Grant Edwards
On 2006-08-19, Tim Chase <[EMAIL PROTECTED]> wrote: >>> can i write a eof to a file descriptor without closing it? >> >> No. Not on Windows, OS-X, or Unix. There is no such thing as >> "an eof". >> >> On CP/M Ctrl-Z is used as EOF for text files. > > Common Dos/Window convention also uses ctrl+

Re: What would be the best way to run python client in the background

2006-08-20 Thread Ravi Teja
gel wrote: > Hi > I have written a python client server app that keeps an eye on > processes starting and ending on a client and makes decision on what to > do based on information from the server end. I want to run the client > end of the app more or less invisibly (no console) on the XP clients

Re: how do you get the name of a dictionary?

2006-08-20 Thread Steven D'Aprano
On Fri, 18 Aug 2006 11:45:05 -0700, Andy Terrel wrote: > here is an easy hack, I don't know if there is an explicit function. > > > for i in dir(): > if eval(i) == Banana: > print i Let's just hope that there is no way for black-hats to remotely inject code objects into your

Re: What would be the best way to run python client in the background

2006-08-20 Thread gel
Ravi Teja wrote: > gel wrote: > > Hi > > I have written a python client server app that keeps an eye on > > processes starting and ending on a client and makes decision on what to > > do based on information from the server end. I want to run the client > > end of the app more or less invisibly

Re: write eof without closing

2006-08-20 Thread Alex Martelli
Grant Edwards <[EMAIL PROTECTED]> wrote: ... > IIRC, ctrl-Z is not used _in_files_ to represent EOF. Only > when text is being entered at the console. Easy to test, if you have Windows: >>> n='foo.txt' >>> s='ba\r\n'+chr(26)+'bo\r\r' >>> open(n,'wb').write(s) >>> ss=open(n).read() >>> ss 'ba\

Is there a python system to admin MySQL database online?

2006-08-20 Thread vincent
Just like the phpMySQLadmin? Thanks for reply! -- http://mail.python.org/mailman/listinfo/python-list

Re: pickling or xml or other?

2006-08-20 Thread Bo
You could use a python file and use the builtin import facility to read in configurations. from http://dirtsimple.org/2004/12/python-is-not-java.html ... in Python, more often than not, code is easier to write than XML. And Python can process code much, much faster than your code can proc

A Editor Feature for Extending Selection based on Language Syntax

2006-08-20 Thread Xah Lee
can anyone give me a guide about writing a short elisp function? (for non-emacs readers, this message will describe a editor feature i think will be very beneficial to spread this concept.) i want to write a function such that, when run, highlight a region between the nearest left and right delimi

Re: A Editor Feature for Extending Selection based on Language Syntax

2006-08-20 Thread limodou
On 20 Aug 2006 21:49:45 -0700, Xah Lee <[EMAIL PROTECTED]> wrote: > can anyone give me a guide about writing a short elisp function? (for > non-emacs readers, this message will describe a editor feature i think > will be very beneficial to spread this concept.) > > i want to write a function such t

Re: Input from the same file as the script

2006-08-20 Thread Bernhard Mulder
you can (ab)use doc strings. See the doctest module for an example. -- http://mail.python.org/mailman/listinfo/python-list

Re: istep() addition to itertool? (Was: Re: Printing n elements per line in a list)

2006-08-20 Thread Justin Azoff
Rhamphoryncus wrote: > I've run into this problem a few times, and although many solutions > have been presented specifically for printing I would like to present a > more general alternative. [snip interesting istep function] > Would anybody else find this useful? Maybe worth adding it to itert

Re: trouble using "\" as a string

2006-08-20 Thread Justin Azoff
OriginalBrownster wrote: > i want this because using python I am pulling in filenames from a > mac..thus they are "/" in the pathways..and i want to .split it at the > "/" to obtain the filename at the end...but its proving diffucult with > this obstacle in the way. sounds like you want import pos

Reported (was Re: A Editor Feature for Extending)

2006-08-20 Thread John Bokma
"Xah Lee" <[EMAIL PROTECTED]> wrote: Let's see how fast we can drop you from another hosting provider :-D. -- JohnExperienced Perl programmer: http://castleamber.com/ Perl help, tutorials, and examples: http://johnbokma.com/perl/ -- http://mail.python.org/mailman/lis

Re: [ANN] PyYAML-3.04: YAML parser and emitter for Python

2006-08-20 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

Re: Subject: ANN: pycairo release 1.2.2 now available

2006-08-20 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >