Funny Christmas wallpapers, theme

2008-12-25 Thread kela
Funny Christmas wallpapers, theme Free Funny Christmas Wallpaper Software Downloads Free Watch Software - StarBurn, Animated Funny Santa Clock Funny Christmas videos / Crazy Christmas Kick - Watch Santa Claus! http://funny-christmas-wallpaperws.blogspot.com/ -- http://mail.python.org/mailman/listin

www.voguetouch.com sell nike shoes, tshirt, ugg boots, handbags and so on

2008-12-25 Thread www.voguetouch.com
cheap nike shoes: WWW(VOGUETOUCH)COM We are wholesaler of Nike Jordan and Other Shoes in China. We are a professional exporting company in china. We supply many kinds of Shoes, such as Nike Shoes, Jordan 1-23, Air Jordan, AF1, DUNK, Air max series etc. Most of them are in stock and can be supplied

Re: How to display Chinese in a list retrieved from database via python

2008-12-25 Thread zxo102
On 12月25日, 下午3时35分, "Chris Rebert" wrote: > On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote: > > Hi, > > I retrieve some info in Chinese from postgresql and assign it to a > > variable 'info' defined in javascript of a html page: > > var info = ['\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4','\xd6\xd0

Re: object oriënted

2008-12-25 Thread Jeremiah Dodds
On Wed, Dec 24, 2008 at 10:54 AM, Dennis van Oosterhout < de.slotenzwem...@gmail.com> wrote: > I know that python is an Object Oriënted language but I was wondering if it > gets used as a non-OOP also (by a good amount of people). > > -- > http://mail.python.org/mailman/listinfo/python-list > > I,

Re: How to display Chinese in a list retrieved from database via python

2008-12-25 Thread Jeroen Ruigrok van der Werven
-On [20081225 08:30], zxo102 (zxo...@gmail.com) wrote: > Anybody knows how to solve this problem? You are assigning/pushing out Python byte sequences, not Unicode. Look at u'' string variables, x.encode() and x.decode() to help you. It's widely documented on the Internet, a qu

Is there a function to remove escape characters from a string ?

2008-12-25 Thread Stef Mientki
hello, Is there a function to remove escape characters from a string ? (preferable all escape characters except "\n"). thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

os.system('cls')

2008-12-25 Thread Dennis van Oosterhout
Hi there! I was searching for a way to clear the 'DOS screen'/command screen etc. and found that os.system('cls') works for this. I was just wondering where I can find al the commands which can be used for os.system(). I searched with google but I didn't find an answer. In the official python tutor

Re: I always wonder ...

2008-12-25 Thread Pierre-Alain Dorange
r wrote: > 220 ratings and 1 star, WH!. I find this all quite amusing :D. > Keep em coming. Oh, and FYI, I will always have 1 star! hahahahahha > > >/"\ > |\./| > | | >| | > |>~<| >

Python with PyGIL_Ensure?

2008-12-25 Thread googler . 1 . webmaster
Hi! I have a small problem with my python embedded interpreter. I do some stuff where two threads exists which do some pythons stuff in the same stuff. So bpoth call PyGILState_Ensure() which occurs a crash. What can I do, that one thread waits until the other thread released the gil state? Than

Re: Python with PyGIL_Ensure?

2008-12-25 Thread googler . 1 . webmaster
and merry christmas :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematica 7 compares to other languages

2008-12-25 Thread Xah Lee
> >On Dec 10, 2:47 pm, John W Kennedy wrote: > >> C: > > >> #include > >> #include > > >> void normal(int dim, float* x, float* a) { > >> float sum = 0.0f; > >> int i; > >> float divisor; > >> for (i = 0; i < dim; ++i) sum += x[i] * x[i]; > >> divisor = sqrt(sum); > >> fo

Re: os.system('cls')

2008-12-25 Thread Dennis van Oosterhout
Hello Arno, thanks for the explanation! I have one more question: on the python site it says it's better to replace the system commands by subprocess and Popen. Now I searched for some good example for my specific case (as I have no idea how it should work and I don't get it any clearer by reading

Re: Is there a function to remove escape characters from a string ?

2008-12-25 Thread James Stroud
Stef Mientki wrote: hello, Is there a function to remove escape characters from a string ? (preferable all escape characters except "\n"). thanks, Stef import string WANTED = string.printable[:-5] + "\n" def descape(s, w=WANTED): return "".join(c for c in s if c in w) James -- James

Re: os.system('cls')

2008-12-25 Thread Dennis van Oosterhout
Btw...does that mean that system('cls') only works on Windows...or to say it otherwise: the program isn't platform independant? 2008/12/25 Dennis van Oosterhout : > Hello Arno, > > thanks for the explanation! I have one more question: on the python > site it says it's better to replace the system

Re: os.system('cls')

2008-12-25 Thread Python
On 25 dec 2008, at 11:22, Dennis van Oosterhout wrote: Hi there! I was searching for a way to clear the 'DOS screen'/ command screen etc. and found that os.system('cls') works for this. I was just wondering where I can find al the commands which can be used for os.system(). I searched with

Re: os.system('cls')

2008-12-25 Thread Python
On 25 dec 2008, at 12:56, Dennis van Oosterhout wrote: Hello Arno, thanks for the explanation! I have one more question: on the python site it says it's better to replace the system commands by subprocess and Popen. Now I searched for some good example for my specific case (as I have no idea h

Re: os.system('cls')

2008-12-25 Thread Jeremiah Dodds
On Thu, Dec 25, 2008 at 7:11 AM, Dennis van Oosterhout < de.slotenzwem...@gmail.com> wrote: > Btw...does that mean that system('cls') only works on Windows...or to > say it otherwise: the program isn't platform independant? > > Yes. -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system('cls')

2008-12-25 Thread Python
2008/12/25 Dennis van Oosterhout : Hello Arno, thanks for the explanation! I have one more question: on the python site it says it's better to replace the system commands by subprocess and Popen. Now I searched for some good example for my specific case (as I have no idea how it should work

Re: Is there a function to remove escape characters from a string ?

2008-12-25 Thread Jeremiah Dodds
On Thu, Dec 25, 2008 at 7:02 AM, James Stroud wrote: > Stef Mientki wrote: > >> hello, >> >> Is there a function to remove escape characters from a string ? >> (preferable all escape characters except "\n"). >> >> thanks, >> Stef >> > > > import string test = 'this\r is a test\t yeah\n' for c i

Re: SyntaxError: encoding problem: with BOM

2008-12-25 Thread NoName
On 25 дек, 03:35, "Diez B. Roggisch" wrote: > NoName schrieb: > > > > > On 25 ÄÅË, 00:37, "Diez B. Roggisch" wrote: > >> NoName schrieb: > > >>> i have 1.py in cp866 encoding: > >>> # -*- coding: cp866 -*- > >>> print ("ff") > >>> It's not work in Python 3.0 > >>> Error: > >>> File "", line 1 > >

Re: Is there a function to remove escape characters from a string ?

2008-12-25 Thread John Machin
On Dec 25, 9:00 pm, Stef Mientki wrote: > hello, > > Is there a function to remove escape characters from a string ? > (preferable all escape characters except "\n"). "\n" is not what most people would call an escape character. The "\" is what most people would call an escape character when it is

RE: os.system('cls')

2008-12-25 Thread Barak, Ron
Hi Dennis, print dir(os.system) print os.__dict__ might help Bye, Ron. From: Dennis van Oosterhout [mailto:de.slotenzwem...@gmail.com] Sent: Thursday, December 25, 2008 12:22 To: python-list@python.org Subject: os.system('cls') Hi there! I was searching

seek() returns unexpected results

2008-12-25 Thread Barak, Ron
Hi, When using seek() with a certain text file, I get strange results. I looked at the text file with a binary editor and verified with 'file', and it's an ASCII English text file. Running the script on other text files gives the expected output. Could you suggest the reason ? In the outputs

Re: SyntaxError: encoding problem: with BOM

2008-12-25 Thread John Machin
On Dec 25, 11:36 pm, NoName wrote: > On 25 дек, 03:35, "Diez B. Roggisch" wrote: > > > > > NoName schrieb: > > > > On 25 ÄÅË, 00:37, "Diez B. Roggisch" wrote: > > >> NoName schrieb: > > > >>> i have 1.py in cp866 encoding: > > >>> # -*- coding: cp866 -*- > > >>> print ("ff") > > >>> It's not wor

Re: PythonCard timer/thread tutorial

2008-12-25 Thread Steven D'Aprano
On Wed, 24 Dec 2008 16:59:23 -0800, Mike Driscoll wrote: >> Among my questions are: >> """ A little thread we've added""" seems to be an isolated string. It >> does not seem to be doing anything there, almost like a comment. Why is >> it there? > > > That's what some people call a doc string.

Re: PythonCard timer/thread tutorial

2008-12-25 Thread Mike Driscoll
On Dec 25, 7:24 am, Steven D'Aprano wrote: > On Wed, 24 Dec 2008 16:59:23 -0800, Mike Driscoll wrote: > >> Among my questions are: > >> """ A little thread we've added""" seems to be an isolated string. It > >> does not seem to be doing anything there, almost like a comment. Why is > >> it there?

Canada lesbian couple

2008-12-25 Thread kylefranki
couple de lesbienne cherche sex occasionnelle femme seulement http://canada-lesbi.blogbugs.org/ -- http://mail.python.org/mailman/listinfo/python-list

DomainKey library for python

2008-12-25 Thread Nicolas Delanos
Hello, Do you know if there is a domainkey library for python ? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system('cls')

2008-12-25 Thread D'Arcy J.M. Cain
On Thu, 25 Dec 2008 13:11:09 +0100 "Dennis van Oosterhout" wrote: > Btw...does that mean that system('cls') only works on Windows...or to > say it otherwise: the program isn't platform independant? Exactly - sort of. Unless, of course, you have a program called "cls" installed on other platforms

Re: SyntaxError: encoding problem: with BOM

2008-12-25 Thread NoName
> NoName, Asking people to download a zip file from a website written in > a language and character set that they probably are not familiar with > is liable to make them rather nervous and not bother. It's not a good > way to ask for help. sorry:) Now i know where problem. But i dont know how to

Re: Is there a function to remove escape characters from a string ?

2008-12-25 Thread Steven D'Aprano
On Thu, 25 Dec 2008 11:00:18 +0100, Stef Mientki wrote: > hello, > > Is there a function to remove escape characters from a string ? > (preferable all escape characters except "\n"). Can you explain what you mean? I can think of at least four alternatives: (1) Remove literal escape sequences (

Getting a locked buffer from objects (PEP 3118)

2008-12-25 Thread KKH
Hi, it seems the whole locking-theme has gone from PEP 3118 (PyBUF_LOCK is gone). Yet the string and byte objects seem to provide locked buffers through PyArg_Parse arguments s*, y* and z* (documentation says so). Could someone please clarify the situation for me: Is it save to release the GIL

question; C/C++ with Python

2008-12-25 Thread Hongtian
Hi friends, I have a C/C++ application and I wrote a .py file to extend it. The .py file includes some simple functions without import any other modules. Today, I want to update my .py file and import SMTP library in the file, but it seems fail to import SMTP library. So I want to ask: when the

Topics on Electronics

2008-12-25 Thread sriya
Electronics is the field of manipulating electrical currents and voltages using passive and active components that are connected together to create circuits. Electronic circuits range from a simple load resistor that converts a current to a voltage, to computer central-processing units (CPUs) that

Question withdrawn: seek() returns unexpected results

2008-12-25 Thread Barak, Ron
Hi, Problem solved when strip() is being replaced by strip('\n'). Happy holidays, Ron. From: Barak, Ron Sent: Thursday, December 25, 2008 15:05 To: 'python-list@python.org' Subject: seek() returns unexpected results Hi, When using seek() with a certain text fil

Celebrity wars (personal blog) @ http://www.bestbollywoodwallpapers.blogspot.com & http://www.besthollywoodwallpapers.blogspot.com

2008-12-25 Thread Katrina Lovers
Celebrity wars, BOLLYWOOD ACTRESSES (http://www.bestbollywoodwallpapers.blogspot.com) Aishwarya Rai - http://www.hotandsexyaishwaryaraiwallpapers.blogspot.com Katrina Kaif - http://www.sexykatrinakaifwallpapers.blogspot.com PriyankaChopra - http://www.hotpriyankachoprawallpapers.blogspo

Re: os.system('cls')

2008-12-25 Thread Chris Gonnerman
Depends on what operating system you are using. The list of possible commands would be unbounded, if not truly infinite. > From: Dennis van Oosterhout [mailto:de.slotenzwem...@gmail.com] > > Hi there! I was searching for a way to clear the 'DOS screen'/command > screen etc. and found that os.s

Exec inside a class method to call other class methods?

2008-12-25 Thread Matthew Dubins
Hello all, I have made a python script to upload contact information from an excel worksheet to an online database. One part of the program that really tripped me up was when I wanted to call specific class methods that I had made to deal with specific types of contact information (Parent's

Re: I always wonder ...

2008-12-25 Thread r
On Dec 25, 4:22 am, pdora...@pas-de-pub-merci.mac.com (Pierre-Alain Dorange) wrote: > r wrote: > > 220 ratings and 1 star, WH!. I find this all quite amusing :D. > > Keep em coming. Oh, and FYI, I will always have 1 star! hahahahahha > > >                    /"\ > >                     |\./| >

Syntax error for print

2008-12-25 Thread jsm4321
IDLE 3.0 >>> print "hello" SyntaxError: invalid syntax (, line 1) >>> 3+3 6 >>> var = 4 >>> var = var*4 >>> print var SyntaxError: invalid syntax (, line 1) >>> Any idea on why I am getting this error. I have just started learning python and I am stuck at first thing itself. Any help would be gr

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread bearophileHUGS
Matthew Dubins: > def parse(self, data, data_type) >     exec "self.__parse_%s(data)" % data_type > For some reason, *it didn't work*. You can try defining this class attribute: data_types = set("nocall DOB gender Prematurity email languages phone cname pname address duedate".split()) And then a

Re: Syntax error for print

2008-12-25 Thread bearophileHUGS
On Dec 25, 7:53 pm, jsm4...@gmail.com wrote: > IDLE 3.0>>> print "hello" > > SyntaxError: invalid syntax (, line 1)>>> 3+3 > 6 > >>> var = 4 > >>> var = var*4 > >>> print var > > SyntaxError: invalid syntax (, line 1) > > > > Any idea on why I am getting this error. > I have just started learning p

Re: Syntax error for print

2008-12-25 Thread jsm4321
Thanks Bearophile. I should have used a tutorial for Python 3.0 I was reading tutorial for Python 2.5 On Dec 25, 11:58 pm, bearophileh...@lycos.com wrote: > On Dec 25, 7:53 pm, jsm4...@gmail.com wrote: > > > > > IDLE 3.0>>> print "hello" > > > SyntaxError: invalid syntax (, line 1)>>> 3+3 > > 6

Re: Syntax error for print

2008-12-25 Thread Christian Heimes
jsm4...@gmail.com schrieb: > Thanks Bearophile. > > I should have used a tutorial for Python 3.0 > > I was reading tutorial for Python 2.5 Get Python 2.5 or 2.6, seriously. Python 3.0 is not (yet) supported by most tutorials, third party extensions and books. Christian -- http://mail.python.or

odfpy examples

2008-12-25 Thread Ellinghaus, Lance
Has anyone created any complex spreadsheets using odfpy? The samples that come with odfpy are pretty simple and I need some examples of more complex spreadsheets. Thank you, lance -- http://mail.python.org/mailman/listinfo/python-list

Re: How to display Chinese in a list retrieved from database via python

2008-12-25 Thread Gabriel Genellina
En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió: On 12月25日, 下午3时35分, "Chris Rebert" wrote: On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote: > Hi, > I retrieve some info in Chinese from postgresql and assign it to a > variable 'info' defined in javascript of a html page: > var info =

Re: Mathematica 7 compares to other languages

2008-12-25 Thread w_a_x_man
On Dec 25, 5:24 am, Xah Lee wrote: > The JavaScript example: > > // Javascript. By William James > function normalize( vec ) { > var div=Math.sqrt(vec.map(function(x) x*x).reduce(function(a,b) a+b)) >   return vec.map(function(x) x/div) > > } > > is also not qualified. (it is syntax error in Spid

Re: question; C/C++ with Python

2008-12-25 Thread Gabriel Genellina
En Thu, 25 Dec 2008 12:50:31 -0200, Hongtian escribió: I have a C/C++ application and I wrote a .py file to extend it. The .py file includes some simple functions without import any other modules. And you embedded the Python interpreter into your application, I presume? Today, I want to u

Re: Mathematica 7 compares to other languages

2008-12-25 Thread Jon Harrop
Xah Lee wrote: >> >On Dec 10, 2:47 pm, John W Kennedy wrote: >> >> C: >> >> >> #include >> >> #include >> >> >> void normal(int dim, float* x, float* a) { >> >> float sum = 0.0f; >> >> int i; >> >> float divisor; >> >> for (i = 0; i < dim; ++i) sum += x[i] * x[i]; >> >> divis

Re: Is there a function to remove escape characters from a string ?

2008-12-25 Thread Stef Mientki
Steven D'Aprano wrote: On Thu, 25 Dec 2008 11:00:18 +0100, Stef Mientki wrote: hello, Is there a function to remove escape characters from a string ? (preferable all escape characters except "\n"). Can you explain what you mean? I can think of at least four alternatives: I have

Big Tits and Big Boobs

2008-12-25 Thread blady
http://yeba.pl/show/movies/6044/pucybutka -- http://mail.python.org/mailman/listinfo/python-list

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread Carl Banks
On Dec 25, 12:22 pm, Matthew Dubins wrote: > Hello all, > > I have made a python script to upload contact information from an excel > worksheet to an online database.  One part of the program that really > tripped me up was when I wanted to call specific class methods that I > had made to deal wit

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread David Stanek
On Thu, Dec 25, 2008 at 1:22 PM, Matthew Dubins wrote: > Hello all, > > I have made a python script to upload contact information from an excel > worksheet to an online database. One part of the program that really > tripped me up was when I wanted to call specific class methods that I had > made

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread Matthew Dubins
Each type does contain its own parsing method. It's just that, as it stands, one method is being used to shunt off the data to the correct parsing method. Matthew Dubins David Stanek wrote: On Thu, Dec 25, 2008 at 1:22 PM, Matthew Dubins wrote: Hello all, I have made a python script to

Re: How to display Chinese in a list retrieved from database via python

2008-12-25 Thread zxo102
On 12月26日, 上午4时58分, "Gabriel Genellina" wrote: > En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió: > > > > > On 12月25日, 下午3时35分, "Chris Rebert" wrote: > >> On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote: > >> > Hi, > >> > I retrieve some info in Chinese from postgresql and assign it to a

python interpreter black window

2008-12-25 Thread Gandalf
I use WX gui so the user doesn't actually need it, Is their any way to hide it? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: python interpreter black window

2008-12-25 Thread Chris Rebert
On Thu, Dec 25, 2008 at 3:32 PM, Gandalf wrote: > I use WX gui so the user doesn't actually need it, Is their any way to > hide it? Make sure your Python program is run by pythonw.exe as opposed to python.exe pythonw.exe exists specifically for the purpose of suppressing the DOS Box on Windows.

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread David Stanek
On Thu, Dec 25, 2008 at 6:22 PM, Matthew Dubins wrote: > Each type does contain its own parsing method. It's just that, as it > stands, one method is being used to shunt off the data to the correct > parsing method. > Not really. You have all of the parsing methods in a single class. Is it possi

Re: Mathematica 7 compares to other languages

2008-12-25 Thread sln
On Thu, 25 Dec 2008 21:50:29 +, Jon Harrop wrote: >Xah Lee wrote: >>> >On Dec 10, 2:47 pm, John W Kennedy wrote: >>> >> C: >>> >>> >> #include >>> >> #include >>> >>> >> void normal(int dim, float* x, float* a) { >>> >> float sum = 0.0f; >>> >> int i; >>> >> float divisor; >>>

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread J. Clifford Dyer
On Thu, 25 Dec 2008 13:22:15 -0500 Matthew Dubins wrote: > Hello all, > > I have made a python script to upload contact information from an > excel worksheet to an online database. One part of the program that > really tripped me up was when I wanted to call specific class methods > that I had

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread Chris Rebert
On Thu, Dec 25, 2008 at 4:16 PM, J. Clifford Dyer wrote: > and so forth. Then your if/else chain can be pulled out to the place where > you instantiate each field: > > if data_type=='address': >field=AddressDataField(data) > elif data_type=='due_date': >field=DueDateDataField(data) > el

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread David Stanek
You won't need the dictionary at all if each type has a parse method. On 12/25/08, Chris Rebert wrote: > On Thu, Dec 25, 2008 at 4:16 PM, J. Clifford Dyer > wrote: > >> and so forth. Then your if/else chain can be pulled out to the place >> where you instantiate each field: >> >> if data_type=

Re: Mathematica 7 compares to other languages

2008-12-25 Thread MRAB
s...@netherlands.com wrote: On Thu, 25 Dec 2008 21:50:29 +, Jon Harrop wrote: Xah Lee wrote: On Dec 10, 2:47 pm, John W Kennedy wrote: C: #include #include void normal(int dim, float* x, float* a) { float sum = 0.0f; int i; float divisor; for (i = 0; i < dim; ++i) sum

Re: SyntaxError: encoding problem: with BOM

2008-12-25 Thread Christian Heimes
NoName schrieb: >> NoName, Asking people to download a zip file from a website written in >> a language and character set that they probably are not familiar with >> is liable to make them rather nervous and not bother. It's not a good >> way to ask for help. > > sorry:) > > Now i know where prob

Re: python interpreter black window

2008-12-25 Thread Scott David Daniels
Chris Rebert wrote: On Thu, Dec 25, 2008 at 3:32 PM, Gandalf wrote: I use WX gui so the user doesn't actually need it, Is their any way to hide it? Make sure your Python program is run by pythonw.exe as opposed to python.exe pythonw.exe exists specifically for the purpose of suppressing the D

Re: Is there a function to remove escape characters from a string ?

2008-12-25 Thread John Machin
On Dec 26, 8:53 am, Stef Mientki wrote: > Steven D'Aprano wrote: > > On Thu, 25 Dec 2008 11:00:18 +0100, Stef Mientki wrote: > > >> hello, > > >> Is there a function to remove escape characters from a string ? > >> (preferable all escape characters except "\n"). > > > Can you explain what you mean

How to stop subprocesses from copying listening sockets

2008-12-25 Thread Rick van Hattem
Hi everyone, Recently I've started building a program that spawns new processes when requested via http, since the http interface doesn't need to be fancy I've just used the BaseHTTPServer module for this, but... it seems I'm running into a little problem. When spawning a new process (which for

dummy needs help with Python

2008-12-25 Thread MLDSpenser
I am trying to find somebody who can give me a simple python program I can use to "program by analogy". I just want to read two CSV files and match them on several fields, manipulate some of the fields, and write a couple of output files. I come from 30 years of mainframe programming so I u

Re: SyntaxError: encoding problem: with BOM

2008-12-25 Thread NoName
> It's a bug, please report it. I though we fixed all Windows path bugs > for 3.0 but apparently one slipped through. > > Christian It is too difficult for me. please help me=) -- http://mail.python.org/mailman/listinfo/python-list

Re: How to stop subprocesses from copying listening sockets

2008-12-25 Thread Roy Smith
In article , Rick van Hattem wrote: > Recently I've started building a program that spawns new processes when > requested via http, since the http interface doesn't need to be fancy I've > just used the BaseHTTPServer module for this, but... it seems I'm running > into a little problem. When

Re: dummy needs help with Python

2008-12-25 Thread Rick van Hattem
On Friday 26 December 2008 03:24:41 mldspen...@aol.com wrote: > I don't have time to work my way through the online Python tutorial. I've > tried a couple of forums but nobody has answered my questions. There are loads of Python tutorials on the net, some will teach you the basics in 5 minutes, o

Re: How to stop subprocesses from copying listening sockets

2008-12-25 Thread Rick van Hattem
On Friday 26 December 2008 04:05:43 Roy Smith wrote: > In article , > > Rick van Hattem wrote: > > Recently I've started building a program that spawns new processes when > > requested via http, since the http interface doesn't need to be fancy > > I've just used the BaseHTTPServer module for thi

tkinter 3.0 multiple keyboard events together

2008-12-25 Thread Pavel Kosina
Is it possible to catch in an event more that one key from keyboard? In my code, I can handle always the only one, the first I press, the others are omitted. Say, I press both "4" and "8" and only "4" is catched. def movePlayer(event): print (event.keysym) Thank you. -- geon Pavel Kosina

sys.stdout.write()'s bug or doc bug?

2008-12-25 Thread Qiangning Hong
>>> u = u'\u554a' >>> print u 啊 >>> sys.stdout.write(u) Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u554a' in position 0: ordinal not in range(128) >>> type(sys.stdout) >>> sys.stdout.encoding 'UTF-8' Quote from file object

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread Carl Banks
On Dec 25, 6:35 pm, "David Stanek" wrote: > You won't need the dictionary at all if each type has a parse method. How do you know what type to use if you don't have a if...elif..., dictionary, getattr, or some other sort of dispatching? Look at his requirements: there is a variable called "data_

Re: socket send help

2008-12-25 Thread greyw...@gmail.com
Hi again, I've done some more playing around with socket and socketserver and have discovered I can send strings or lists with socket.send() by converting to bytes. But lists with strings in them or dicts can't be converted by bytes(). How can I send those? One idea I initially tried was to set

Re: socket send help

2008-12-25 Thread Chris Rebert
On Thu, Dec 25, 2008 at 10:08 PM, greyw...@gmail.com wrote: > Hi again, > > I've done some more playing around with socket and socketserver and > have discovered I can send strings or lists with socket.send() by > converting to bytes. But lists with strings in them or dicts can't be > converted b

Re: How to display Chinese in a list retrieved from database via python

2008-12-25 Thread Mark Tolonen
"zxo102" wrote in message news:979fdf6d-0500-47ba-87fd-0f0361ca3...@p2g2000prf.googlegroups.com... On 12月26日, 上午4时58分, "Gabriel Genellina" wrote: En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió: > On 12月25日, 下午3时35分, "Chris Rebert" wrote: >> On Wed, Dec 24, 2008 at 11:29 PM, zxo102

Re: python interpreter black window

2008-12-25 Thread Gandalf
On Dec 26, 2:52 am, Scott David Daniels wrote: > Chris Rebert wrote: > > On Thu, Dec 25, 2008 at 3:32 PM, Gandalf wrote: > >> I use WX gui so the user doesn't actually need it, Is their any way to > >> hide it? > > > Make sure your Python program is run by pythonw.exe as opposed to python.exe > >