mush 1.2 released! - Type-based dependency injection for scripts

2013-12-11 Thread Chris Withers
Hi All, I'm very happy to announce the a new release of Mush, a light weight dependency injection framework aimed at enabling the easy testing and re-use of chunks of code that make up scripts. This release rounds out a some more rough edges after even more real world use: - The 'nothing'

MailingLogger 3.8.0 Released!

2014-01-28 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

xlrd 0.7.4 released!

2012-04-03 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.4. This release features the following changes: - Fixed a bug where xlrd was silently truncating long text formula results - Avoid parsing STYLE records when formatting_info=False - More tolerance of out-of-spec files. - Minor

Re: [pyxl] xlrd 0.7.4 released!

2012-04-03 Thread Chris Withers
On 03/04/2012 08:04, Chris Withers wrote: Hi All, I'm pleased to announce the release of xlrd 0.7.4. *sigh* As pointed out, I stuffed up the release by not including a new file in the MANIFEST. My bad. I've just release a 0.7.5 that fixes this. cheers, Chris -- Simplistix - Content

Re: [pyxl] Re: xlrd 0.7.4 released!

2012-04-04 Thread Chris Withers
On 03/04/2012 21:46, Josh English wrote: When I try to import xlrd, I get an error IOError: [Errno 2] No such file or directory: 'C:\\Users\\josh\\Desktop\\Portable Python\\App\\lib\\site-packages\\xlrd-0.7.5-py2.7.egg\\xlrd\\version.txt' *sigh* I hate python packaging, I'll get a 0.7.6

xlrd 0.7.6 released!

2012-04-04 Thread Chris Withers
And the goat sacrifice continues... On 03/04/2012 08:34, Chris Withers wrote: On 03/04/2012 08:04, Chris Withers wrote: I'm pleased to announce the release of xlrd 0.7.4. I've just release a 0.7.5 that fixes this. Except it didn't, I've just released 0.7.6, which will hopefully bring

Re: xlrd 0.7.6 released!

2012-04-04 Thread Chris Withers
On 04/04/2012 09:57, Karim wrote: Hello, This release manage the '.xlsx' format? No, that is planned for the 0.8 release. cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk --

Re: xlrd 0.7.6 released!

2012-04-05 Thread Chris Withers
On 04/04/2012 20:26, Karim wrote: By the way, I reported an issue to you in this mailing list some time ago about unicode data. I have no recollection of this. If you experience any bugs, the correct place to report them is: https://github.com/python-excel/xlrd/issues cheers, Chris --

xlwt 0.7.4 released!

2012-04-13 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlwt 0.7.4. This release has only a couple of changes in it: - Python 2.3 to 2.7 are now the officially supported versions, no Python 3 yet, sorry. - The datemode in an xlwt Workbook can be set to 1904 by doing `workbook.dates_1904 = 1` and

xlrd 0.7.7 released!

2012-04-13 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.7: http://pypi.python.org/pypi/xlrd/0.7.7 This release features the following changes: - Google Spreadsheet doesn't write the undefined-contents byte at the end of a NOTE record. Excel doesn't care. Now xlrd doesn't care either. -

Re: xlwt 0.7.4 released!

2012-04-13 Thread Chris Withers
On 13/04/2012 11:01, Chris Withers wrote: For a full details, please see the GitHub repository: https://secure.simplistix.co.uk/svn/xlwt/trunk Er, that should be: https://github.com/python-excel/xlwt cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting

xlutils 1.5.2 released!

2012-04-13 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlutils 1.5.2: http://pypi.python.org/pypi/xlutils/1.5.2 This release features the following changes: - When using xlutils.copy, the datemode is now copied across from the source solving date problems with certain files. - The errorhandler

Re: recruiter spam

