Re: python3 - the hardest hello world ever ?

2008-10-17 Thread Helmut Jarausch
Ross Ridge wrote: Helmut Jarausch [EMAIL PROTECTED] wrote: # but this ugly one (to be done for each output file) sys.stdout._encoding='latin1' Is this writable _encoding attribute, with a leading underscore (_), documented anywhere? Does it actually work? Would it happen to be supported in

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Helmut Jarausch
Martin v. Löwis wrote: What defines me as latin1-user? That your locale is based on Latin-1, e.g. because it is a German locale. How precisely that works depends on the operating system. So my system seems to be an ASCII system? At least that's what Python determined. If Python couldn't

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Martin v. Löwis
Still, I wished it were possible call sys.setdefaultencoding at the very beginning of a script. Why isn't that possible? The default encoding was used when combining byte-oriented text and unicode-oriented text. Such combination is no longer supported, hence the notion of a default encoding

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Helmut Jarausch
Martin v. Löwis wrote: Still, I wished it were possible call sys.setdefaultencoding at the very beginning of a script. Why isn't that possible? The default encoding was used when combining byte-oriented text and unicode-oriented text. Such combination is no longer supported, hence the notion

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Paul Boddie
On 16 Okt, 11:28, Helmut Jarausch [EMAIL PROTECTED] wrote: I meant setting the default encoding which is used by print (e.g.) when outputting the internal unicode string to a file. As far as I understood, currently I am fixed to setting either the 'locale' or to switch settings for each

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Helmut Jarausch
Paul Boddie wrote: On 16 Okt, 11:28, Helmut Jarausch [EMAIL PROTECTED] wrote: I meant setting the default encoding which is used by print (e.g.) when outputting the internal unicode string to a file. As far as I understood, currently I am fixed to setting either the 'locale' or to switch

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Martin v. Löwis
I meant setting the default encoding which is used by print (e.g.) when outputting the internal unicode string to a file. Having such a thing would be conceptually wrong. What encoding should be used depends on the file - different files may have different encodings. When opening a file, you

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Terry Reedy
Helmut Jarausch wrote: I have always worked with latin-1 strings with an US locale under python-2.x with x 6 (I haven't tried 2.6, though). I hope to switch to 3.0 as soon as possible. Having the luxury of not needing 3rd party extensions for my current work, I already have, and love it.

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Helmut Jarausch
Ben Finney wrote: Helmut Jarausch [EMAIL PROTECTED] writes: I have to set an internal property (with leading underscore) for each output file I'm using - right? If you're referring to the source encoding declaration: No, underscores have no effect. The specification is at

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Paul Boddie
On 15 Okt, 12:08, Helmut Jarausch [EMAIL PROTECTED] wrote: What defines me as latin1-user? What does sys.stdout.encoding say? In Python 2.x, at least, that attribute should reflect the capabilities of your environment (specifically, the character encoding) and help determine whether it makes

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Helmut Jarausch
Paul Boddie wrote: On 15 Okt, 12:08, Helmut Jarausch [EMAIL PROTECTED] wrote: What defines me as latin1-user? What does sys.stdout.encoding say? In Python 2.x, at least, that It says ansi_x3.4-1968 Where can I change this? attribute should reflect the capabilities of your environment

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Paul Boddie
On 15 Okt, 17:59, Helmut Jarausch [EMAIL PROTECTED] wrote: Paul Boddie wrote: What does sys.stdout.encoding say? In Python 2.x, at least, that It says  ansi_x3.4-1968 That's ASCII, yes. Where can I change this? What's your locale? I can provoke the same setting if I run a Python program

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Diez B. Roggisch
Helmut Jarausch wrote: Paul Boddie wrote: On 15 Okt, 12:08, Helmut Jarausch [EMAIL PROTECTED] wrote: What defines me as latin1-user? What does sys.stdout.encoding say? In Python 2.x, at least, that It says ansi_x3.4-1968 Where can I change this? By changing your console's terminal

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Orestis Markou
I would just use UTF-8 and be done with it. Set your editor to write UTF-8 files, set the correct #coding at your python script, make sure your terminal supports outputting UTF-8 characters (and your font has the correct glyphs) and everything should be fine. No trickery required. Even

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Helmut Jarausch
Martin v. Löwis wrote: do I miss something (I do hope so) or is switching to Python3 really hard for Latin1-users? Why do you want to switch? sys.stdout.encoding should already be iso-8859-1, if you are a Latin1-user. What defines me as latin1-user? commenting #

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Helmut Jarausch
Brian Quinlan wrote: Hey Helmut, Did you try just: print(Hallo, Süßes Python) Yes, but that doesn't work here. Please see my reply to Martin's reply. Thanks, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany --

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Martin v. Löwis
What defines me as latin1-user? That your locale is based on Latin-1, e.g. because it is a German locale. How precisely that works depends on the operating system. So my system seems to be an ASCII system? At least that's what Python determined. If Python couldn't have found out that you

python3 - the hardest hello world ever ?

2008-10-14 Thread Helmut Jarausch
Hi, do I miss something (I do hope so) or is switching to Python3 really hard for Latin1-users? My simplest hello world script - which uses a few German umlaut characters - doesn't look very intuitive. I have to set an internal property (with leading underscore) for each output file I'm using

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread pjacobi . de
Hi Helmut, All, do I miss something (I do hope so) or is switching to Python3 really hard for Latin1-users? It's as complicated as ever -- if you have used unicode strings in the past (as the 3.0 strings now are always unicode strings). # sys.setfilesystemencoding('latin1') This cares about

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread Martin v. Löwis
do I miss something (I do hope so) or is switching to Python3 really hard for Latin1-users? Why do you want to switch? sys.stdout.encoding should already be iso-8859-1, if you are a Latin1-user. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread Brian Quinlan
Hey Helmut, Did you try just: print(Hallo, Süßes Python) Cheers, Brian Helmut Jarausch wrote: Hi, do I miss something (I do hope so) or is switching to Python3 really hard for Latin1-users? My simplest hello world script - which uses a few German umlaut characters - doesn't look very

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread Ben Finney
Helmut Jarausch [EMAIL PROTECTED] writes: I have to set an internal property (with leading underscore) for each output file I'm using - right? If you're referring to the source encoding declaration: No, underscores have no effect. The specification is at

Re: Hello boys!

2008-09-28 Thread Cydrome Leader
Sep 2008 14:56:07 -0700 (PDT), Milenko Stojadinovic Cvrcko [EMAIL PROTECTED] wrote: Hello, this is Milenko Stojadinovic from town Banjaluka, Bosnia and Herzegovina, also known as Cvrcko Does anyone know of any bars in town where I can swallow a bucket of cum? It can be either dog, horse or human cum

Re: Hello boys!

2008-09-28 Thread D'Arcy J.M. Cain
On Sat, 27 Sep 2008 18:47:16 -0400 default [EMAIL PROTECTED] wrote: On Sat, 27 Sep 2008 14:56:07 -0700 (PDT), Milenko Stojadinovic Cvrcko [EMAIL PROTECTED] wrote: Hello, this is Milenko Stojadinovic from town Banjaluka, Come to the US and park your mouth in front of George Bush - all

Hello boys!

2008-09-27 Thread Milenko Stojadinovic Cvrcko
Hello, this is Milenko Stojadinovic from town Banjaluka, Bosnia and Herzegovina, also known as Cvrcko Does anyone know of any bars in town where I can swallow a bucket of cum? It can be either dog, horse or human cum. Also, does anyone know of any sex bars where people will shit in your mouth? I

Re: Hello boys!

2008-09-27 Thread default
On Sat, 27 Sep 2008 14:56:07 -0700 (PDT), Milenko Stojadinovic Cvrcko [EMAIL PROTECTED] wrote: Hello, this is Milenko Stojadinovic from town Banjaluka, Bosnia and Herzegovina, also known as Cvrcko Does anyone know of any bars in town where I can swallow a bucket of cum? It can be either dog

Re: Hello boys!

2008-09-27 Thread Jim Thompson
On Sat, 27 Sep 2008 18:47:16 -0400, default [EMAIL PROTECTED] wrote: On Sat, 27 Sep 2008 14:56:07 -0700 (PDT), Milenko Stojadinovic Cvrcko [EMAIL PROTECTED] wrote: Hello, this is Milenko Stojadinovic from town Banjaluka, Bosnia and Herzegovina, also known as Cvrcko Does anyone know of any bars

Re: Hello boys!

2008-09-27 Thread default
On Sat, 27 Sep 2008 15:56:39 -0700, Jim Thompson [EMAIL PROTECTED] wrote: Now you know why I blanket kill-file googlegroups. ...Jim Thompson I knew that! Every now and then one groper will make it back to the scene of his crime - but, granted, there was

Re: Hello boys!

2008-09-27 Thread Cydrome Leader
In rec.crafts.metalworking Jim Thompson [EMAIL PROTECTED] wrote: On Sat, 27 Sep 2008 18:47:16 -0400, default [EMAIL PROTECTED] wrote: On Sat, 27 Sep 2008 14:56:07 -0700 (PDT), Milenko Stojadinovic Cvrcko [EMAIL PROTECTED] wrote: Hello, this is Milenko Stojadinovic from town Banjaluka

Re: Hello boys!

2008-09-27 Thread default
[EMAIL PROTECTED] wrote: Hello, this is Milenko Stojadinovic from town Banjaluka, Bosnia and Herzegovina, also known as Cvrcko Does anyone know of any bars in town where I can swallow a bucket of cum? It can be either dog, horse or human cum. Also, does anyone know of any sex bars where people will shit

Re: Hello boys!

2008-09-27 Thread Jim Thompson
[EMAIL PROTECTED] wrote: Hello, this is Milenko Stojadinovic from town Banjaluka, Bosnia and Herzegovina, also known as Cvrcko Does anyone know of any bars in town where I can swallow a bucket of cum? It can be either dog, horse or human cum. Also, does anyone know of any sex bars where people

Hello guys!!!!!

2008-09-25 Thread Goran Barac Cvrcko
Hello, this is Goran Barac from town Banjaluka, Bosnia and Herzegovina, also known as Cvrcko Does anyone know of any bars in town where I can swallow a bucket of cum? It can be either dog, horse or human cum. Also, does anyone know of any sex bars where people will shit in your mouth? I also like

how many objects are loaded for hello world?

2008-09-17 Thread belred
i just read this blog about how many objects (types) are loaded for a hello world program in C#. http://blogs.msdn.com/abhinaba/archive/2008/09/15/how-many-types-are-loaded-for-hello-world.aspx how can you find out how many are loaded for a python program: print 'hello' -- http

Re: how many objects are loaded for hello world?

2008-09-17 Thread Chris Rebert
On Tue, Sep 16, 2008 at 11:13 PM, belred [EMAIL PROTECTED] wrote: i just read this blog about how many objects (types) are loaded for a hello world program in C#. http://blogs.msdn.com/abhinaba/archive/2008/09/15/how-many-types-are-loaded-for-hello-world.aspx how can you find out how many

Re: how many objects are loaded for hello world?

2008-09-17 Thread Fredrik Lundh
belred wrote: i just read this blog about how many objects (types) are loaded for a hello world program in C#. http://blogs.msdn.com/abhinaba/archive/2008/09/15/how-many-types-are-loaded-for-hello-world.aspx how can you find out how many are loaded for a python program: print 'hello' types

Hello,who can help me!

2008-07-22 Thread birdprince
I have implemented a C++ COM,which contains two interface in one coclass. when i use this COM in python: dll=win32com.client.Dispatch(X) then i can only call default interface's method,but can't call non default interface's method. who can tell me how to call non default interface's method.

Re: Hello,who can help me!

2008-07-22 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: I have implemented a C++ COM,which contains two interface in one coclass. when i use this COM in python: dll=win32com.client.Dispatch(X) then i can only call default interface's method,but can't call non default interface's method. who can tell me how to call

Re: Hello,who can help me!

2008-07-22 Thread James Matthews
I would recommended on asking on the pywin32 mailing list. On Tue, Jul 22, 2008 at 2:26 AM, Diez B. Roggisch [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I have implemented a C++ COM,which contains two interface in one coclass. when i use this COM in python:

Fwd: Hello

2008-07-17 Thread spandana g
Hello , Traceback (most recent call last): File C:\Python25\hadi_yahoo.py, line 12, in module file_source.write(urllib2.urlopen(req).read()) File C:\Python25\lib\urllib2.py, line 124, in urlopen return _opener.open(url, data) File C:\Python25\lib\urllib2.py, line 387, in open

Re: Fwd: Hello

2008-07-17 Thread Fredrik Lundh
spandana g wrote: HTTPError: HTTP Error 999: Unable to process request at this time -- error 999 Previously i got the error which I have attached below when I use just urlopen . But now when I use this http request user_agent='Mozilla/3.0(compatible;MISE 5.5;Windows NT)'

Re: Fwd: Hello

2008-07-17 Thread Fredrik Lundh
they have an official API, you know: http://developer.yahoo.com/search/boss/ and yes, there are other options too, including pYsearch which is available from their developer network: http://developer.yahoo.com/python/python-pysearch.html for more Python stuff from/for Yahoo, see

Hello, everybody!

2008-04-02 Thread Dolphin.o0O...
C++ Java Python All of them are critical! -- Best regards. Yours sincerely, Dolphin.o0O... ~~ Dedicate in what you love so much! Dolphin.o0O ~~ -- http://mail.python.org/mailman/listinfo/python-list

Re: print 'hello' - SyntaxError: invalid syntax

2008-02-08 Thread ValdezDE
On Feb 7, 10:21 pm, ajaksu [EMAIL PROTECTED] wrote: On Feb 7, 12:52 pm, [EMAIL PROTECTED] wrote: I try to install Python in a Dell D620 with XP PRO version 5.1.2600 and I am getting this error. I assume that some dlls are missing but I installed form a fresh python-2.5.1.msi without

print 'hello' - SyntaxError: invalid syntax

2008-02-07 Thread ValdezDE
)] on win32 Type help, copyright, credits or license for more information. import this File stdin, line 1 import this ^ SyntaxError: invalid syntax 2 + 2 File stdin, line 1 2 + 2 ^ SyntaxError: invalid syntax print 'Hello' File stdin, line 1 print 'Hello

