Re: Sudoku solver: reduction + brute force

2006-01-14 Thread Pavol . Severa
ago wrote: > Inspired by some recent readings on LinuxJournal and an ASPN recipe, I > decided to revamp my old python hack... The new code is a combination > of (2) reduction methods and brute force and it is quite faster than > the > ASPN program. If anyone is interested I attached the code in > h

Re: Sudoku solver: reduction + brute force

2006-01-14 Thread Pavol . Severa
ago wrote: > Inspired by some recent readings on LinuxJournal and an ASPN recipe, I > decided to revamp my old python hack... The new code is a combination > of (2) reduction methods and brute force and it is quite faster than > the > ASPN program. If anyone is interested I attached the code in > h

how to compile c-extensions under WinXP?

2005-11-04 Thread severa
What should I do to be able to compile C-extensions (with python 2.4, winXP)? I get an error message, approximately "The .NET Framework SDK needs to be installed"; I tried to get something from the Microsoft web site, but maybe not the right version (or didn't set some variables), since the err

Re: How to write this iterator?

2005-09-20 Thread severa
>> Sorry, my description was not very good, I meant something behaving as: >> >> >>>example=Liter("abc","12345","XY") >> >>>for x in example: print x, >> >> a 1 X b 2 Y c 3 4 5 >> >> or for that append() method, >> >> >>>example=Liter("abc", "12345") >> >>>for i in range(3): print example.next(), >

Re: How to write this iterator?

2005-09-19 Thread severa
Sorry, my description was not very good, I meant something behaving as: >>>example=Liter("abc","12345","XY") >>>for x in example: print x, a 1 X b 2 Y c 3 4 5 or for that append() method, >>>example=Liter("abc", "12345") >>>for i in range(3): print example.next(), a 1 b >>>example.append("XY"

How to write this iterator?

2005-09-19 Thread severa
Given a list of iterators, I'd like to have a new one that would cyclically walk over the list calling the next() method of the iterators (removing any iterator which is exhausted). It should also support adding a new iterator to the list; it should be added in front of the current position (so

why no user-def. attributes?

2005-09-02 Thread severa
I appologize in advance for stupid question, which is: why are user-defined attributes not allowed for builtin types? [I guess I undestand why *instances* cannot have them (e.g. then every dict would have a dict which would have a dict..), but this is a different question] I can imagine several