2012-05-04 Thread Chris Withers
Please don't spam the list with job adverts, post to the job board instead: http://www.python.org/community/jobs/howto/ cheers, Chris On 03/05/2012 22:13, Preeti Bhattad wrote: Hi there, If you have USA work visa and if you reside in USA; -- Simplistix - Content Management, Batch

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Chris Withers
On 23/05/2012 00:34, Dan Stromberg wrote: I find it more than a little disappointing that the Python Job Board doesn't do latitude and longitude. It's a big missed opportunity. Yes, it's not an identical process from nation to nation, but it's still important. If you had experience of how

xlrd 0.7.8 released!

2012-06-07 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.8: http://pypi.python.org/pypi/xlrd/0.7.8 This release features the following changes: - Compatibility with Python 2.1 and 2.2 is restored. - Fix for github issue #7: assertion error when reading file with xlwt-written bitmap. The

Re: Need a Python Developer...

2012-06-15 Thread Chris Withers
On 05/06/2012 19:18, o2kcompliant wrote: Hi Guys, I have a need for a Python Developer... How about using the Python job board rather than spamming the mailing list: http://www.python.org/community/jobs/howto/ cheers, Chris -- Simplistix - Content Management, Batch Processing Python

xlrd 0.7.9 released!

2012-06-20 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.9: http://pypi.python.org/pypi/xlrd/0.7.9 This release fixes an annoying merge bug on my part that resulted in a NameError: global name 'BYTES_X00' is not defined error where opening certain Excel files. Barring any more brown bag

Re: using SQLalchemy

2012-06-22 Thread Chris Withers
On 21/06/2012 11:50, andrea crotti wrote: We have a very chaotic database (on MySql) at the moment, with for I'm trying to use SQLalchemy and it looks absolutely great, but in general as a policy we don't use external dependencies.. That's a very foolish general policy, a lot of the power of

Re: JOB

