blues

2012-03-14 Thread mabhanisi blues
Can i come in am i welcome -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode blues in Python3

2010-03-24 Thread John Nagle
nn wrote: To be more informative I am both writing text and binary data together. That is I am embedding text from another source into stream that uses non-ascii characters as "control" characters. In Python2 I was processing it mostly as text containing a few "funny" characters. OK. Then

Re: Unicode blues in Python3

2010-03-24 Thread nn
Antoine Pitrou wrote: > Le Tue, 23 Mar 2010 10:33:33 -0700, nn a écrit : > > > I know that unicode is the way to go in Python 3.1, but it is getting in > > my way right now in my Unix scripts. How do I write a chr(253) to a > > file? > > > > #nntst2.py > > import sys,codecs > > mychar=chr(253) >

Re: Unicode blues in Python3

2010-03-24 Thread Michael Torrie
Steven D'Aprano wrote: > I think your question is malformed. You need to work out what behaviour > you actually want, before you can ask for help on how to get it. It may or may not be malformed, but I understand the question. So let eme translate for you. How can he write arbitrary bytes ( 0x0

Re: Unicode blues in Python3

2010-03-24 Thread Antoine Pitrou
Le Tue, 23 Mar 2010 10:33:33 -0700, nn a écrit : > I know that unicode is the way to go in Python 3.1, but it is getting in > my way right now in my Unix scripts. How do I write a chr(253) to a > file? > > #nntst2.py > import sys,codecs > mychar=chr(253) > print(sys.stdout.encoding) > print(mycha

Re: Unicode blues in Python3

2010-03-24 Thread nn
Steven D'Aprano wrote: > On Tue, 23 Mar 2010 11:46:33 -0700, nn wrote: > > > Actually what I want is to write a particular byte to standard output, > > and I want this to work regardless of where that output gets sent to. > > What do you mean "work"? > > Do you mean "display a particular glyph" o

Re: Unicode blues in Python3

