Re: What is the best book to learn Python from Perl and C++ background

2011-03-06 Thread Nicholas Devenish
On 04/03/2011 17:49, Ignoramus20691 wrote: I bought a "Hello World!" book for my 9 year old son. The book teached "programming for kids" and it does it in Python. I do not know any Python, but I am very comfortable with C++ and perl. I wrote a little over 100k lines of perl. I want to learn Pyt

Re: Fun with 'str' and 'bytes'

2011-03-06 Thread Nicholas Devenish
On 04/03/2011 16:40, nn wrote: As far as I know, that is pretty much it. Also see: http://bugs.python.org/issue3982 That is a depressing bug report, and really comes across as people who don't use networking commenting on the requirements of people who write networking code. It's good to s

Re: OT: Code Examples

2011-03-01 Thread Nicholas Devenish
On 01/03/2011 09:24, Richard Dobson wrote: But - I am ~still~ caught out by the semantic significance of indenting. Looks OK enough on paper, but doing it interactively is another matter. I still don't fully understand this argument. With Python, I am still doing indentation almost exactly the

Re: Problems of Symbol Congestion in Computer Languages

2011-02-19 Thread Nicholas Devenish
On 18/02/2011 10:26, Steven D'Aprano wrote: Agreed. I'd like Python to support proper mathematical symbols like ∞ for float('inf'), ≠ for not-equal, ≤ for greater-than-or-equal, and ≥ for less-than-or-equal. This would be joyful! At least with the subset of operations that already exist/exis

Re: Problems of Symbol Congestion in Computer Languages

2011-02-19 Thread Nicholas Devenish
On 19/02/2011 07:41, Westley Martínez wrote: Simply remove 'dvorak-' to get qwerty. It allows you to use the right Alt key as AltGr. For example: AltGr+' i = í AltGr+c = ç AltGr+s = ß I don't work on Windows or Mac enough to have figured out how to do on those platforms, but I'm sure there's a s

Re: How to create a dict based on such a file?

2011-02-14 Thread Nicholas Devenish
On 14/02/2011 19:25, Dan Stromberg wrote: pyparsing should be able to make pretty short work of exactly the format you want. FWIW, the creator of the many .ini format(s), Microsoft, no longer recommends using .ini files. I don't know what Microsoft uses now, but it seemed their immediate succ

Re: Easy function, please help.

2011-02-09 Thread Nicholas Devenish
On 09/02/2011 14:27, RJB wrote: What operator should I use if I want integer division? Ada and Pascal used "div" if I recall rightly. The operator for integer division is // -- http://mail.python.org/mailman/listinfo/python-list

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: WxPython versus Tkinter.

2011-01-26 Thread Nicholas Devenish
On 26/01/2011 18:19, rantingrick wrote: SUMMARY: We create an abstraction API atop "Robin's WxPython". We include only the API in the stdlib at this time and we keep Tkinter in maintenance. Then over the next few years we start a fresh wxPython project that will be acceptable for the stdlib. Some

Re: WxPython versus Tkinter

2011-01-25 Thread Nicholas Devenish
On 26/01/2011 00:40, Ian wrote: Are you referring to ticket #14081? I expect the reason this hasn't been addressed is because nobody has submitted a patch or suggested an improved wording. If you were to make a suggestion, I doubt that anybody would be hostile to the idea of improving the tutor

Re: WxPython versus Tkinter.

2011-01-25 Thread Nicholas Devenish
On 25/01/2011 19:16, CM wrote: On Jan 25, 10:13 am, Nicholas Devenish wrote: I don't know--you sound too reasonable to extrapolate from this goofy thread to a huge toolkit project that has been around for years and is used in project such as Audacity (that's the wxWidgets version,

Re: WxPython versus Tkinter.

2011-01-25 Thread Nicholas Devenish
On 25/01/2011 19:24, Octavian Rasnita wrote: Can you tell why? Because you probably don't care about those who can't use the programs made with Tkinter or because you consider the discrimination something normal, right? And you said that it is not a good thing. Good thing for whom? For the bli

Re: numpy/matlab compatibility

2011-01-25 Thread Nicholas Devenish
On 25/01/2011 20:13, Matt Funk wrote: 1) a = rand(10,1) 2) Y = a 3) mask = Y> 100; 4) Y(mask) = 100; 5) a = a+Y Basically i am getting stuck on line 4). I was wondering if it is possible or not with python? (The above is working matlab code) I don't understand this matlab code completely (I w

Re: WxPython versus Tkinter.

2011-01-25 Thread Nicholas Devenish
On 25/01/2011 14:11, Littlefield, Tyler wrote: My preaching done with, I'd like to urge everyone to put this in a bit of perspective; essentially, what I don't want is someone walking away with Octavian's attitude as a stariotype for us all. I can't speak for everyone (I don't have that presump

Re: WxPython versus Tkinter.

2011-01-23 Thread Nicholas Devenish
Hi Adam, I'm still learning my way around wxPython and gui programming, been mostly linux and CLI since Visual Basic 5, and only recently started learning it. On 23/01/2011 18:09, Adam Skutt wrote: 1. There's a bug related to loading of your resources. 2. There's a bug related to when file I