Python book reviews

2012-02-02 Thread Blockheads Oi Oi
There are several at www.accu.org and select (strangely enough :) book reviews for anyone who may be interested. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

CTRL-Z on windows for 2.7 and 3.2

2012-02-02 Thread Blockheads Oi Oi
Not that I'll lose any sleep over it, but section 2.1 of the tutorial for both versions doesn't reflect the minor difference between the behavior shown below. Which is correct, the docs or what actually happens? c:\Users\Mark\Sudoku>c:\Python27\python.exe Python 2.7.1 (r271:86832, Nov 27 2010,

Re: constraint based killer sudoku solver performance improvements

2012-01-29 Thread Blockheads Oi Oi
On 27/01/2012 07:47, Blockheads Oi Oi wrote: On 27/01/2012 06:57, Frank Millman wrote: "Blockheads Oi Oi" wrote: I have a working program based on [1] that sets up all different constraints for each row, column and box and then sets exact sum constraints for each cage. It'l

Re: constraint based killer sudoku solver performance improvements

2012-01-26 Thread Blockheads Oi Oi
On 27/01/2012 06:57, Frank Millman wrote: "Blockheads Oi Oi" wrote: I have a working program based on [1] that sets up all different constraints for each row, column and box and then sets exact sum constraints for each cage. It'll run in around 0.2 secs for a simple problem,

constraint based killer sudoku solver performance improvements

2012-01-26 Thread Blockheads Oi Oi
I have a working program based on [1] that sets up all different constraints for each row, column and box and then sets exact sum constraints for each cage. It'll run in around 0.2 secs for a simple problem, but a tough one takes 2 hours 45 minutes. I did some research into improving the perf

Re: The devolution of English language and slothful c.l.p behaviours exposed!

2012-01-24 Thread Blockheads Oi Oi
Top posting fixed. -Original Message- From: Blockheads Oi Oi [mailto:breamore...@yahoo.co.uk] Sent: Wednesday, 25 January 2012 10:26 a.m. To: python-list@python.org Subject: Re: The devolution of English language and slothful c.l.p behaviors exposed! On 24/01/2012 21:20, Chris Angelico

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Blockheads Oi Oi
On 24/01/2012 21:20, Chris Angelico wrote: On Wed, Jan 25, 2012 at 8:13 AM, Blockheads Oi Oi wrote: On 24/01/2012 20:03, Joshua Landau wrote: A simple version number doesn't imply huge breakages. Try "English2 v1.0"! In fact, why would a perfect language need a version number

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Blockheads Oi Oi
On 24/01/2012 20:03, Joshua Landau wrote: On 24 January 2012 17:25, Blockheads Oi Oi mailto:breamore...@yahoo.co.uk>> wrote: On 24/01/2012 15:46, Andrea Crotti wrote: I suggest to create English 2.0, and convince the whole world to speak your own way

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Blockheads Oi Oi
On 24/01/2012 15:46, Andrea Crotti wrote: I suggest to create English 2.0, and convince the whole world to speak your own way better implementation of English. Too late for that when comparing modern English with that of e.g. Dickens, Shakespeare, Chaucer and Bede, hence at a minimum I reckon

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Blockheads Oi Oi
On 24/01/2012 16:41, Chris Angelico wrote: On Wed, Jan 25, 2012 at 3:26 AM, Martin P. Hellwig wrote: Having said that, I do like to bring to your attention that her Majesty, never ratified the 'Declaration of Independence'. :-) Oh, stop it. It's high time we got rid of these silly distincti

Re: Installing Python 2.6.7 on Windows

2011-09-30 Thread Blockheads Oi Oi
On Sep 29, 2:59 am, rantingrick wrote: > On Sep 27, 11:25 pm, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote: > > The Python development team is relatively small and chronically busy: too > > much to do and not enough time to do it. > > If that is the case then why do they snub their no

Re: TypeError: iterable argument required

2011-04-06 Thread Blockheads Oi Oi
On 06/04/2011 16:57, Νικόλαος Κούρας wrote: mail = None mail = mail or 7 mail 7 mail = None mail = 7 or mail mail 7 Here no matter the order iam writing the comparison it always return the number. why not the same here? mail = None mail = mail or '' mail '' mail = None mail = '' or mai

Re: Suggest some exercises on Python

2011-04-05 Thread Blockheads Oi Oi
On 05/04/2011 18:24, Steven D'Aprano wrote: On Tue, 05 Apr 2011 13:18:19 -0400, Terry Reedy wrote: On 4/5/2011 9:13 AM, Jins Thomas wrote: I'm a new bie. I have just started learning Python (3.0), Please download, install, and use 3.2. To elaborate further: Python 3.0 is not supported, an

Re: about Pyclutter

2011-04-03 Thread Blockheads Oi Oi
On 02/04/2011 17:54, craf wrote: Hi Does anyone know how mature is Pyclutter?. Regards Cristian Abarzúa I don't kow about mature but from http://wiki.clutter-project.org/wiki/PyClutter. "WARNING: PyClutter only covers the 1.0 API, and it is going to be deprecated in favour of introspect

Re: [pyplot] using f1=figure(1)

2011-03-28 Thread Blockheads Oi Oi
On 28/03/2011 17:04, Giacomo Boffi wrote: i executed the following interactions and i remained disappointed $ python Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. from pylab import * f1=figure(1) f2=

Re: Converting an array of string to array of float

2011-03-25 Thread Blockheads Oi Oi
Thanks Bruno. I just missed it. I got it back and thanks Blockhead for giving me new angle to look into the problem. Best Regards, Subhabrata. Nothing personal, but it's Blockheads (plural) AND you missed the OI OI. What is the problem with modern day education? :) -- http://mail.python.org

Re: Converting an array of string to array of float

2011-03-25 Thread Blockheads Oi Oi
On 25/03/2011 15:46, Rafael Durán Castañeda wrote: But you must be sure that the list only contains objects than can be converted into float, if not you'll get: >>> float('something') Traceback (most recent call last): File "", line 1, in float('something') ValueError: could not conver

Re: Converting an array of string to array of float

2011-03-25 Thread Blockheads Oi Oi
On 25/03/2011 15:27, Jason Swails wrote: I'm guessing you have something like list1=['1.0', '2.3', '4.4', '5.5', ...], right? You can do this: for i in range(len(list1)): list1[i] = float(list1[i]) or for i, x in enumerate(list1): list1[i] = float(x) -- http://mail.python.org/mail

Re: autoscale y to current xrange in view - matplotlib

2011-03-24 Thread Blockheads Oi Oi
On 23/03/2011 18:17, urban_gibbon wrote: [snip] You're likely to get answers on the matplotlib users mailing list https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- http://mail.python.org/mailman/listinfo/python-list

Re: Purely historic question: VT200 text graphic programming

2011-03-12 Thread Blockheads Oi Oi
On Mar 11, 9:17 am, Anssi Saari wrote: > Grant Edwards writes: > > C wasn't very widely used under VMS, and VMS had it's own screen > > formatting and form handling libraries. > > Just curious, what language was widely used in VMS? My VMS experience > is limited to running Maple for a math course