2012-06-26 Thread Chris Withers
Sonika, On 26/06/2012 01:34, Sonika Sardana wrote: ` === **Job Description**: Short description of position Looking for a strong PHP developer who is comfortable with some Linux administration and open to

Re: 转发:Re:how can I implement cd like shell in Python?

2012-06-29 Thread Chris Withers
On 28/06/2012 12:39, 梦幻草 wrote: thanks !But this method can not change the directory of the main process.For example: the current directory is /home/work/local/scripts,this directory have a python script file cd.py after executing the script cd.py by python cd.py ..,the current work directory

xlrd 0.8.0 released!

2012-08-01 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.8.0: http://pypi.python.org/pypi/xlrd/0.8.0 This release finally lands the support for both .xls and .xlsx files. Many thanks to John Machin for all his work on making this happen. Opening of .xlsx files is seamless, just use xlrd as you

testfixtures 2.3.5 Released!

2012-08-13 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 2.3.5. testfixtures is a collection of helpers for writing succinct unit tests including help for: - Comparing objects and sequences Better feedback when the results aren't as you expected along with support for comparison of

Re: xlrd 0.8.0 released!

2012-08-22 Thread Chris Withers
On 22/08/2012 15:03, Hubert Holin wrote: I would like to keep up with the development but would like to know which is the repo to follow. The Python-Excel website points to https://github.com/python-excel/xlrd, but that one does not have a 0.8.0 tag (or at least did not have one when I looked a

Re: Is Python a commercial proposition ?

2012-08-24 Thread Chris Withers
On 30/07/2012 03:31, Rodrick Brown wrote: Hence the reason why no one will seriously look at Python for none glue work or simple web apps. When it comes to designing complex applications that need to exploit large multicore systems Python just isn't an option. Its still not possible to be a

TestFixtures 1.9.2 Released!

2011-04-20 Thread Chris Withers
Hi All, I'm happy to announce a new release of TestFixtures. This release adds a utcnow method to test_datetime that behaves identically to the now method: http://packages.python.org/testfixtures/api.html#testfixtures.tdatetime.utcnow The package is on PyPI and a full list of all the links

Re: Zope with mySQL

2011-05-09 Thread Chris Withers
Hi Harry, You'd be better off asking this on the z...@zope.org mailing list... cheers, Chris On 28/04/2011 20:19, harryjatt wrote: Hi, i am doing web development with Zope. My connected database is mySQL. I am new to this combination.I have to upload the files to mySQL with programming in

in search of graceful co-routines

2011-05-17 Thread Chris Withers
Hi All, I'm looking for a graceful pattern for the situation where I have a provider of a sequence, the consumer of a sequence and code to moderate the two, and where I'd like to consumer to be able to signal to the provider that it hasn't succeeded in processing one element in the queue.

Re: in search of graceful co-routines

2011-05-17 Thread Chris Withers
On 17/05/2011 18:26, Ian Kelly wrote: You can use send the way you're wanting to. It will look something like this: def provider(): result = None while True: if result is None: if has_more_items(): next_item = get_next_item() else: break elif

Re: in search of graceful co-routines

2011-05-18 Thread Chris Withers
On 18/05/2011 03:10, Terry Reedy wrote: By default, Python iterators operate in pull mode -- consumers request a new item when they want one. I believe .send was mostly intended to reverse that, to operate in push mode where producers .send() a item to a consumer when they are ready to. That is

Re: sqlalchemy and Unicode strings: errormessage

2011-05-31 Thread Chris Withers
Hi Wolfgang, On 30/05/2011 22:40, Wolfgang Meiners wrote: I am trying to build an application using sqlalchemy. You're likely to get much better help here: http://www.sqlalchemy.org/support.html#mailinglist When you post there, make sure you include: - what python version you're using -

Re: [JOB] Python Programmer, Newport Beach, CA | 6-24 months - Relo OK

2011-06-20 Thread Chris Withers
On 09/06/2011 22:31, PHP Recruiter wrote: This is a contract/hourly 6-24 month on-site Python Programming job located in Newport Beach, CA paying $50.00 to $80.00 per hour depending on experience. Local candidates preferred, but all considered. Relocation expenses covered. I'd suggest

mortar_rdb 1.2.0 released!

2011-06-30 Thread Chris Withers
Hi All, I'm pleased to announce a new release of mortar_rdb. This package ties together SQLAlchemy, sqlalchemy-migrate and the component architecture to make it easy to develop projects using SQLAlchemy through their complete lifecycle. Changes in this release were: - Pass None as the default

which async framework?

2014-03-10 Thread Chris Withers
Hi All, I see python now has a plethora of async frameworks and I need to try and pick one to use from: - asyncio/tulip - tornado - twisted From my side, I'm looking to experimentally build a network testing tool that will need to speak a fair few network protocols, both classic tcp and

Re: which async framework?

2014-03-11 Thread Chris Withers
On 10/03/2014 21:57, Terry Reedy wrote: I'd like to be able to serve the rest of the web api using a pyramid wsgi app if possible, and I'd like to be able to write the things that process requests in and validation out in a synchronous fashion, most likely spinning off a thread for each one.

Re: SMTPHandler and mail subject

2014-03-13 Thread Chris Withers
If you want a much more fully-featured mail handler for the standard logging framework, there's this: https://pypi.python.org/pypi/mailinglogger/3.8.0 cheers, Chris On 12/03/2014 12:25, eras.rasmu...@gmail.com wrote: It works. Thank you :) Eras -- Simplistix - Content Management,

Re: which async framework?

2014-03-13 Thread Chris Withers
On 11/03/2014 19:41, Terry Reedy wrote: I suspect I'll just end up cross-posting to the various mailing lists, Bad idea. Post separately if you must. which I hope won't cause too much offence or kick off any flame wars. It would do both. Ye of little faith :-P I've been pleasantly

which async framework? - a summary

2014-03-22 Thread Chris Withers
On 14/03/2014 00:36, Tim Chase wrote: On 2014-03-14 00:25, Chris Withers wrote: I've been pleasantly surprised by the succinct, well reasoned and respectful replies from each of the communities! As one who doesn't lurk on the other lists, is there a nice executive summary of their responses

testfixtures 3.0.2 Released!

2014-04-07 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 3.0.2. This is a bug fix release featuring the following changes: - Document ShouldRaise.raised and make it part of the official API. - Fix rare failures when cleaning up TempDirectory instances on Windows. If you haven't bumped

xlrd 0.9.3 released!

2014-04-10 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.9.3: http://pypi.python.org/pypi/xlrd/0.9.3 This release includes the following changes: - Github issue #49 - Github issue #64 - skip meaningless chunk of 4 zero bytes between two otherwise-valid BIFF records - Github issue #61 - fix

Re: xlutils 1.7.1 released!

2014-04-25 Thread Chris Withers
*sigh* subject line fail... On 25/04/2014 19:48, Chris Withers wrote: Hi All, I'm pleased to announce the release of xlutils 1.7.1: http://pypi.python.org/pypi/xlutils/1.7.1 This release has a couple of small changes: - Add support for time cells in when using View classes. - Add support

xlutils 1.7.0 released!

2014-04-25 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlutils 1.7.1: http://pypi.python.org/pypi/xlutils/1.7.1 This release has a couple of small changes: - Add support for time cells in when using View classes. - Add support for ``.xlsx`` files when using View classes, at the expense of

testfixtures 3.1.0 Released!

2014-05-25 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 3.1.0. This is a new feature and bug fix release featuring the following changes: - New RoundComparison object for comparing numbers to a given precision - New 'unless' parameter to ShouldRaise, for situations where an exception is

MailingLogger 3.6.0 Released!

2011-11-25 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

Re: What replaces log4py under Python 3.2?

2011-11-25 Thread Chris Withers
On 22/11/2011 18:32, Rob Richardson wrote: My company has been using the log4py library for a long time. A co-worker recently installed Python 3.2, and log4py will no longer compile. (OK, I know that's the wrong word, but you know what I mean.) What logging package should be used now?

Re: Proper way to delete/kill a logger?

2011-11-28 Thread Chris Withers
On 28/11/2011 04:16, cassiope wrote: I've been trying to migrate some code to using the standard python logging classes/objects. And they seem quite capable of doing what I need them to do. Unfortunately there's a problem in my unit tests. It's fairly common to have to create quite a few

Anyone still using Python 2.5?

2011-12-21 Thread Chris Withers
Hi All, What's the general consensus on supporting Python 2.5 nowadays? Do people still have to use this in commercial environments or is everyone on 2.6+ nowadays? I'm finally getting some continuous integration set up for my packages and it's highlighting some 2.5 compatibility issues.

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Chris Withers
On 02/01/2012 11:03, Felinx Lee wrote: The girlfriend module just depends on workhard module now. I will remove girlfriend module forever if you still think it is a spam or illegal. What is the point of these packages? Why do they exist? Chris -- Simplistix - Content Management, Batch

Re: SMTPHandler and Unicode

2012-01-14 Thread Chris Withers
Hi Norbert, On 05/07/2010 13:22, norbert wrote: On 5 juil, 13:17, Chris Withersch...@simplistix.co.uk wrote: try MailingLogger: If you have unicode problems with that, I'd be interested in fixing them! Your package has the same unicode problem : import logging,logging.handlers from

Re: SMTPHandler and Unicode

2012-01-14 Thread Chris Withers
On 13/01/2012 20:17, Chris Withers wrote: Your package has the same unicode problem : import logging,logging.handlers from mailinglogger.MailingLogger import MailingLogger mailingLogger = MailingLogger(mailhost=('smtp.example.com', 25),fromaddr='t...@example.com',toaddrs=('t...@example.com

python loggingL filter limitation, looks intentional?

2012-01-16 Thread Chris Withers
Hi Vinay, It looks like this was intentional, so why was it decided that filters would only be passed messages logged to the logger they're attached to rather than the all messages that end up getting passed to logger? For example, an app and the libraries it uses log to 'some.db.driver',

Re: python loggingL filter limitation, looks intentional?

2012-01-16 Thread Chris Withers
Hi Vinay, On 16/01/2012 15:08, Vinay Sajip wrote: Filtering is intended to be for cases where integer level-based filtering is insufficient; ...or where you want to manipulate log messages, which is the use case I have. You are right that you would need to add a filter to all of the

Re: python logging filter limitation, looks intentional?

2012-01-17 Thread Chris Withers
On 16/01/2012 23:21, Vinay Sajip wrote: Why is this? There must be some rationale for this rather than what, for me and others I've talked to, would seem more natural, ie: a filter on the root logger would get messages both logged to it and any messages propagated to it from child loggers

MailingLogger 3.7.0 Released!

2012-01-18 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

Re: python logging filter limitation, looks intentional?

2012-01-18 Thread Chris Withers
On 17/01/2012 10:48, Vinay Sajip wrote: From: Chris Withersch...@simplistix.co.uk How breaking code? Configuration, maybe, but I can't see anyone being upset that filtering would begin working the same as everything else. This just feels like a bug... Well, it means that filters that don't

Re: Jobs for developers

2012-01-25 Thread Chris Withers
On 24/01/2012 19:02, Rima Al-Sheikh wrote: Hi There, We are looking to hire talented developers to join different teams.. Please use the job board rather than spamming the mailing list: http://www.python.org/community/jobs/ cheers, Chris -- Simplistix - Content Management, Batch

Re: python logging filter limitation, looks intentional?

2012-01-28 Thread Chris Withers
On 20/01/2012 20:09, Terry Reedy wrote: version upgrade. The proposed change isn't a new feature, it's a request for an existing feature to work differently. Thank you for the clarification. I had not gotten that the request was for a change, which has a much higher bar to pass than feature

Re: Job Opportunity: Software Engineers at growing start-up! (Philadelphia, PA area)

2012-01-28 Thread Chris Withers
On 26/01/2012 19:09, GardnerJessica wrote: We’re looking for talented engineers who are interested in working on hard problems. Please don't spam the list with jobs, use the job board: http://www.python.org/community/jobs/howto/ cheers, Chris -- Simplistix - Content Management, Batch

TestFixtures 2.3.4 Released!

2012-01-31 Thread Chris Withers
Hi All, I'm very happy to announce the first TestFixtures release built after a continuous integration testing process. The main benefit of this is that TestFixtures now works with Python 2.5 and Python 2.7. I thought they did before, but there were some annoying niggles. The CI stuff can

Re: Startup Chile Company Looking For Founding Developer/CTO

2012-02-02 Thread Chris Withers
On 01/02/2012 18:38, Jennifer Turliuk wrote: My name is Jennifer Turliuk. I'm currently in Santiago, Chile for the next 6 months as part of the Startup Chile program. I think you may be able to help me out. We are looking to bring on a developer ASAP (see description below). Please don't spam

xlwt 0.7.3 released!

2012-02-21 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlwt 0.7.3. This release is long overdue and has been over 2.5 years in the making! The highlights: - Added user_set and best_fit attributes to Column class. - Fixed an [Errno 0] Error raised when Worksheet.flush_row_data() was called after

xlrd 0.7.2 released!

2012-02-21 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.2. This release, like the xlwt release, is long overdue and has been over 2.5 years in the making! The highlights: - All messaging and debug logging is now written to the logfile provided to open_workbook. - Tolerant handling of file

Re: xlwt 0.7.3 released!

2012-02-22 Thread Chris Withers
On 21/02/2012 11:02, Karim wrote: Is there any chance that xlrd read .xlsx format I believe this is planned for the next major release. and arrive to decode special unicode instead of firing some unicode Exception? Not heard of this, I suggest you explain the problem you're having on the

Re: [pyxl] xlrd 0.7.2 released!

2012-02-22 Thread Chris Withers
On 22/02/2012 00:37, python-ex...@raf.org wrote: was good for previous versions. two reasons that spring to mind immediately are: - it makes it much easier to tell what version is installed - it makes it much easier to uninstall the package i know that both of these are things that the

Re: [pyxl] xlrd 0.7.2 released!

2012-02-23 Thread Chris Withers
On 22/02/2012 23:17, Adrian Klaver wrote: I can see where that would be preferred when managing multiple versions of Python, but not when using a single version. Sorry, I don't agree. It is *never* a good idea to install packages globally. Using virtualenv or similar (buildout, etc) gives you

Re: [pyxl] xlrd 0.7.2 released!

2012-02-23 Thread Chris Withers
On 23/02/2012 14:40, xlstime wrote: Hi, i want to learn pyxl please help me... kindly send useful information about pyxl I would suggest: - using your real name when posting - reading the tutorial at http://www.python-excel.org/ cheers, Chris -- Simplistix - Content Management, Batch

xlrd 0.7.3 released!

2012-02-28 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.3. This release just brings in some documentation updates that were missed for 0.7.2. cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk --

Re: Adopting ‘lockfile’

2012-03-04 Thread Chris Withers
On 03/03/2012 21:43, Ben Finney wrote: I don't see a need to horse around with Git either :-) It's currently in Subversion, right? Can you not export the VCS history from Google Code's Subversion repository to a ‘fastimport’ stream? Maybe someone with experience on that site can help us.

xlutils 1.5.0 released!

2012-03-05 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlutils 1.5.0, featuring the following changes: - Now takes advantage of ragged rows optimisation in xlrd 0.7.3 - Add support for PANE records to xlutils.copy, which means that zoom factors are now copied. The full change log is here:

xlutils 1.5.1 released!

2012-03-05 Thread Chris Withers
Hi All, xlutils 1.5.1 is out, fixing the usual embarrassing mistake I make when I move projects from Subversion to Git that results in some required non-.py files being omitted. All the details of where to find mailing lists, issue trackers, and the like for xlutils can be found here:

Re: Software Engineer -

2012-03-11 Thread Chris Withers
On 11/03/2012 09:00, Blue Line Talent wrote: Blue Line Talent is looking for a mid-level software engineer with experience in a combination of Please don't spam this list with jobs, use the Python job board instead: http://www.python.org/community/jobs/ cheers, Chris -- Simplistix -

Re: Sphinx cross reference question

2010-08-23 Thread Chris Withers
Laszlo Nagy wrote: In my shopzeus.db.pivot.convert.py file, in the run() method of my Data2Facts class, I can write this into the docstring: ...you may have more joy asking about this on the Sphinx list: http://groups.google.com/group/sphinx-dev cheers, Chris --

nested subparsers with argparse

2010-08-23 Thread Chris Withers
Hi All, I'm looking to build a script that has command line options as follows: ./myscript.py command subcommand [options] I can do up to the command [options] bit with add_subparsers in argparse, but how do I then add a second level of subparsers? cheers, Chris --

Re: nested subparsers with argparse

2010-08-23 Thread Chris Withers
Chris Withers wrote: Hi All, I'm looking to build a script that has command line options as follows: ./myscript.py command subcommand [options] I can do up to the command [options] bit with add_subparsers in argparse, but how do I then add a second level of subparsers? Answering my own

bug? pkgutil.walk_packages returns packages that result in an ImportError

2010-08-26 Thread Chris Withers
Hi All, From the docs of pkgutils.walk_packages: 'onerror' is a function which gets called with one argument (the name of the package which was being imported) if any exception occurs while trying to import a package. If no onerror function is supplied, ImportErrors are caught

Re: bug? pkgutil.walk_packages returns packages that result in an ImportError

2010-08-30 Thread Chris Withers
Peter Otten wrote: My expectation of this is that if onerrors is left as None, names yielded will be importable. I would infer no such promise, especially as the generator also yields modules, and no attempt at all is made to import those. Really? I thought the __import__ fired over

Re: Fw: sendmail error

2010-08-31 Thread Chris Withers
Alexander Kapps wrote: Instead you want something like: except smtplib.SMTPException, msg print eroare: + msg Err, that's still concatenating a string and an exception object. What *would* work is: except smtplib.SMTPException, msg print eroare: + str(msg) ...not that it's

Re: sendmail error

2010-08-31 Thread Chris Withers
Thomas Jollans wrote: I struggle to imagine what one might do to a piece of code to garble it this badly. You viewed the text/plain part of his message, the text/html part showed the code almost correctly, complete with pasted-from-IDE colour formatting ;-) Chris -- Simplistix - Content

business date and calendar libraries?

2010-09-13 Thread Chris Withers
Hi All, I'm wondering what libraries people would use to answer the following questions relating to business days: - on a naive level; what's give me the last business day (ie: skipping weekends) - on a less-naive level; same question but taking into account public holidays - on a

os.path.normcase rationale?

2010-09-15 Thread Chris Withers
Hi All, I'm curious as to why, with a file called Foo.txt os.path.normcase('FoO.txt') will return foo.txt rather than Foo.txt? Yes, I know the behaviour is documented, but I'm wondering if anyone can remember the rationale for that behaviour? cheers, Chris -- Simplistix - Content

Re: sqlalchemy: how to define association object with declarative style?

2010-09-20 Thread Chris Withers
Hi Jerry, For SQLAlchemy questions, you're better off asking on sqlalch...@googlegroups.com. On 07/09/2010 10:39, Jerry Fleming wrote: class GroupUser(DeclarativeBase, Tablename, TimestampMixin): id = Column(Integer, Sequence('group_user_id_seq'), primary_key=True) user =

Re: os.path.normcase rationale?

2010-09-20 Thread Chris Withers
On 15/09/2010 22:12, Ben Finney wrote: Chris Withersch...@simplistix.co.uk writes: I'm curious as to why, with a file called Foo.txt os.path.normcase('FoO.txt') will return foo.txt rather than Foo.txt? What kind of answer are you looking for? A direct answer would be: it does that because

Re: os.path.normcase rationale?

2010-09-20 Thread Chris Withers
On 16/09/2010 00:14, Gregory Ewing wrote: Ben Finney wrote: it doesn't matter what the case is, so there's no need for anything more complex than all lowercase. Also doing what was suggested would require looking at what's in the file system, which would be a lot of bother to go to for no

Re: os.path.normcase rationale?

2010-09-20 Thread Chris Withers
On 17/09/2010 03:35, Nobody wrote: os.path.normcase(path) Normalize the case of a pathname. On Unix and Mac OS X, this returns the path unchanged; on case-insensitive filesystems, it converts the path to lowercase. On Windows, it also converts forward slashes to backward

Re: os.path.normcase rationale?

2010-09-24 Thread Chris Withers
On 21/09/2010 01:02, Steven D'Aprano wrote: On Mon, 20 Sep 2010 19:45:37 +0100, Chris Withers wrote: Well, no, that doesn't feel right. Normalisation of case, for me, means give me the case as the filesystem thinks it should be, What do you mean the filesystem? If I look at the available

Re: Distributing Packages

2010-09-24 Thread Chris Withers
On 23/09/2010 16:41, Greg Lindstrom wrote: I am not intending to start anything, here, but would like to know if any consensus has been reached in how to distribute Python modules. Hi Greg, The following shows a pattern that's working well for me:

Checker 1.4 Released!

2010-09-26 Thread Chris Withers
I'm pleased to announce a new release of Checker. This is a cross-platform, pluggable tool for comparing the configuration of a machine with a known configuration stored in text files in a source control system all written in Python. This release adds a 'command' checker that lets you record

Re: help!!!

2010-10-06 Thread Chris Withers
On 06/10/2010 05:28, Dennis Lee Bieber wrote: On Tue, 05 Oct 2010 23:54:00 -0400,fkr...@aboutrafi.net23.net declaimed the following in gmane.comp.python.general: plz can u convert this cpp file into python i need that badly as soon as possible... I am new to python. I just wanna learn it

ConFoo spam?

2010-10-07 Thread Chris Withers
Hi All, Is it just me or does the mailing of just about every single python-based project mailing list with a 90% form email advertising a conference that only has one python track *and* clashes with PyCon feel just a bit like spam? I know it's enough to put me off even considering going to

Re: add bitbucket repo url to install_requires

2010-10-08 Thread Chris Withers
On 05/10/2010 12:43, Julian wrote: I'm developing a django app which depends on an app in a private bitbucket repository, for example ssh://h...@bitbucket.org/username/my-django-app. is it possible to add this url to the list of install_requires in my setup.py? tried various possibilities, but

Re: logging.handlers.SMTPHandler and fileConfig

2010-10-11 Thread Chris Withers
On 11/10/2010 15:52, pstatham wrote: I'm trying to use pythons logging.handlers.SMTPHandler with a configuration file (so that I don't have to have passwords etc. inside of the script) Use MailingLogger and ZConfig ;-)

testfixtures 4.0.0 Released!

2014-07-22 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 4.0.0. This is a new feature release with the following major changes: - Moved from buildout to virtualenv for development. - compare() will now work recursively on data structures for which it has registered comparers, giving

testfixtures 4.0.1 Released!

2014-08-04 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 4.0.1. This is a bugfix release that fixes the following two edge cases: - Fix bugs when string compared equal and options to compare() were used. - Fix bug when strictly comparing two nested structures containing identical

testfixtures 4.0.2 Released!

2014-09-10 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 4.0.2. This is a bugfix release that fixes the following: - Fix maximum recursion depth exceeded when comparing a string with bytes that did not contain the same character. The package is on PyPI and a full list of all the links

testfixtures 4.1.1 Released!

2014-10-30 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 4.1.1. This is a bugfix release that fixes the following: - Fix bug that prevented logger propagation to be controlled by the log_capture decorator. Thanks to John Kristensen for the fix. It looks like I also forgot to send out

Re: FULL TIME PYTHON DEVELOPER OPPORTUNITY IN CHICAGO, IL

2011-07-17 Thread Chris Withers
On 07/07/2011 21:48, Aimee Gerzofsky wrote: Python Developer Major financial clients is seeking a PythonDeveloper for a *full time position in Chicago, IL*. It's better to post this kind of thing to the python job board: http://www.python.org/community/jobs/howto/ cheers, Chris --

TestFixtures 1.10.0 Released!

2011-07-19 Thread Chris Withers
Hi All, I'm happy to announce a new release of TestFixtures with the following changes: - Removed the dependency on zope.dottedname. - Implement the ability to mock out dict and list items using testfixtures.Replacer and testfixtures.replace. - Implement the ability to remove attributes

Re: TestFixtures 1.10.0 Released!

2011-07-19 Thread Chris Withers
Hmm, might have been helpful to include docs for these new bits: On 19/07/2011 09:36, Chris Withers wrote: - Implement the ability to mock out dict and list items using testfixtures.Replacer and testfixtures.replace. - Implement the ability to remove attributes and dict items using

TestFixtures 1.11.0 Released!

2011-07-27 Thread Chris Withers
Hi All, I'm happy to announce a new release of TestFixtures with the following changes: - testfixtures' compare function now does rich comparison of dicts and their subclasses, showing which keys matches, were missing or differed between the two objects being compared. - A decorator of

TestFixtures 1.12.0 Released!

2011-08-15 Thread Chris Withers
Hi All, I'm happy to announce a new release of TestFixtures with the following changes: - OutputCapture has grown a `captured` property and can now be temporarily disabled using their`disable` method: http://packages.python.org/testfixtures/streams.html - Logging can now be captured

MailingLogger 3.4.0 Released!

2011-08-18 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following

<    1   2   3   4   5   6   >