Re: print 'hello' - SyntaxError: invalid syntax

2008-02-07 Thread Jon Fluffy Saul
On Feb 7, 2008 8:52 AM, [EMAIL PROTECTED] wrote: I try to install Python in a Dell D620 with XP PRO version 5.1.2600 and I am getting this error. I assume that some dlls are missing but I installed form a fresh python-2.5.1.msi without errors msg. Thanks Roberto snip Sounds like a bad

Re: print 'hello' - SyntaxError: invalid syntax

2008-02-07 Thread ajaksu
On Feb 7, 12:52 pm, [EMAIL PROTECTED] wrote: I try to install Python in a Dell D620 with XP PRO version 5.1.2600 and I am getting this error. I assume that some dlls are missing but I installed form a fresh python-2.5.1.msi without errors msg. Thanks Roberto What is the install path? And

[issue1653416] print f, Hello produces no error: normal?

2008-01-11 Thread Christian Heimes
Changes by Christian Heimes: -- type: - behavior versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1653416 _ ___ Python-bugs-list mailing

[issue1653416] print f, Hello produces no error: normal?

2008-01-11 Thread Christian Heimes
Christian Heimes added the comment: On Linux both 2.5 and 2.6 are raising an exception: f = open(/etc/passwd) print f, Hello Traceback (most recent call last): File stdin, line 1, in module IOError: [Errno 9] Bad file descriptor -- nosy: +tiran

