Re: dictionary error: list assignment index out of range

2011-01-27 Thread Vaduvoiu Tiberiu
Well, to quote firefox: this is embarrassing. I've realized the dictionary initialization is wrong, as [] means its a tuple, I should use {}. That's why I don't like working nights..it's only in the morning when you start seeing things better. I apologize for the mail. Cheers _

dictionary error: list assignment index out of range

2011-01-27 Thread Vaduvoiu Tiberiu
Hy everyone, I'm trying to learng python for a week or two and there's a thing that is really disturbing me as I do not understand what the problem is. I'm trying to use a dictionary to remember when a user has visited a city. Code is really basic: in the class init method I added self.visited

Re: how to read the last line of a huge file???

2011-01-27 Thread John O'Hagan
On Wed, 26 Jan 2011, Xavier Heruacles wrote: > I have do some log processing which is usually huge. The length of each > line is variable. How can I get the last line?? Don't tell me to use > readlines or something like linecache... file.seek takes an optional 'whence' argument which is 2 for the

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-27 Thread rantingrick
On Jan 26, 3:57 pm, Terry Reedy wrote: > On 1/26/2011 11:53 AM, rantingrick wrote: > > To answer your other post, one of the main people to touch tkinter in > the last 3 years was Guilherme Polo, who worked on it during and after a > Google Summer of Code project. He does not seen to be active cur

PSF Sprints - Call For Applications

2011-01-27 Thread Brian Curtin
Hello Python Users! On behalf of the Python Software Foundation’s sponsored sprint group, I wanted to drop your group a quick note introducing us. If you’re already familiar with our sponsored sprints, you’ll be happy to know we made a few changes to help both sprint groups and Python even more.

Re: WxPython versus Tkinter.

2011-01-27 Thread alex23
rantingrick wrote: > different choices OUTSIDE the stdlib. INSIDE the stdlib we have no > choice. Just wanted to make that clear. Because packaging a dependency with your application is an arcane art lost to modern times? -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-27 Thread alex23
"Octavian Rasnita" wrote: > Ok, in this case I understand why WxPython can't be included in stdlib. > I think there was a communication problem because the oldest list members > start with the idea that all the list members know who is who and they may > be thinking that I don't want to accept the

Re: WxPython versus Tkinter.

2011-01-27 Thread Corey Richardson
On 01/27/2011 09:53 PM, alex23 wrote: > rantingrick wrote: >> You'll need to read that snippet in context to understand what i was >> talking about. Again, see my "tip of the day" in my last post to you. > > Pass. I'd have to see value in what you say inside of the endless > masturbatory self-agg

Re: WxPython versus Tkinter.

2011-01-27 Thread alex23
rantingrick wrote: > You'll need to read that snippet in context to understand what i was > talking about. Again, see my "tip of the day" in my last post to you. Pass. I'd have to see value in what you say inside of the endless masturbatory self-aggrandizement that you pass off as "visionary" pos

Re: replacing lines in a file

2011-01-27 Thread MRAB
On 28/01/2011 00:58, mpnordland wrote: thanks for explaining what I was doing wrong and how reading the file works. What would you suggest I do to remedy the situation? Write the new config out to a new file and then replace the old file with the new file. I'd use shutil.move(...) to do the rep

Re: WxPython versus Tkinter.

2011-01-27 Thread Nicholas Devenish
On 28/01/2011 00:54, rantingrick AKA "Brian" wrote: Yes the minor details have been evolving over the course of this and another thread. We have been floating new ideas all along the way in an effort to get the best result. In the very beginning because we all know that wxPython IS HUGE i offered

Re: replacing lines in a file

2011-01-27 Thread mpnordland
thanks for explaining what I was doing wrong and how reading the file works. What would you suggest I do to remedy the situation? -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 5:50 pm, Kevin Walzer wrote: > On 1/27/11 1:11 PM, rantingrick wrote: [...] Hello again Kevin and nice to have you back! Yes the minor details have been evolving over the course of this and another thread. We have been floating new ideas all along the way in an effort to get the best

Re: Return Statement

