Re: statement level resumable exception

2011-01-20 Thread Arnaud Delobelle
ilejn writes: > Arnaud, > > these lists are not generated. > > Actually these lists are a sort of interpreted programs and contain > some application logic. > > Here is an example > [ > [PUSH, [get_modified_interface, req]], > [TIMEOUT, 3], > [PULL, [out_interface,

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Carl Banks
On Jan 20, 9:58 am, Dennis Lee Bieber wrote: > On Thu, 20 Jan 2011 10:08:40 -0500, Bob Kline > declaimed the following in gmane.comp.python.general: > > > > > I just noticed that the following passage in RFC 822: > > >          The process of moving  from  this  folded   multiple-line > >        

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Carl Banks
On Jan 20, 9:55 am, Bob Kline wrote: > On 1/20/2011 12:23 PM, Carl Banks wrote: > > > > > On Jan 20, 7:08 am, Bob Kline  wrote: > >> I just noticed that the following passage in RFC 822: > > >>           The process of moving  from  this  folded   multiple-line > >>           representation  of a

is it a bug in exec?

2011-01-20 Thread longqian9...@gmail.com
In pyhton 3.1, I found the following code will succeed with argument 1 to 4 and fail with argument 5 to 9. It is really strange to me. I suspect it may be a buy in exec() function. Does anyone have some idea about it? Thanks. t1=""" class foo: def fun(): print('foo') def m

Re: examples of realistic multiprocessing usage?

2011-01-20 Thread Albert van der Horst
In article , Adam Tauno Williams wrote: >On Mon, 2011-01-17 at 13:55 +, Albert van der Horst wrote: >> In article , >> Philip Semanchuk wrote: >> >> >I grepped through the code to see that it's using = >> >multiprocessing.Listener. I didn't go any further than that because our = >> >projec

Re: CRC 16bit function

2011-01-20 Thread Dave Angel
On 01/-10/-28163 02:59 PM, geremy condra wrote: On Thu, Jan 20, 2011 at 4:03 PM, SANKAR . wrote: Hi There, I am looking for buitin function to calculate 16 bit checksum values of the lines in text file using python. I could find one for 32 bit but not for 16 bit. Can some one help me? Googl

Re: New instance of a class : not reset?

2011-01-20 Thread MRAB
On 21/01/2011 02:35, Jean-Francois wrote: Hi, In the following example, I don't understand why attribute 'data' is not reset when I get the new instance of Bag It works if I make a copy (data[:]) but I want to understand why Thanks class Bag(object): def __init__(self, data = []):

Re: New instance of a class : not reset?

2011-01-20 Thread André
On Thursday, January 20, 2011 10:35:46 PM UTC-4, Jean-Francois wrote: > Hi, > > In the following example, I don't understand why attribute 'data' is > not reset when I get the new instance of Bag > It works if I make a copy (data[:]) but I want to understand why > > Thanks > > > class Bag(objec

New instance of a class : not reset?

2011-01-20 Thread Jean-Francois
Hi, In the following example, I don't understand why attribute 'data' is not reset when I get the new instance of Bag It works if I make a copy (data[:]) but I want to understand why Thanks class Bag(object): def __init__(self, data = []): self.data = data

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Neil Hodgson
Emile van Sebille: > The problem with QT is the license. > > From http://qt.nokia.com/products/licensing/: > > Qt Commercial Developer License > The Qt Commercial Developer License is the correct license to use for > the development of proprietary and/or commercial software ... The LGPL vers

Re: Efficient python 2-d arrays?

2011-01-20 Thread Dan Stromberg
On Thu, Jan 20, 2011 at 4:07 PM, Jacob Biesinger wrote: > On Thu, Jan 20, 2011 at 12:48 PM, Dan Stromberg wrote: >> On Thu, Jan 20, 2011 at 11:36 AM, Jake Biesinger >> wrote: Thanks for the great suggestions! >>> >>> On a related note, is there no way to efficiently sort a python array? >>>

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-20 Thread Martin v. Loewis
> But you got me thinking... how far back does this behaviour go? = ==> Release 1.1 (11 Oct 1994) <== = - Passing the interpreter a .pyc file as script argument will execute the code in that file. (On the Mac such files can be do

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-20 Thread Martin v. Loewis
> I know I've seen problems executing .pyc files from the shell in the > past... perhaps I was conflating details of something else. Ah, I know! > > [steve@sylar ~]$ chmod u+x toto.pyc > [steve@sylar ~]$ ./toto.pyc > : command not found �� > ./toto.pyc: line 2: syntax error near unexpected token

Re: CRC 16bit function

2011-01-20 Thread geremy condra
On Thu, Jan 20, 2011 at 4:03 PM, SANKAR . wrote: > Hi There, > > I am looking for buitin function to calculate  16 bit checksum values of the > lines in text file using python. > I could find one for 32 bit but not for 16 bit. Can some one help me? Google's your friend. http://efreedom.com/Quest

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread MRAB
On 20/01/2011 23:15, rantingrick wrote: On Jan 20, 5:08 pm, MRAB wrote: On 20/01/2011 21:52, rantingrick wrote:> On Jan 20, 3:06 pm, Emile van Sebillewrote: [snip] Greg Wilson's reaction was "Yes please", and he went on to explain what factors kept him using Tkinter for a recent course:

Re: Efficient python 2-d arrays?

2011-01-20 Thread Jacob Biesinger
On Thu, Jan 20, 2011 at 12:48 PM, Dan Stromberg wrote: > On Thu, Jan 20, 2011 at 11:36 AM, Jake Biesinger > wrote: >>> Thanks for the great suggestions! >> >> On a related note, is there no way to efficiently sort a python array? >> >> > x = array('f', xrange(1000)) > x.sort() >>

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-20 Thread Steven D'Aprano
On Thu, 20 Jan 2011 05:09:50 -0800, John Pinner wrote: > Hi > > You have disturbe my slumber, Steven ;-) > > On Jan 19, 2:42 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: >> On Tue, 18 Jan 2011 00:58:14 -0800, jmfauth wrote: >> > It is now practically impossible to launch a Python

CRC 16bit function

2011-01-20 Thread SANKAR .
Hi There, I am looking for buitin function to calculate 16 bit checksum values of the lines in text file using python. I could find one for 32 bit but not for 16 bit. Can some one help me? Thanks Sankar -- http://mail.python.org/mailman/listinfo/python-list

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Martin Gregorie
On Thu, 20 Jan 2011 17:58:36 -0500, Bob Kline wrote: > Thanks. I'm not sure everyone would agree that it's OK to collapse > multiple consecutive spaces into one, but I'm beginning to suspect that > those more concerned with preserving as much as possible of the original > message are in the mino

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Nick Stinemates
> > Greg Wilson - > I thought about using wxPython in the most recent run of my Python > course, but > decided to stick to Tkinter because: > > - There isn't a wxWindows/wxPython book (matters a lot when > organizations are > trying to decide what to adopt for long-term use). > Greg

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 5:01 pm, Jerry Hill wrote: > I think that's referring to this > email:http://mail.python.org/pipermail/python-dev/2000-October/010046.html Greg Wilson - I thought about using wxPython in the most recent run of my Python course, but decided to stick to Tkinter because: - Th

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 5:08 pm, MRAB wrote: > On 20/01/2011 21:52, rantingrick wrote:> On Jan 20, 3:06 pm, Emile van > Sebille  wrote: > > [snip] > >> Greg Wilson's reaction was "Yes please", and he went on to explain > >> what factors kept him using Tkinter for a recent course: > >    http://www.python.org/

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 5:01 pm, Jerry Hill wrote: > On Thu, Jan 20, 2011 at 4:52 PM, rantingrick wrote: > >> Greg Wilson's reaction was "Yes please", and he went on to explain > >> what factors kept him using Tkinter for a recent course: > >        http://www.python.org/pipermail/python-dev/2000-October/0167

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread MRAB
On 20/01/2011 21:52, rantingrick wrote: On Jan 20, 3:06 pm, Emile van Sebille wrote: [snip] Greg Wilson's reaction was "Yes please", and he went on to explain what factors kept him using Tkinter for a recent course: http://www.python.org/pipermail/python-dev/2000-October/016757.html

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Jerry Hill
On Thu, Jan 20, 2011 at 4:52 PM, rantingrick wrote: >> Greg Wilson's reaction was "Yes please", and he went on to explain >> what factors kept him using Tkinter for a recent course: >        http://www.python.org/pipermail/python-dev/2000-October/016757.html > > Well that link is broken so we will

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Bob Kline
On 1/20/2011 5:34 PM, Martin Gregorie wrote: On Thu, 20 Jan 2011 16:25:52 -0500, Bob Kline wrote: On 1/20/2011 3:48 PM, Martin Gregorie wrote: That's only a problem if your code cares about the composition of the whitespace and this, IMO is incorrect behaviour. When the separator between synta

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Martin Gregorie
On Thu, 20 Jan 2011 16:25:52 -0500, Bob Kline wrote: > On 1/20/2011 3:48 PM, Martin Gregorie wrote: >> That's only a problem if your code cares about the composition of the >> whitespace and this, IMO is incorrect behaviour. When the separator >> between syntactic elements in a header is 'whitespa

ANN: ActivePython 2.6.6.18 is now available

2011-01-20 Thread Sridhar Ratnakumar
ActiveState is pleased to announce ActivePython 2.6.6.18, a complete, ready-to-install binary distribution of Python 2.6. Among other updates, this releases brings "postinstall" support to PyPM to facilitate installation of modules such as PyIMSL. http://www.activestate.com/activepython/do

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 3:06 pm, Emile van Sebille wrote: > You might find this interesting... > http://mail.python.org/pipermail/python-announce-list/2000-November/0... > Yes, it's old.  That's part of the reason you get no traction on this. Thanks Emile. This read was both hair raising and informative. Fol

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Bob Kline
On 1/20/2011 3:48 PM, Martin Gregorie wrote: That's only a problem if your code cares about the composition of the whitespace and this, IMO is incorrect behaviour. When the separator between syntactic elements in a header is 'whitespace' it should not matter what combination of newlines, tabs and

Re: UTF-8 question from Dive into Python 3

2011-01-20 Thread jmfauth
On Jan 19, 11:33 pm, Terry Reedy wrote: > On 1/19/2011 1:02 PM, Tim Harig wrote: > > > Right, but I only have to do that once.  After that, I can directly address > > any piece of the stream that I choose.  If I leave the information as a > > simple UTF-8 stream, I would have to walk the stream ag

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Emile van Sebille
On 1/20/2011 12:17 PM rantingrick said... Well as far as i am concerned that takes QT out of the contest. So that leaves WxPython and pyGTK as the only viable options that are mature libraries. Both carry the LGPL license. http://www.pygtk.org/ http://www.wxwidgets.org/about/newlicen.htm

Re: statement level resumable exception

2011-01-20 Thread ilejn
Arnaud, these lists are not generated. Actually these lists are a sort of interpreted programs and contain some application logic. Here is an example [ [PUSH, [get_modified_interface, req]], [TIMEOUT, 3], [PULL, [out_interface, '']], [PULL, [err_interface,

Re: Google AI challenge: planet war. Lisp won.

2011-01-20 Thread namekuseijin
On Dec 22 2010, 12:46 pm, Xah Lee wrote: > On Dec 20, 10:06 pm, "Jon Harrop" wrote: > > > Wasn't that the "challenge" where they wouldn't even accept solutions > > written in many other languages (including both OCaml and F#)? > > Ocaml is one of the supported lang. See: > > http://ai-contest.com

Re: statement level resumable exception

2011-01-20 Thread Emile van Sebille
On 1/20/2011 11:49 AM ilejn said... Chris, this is a long story why arguments may be not known. Briefly these arguments come (or may come) from XML and may be not specified. A function call which does not have all arguments defined must be skipped as gracefully as possible. What I am asking abo

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 2:37 pm, Adam Skutt wrote: > On Jan 20, 1:17 pm, Emile van Sebille wrote: > > > > > The problem with QT is the license. > > Qt and wxWidgets are both LGPL and equally non-starters due to > license, today. Everything out there is LGPL! But you cannot just use that argument to keep Tkin

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
On Jan 20, 3:02 pm, "Octavian Rasnita" wrote: > From: "Adam Skutt" > Yet, for some unfathomable reason, you > keep promoting > I would be glad if you could tell me about a portable solution which is > accessible with JAWS and Window Eyes, the most used screen readers under > Windows (real glad)

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Martin Gregorie
On Thu, 20 Jan 2011 12:55:44 -0500, Bob Kline wrote: > On 1/20/2011 12:23 PM, Carl Banks wrote: >> On Jan 20, 7:08 am, Bob Kline wrote: >>> I just noticed that the following passage in RFC 822: >>> >>> The process of moving from this folded multiple-line >>> representatio

Re: statement level resumable exception

2011-01-20 Thread Arnaud Delobelle
ilejn writes: > Arnaud, > > good idea, though I think it is not applicable in my case, > because my arg1 ... argN are "complex multilayer lists". > > In reality it is not just > f(arg1), > it is more like > f([[subarg1, 'aa', subarg2], []]) > > Regarding your remark it is a strange problem ... we

Re: Efficient python 2-d arrays?

2011-01-20 Thread Dan Stromberg
On Thu, Jan 20, 2011 at 11:36 AM, Jake Biesinger wrote: >> Thanks for the great suggestions! > > On a related note, is there no way to efficiently sort a python array? > > x = array('f', xrange(1000)) x.sort() >

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
On Jan 20, 1:17 pm, Emile van Sebille wrote: > > The problem with QT is the license. Qt and wxWidgets are both LGPL and equally non-starters due to license, today. There was a hypothetical assumption on my part that the library would be made license compatible somehow, through the entire discussi

Re: statement level resumable exception

2011-01-20 Thread ilejn
Arnaud, good idea, though I think it is not applicable in my case, because my arg1 ... argN are "complex multilayer lists". In reality it is not just f(arg1), it is more like f([[subarg1, 'aa', subarg2], []]) Regarding your remark it is a strange problem ... well, may be it is ;) Thanks anyway.

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Octavian Rasnita
From: "Adam Skutt" > Yet, for some unfathomable reason, you keep promoting wxWidgets even though it is plainly the inferior solution. Inferior to what? I would be glad if you could tell me about a portable solution which is accessible with JAWS and Window Eyes, the most used screen readers und

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Octavian Rasnita
From: "Grant Edwards" WxPython is bad. Gtk >> is inaccessible under Windows, not under Linux, but WxPython doesn't >> use Gtk under Windows so WxPython is OK. > > Ah. I didn't realize we were operating under the premise that Windows > was the only OS that mattered. Sorry. This conclusion is h

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 12:17 pm, Emile van Sebille wrote: > The problem with QT is the license. > >  Fromhttp://qt.nokia.com/products/licensing/: > > Qt Commercial Developer License > The Qt Commercial Developer License is the correct license to use for > the development of proprietary and/or commercial soft

Re: Efficient python 2-d arrays?

2011-01-20 Thread Robert Kern
On 1/20/11 1:36 PM, Jake Biesinger wrote: Thanks for the great suggestions! On a related note, is there no way to efficiently sort a python array? No. x = array('f', xrange(1000)) x.sort() --- AttributeError

Re: statement level resumable exception

2011-01-20 Thread Arnaud Delobelle
ilejn writes: > Hello! > > I have a sequence of a function calls. Basically it looks like > > f(arg1) > f(arg2) > ... > f(argN) > > though real arguments are complex multilayer lists. > > The problem is some arguments are not known and I get NameError > exceptions. > > The solutions I know > 1. w

Re: printing a list with non-ascii strings

2011-01-20 Thread Arnaud Delobelle
Helmut Jarausch writes: > Hi, > > I don't understand Python's behaviour when printing a list. > The following example uses 2 German non-ascii characters. > > #!/usr/bin/python > # _*_ coding: latin1 _*_ > L=["abc","süß","def"] > print L[1],L > > The output of L[1] is correct, while the output of

Re: statement level resumable exception

2011-01-20 Thread ilejn
Chris, this is a long story why arguments may be not known. Briefly these arguments come (or may come) from XML and may be not specified. A function call which does not have all arguments defined must be skipped as gracefully as possible. What I am asking about is how to achieve this goal. Thank

Re: Efficient python 2-d arrays?

2011-01-20 Thread Jake Biesinger
> Thanks for the great suggestions! On a related note, is there no way to efficiently sort a python array? >>> x = array('f', xrange(1000)) >>> x.sort() --- AttributeErrorTraceback (most recen

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Antoine Pitrou
On 20 Jan 2011 17:20:14 GMT Helmut Jarausch wrote: > Thanks Robert, > probably I wasn't too clear about my issue. > I couldn't "print" any non-ascii character to my console although > my console has an en_US.iso88591 locale. Well, if you want a correct answer, you should paste actual code as well

Re: statement level resumable exception

2011-01-20 Thread Chris Rebert
On Thu, Jan 20, 2011 at 9:32 AM, ilejn wrote: > Hello! > > I have a sequence of a function calls. Basically it looks like > > f(arg1) > f(arg2) > ... > f(argN) > > though real arguments are complex multilayer lists. > > The problem is some arguments are not known and I get NameError > exceptions.

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Bill Felton
On Jan 20, 2011, at 1:15 PM, Nick Stinemates wrote: > > > So you're going to lead the "peasants" (your word) whether they like it > > or not, and any who don't want to follow are clearly being selfish and > > ignorant? > > If you could read Bill's words and not find them to be overly selfish >

Re: printing a list with non-ascii strings

2011-01-20 Thread Peter Otten
Helmut Jarausch wrote: > I don't understand Python's behaviour when printing a list. > The following example uses 2 German non-ascii characters. > > #!/usr/bin/python > # _*_ coding: latin1 _*_ > L=["abc","süß","def"] > print L[1],L > > The output of L[1] is correct, while the output of L shows

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Bob Kline
On 1/20/2011 12:58 PM, Dennis Lee Bieber wrote: I'd first be concerned about the absence of the line ending sequence specified by the RFC: carriage return (CR; \r) followed by line feed (LF; \n). I realized after I posted the original message that this might distract from the issue I'

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Emile van Sebille
On 1/20/2011 9:32 AM Adam Skutt said... On Jan 20, 10:44 am, "Octavian Rasnita" wrote: From: "Adam Skutt" Actually, JAWS uses MSAA dead last, as I understand it, because the API is truly that awful. But MSAA is necessary whenever you're not using a Win32 common control or most of the other stu

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Nick Stinemates
> > > > So you're going to lead the "peasants" (your word) whether they like it > > or not, and any who don't want to follow are clearly being selfish and > > ignorant? > > If you could read Bill's words and not find them to be overly selfish > and ignorant then i don't know what to say. He clearly

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread MRAB
On 20/01/2011 17:36, rantingrick wrote: On Jan 20, 11:13 am, MRAB wrote: So you're going to lead the "peasants" (your word) whether they like it or not, and any who don't want to follow are clearly being selfish and ignorant? If you could read Bill's words and not find them to be overly self

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Bob Kline
On 1/20/2011 12:23 PM, Carl Banks wrote: On Jan 20, 7:08 am, Bob Kline wrote: I just noticed that the following passage in RFC 822: The process of moving from this folded multiple-line representation of a header field to its single line represen- tation is c

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Bill Felton
On Jan 20, 2011, at 8:26 AM, Octavian Rasnita wrote: > From: "Bill Felton" >> I'm a complete newbie to Python. > > > To Python, or to programming in general? (Because it is important) Not to rantingrick's point as I understand it. But since you ask, new to Python, not new to programming. >25

Os designers are morons

2011-01-20 Thread David Hutto
Forgive me for the listening 'troll perspective', but is there any simple solution to intertwining proprietary and open source mentalities? Common ground seems to be the hardware offerings. So why does it seem that the summit has lost it's common ground, which is the hardware we operate on? Electri

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 11:13 am, MRAB wrote: > So you're going to lead the "peasants" (your word) whether they like it > or not, and any who don't want to follow are clearly being selfish and > ignorant? If you could read Bill's words and not find them to be overly selfish and ignorant then i don't know wha

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Philip Semanchuk
On Jan 20, 2011, at 11:47 AM, Robert Kern wrote: > On 1/20/11 9:47 AM, Philip Semanchuk wrote: > >> I'm glad that worked for you. Alternatively, it seems like you can set the >> default encoding in site.py which sounds easier than recompiling Python. > > Never do that. It breaks dicts and make

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
On Jan 20, 10:44 am, "Octavian Rasnita" wrote: > From: "Adam Skutt" > Actually, JAWS uses MSAA dead last, as I understand it, because the > API is truly that awful.  But MSAA is necessary whenever you're not > using a Win32 common control or most of the other stuff developed by > MS.  That means

statement level resumable exception

2011-01-20 Thread ilejn
Hello! I have a sequence of a function calls. Basically it looks like f(arg1) f(arg2) ... f(argN) though real arguments are complex multilayer lists. The problem is some arguments are not known and I get NameError exceptions. The solutions I know 1. wrap every f call in try/except block 2. mak

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 10:36 am, rusi wrote: > On Jan 20, 5:30 pm, Bill Felton > > With some hesitation, I feel a need to jump in here.   > This thread is now at 239 posts (and so I too hesitate...) Why hesitate? Whether it be one post or a million posts, if you have ideas, opinions, or suggestions then by

Re: Part of RFC 822 ignored by email module

2011-01-20 Thread Carl Banks
On Jan 20, 7:08 am, Bob Kline wrote: > I just noticed that the following passage in RFC 822: > >          The process of moving  from  this  folded   multiple-line >          representation  of a header field to its single line represen- >          tation is called "unfolding".  Unfolding  is  acc

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Helmut Jarausch
On Thu, 20 Jan 2011 10:46:37 -0600, Robert Kern wrote: > On 1/20/11 8:31 AM, Helmut Jarausch wrote: >> Hi, >> I've searched the net but didn't find the information I need. Using >> Python-2.7.1, I know, I can't modify defaultencoding at run time. > > You're not supposed to. It must remain 'ascii'

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Bill Felton
On Jan 20, 2011, at 12:13 PM, MRAB wrote: > On 20/01/2011 15:11, rantingrick wrote: >> On Jan 20, 6:30 am, Bill Felton >> wrote: >> > [snip] >>> As one of 'the people' who is presumably the focus of rantingrick's >>> concern, let me assure him Tkinter is a non-issue. MIchael is more >>> in touch

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Bill Felton
On Jan 20, 2011, at 10:11 AM, rantingrick wrote: > On Jan 20, 6:30 am, Bill Felton > wrote: > >> With some hesitation, I feel a need to jump in here. I'm a complete >> newbie to Python. I'm still learning the language. And you know >> what? I've ignored Tkinter. > > Well it is really not a goo

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread MRAB
On 20/01/2011 15:11, rantingrick wrote: On Jan 20, 6:30 am, Bill Felton wrote: [snip] As one of 'the people' who is presumably the focus of rantingrick's concern, let me assure him Tkinter is a non-issue. MIchael is more in touch with my issues than rr. FYI you are NOT one of the people that

Re: collections.Set Binary Reflected Operations

2011-01-20 Thread Chris Kaynor
Okay, thats what I was looking for, thanks. In my case, I'll just implement the (needed) reflected operators in my class. Chris On Wed, Jan 19, 2011 at 10:02 PM, Daniel Urban wrote: > On Thu, Jan 20, 2011 at 01:51, Chris Kaynor > wrote: > > I am implemented a custom set-like type which inter

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Robert Kern
On 1/20/11 9:47 AM, Philip Semanchuk wrote: I'm glad that worked for you. Alternatively, it seems like you can set the default encoding in site.py which sounds easier than recompiling Python. Never do that. It breaks dicts and makes your code non-portable. -- Robert Kern "I have come to bel

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Robert Kern
On 1/20/11 8:31 AM, Helmut Jarausch wrote: Hi, I've searched the net but didn't find the information I need. Using Python-2.7.1, I know, I can't modify defaultencoding at run time. You're not supposed to. It must remain 'ascii'. Otherwise, you will break dict lookups among other things. Can yo

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rusi
On Jan 20, 5:30 pm, Bill Felton wrote: > With some hesitation, I feel a need to jump in here.   This thread is now at 239 posts (and so I too hesitate...) The arguments for size, dependencies etc are what may be termed 'sys- ad' perspectives. The questions of 'it looks nice/ancient etc' are user

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Philip Semanchuk
On Jan 20, 2011, at 10:39 AM, Helmut Jarausch wrote: > On Thu, 20 Jan 2011 14:31:09 +, Helmut Jarausch wrote: > >> Hi, >> I've searched the net but didn't find the information I need. Using >> Python-2.7.1, I know, I can't modify defaultencoding at run time. Python >> even ignores >> export

Re: printing a list with non-ascii strings

2011-01-20 Thread Benjamin Kaplan
On Thu, Jan 20, 2011 at 10:43 AM, Helmut Jarausch wrote: > Hi, > > I don't understand Python's behaviour when printing a list. > The following example uses 2 German non-ascii characters. > > #!/usr/bin/python > # _*_ coding: latin1 _*_ > L=["abc","süß","def"] > print L[1],L > > The output of L[1]

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 9:44 am, Grant Edwards wrote: > > The wrong conclusion is that if Gtk is bad, then WxPython is bad. Gtk > > is inaccessible under Windows, not under Linux, but WxPython doesn't > > use Gtk under Windows so WxPython is OK. > > Ah.  I didn't realize we were operating under the premise th

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Grant Edwards
On 2011-01-20, Octavian Rasnita wrote: > From: "Grant Edwards" On all of my computers, wxPython uses Gtk. There are other choices for wxWidget backends on Linux, but Gtk is by far the most common. IOW, if Gtk is bad, then wxPython is bad. >>> >>> Not true. >> >> I think you're pla

printing a list with non-ascii strings

2011-01-20 Thread Helmut Jarausch
Hi, I don't understand Python's behaviour when printing a list. The following example uses 2 German non-ascii characters. #!/usr/bin/python # _*_ coding: latin1 _*_ L=["abc","süß","def"] print L[1],L The output of L[1] is correct, while the output of L shows up as ['abc', 's\xfc\xdf', 'def'] H

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Grant Edwards
On 2011-01-20, Michael Torrie wrote: > I don't see the original bizarre rants for some reason (spam filter > likely), but I have to say this is the most ridiculous thing I've heard > in some time. Tkinter the downfall of python? Wow. All of the python > programmers I know (we use python every

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Octavian Rasnita
From: "Adam Skutt" Actually, JAWS uses MSAA dead last, as I understand it, because the API is truly that awful. But MSAA is necessary whenever you're not using a Win32 common control or most of the other stuff developed by MS. That means essentially every non-MS toolkit that's been discussed.

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Helmut Jarausch
On Thu, 20 Jan 2011 14:31:09 +, Helmut Jarausch wrote: > Hi, > I've searched the net but didn't find the information I need. Using > Python-2.7.1, I know, I can't modify defaultencoding at run time. Python > even ignores > export PYTHONIOENCODING=ISO8859-1 > > locale.getdefaultlocale()[1] > r

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 7:48 am, pyt...@bdurham.com wrote: > Bill, [...snip...] > +1 (very well said) Yes maybe Bill should be BDFL or a core developer. He has all the answers. But no FACTS! -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread rantingrick
On Jan 20, 6:30 am, Bill Felton wrote: > With some hesitation, I feel a need to jump in here. I'm a complete > newbie to Python. I'm still learning the language. And you know > what? I've ignored Tkinter. Well it is really not a good idea to show your ignorance of a subject matter directly befor

Part of RFC 822 ignored by email module

2011-01-20 Thread Bob Kline
I just noticed that the following passage in RFC 822: The process of moving from this folded multiple-line representation of a header field to its single line represen- tation is called "unfolding". Unfolding is accomplished by regarding CRLF immediat

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
On Jan 20, 8:19 am, "Octavian Rasnita" wrote: > The Windows applications are not accessible only if they use MSAA. The > screen readers know how to get the necessary information for making the > interfaces accessible in other ways, but of course, it is harder for the > screen reader manufacturers

getdefaultencoding - how to change this?

2011-01-20 Thread Helmut Jarausch
Hi, I've searched the net but didn't find the information I need. Using Python-2.7.1, I know, I can't modify defaultencoding at run time. Python even ignores export PYTHONIOENCODING=ISO8859-1 locale.getdefaultlocale()[1] returns 'ISO8859-1' still sys.stdout is using the ascii codec. How can I r

difference between python and matlab

2011-01-20 Thread lakshmi
Is the programming related to image processing in python is advantageous or else in MATLAB -- http://mail.python.org/mailman/listinfo/python-list

USA Free classified site for free ad posting !!!

2011-01-20 Thread Marrina anderson tina
We are providing free services for all !!! Guys, are you looking for having nice opportunity to post or submit your advertisement without any impediments! Just visit and get gigantic chance to give free advertisement in our here !!! Just visit at: http://www.webadlist.com/ -- http://mail.pyt

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread python
Bill, > I can't believe anyone is so hung up by their own arrogance that they > honestly believe that the mere *presence* of a gui kit inside of the standard > distribution would prevent a newbie from learning about the existence and > possible benefits of alternatives ... ESPECIALLY in a langu

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Octavian Rasnita
From: "Bill Felton" I'm a complete newbie to Python. To Python, or to programming in general? (Because it is important) I'm still learning the language. And you know what? I've ignored Tkinter. Why did you do that? I quickly discovered the alternatives and am already working with w

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Octavian Rasnita
From: "Adam Skutt" On Jan 20, 2:22 am, "Octavian Rasnita" wrote: Where do you got the conclusion that the accessibility is so poor? By an examination of the facts. MSAA is universally hated and all screen readers actively have to work around it and its many limitations (meaning that as an ap

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-20 Thread John Pinner
Hi You have disturbe my slumber, Steven ;-) On Jan 19, 2:42 pm, Steven D'Aprano wrote: > On Tue, 18 Jan 2011 00:58:14 -0800, jmfauth wrote: > > It is now practically impossible to launch a Python application via a > > .pyc file. > > When has that ever been possible? > > .pyc files are Python byt

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Bill Felton
On Jan 19, 2011, at 10:20 PM, Michael Torrie wrote: > On 01/19/2011 05:01 PM, geremy condra wrote: >> On Wed, Jan 19, 2011 at 3:04 PM, rantingrick wrote: >>> And you've also lost all >>> connection with the people. I am desperately trying to to snap you out >>> of this psychosis before it is too

Re: Should there be a 'core' python install?

2011-01-20 Thread Giacomo Boffi
"Martin P. Hellwig" writes: > Yep when I started looking much more at other toolkits, I started to > like Tkinter more and more. Maybe its simplicity, maybe the good design of Tk, -- BOMBED BY AIRCRAFT. SINKING. U-824. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
On Jan 20, 2:22 am, "Octavian Rasnita" wrote: > Where do you got the conclusion that the accessibility is so poor? By an examination of the facts. MSAA is universally hated and all screen readers actively have to work around it and its many limitations (meaning that as an application programmer,

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-20 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Octavian Rasnita wrote: From: "geremy condra" On Wed, Jan 19, 2011 at 2:31 AM, Octavian Rasnita wrote: Would it be hard to introduce the possibility of adding encryption of the bytecode similar to what the Zend encoder does for PHP or Filter::Crypto for Perl? Octa

Need advices for mysqldb connection best practice

2011-01-20 Thread Romaric DEFAUX
Hi all, I've a problem with a mysql connection. I run a client/server application. Every hour, clients contact the server, send datas, and the server updates the database. Everything works perfectly. But after a while, I get in trouble with my db connection. I've got the impression my server

[Flickr] Your upload has failed with the following message:

2011-01-20 Thread Flickr Mail
If you think you shouldn't be getting this error, you can search our FAQs or send us a help case from http://flickr.com/help/ and we'll do out best to help! Thanks, The Flickr Team - This information might be of use to us when diagnosing what went

  1   2   >