2010-03-24 Thread nn
Martin v. Loewis wrote: > nn wrote: > > > > Stefan Behnel wrote: > >> nn, 23.03.2010 19:46: > >>> Actually what I want is to write a particular byte to standard output, > >>> and I want this to work regardless of where that output gets sent to. > >>> I am aware that I could do > >>> open('nnout',

Re: Unicode blues in Python3

2010-03-23 Thread Steven D'Aprano
On Tue, 23 Mar 2010 11:46:33 -0700, nn wrote: > Actually what I want is to write a particular byte to standard output, > and I want this to work regardless of where that output gets sent to. What do you mean "work"? Do you mean "display a particular glyph" or something else? In bash: $ echo -e

Re: Unicode blues in Python3

2010-03-23 Thread Martin v. Loewis
nn wrote: > > Stefan Behnel wrote: >> nn, 23.03.2010 19:46: >>> Actually what I want is to write a particular byte to standard output, >>> and I want this to work regardless of where that output gets sent to. >>> I am aware that I could do >>> open('nnout','w',encoding='latin1').write(mychar) but

Re: Unicode blues in Python3

2010-03-23 Thread nn
Stefan Behnel wrote: > nn, 23.03.2010 19:46: > > Actually what I want is to write a particular byte to standard output, > > and I want this to work regardless of where that output gets sent to. > > I am aware that I could do > > open('nnout','w',encoding='latin1').write(mychar) but I am porting a

Re: Unicode blues in Python3

2010-03-23 Thread Stefan Behnel
nn, 23.03.2010 19:46: Actually what I want is to write a particular byte to standard output, and I want this to work regardless of where that output gets sent to. I am aware that I could do open('nnout','w',encoding='latin1').write(mychar) but I am porting a python2 program and don't want to rewr

Re: Unicode blues in Python3

2010-03-23 Thread nn
Gary Herron wrote: > nn wrote: > > I know that unicode is the way to go in Python 3.1, but it is getting > > in my way right now in my Unix scripts. How do I write a chr(253) to a > > file? > > > > Python3 make a distinction between bytes and string(i.e., unicode) > types, and you are still think

Re: Unicode blues in Python3

2010-03-23 Thread Gary Herron
nn wrote: I know that unicode is the way to go in Python 3.1, but it is getting in my way right now in my Unix scripts. How do I write a chr(253) to a file? Python3 make a distinction between bytes and string(i.e., unicode) types, and you are still thinking in the Python2 mode that does *NO

Re: Unicode blues in Python3

2010-03-23 Thread nn
Rami Chowdhury wrote: > On Tuesday 23 March 2010 10:33:33 nn wrote: > > I know that unicode is the way to go in Python 3.1, but it is getting > > in my way right now in my Unix scripts. How do I write a chr(253) to a > > file? > > > > #nntst2.py > > import sys,codecs > > mychar=chr(253) > > print

Re: Unicode blues in Python3

2010-03-23 Thread Rami Chowdhury
On Tuesday 23 March 2010 10:33:33 nn wrote: > I know that unicode is the way to go in Python 3.1, but it is getting > in my way right now in my Unix scripts. How do I write a chr(253) to a > file? > > #nntst2.py > import sys,codecs > mychar=chr(253) > print(sys.stdout.encoding) > print(mychar) The

Unicode blues in Python3

2010-03-23 Thread nn
I know that unicode is the way to go in Python 3.1, but it is getting in my way right now in my Unix scripts. How do I write a chr(253) to a file? #nntst2.py import sys,codecs mychar=chr(253) print(sys.stdout.encoding) print(mychar) > ./nntst2.py ISO8859-1 ý > ./nntst2.py >nnout2 Traceback (mo

Re: QFileDialog setFileMode blues

2009-07-29 Thread Rincewind
On Jul 29, 12:45 pm, Phil Thompson wrote: > On Wed, 29 Jul 2009 04:35:42 -0700 (PDT), Rincewind > wrote: > > > Heya, > > > I am fairly new to Python and even newer to Qt. > > The problem is opening a Qt file dialog to select folders only. > > QFileDialog has a nice and dandy setFileMode() functio

Re: QFileDialog setFileMode blues

2009-07-29 Thread Phil Thompson
On Wed, 29 Jul 2009 04:35:42 -0700 (PDT), Rincewind wrote: > Heya, > > I am fairly new to Python and even newer to Qt. > The problem is opening a Qt file dialog to select folders only. > QFileDialog has a nice and dandy setFileMode() function just for that. > The only trouble is that I cannot mak

QFileDialog setFileMode blues

2009-07-29 Thread Rincewind
Heya, I am fairly new to Python and even newer to Qt. The problem is opening a Qt file dialog to select folders only. QFileDialog has a nice and dandy setFileMode() function just for that. The only trouble is that I cannot make it work. Last thing I've tried was something like this: self.

Paramiko/SSH blues....

2008-01-16 Thread Tarun Kapoor
I am using paramiko to do an SFTP file transfer... I was able to connect to the remote server using an SFTP client I have just to make sure that username and password are working.. But when i try to connect using this script it fails **hostname, username and password are declared. #

Re: tkinter blues (greens, reds, ...)

2005-10-28 Thread Sean McIlroy
hi ron changing from english words to hexadecimal numerals did the trick for me, so everything's cool now. thanks for looking at it. peace -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter blues (greens, reds, ...)

2005-10-28 Thread Ron Adam
Sean McIlroy wrote: > i'm using the canned colors ("pink", "orange", etc). should i try > changing to explicit color specifications to see if that makes a > difference? i'm not sure what the other guy meant by a "soft toy", but > i take it the idea is to try and construct a correctness proof for

Re: tkinter blues (greens, reds, ...)

2005-10-28 Thread Sean McIlroy
i'm using the canned colors ("pink", "orange", etc). should i try changing to explicit color specifications to see if that makes a difference? i'm not sure what the other guy meant by a "soft toy", but i take it the idea is to try and construct a correctness proof for the script, and see what keeps

Re: tkinter blues (greens, reds, ...)

2005-10-28 Thread Ron Adam
Steve Holden wrote: > Sean McIlroy wrote: > >> hi all >> >> i recently wrote a script that implements a puzzle. the interface >> mostly consists of a bunch of colored disks on a tkinter canvas. the >> problem is that the disks change their colors in ways other than the >> way they're supposed t

Re: tkinter blues (greens, reds, ...)

2005-10-28 Thread Steve Holden
Sean McIlroy wrote: > hi all > > i recently wrote a script that implements a puzzle. the interface > mostly consists of a bunch of colored disks on a tkinter canvas. the > problem is that the disks change their colors in ways other than the > way they're supposed to. it certainly isn't just a bug

tkinter blues (greens, reds, ...)

2005-10-28 Thread Sean McIlroy
hi all i recently wrote a script that implements a puzzle. the interface mostly consists of a bunch of colored disks on a tkinter canvas. the problem is that the disks change their colors in ways other than the way they're supposed to. it certainly isn't just a bug in my script, since i can someti