hello world

2008-01-05 Thread [EMAIL PROTECTED]
log on to http://profiles.friendster.com/58431435 -- http://mail.python.org/mailman/listinfo/python-list

Re: [SQL] plpythonu and hello concurrent world

2007-12-05 Thread Tom Lane
Gerardo Herzig [EMAIL PROTECTED] writes: Hi all. Im having some problems with a small concurrent plpython function. Don't even *think* about starting multiple threads inside the Postgres backend. It's an excellent way to break things. regards, tom lane --

plpythonu and hello concurrent world

2007-12-05 Thread Gerardo Herzig
time.sleep(random.randint(10, 1) / 1000.0) print str, 'OK!' myThreads = (threading.Timer(random.random(), myPrint, [hello]), \ threading.Timer(random.random(), myPrint, [concurrent]), \ threading.Timer(random.random(), myPrint, [world])) for thr in myThreads

build boost.python tutorial hello world without bjam

2007-12-01 Thread devito
hi there, for some days i try to build the boost.python tutorial hello world without bjam on winxp by using mingw. so i wrote a *.bat-file like the following: // --- snip -- @echo off SETLOCAL SET DIR_MINGW=c

hello! I am a spammer

2007-10-02 Thread panguohua
more information for making money with your blog www.space666.com goodwebsite for making money www.space666.com -- http://mail.python.org/mailman/listinfo/python-list