2011-01-27 Thread mpnordland
I stand corrected :) -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-27 Thread Terry Reedy
On 1/27/2011 4:48 PM, Corey Richardson wrote: wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first. -- Guido van Rossum (from http://www.wxpython.org/quotes.

Re: WxPython versus Tkinter.

2011-01-27 Thread Kevin Walzer
On 1/27/11 1:11 PM, rantingrick wrote: Actually we don't want "Robins wxPython" in the stdlib "as is" anyway. What we DO want is an abstraction API for the short term that plugs into Robin's wx. Then over the long term we will either convince him to create a better API OR just create our own wxPy

Re: help with multiprocessing pool

2011-01-27 Thread Craig Yoshioka
I did eventually get the original code to run from the command line but not the interpreter, so the new example does have a similar problem. Of course it's not as simple as saying I can't run an imported parallelized function from the interpreter because I can, as long as the parallelized funct

Re: WxPython versus Tkinter.

2011-01-27 Thread Emile van Sebille
On 1/27/2011 2:28 PM rantingrick said... And by removing Tkinter not only would we take a huge burden from py-dev but we would also free Tkinter from the chains of stdlib. Actually, IIRC, very little effort is put into maintaining tkinter by the py-dev crowd. I think I saw a post by Martin th

Re: Return Statement

2011-01-27 Thread Ethan Furman
mpnordland wrote: On 01/26/2011 03:26 PM, sl33k_ wrote: How does "return True" and "return False" affect the execution of the calling function? Basically it will affect it in whatever way you design it to for example: def lie_test(statement): if statement is True: return False

Re: Creating custom Python objects from C code

2011-01-27 Thread Aahz
In article , Eric Frederich wrote: > >I have read through all the documentation here: > >http://docs.python.org/extending/newtypes.html > >I have not seen any documentation anywhere else explaining how to >create custom defined objects from C. I have this need to create >custom objects from

Re: Need GUI pop-up to edit a (unicode ?) string

2011-01-27 Thread Robert Kern
On 2011-01-27 12:18 , Stephen Hansen wrote: On 1/27/11 10:04 AM, Grant Edwards wrote: On 2011-01-27, Stephen Hansen wrote: On 1/25/11 3:02 PM, rantingrick wrote: This is a major flaw in the design and i would be happy to fix the flaw. However our "friend" Fredrick decided to copyright the mod

Re: Behaviour-based interface/protocol implementation?

2011-01-27 Thread Daniel Urban
On Thu, Jan 27, 2011 at 20:05, Alan Franzoni wrote: > On Thu, Jan 27, 2011 at 8:03 PM, Alan Franzoni wrote: >> Yes, __instancecheck__ could be used as an alternative hook with >> respect to maybe_implemented_by(), but there's no such logic for >> signature checking. That's a minor detail, I think

Re: WxPython versus Tkinter.

2011-01-27 Thread Corey Richardson
On 01/27/2011 05:08 PM, rantingrick wrote: >> wxPython is the best and most mature cross-platform GUI toolkit, given a >> number of constraints. The only reason wxPython isn't the standard >> Python GUI toolkit is that Tkinter was there first. >> -- Guido van Rossum > > You forgot to put a date on

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 3:54 pm, Grant Edwards wrote: > On 2011-01-27, rantingrick wrote: > > >> AS far as I know, Guido has never recommended any particular gui and I > >> believe he has avoided doing so when asked. > > > Yes but his silence speaks louder than words. He is saying " While i > > won't defend T

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 3:48 pm, Corey Richardson wrote: > A weak argument - yes. But the thought is there, and it's the thought > that counts, right? ;-) What thought? It screams lack of thought to me. We should just ignore a clearly better option because some other option was chosen first, THATS IT? Thats

Re: Behaviour-based interface/protocol implementation?

2011-01-27 Thread Alan Franzoni
On Thu, Jan 27, 2011 at 10:30 PM, Carl Banks wrote: > Write some kind of signature proxy to do it. I don't have a specific implementation idea yet, I see how that grows. > Based on this thread, you have quite specific requirements, so it's > doubtful someone else has implemented exactly what you

Re: Wrappers in python

2011-01-27 Thread Raymond Hettinger
On Jan 27, 4:10 am, sl33k_ wrote: > What are wrappers? > >  What entities do they wrap around? > > Struggling to understand the concept. http://www.castle-cadenza.demon.co.uk/wrapper.htm Raymond -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 3:48 pm, Corey Richardson wrote: > On 01/27/2011 04:10 PM, rantingrick wrote: > > > > > > > > > > > On Jan 27, 2:00 pm, Terry Reedy wrote: > >> On 1/27/2011 12:54 PM, Octavian Rasnita wrote: > > >>> Everything that's not accessible is not recommended. > > >> By you. We get that. > > >>

Re: WxPython versus Tkinter.

2011-01-27 Thread Emile van Sebille
On 1/27/2011 1:38 PM rantingrick said... Continuing to lug Tkinter around is killing Python's evolution. Huh? Can you provide a reference where someone passed over python because of tkinter's inclusion in the standard library? You certainly can't mean that python's evolution over the past

Re: WxPython versus Tkinter.

2011-01-27 Thread Grant Edwards
On 2011-01-27, rantingrick wrote: >> AS far as I know, Guido has never recommended any particular gui and I >> believe he has avoided doing so when asked. > > Yes but his silence speaks louder than words. He is saying " While i > won't defend Tkinter publicly, i won't promote any others as well".

Re: WxPython versus Tkinter.

2011-01-27 Thread Corey Richardson
On 01/27/2011 04:10 PM, rantingrick wrote: > On Jan 27, 2:00 pm, Terry Reedy wrote: >> On 1/27/2011 12:54 PM, Octavian Rasnita wrote: >> >>> Everything that's not accessible is not recommended. >> >> By you. We get that. >> >> >Tkinter should be at most accepted because there is no better solutio

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 3:19 pm, Emile van Sebille wrote: > On 1/27/2011 12:47 PM rantingrick said... > > > different choices OUTSIDE the stdlib. INSIDE the stdlib we have no > > choice. Just wanted to make that clear. > > Only when you restrict yourself to the artificial restriction of 'no > third party downl

Re: Behaviour-based interface/protocol implementation?

2011-01-27 Thread Carl Banks
On Jan 24, 2:13 am, Alan Franzoni wrote: > Hello, > I'd like to have a system which lets me do certain actions if the > duck-type of a certain objects matches what I expect, i.e. I'd like to > have a formalization of what it's sometimes done through getattr() > calls: > > if getattr(myobj, "someme

Re: WxPython versus Tkinter.

2011-01-27 Thread Emile van Sebille
On 1/27/2011 12:47 PM rantingrick said... different choices OUTSIDE the stdlib. INSIDE the stdlib we have no choice. Just wanted to make that clear. Only when you restrict yourself to the artificial restriction of 'no third party downloads allowed -- python must supply the right choice for m

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 2:00 pm, Terry Reedy wrote: > On 1/27/2011 12:54 PM, Octavian Rasnita wrote: > > > Everything that's not accessible is not recommended. > > By you. We get that. > >  >Tkinter should be at most accepted because there is no better solution, > > As I said at the beginning of this thread, t

Re: Behaviour-based interface/protocol implementation?

2011-01-27 Thread Alan Franzoni
On Thu, Jan 27, 2011 at 8:58 PM, Ethan Furman wrote: > When you signature check, do you mean counting the number of arguments, or > actually checking argument types? In order to check for argument types I should either assume type annotation (python 3 only, optional) or parse the docstring for th

Re: lxml.etree, namespaces and element insertion

2011-01-27 Thread Neil Cerutti
On 2011-01-27, hein wrote: > - How am i supposed to detect a missing namespace, if there > are no differences in the serialized representation? (That's > what i initially used to debug the problem.) lxml's pretty printer is at fault, as it emits unprefixed names whenever possible while seriali

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 2:00 pm, Terry Reedy wrote: > AS far as I know, Guido has never recommended any particular gui and I > believe he has avoided doing so when asked. He is happy that there are > different choices. different choices OUTSIDE the stdlib. INSIDE the stdlib we have no choice. Just wanted to

Re: WxPython versus Tkinter.

2011-01-27 Thread Terry Reedy
On 1/27/2011 12:57 PM, Grant Edwards wrote: A very important way to help would be to test accessibility features and post accurate, detailed, bug-reports. For example: pygui pretty much uses native widgets on Windows and OX and gtk (I believe) on *nix. How is the accessibility of those widget

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>Because healthy Linux users ARE NOT equal to handicapped people! O? I bet I could run circles around RR in the shell, any day. Why are you trying to promote accessibility for a group of people you consider not equal to a group of "healthy" people? -- http://mail.python.org/mailman/listinfo/py

Re: WxPython versus Tkinter.

2011-01-27 Thread Terry Reedy
On 1/27/2011 12:54 PM, Octavian Rasnita wrote: Everything that's not accessible is not recommended. By you. We get that. >Tkinter should be at most accepted because there is no better solution, As I said at the beginning of this thread, tkinter is currently the only option. What would have h

Re: WxPython versus Tkinter.

2011-01-27 Thread Mark Roseman
Terry Reedy wrote: > > 1. The performance issues of having Tk use Tcl are negligible; the bulk > > of Tk (code-wise and time-wise) are spent in C. Tcl itself is also very > > fast nowadays, using all the usual techniques that modern dynamic > > languages use. > > I have the impression that tcl

Re: Behaviour-based interface/protocol implementation?

2011-01-27 Thread Ethan Furman
Alan Franzoni wrote: Hello, I'd like to have a system which lets me do certain actions if the duck-type of a certain objects matches what I expect, i.e. I'd like to have a formalization of what it's sometimes done through getattr() calls: if getattr(myobj, "somemethod", None) is not None: my

Re: WxPython versus Tkinter.

2011-01-27 Thread Alexander Kapps
On 27.01.2011 19:33, rantingrick wrote: Please don't use the lower accessibility percentage to prop up the low Linux percentage in an attempt to win your argument. Because healthy Linux users ARE NOT equal to handicapped people! Please don't put words into my mouth, idiot. And read my complete

Re: WxPython versus Tkinter.

2011-01-27 Thread Terry Reedy
On 1/27/2011 12:31 PM, Mark Roseman wrote: Terry Reedy wrote: Tk itself is purely a gui package -- abstract widgits, geometry placers to make them visible, and an event system to make them active. But it does have the baggage of needing tcl included. About a decade ago, some people had the id

Re: lxml.etree, namespaces and element insertion

2011-01-27 Thread Stefan Behnel
hein, 27.01.2011 19:16: The other day i was processing an xml tree using lxml.etree. That tree contained a namespace. During that processing i inserted an element. Later on i tried to find that element using xpath. And to my suprise that element was not found! Maybe my suprise is just the result

Re: WxPython versus Tkinter.

2011-01-27 Thread rusi
On Jan 27, 11:45 pm, rantingrick wrote: > > When has Octavian been uncivil? This lecture of Octavian is ludicris! > You are such a friendly totalitarian, how do you keep a strait face -- > Col. Hans Landa? And this mutual 'support' between Octavian and Ranter is ludicris(sic) Its quite clear to

Re: Behaviour-based interface/protocol implementation?

2011-01-27 Thread Alan Franzoni
On Thu, Jan 27, 2011 at 8:03 PM, Alan Franzoni wrote: > Yes, __instancecheck__ could be used as an alternative hook with > respect to maybe_implemented_by(), but there's no such logic for > signature checking. That's a minor detail, I think. On the contrary, now that I double checked, it can't be

Re: WxPython versus Tkinter.

2011-01-27 Thread Stephen Hansen
On 1/27/11 10:11 AM, rantingrick wrote: > On Jan 27, 1:28 am, "Octavian Rasnita" wrote: >> But WxPython is their work and they decision is their. > Actually we The word "we" does not mean what you think it means. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai

Re: Behaviour-based interface/protocol implementation?

2011-01-27 Thread Alan Franzoni
On Wed, Jan 26, 2011 at 7:23 PM, Daniel Urban wrote: >> That's just what I'd like and I suppose can't be currently done with >> current ABC, PyProtocols or zope.interface implementations, right? > > It can. With __instancecheck__ you can override isinstance. It is > possible (for example) to write

Re: Which is the best book to learn python

2011-01-27 Thread Luis M . González
On Jan 27, 3:43 pm, Jean-Michel Pichavant wrote: > santosh hs wrote: > > I am very new to object oriented concept,  so I need to learn > > everything frm basic, Will the above books fulfill > >  My need > > read thishttp://www.freenetpages.co.uk/hp/alan.gauld/tutclass.htm > > and stop when they st

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 11:47 am, Grant Edwards wrote: > On 2011-01-27, Octavian Rasnita wrote: > If you don't care about communicating with others, then being civil > probably does have no value (except for keeping a job or being > avoiding being beaten up on the playground).  If you want to > communicate (

Re: Need GUI pop-up to edit a (unicode ?) string

2011-01-27 Thread Grant Edwards
On 2011-01-27, Stephen Hansen wrote: > On 1/27/11 10:04 AM, Grant Edwards wrote: >> On 2011-01-27, Stephen Hansen wrote: >> >>> In fact: everything that is "open source" is copyrighted. By >>> definition[* see footnote]. >> >> One (domestic US) exception would be open-source software written by

Re: Which is the best book to learn python

2011-01-27 Thread Jean-Michel Pichavant
santosh hs wrote: I am very new to object oriented concept, so I need to learn everything frm basic, Will the above books fulfill My need read this http://www.freenetpages.co.uk/hp/alan.gauld/tutclass.htm and stop when they start to talk about VBscript :) JM -- http://mail.python.org/m

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>* Disclaimer: You are stupid if you think this is true. But seriously, >Octavian makes it REALLY hard to continue caring about something that I >actually cared about before and thought was important. People like Octavian do that. Sadly, it is one of the things holding the blind community back. I

Re: help with multiprocessing pool

2011-01-27 Thread Philip Semanchuk
On Jan 27, 2011, at 1:12 PM, Craig Yoshioka wrote: > The code will be multi-platform. The OSXisms are there as an example, though > I am developing on OS X machine. > > I've distilled my problem down to a simpler case, so hopefully that'll help > troubleshoot. > > I have 2 files: > > test

Re: WxPython versus Tkinter.

2011-01-27 Thread Giampaolo Rodolà
> It might be true, however I have seen some modules that say that are ment for > Python 2.5, for 2.6 or for 2.7, so there seem to be differences between these > versions also. Python cares *a lot* about maintaining backward compatibiilty between all major versions. This is so true that I manage

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 26, 1:16 pm, Alexander Kapps wrote: > Please don't use the lower Linux user percentage as an argument > here. If you follow that path further, you would need to agree that > it's only an "insignificant" percent of people who need a screen > reader, so why bother? Please don't use the low

Re: WxPython versus Tkinter.

2011-01-27 Thread Emile van Sebille
On 1/27/2011 10:09 AM Octavian Rasnita said... From: "Emile van Sebille" On 1/26/2011 11:02 PM Octavian Rasnita said... As we all know, Python doesn't care too much about maintaining a backward compatibility Where'd you get this idea? Between v2 and v3 yes, that was the intent. To be sinc

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 2:17 am, "Octavian Rasnita" wrote: > From: "Littlefield, Tyler" [...] > > Then when that fails, you try cramming > > words in people's mouth to make them feel like they kick puppies, and to > > bring everyone else to this same conclusion. Tyler no one can *make* you *feel* like anyt

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 2:13 am, "Octavian Rasnita" wrote: > > You may not like it, but that's a fact.  If you are in favor of XYZ, > > and act rude and insulting while espousing XYZ, people will react > > against not only you but _also_ XYZ. > > I know what you are reffering to. :-) > And I was hoping that t

lxml.etree, namespaces and element insertion

2011-01-27 Thread hein
The other day i was processing an xml tree using lxml.etree. That tree contained a namespace. During that processing i inserted an element. Later on i tried to find that element using xpath. And to my suprise that element was not found! Maybe my suprise is just the result of my marginal knowledge

Re: Need GUI pop-up to edit a (unicode ?) string

2011-01-27 Thread Stephen Hansen
On 1/27/11 10:04 AM, Grant Edwards wrote: > On 2011-01-27, Stephen Hansen wrote: >> On 1/25/11 3:02 PM, rantingrick wrote: >>> This is a major flaw in the design and i would be >>> happy to fix the flaw. However our "friend" Fredrick decided to >>> copyright the module to himself! What a jerk! Whi

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>Tyler, you are a Linux and Mac user and you search with Google and try to >explain how many things you know about NVDA, but it is obviously that what >JAWS 1) Because you, your crew, and your group on a specific forum doesn't like ESpeak doesn't disqualify an entire reader. The eloquence fixes

Re: WxPython versus Tkinter.

2011-01-27 Thread rantingrick
On Jan 27, 1:28 am, "Octavian Rasnita" wrote: > From: "Brendan Simon (eTRIX)" > > > Since it seems the python motto is "Batteries included", then it would > > seem to me that wxPython is the natural fit as it also has "Batteries > > included" (e.g. accessibility, native look-n-feel, mature and ev

Re: WxPython versus Tkinter.

2011-01-27 Thread Stephen Hansen
On 1/27/11 9:55 AM, Grant Edwards wrote: > On 2011-01-27, Octavian Rasnita wrote: >> From: "Grant Edwards" >>> People will not separate your personality from the cause you espouse. >> >> Wow! that's really bad. > > It's less than ideal, but it the way people are. > > Is that a surprise to you?

Re: help with multiprocessing pool

2011-01-27 Thread Craig Yoshioka
The code will be multi-platform. The OSXisms are there as an example, though I am developing on OS X machine. I've distilled my problem down to a simpler case, so hopefully that'll help troubleshoot. I have 2 files: test.py: -- fro

Re: WxPython versus Tkinter.

2011-01-27 Thread Octavian Rasnita
From: "Littlefield, Tyler" > >We are talking about accessibility here. Are you saying that Tkinter > can be >recommended from the perspective of accessibility? > See my comment about shoving words in people's mouths; I did not hint, > nor did I come near saying that in that message. But you as

Re: WxPython versus Tkinter.

2011-01-27 Thread Octavian Rasnita
From: "Emile van Sebille" > On 1/26/2011 11:02 PM Octavian Rasnita said... > >> As we all know, Python doesn't care too much about maintaining a >> backward compatibility > > Where'd you get this idea? Between v2 and v3 yes, that was the intent. To be sincere I was thinking to the differences

Re: Need GUI pop-up to edit a (unicode ?) string

2011-01-27 Thread Grant Edwards
On 2011-01-27, Stephen Hansen wrote: > On 1/25/11 3:02 PM, rantingrick wrote: >> This is a major flaw in the design and i would be >> happy to fix the flaw. However our "friend" Fredrick decided to >> copyright the module to himself! What a jerk! Which is quite >> disgusting considering that Tkint

Re: WxPython versus Tkinter.

2011-01-27 Thread Grant Edwards
On 2011-01-27, Octavian Rasnita wrote: > From: Octavian, > >> If I understand your message, you are frustrated with Tkinter because >> it doesn't support accessability. >> >> In several messages on this thread I pointed out that Tkinter can >> easily be made accessable under Linux and Mac OS X. >

Re: WxPython versus Tkinter.

2011-01-27 Thread Grant Edwards
On 2011-01-27, Octavian Rasnita wrote: > From: "Grant Edwards" >> And, based on your behavior, you apparently don't like convincing >> others or advancing the cause of accessibility. It seems you prefer to >> annoy and alienate others. > >>From what I said, what was annoying? > >>> I don't want

Re: WxPython versus Tkinter.

2011-01-27 Thread Grant Edwards
On 2011-01-27, Octavian Rasnita wrote: > Yes you might be right. It is just my way of communicating and it > might be too direct and some people might not like it. Too direct is putting it mildly. > I always consider the expressions like "How do you do" as having > absolutely no value, because

Re: WxPython versus Tkinter.

2011-01-27 Thread Mark Roseman
Terry Reedy wrote: > Tk itself is purely a gui package -- abstract widgits, geometry placers > to make them visible, and an event system to make them active. But it > does have the baggage of needing tcl included. About a decade ago, some > people had the idea of removing the tcl dependency, b

Re: WxPython versus Tkinter.

2011-01-27 Thread Ethan Furman
On Jan 27, 3:35 am, rantingrick wrote: A certain small subset of any group will always be emotionally driven. However we should not concern ourselves with this sort of non- objectivity. So, would this be like when rr disqualified himself by demanding posters have at least a 120 IQ? ;) ~Eth

Re: WxPython versus Tkinter.

2011-01-27 Thread Octavian Rasnita
From: "Littlefield, Tyler" > >It doesn't support a good voice synthesizer like Eloquence or IBM Via > voice > Eloq is an add-on, but it does support it. If you are saying this, it means that you haven't used it for a long time, or you just heard about it by searching on the web. Eloq is support

Re: WxPython versus Tkinter.

2011-01-27 Thread Octavian Rasnita
From: "Littlefield, Tyler" > >but what's wrong is that Python promotes a GUI which is not accessible > by including it as a default GUI. > You seem to have overlooked this multiple times and instead decided to > shove words in my mouth and continue on your line of selfishness which > is justifi

Re: Which is the best book to learn python

2011-01-27 Thread santosh hs
I am very new to object oriented concept, so I need to learn everything frm basic, Will the above books fulfill My need On Monday, January 24, 2011, Jean-Michel Pichavant wrote: > santosh hs wrote: > > Hi All, > i am beginner to python please tell me which is the best available > reference for

Re: WxPython versus Tkinter.

2011-01-27 Thread Stephen Hansen
On 1/26/11 11:02 PM, Octavian Rasnita wrote: > As we all know, Python doesn't care too much about maintaining a > backward compatibility What? Nonsense. There are strict compatibility requirements. There was a one-time break with these; 2.x->3.x -- but that's it. It may never happen again. If an

Pickling/Unpickling python Exceptions

2011-01-27 Thread Sergey Lukin
Hi all, I'm migrating code from python 2.4 to python 2.6 and I've got into troubles with pickling/unpickling python Exceptions. The following code works fine in 2.4 but not in 2.6. See Exception1 example I have found on python mail list similar problem http://mail.python.org/pipermail/python-lis

Re: Which is the best book to learn python

2011-01-27 Thread Benjamin Hell
On 2011-01-26 01:43 , Luis M. González wrote: > On Jan 24, 2:09 pm, santosh hs wrote: >> i am beginner to python please tell me which is the best available >> reference for beginner to start from novice > > If you are a complete beginner to programming, I suggest start with a > tutorial such as "

Re: help with multiprocessing pool

2011-01-27 Thread Philip Semanchuk
On Jan 25, 2011, at 8:19 PM, Craig Yoshioka wrote: > Hi all, > > I could really use some help with a problem I'm having. Hiya Craig, I don't know if I can help, but it's really difficult to do without a full working example. Also, your code has several OS X-isms in it so I guess that's the

Re: WxPython versus Tkinter.

2011-01-27 Thread Emile van Sebille
On 1/26/2011 11:02 PM Octavian Rasnita said... As we all know, Python doesn't care too much about maintaining a backward compatibility Where'd you get this idea? Between v2 and v3 yes, that was the intent. But otherwise, I think there's another miscommunication behind this... See http://w

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>We are talking about accessibility here. Are you saying that Tkinter can be >recommended from the perspective of accessibility? See my comment about shoving words in people's mouths; I did not hint, nor did I come near saying that in that message. On 1/27/2011 1:17 AM, Octavian Rasnita wrote:

Re: how to read the last line of a huge file???

2011-01-27 Thread kost BebiX
27.01.2011, 15:55, "Roy Smith" : > In article ;, >  Alice Bevan–McGregor ; wrote: > >>  On 2011-01-26 02:59:26 -0800, Xavier Heruacles said: >>>  I have do some log processing which is usually huge. The length of each >>>  line is variable. How can I get the last line?? Don't tell me to use >>>  re

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
Eloq is an add-on, but it does support it. >but only eSpeak which sounds horrible That's your personal preference. Plenty use and like ESpeak. >it doesn't have a scripting language ready to use as JAWS and Window Eyes do, Scripting is done in Python, (no, not some native scripting language), and

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>but what's wrong is that Python promotes a GUI which is not accessible by including it as a default GUI. You seem to have overlooked this multiple times and instead decided to shove words in my mouth and continue on your line of selfishness which is justified apparently now by the fact that you

Re: how to read the last line of a huge file???

2011-01-27 Thread Roy Smith
In article , Alice Bevan–McGregor wrote: > On 2011-01-26 02:59:26 -0800, Xavier Heruacles said: > > > I have do some log processing which is usually huge. The length of each > > line is variable. How can I get the last line?? Don't tell me to use > > readlines or something like linecache...

Re: Wrappers in python

2011-01-27 Thread Jean-Michel Pichavant
sl33k_ wrote: What are wrappers? What entities do they wrap around? Struggling to understand the concept. We would need a little bit of a context to answer that question, you could be refering to differents things. I'll give it a try on one common usage for wrapper: A wrapper is a pytho

Re: WxPython versus Tkinter.

2011-01-27 Thread Octavian Rasnita
From: Octavian, If I understand your message, you are frustrated with Tkinter because it doesn't support accessability. In several messages on this thread I pointed out that Tkinter can easily be made accessable under Linux and Mac OS X. Rather than throw out Tkinter entirely, why not work wi

Wrappers in python

2011-01-27 Thread sl33k_
What are wrappers? What entities do they wrap around? Struggling to understand the concept. -- http://mail.python.org/mailman/listinfo/python-list

Re: use class factory to set required class variables?

2011-01-27 Thread Bill Felton
On Jan 27, 2011, at 4:03 AM, Steven D'Aprano wrote: > On Wed, 26 Jan 2011 13:37:20 -0800, Alan wrote: > >> I have a class ``A`` that is intentionally incomplete: it has methods >> that refer to class variables that do not exist. > > For the record, in Python it is usual to refer to "attributes

Re: WxPython versus Tkinter.

2011-01-27 Thread python
Octavian, If I understand your message, you are frustrated with Tkinter because it doesn't support accessability. In several messages on this thread I pointed out that Tkinter can easily be made accessable under Linux and Mac OS X. Rather than throw out Tkinter entirely, why not work with the co

Re: Executing multiple subprocesses and waiting

2011-01-27 Thread Jean-Michel Pichavant
JB wrote: One of my python scripts that takes a bunch of inputs from a tKinter gui, generates a set of command line stings, and then threads them off to subprocess for calls to other programs like Nuke and our render farm has recently started randomly crashing pythonw.exe. I'm taking a look at m

Re: WxPython versus Tkinter.

2011-01-27 Thread Giampaolo Rodolà
wxPython is not suitable for inclusion for many reasons. One reason is that it is a *huge* library which requires a lot of constant work (bugfixing, documentation, lots of commits, etc...) which cannot weight on python development. Keeping the two worlds separated is better for both of them, especi

Re: use class factory to set required class variables?

2011-01-27 Thread Jean-Michel Pichavant
Alan wrote: I have a class ``A`` that is intentionally incomplete: it has methods that refer to class variables that do not exist. The class ``A`` has several complicated methods, a number of which reference the "missing" class variables. Obviously, I do not directly use ``A``. I have a class fa

Re: Decorator question

2011-01-27 Thread Mark Summerfield
On Jan 27, 2:42 am, "Thomas L. Shinnick" wrote: > At 08:17 PM 1/26/2011, Chris wrote: > > >I have a class (A, for instance) that possesses a boolean (A.b, for > >instance) that is liable to change over an instance's lifetime. > > >Many of the methods of this class (A.foo, for instance) should not

Re: use class factory to set required class variables?

2011-01-27 Thread Steven D'Aprano
On Wed, 26 Jan 2011 13:37:20 -0800, Alan wrote: > I have a class ``A`` that is intentionally incomplete: it has methods > that refer to class variables that do not exist. For the record, in Python it is usual to refer to "attributes" rather than "class variables" and "instance variables". In Py

Re: how to read the last line of a huge file???

2011-01-27 Thread Alice Bevan–McGregor
On 2011-01-26 02:59:26 -0800, Xavier Heruacles said: I have do some log processing which is usually huge. The length of each line is variable. How can I get the last line?? Don't tell me to use readlines or something like linecache... This is not optimum or efficient, but it works! If you wa

Re: WxPython versus Tkinter.

2011-01-27 Thread Octavian Rasnita
From: "Littlefield, Tyler" >I don't want to convince anyone, but I just want to inform the others and let >them know if they are doing something not recommended. not recommended by -you-, which is different than by a community or the subset of people you are attempting to represent. furthermore

  1   2   >