[Python-Dev] fileinput module tests

2006-12-09 Thread Anthony Roy
Hi all,

I have a patch for the fileinput.FileInput class, adding a parameter
to the __init__ method called write_mode in order to specify the write
mode when using the class with the inplace parameter set to True.

Before I submit the patch, I've added a test to the test module, and
noticed that the module is pretty messy, with half of the tests being
run in the module body, and the rest in a large function body.

I propose to refactor the module, moving the tests into a
unittest.TestCase subclass (essentially unchanged, bar changing verify
calls to self.assert_ calls, raise TestFailed(...) to self.fail(...)
etc). I think this will add clarity and modularity to the tests, and
bring them into line with the unittest based test suite used by the
test_file module amongst others (which I'm guessing are substantially
more up to date than test_fileinput).

Any thought?

Cheers,

-- 
Ant...

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Python developers are in demand

2007-10-25 Thread Anthony Roy

> Interesting to see discussion on supply and demand issues for
> Python programmers.  You might be interested to learn that,
> after a few years of flirting with Python in various ways, the
> School of Computing at the University of Leeds has recently
> switched to teaching Python as the first and primary programming
> language for undergraduates on all of our degree programmes.
>
> I know we're not the only ones doing this, so perhaps the
> supply will rise to meet the demand in a few years!

I was a researcher in the School of Computing at Leeds Uni about 4 years
ago. Good to see them pushing Python!

I keep my eyes open for Python Developer roles in the UK (particularly the
North), since I would far prefer to develop in Python than Java. However,
in the UK Python Jobs seem to be few and far between, and most of the ones
that there are are either low paid sys admin type roles, or are based in
London.

Cheers,

-- 
Anthony Roy

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com