Re: hello! I am a spammer

2007-10-02 Thread Nigel Rowe
On Wed, 3 Oct 2007 11:17, panguohua wrote in comp.lang.python more information for making money with your blog snip / Wow! Truth in advertising! -- Nigel Rowe A pox upon the spammers that make me write my address like.. rho (snail) fisheggs (stop) name --

Re: hello! I am a spammer

2007-10-02 Thread Danyelle Gragsone
Ok this is dead.. move along people.. nothing to see here.. -- http://mail.python.org/mailman/listinfo/python-list

Hello Gabriel cant help noticing you

2007-09-26 Thread hrishy
Hi Gabriel I couldnt help but to write this mail. I am not a python programmer just a shell script coder and i am planning to learn some decent python and raise my level from a shell script junkie to a Python gentleman the way you explain things and show it in code is simply amazing. I

Re: Hello Gabriel cant help noticing you

2007-09-26 Thread Gabriel Genellina
En Wed, 26 Sep 2007 03:35:25 -0300, hrishy [EMAIL PROTECTED] escribi�: I couldnt help but to write this mail. I am not a python programmer just a shell script coder and i am planning to learn some decent python and raise my level from a shell script junkie to a Python gentleman the way you

Re: Hello Gabriel cant help noticing you

2007-09-26 Thread hrishy
Hi Gabriel Well it could be a bad example when we need to do lot more things via xml but..the regex in that i have preserved it carefully thats key takeawy for a beginner like me the way the problem was dissected to arrive at what was needed regards Hrishy --- Gabriel Genellina [EMAIL

[ python-Bugs-1736483 ] os.popen('yes | echo hello') stuck

2007-06-13 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Eric (cpegeric) Assigned to: Nobody/Anonymous (nobody) Summary: os.popen('yes | echo hello') stuck

[ python-Bugs-1736483 ] os.popen('yes | echo hello') stuck

2007-06-13 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Eric (cpegeric) Assigned to: Nobody/Anonymous (nobody) Summary: os.popen('yes | echo hello') stuck

[ python-Bugs-1736483 ] os.popen('yes | echo hello') stuck

2007-06-13 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Eric (cpegeric) Assigned to: Nobody/Anonymous (nobody) Summary: os.popen('yes | echo hello') stuck

[ python-Bugs-1736483 ] os.popen('yes | echo hello') stuck

2007-06-13 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Eric (cpegeric) Assigned to: Nobody/Anonymous (nobody) Summary: os.popen('yes | echo hello') stuck

[ python-Bugs-1736483 ] os.popen('yes | echo hello') stuck

2007-06-13 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Eric (cpegeric) Assigned to: Nobody/Anonymous (nobody) Summary: os.popen('yes | echo hello') stuck

[ python-Bugs-1736483 ] os.popen('yes | echo hello') stuck

2007-06-13 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Eric (cpegeric) Assigned to: Nobody/Anonymous (nobody) Summary: os.popen('yes | echo hello') stuck

[ python-Bugs-1736483 ] os.popen('yes | echo hello') stuck

2007-06-13 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Eric (cpegeric) Assigned to: Nobody/Anonymous (nobody) Summary: os.popen('yes | echo hello') stuck

Hello World!

2007-05-21 Thread Heizenreder Guillermo
Hello World! I am new in the list -- Heizenreder Guillermo -- -- http://mail.python.org/mailman/listinfo/python-list

Hello gettext

2007-05-14 Thread James T. Dennis
with as the simplest instructions, suitable for an overview of Python programming class: Start with the venerable Hello, World! program ... slightly modified to make it ever-so-slightly more functional: #!/usr/bin/env python import sys def hello(s=World): print

Re: Hello gettext

2007-05-14 Thread James T. Dennis
the external details right. * http://docs.python.org/lib/node738.html Here's what I finally came up with as the simplest instructions, suitable for an overview of Python programming class: Start with the venerable Hello, World! program ... slightly modified to make it ever-so-slightly more

[ python-Bugs-1653416 ] print f, Hello produces no error: normal?

2007-02-10 Thread SourceForge.net
, Hello produces no error: normal? Initial Comment: When using print f, Hello on a file f opened for reading, no exception is raised. Is this normal? This situation has to be contrasted with f.write(Hello) which raises an exception. Details with Python 2.5 (r25:51908, Sep 24 206) on OS X 10.4.8

[ python-Bugs-1653416 ] print f, Hello produces no error: normal?

2007-02-09 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: E.-O. Le Bigot (eolebigot) Assigned to: Nobody/Anonymous (nobody) Summary: print f, Hello

[ python-Bugs-1653416 ] print f, Hello produces no error: normal?

2007-02-06 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: E.-O. Le Bigot (eolebigot) Assigned to: Nobody/Anonymous (nobody) Summary: print f, Hello

[ python-Bugs-1653416 ] print f, Hello produces no error: normal?

2007-02-06 Thread SourceForge.net
, Hello produces no error: normal? Initial Comment: When using print f, Hello on a file f opened for reading, no exception is raised. Is this normal? This situation has to be contrasted with f.write(Hello) which raises an exception. Details with Python 2.5 (r25:51908, Sep 24 206) on OS X 10.4.8

[ python-Bugs-1653416 ] print f, Hello produces no error: normal?

2007-02-06 Thread SourceForge.net
, Hello produces no error: normal? Initial Comment: When using print f, Hello on a file f opened for reading, no exception is raised. Is this normal? This situation has to be contrasted with f.write(Hello) which raises an exception. Details with Python 2.5 (r25:51908, Sep 24 206) on OS X 10.4.8

Re: how can i write a hello world in chinese with python

2006-12-16 Thread kernel1983
thanks everyone maybe this simple API doesn't fit the Chinese display but thanks everybody! At least I've got that what bundles is and maybe I can use Python to write program On 12月14日, 上午6时31分, MRAB [EMAIL PROTECTED] wrote: Dennis Lee Bieber wrote: On 12 Dec 2006 23:40:41 -0800, kernel1983

Re: how can i write a hello world in chinese with python

2006-12-13 Thread Leo Kislov
kernel1983 wrote: and I tried unicode and utf-8 How did you try unicode? Like this? : EasyDialogs.Message(u'\u4e2d') I tried to both use unicodeutf-8 head just like \xEF\xBB\xBF and not to use Anyone knows about the setting in the python code file? Maybe python doesn't know I'm to use

Re: how can i write a hello world in chinese with python

2006-12-13 Thread John Machin
Leo Kislov wrote: kernel1983 wrote: and I tried unicode and utf-8 How did you try unicode? Like this? : EasyDialogs.Message(u'\u4e2d') I tried to both use unicodeutf-8 head just like \xEF\xBB\xBF and not to use Anyone knows about the setting in the python code file? Maybe python

Re: how can i write a hello world in chinese with python

2006-12-13 Thread Kevin Walzer
kernel1983 wrote: I'm try to build a bundle on OS X, so I write a simple python script for a test: #!/usr/bin/env python import EasyDialogs EasyDialogs.Message(Hello,Mac!) This runs OK,but when I try to replace Hello,Mac! with chinese, it can't be display rightly. Then I tried some

Re: how can i write a hello world in chinese with python

2006-12-13 Thread MRAB
Dennis Lee Bieber wrote: On 12 Dec 2006 23:40:41 -0800, kernel1983 [EMAIL PROTECTED] declaimed the following in gmane.comp.python.general: and I tried unicode and utf-8 I tried to both use unicodeutf-8 head just like \xEF\xBB\xBF and not to use unicode is a term covering many

how can i write a hello world in chinese with python

2006-12-12 Thread kernel1983
I'm try to build a bundle on OS X, so I write a simple python script for a test: #!/usr/bin/env python import EasyDialogs EasyDialogs.Message(Hello,Mac!) This runs OK,but when I try to replace Hello,Mac! with chinese, it can't be display rightly. Then I tried some way else: #!/usr/bin/env

Re: how can i write a hello world in chinese with python

2006-12-12 Thread bearsprite
try unicode? kernel1983 写道: I'm try to build a bundle on OS X, so I write a simple python script for a test: #!/usr/bin/env python import EasyDialogs EasyDialogs.Message(Hello,Mac!) This runs OK,but when I try to replace Hello,Mac! with chinese, it can't be display rightly. Then I

Re: how can i write a hello world in chinese with python

2006-12-12 Thread kernel1983
: I'm try to build a bundle on OS X, so I write a simple python script for a test: #!/usr/bin/env python import EasyDialogs EasyDialogs.Message(Hello,Mac!) This runs OK,but when I try to replace Hello,Mac! with chinese, it can't be display rightly. Then I tried some way else

Hello to watch this interesting page he is on sharp 904sh

2006-09-11 Thread pmy
hello to watch this interesting page he is on sharp 904sh http://p178.hit-logo-ringtone.com/0-000/us_en/inicio/index.html?chc=us http://p178.play-mobilegame.com/ http://pmo.logos-and-ringtones.tv/?p=us http://es.geocities.com/pmo178/index.html http://es.geocities.com/pmo178

Hello to watch this interesting page he is on sharp 904sh

2006-09-11 Thread pmy
Hello to watch this interesting page he is on sharp 904sh http://p178.hit-logo-ringtone.com/0-000/us_en/inicio/index.html?chc=us http://p178.play-mobilegame.com/ http://pmo.logos-and-ringtones.tv/?p=us http://es.geocities.com/pmo178/index.html http://es.geocities.com/pmo178

Re: seeking the Hello World of Packages

2006-08-13 Thread dwhall
Kevin, I just posted a small package to the python package index. It has one source file of interest and some unit tests.The remaining files are either needed for or made by distutils. Should be pretty easy to follow if you've read the distutils docs. Note that the package you get does not

seeking the Hello World of Packages

2006-08-11 Thread Bell, Kevin
behavior?: import MyPackage MyPackage.justPrintHelloWorld Hello World MyPackage.multiply5by10 50 -- http://mail.python.org/mailman/listinfo/python-list

Re: seeking the Hello World of Packages

2006-08-11 Thread faulkner
correct? C:\MyPackage\ \__init__.py \justPrintHelloWorld.py \multiply5By10.py Would I expect the following behavior?: import MyPackage MyPackage.justPrintHelloWorld Hello World MyPackage.multiply5by10 50 -- http://mail.python.org/mailman/listinfo

Re: seeking the Hello World of Packages

2006-08-11 Thread Gabriel Genellina
\multiply5By10.py Would I expect the following behavior?: import MyPackage MyPackage.justPrintHelloWorld Hello World MyPackage.multiply5by10 50 Not exactly. Assuming your __init__.py is empty, MyPackage.justPrintHelloWorld references that *module*. If you have a function called printHelloWorld

Python on WinXP: 7 Minutes To Hello World!

2006-04-22 Thread BartlebyScrivener
I started a long email to a friend about how to get up and running on Python, then I thought, why not make something I can post? It's NOT a tutorial. Just a specific, narrow, quick installation guide for Windows XP users. Would love comments, but probably can't incorporate them until Monday,

s = raw_input (hello whats your name? )

2006-03-23 Thread cm012b5105
Hi there i am hoping some one could help me out with a small problem i am in the process of learning python.I am trying to write an interactive programme, This is a short example. if s = raw_input (hello whats your name? ) if s=='carmel': Print Ahh the bosss wife What i would like to know

hello python

2005-12-24 Thread liigo
-- http://mail.python.org/mailman/listinfo/python-list

Re: After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-12-01 Thread mortuno
yes, but everybody using ubuntu tells me it works fine for them. The problem must be something very specific to my laptop and x window. I am using need 855resolution , I'd like to know if it works for somedy else with ubuntu and 855resolution. thanks for your interest --

Re: After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-12-01 Thread mortuno
thank you very much, but now I don't think it is a problem of dependencies -- http://mail.python.org/mailman/listinfo/python-list

Re: After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-11-30 Thread mortuno
Mandus ha escrito: works just fine on my ubunty 5.10. Make sure you have the python2.4-tk package installed (sudo apt-get install python2.4-tk). yes, i got it. It's a fresh instalation from a cd in a brand new laptop. I tried to reinstall python2.4-tk and many other packeges :-( There are

Re: After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-11-30 Thread Wade Leftwich
[EMAIL PROTECTED] wrote: Hi My tkinter apps worked fine in debian linux (woody and sarge) I moved to ubuntu 5.10 I follow the 'hello world' test as seen in http://wiki.python.org/moin/TkInter Ubuntu uses X.org. Did your Debian distro use xfree86? -- http://mail.python.org/mailman

Re: After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-11-30 Thread Mandus
30 Nov 2005 04:23:37 -0800 skrev [EMAIL PROTECTED]: Mandus ha escrito: works just fine on my ubunty 5.10. Make sure you have the python2.4-tk package installed (sudo apt-get install python2.4-tk). yes, i got it. It's a fresh instalation from a cd in a brand new laptop. I tried to

Re: After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-11-29 Thread Mandus
28 Nov 2005 11:02:57 -0800 skrev [EMAIL PROTECTED]: Hi My tkinter apps worked fine in debian linux (woody and sarge) I moved to ubuntu 5.10 I follow the 'hello world' test as seen in http://wiki.python.org/moin/TkInter import _tkinter # with underscore, and lowercase 't' import Tkinter

After migrating from debian to ubuntu, tkinter hello world doesn't work

2005-11-28 Thread mortuno
Hi My tkinter apps worked fine in debian linux (woody and sarge) I moved to ubuntu 5.10 I follow the 'hello world' test as seen in http://wiki.python.org/moin/TkInter import _tkinter # with underscore, and lowercase 't' import Tkinter # no underscore, uppercase 'T' Tkinter._test() # note

Hello World-ish

2005-11-26 Thread [EMAIL PROTECTED]
from os import * print Working path: %s % os.getcwd(); Just wondering how you would do that .. in theory, if you get what I mean? I get NameError: name 'os' is not defined currently, which I don't know how to fix.. anyone? -- http://mail.python.org/mailman/listinfo/python-list

Re: Hello World-ish

2005-11-26 Thread Jorge Godoy
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: from os import * print Working path: %s % os.getcwd(); Just wondering how you would do that .. in theory, if you get what I mean? I get NameError: name 'os' is not defined currently, which I don't know how to fix.. anyone? Either: import os

Re: Hello World-ish

2005-11-26 Thread Jesse Lands
On 26 Nov 2005 03:19:55 -0800 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: from os import * print Working path: %s % os.getcwd(); Just wondering how you would do that .. in theory, if you get what I mean? I get NameError: name 'os' is not defined currently, which I don't know how to fix..

<    1   2   3   4   5   6   >