Re: MailingLogger 3.4.0 Released!

2011-08-22 Thread Chris Withers
Heh, of course, I forgot the setuptools-git extension to make include_package_data=True work, so this release was pretty useless, other than the docs on packages.python.org/testfixtures ;-) Anyway, 3.4.1 has now been released which fixes this! cheers, Chris On 17/08/2011 23:37, Chris

argparse: showing full help for subparsers

2011-08-31 Thread Chris Withers
Hi All, If I have subparsers set up and do: myscript.py --help I get the summary for each of the top-level commands, but to get the help for each sub-command I have to do: myscript.py subcommand --help Is there any way I can get myscript.py --help to show the help hierarchically,

Re: PC locks up with list operations

2011-08-31 Thread Chris Withers
On 31/08/2011 13:33, Steven D'Aprano wrote: I am using Linux desktops; both incidents were with Python 2.5. Do newer versions of Python respond to this sort of situation more gracefully? Ironically, Windows does better here and dumps you out with a MemoryError before slowly recovering.

python install on locked down windows box?

2011-09-22 Thread Chris Withers
Hi All, Is there a way to install python on a locked down Windows desktop? (ie: no compilers, no admin rights, etc) cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk --

TestFixtures 2.0.0 Released!

2011-09-23 Thread Chris Withers
Hi All, I'm happy to announce a new release major release of TestFixtures. This release is 99% backwards compatible, but a lot has changed under the hood and there's some major new functionality, so thought it was time for a bump. The big changes are: - compare now uses a registry of

Re: [TIP] TestFixtures 2.0.0 Released!

2011-09-23 Thread Chris Withers
On 23/09/2011 08:46, Chris Withers wrote: I'm happy to announce a new release major release of TestFixtures. This release is 99% backwards compatible, but a lot has changed under the hood and there's some major new functionality, so thought it was time for a bump. Of course, a 2.0.0 release

Re: python install on locked down windows box?

2011-09-23 Thread Chris Withers
Hi Steve On 22/09/2011 13:58, Steven D'Aprano wrote: (7) If all else fails, as an absolute last resort, simply run the Windows installer as a regular, unprivileged user, after selecting the option for a Non-Admin Install under Advanced Options first. Thanks for this, will send on to my friend

MailingLogger 3.5.0 Released!

2011-09-24 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

TestFixtures 2.1.0 Released!

2011-09-29 Thread Chris Withers
Hi All, Another release of TestFixtures, getting things closer to where I want them to be. The only change was: - Add a strict mode to `compare`. When used, it ensures that the values compared are not only equal but also of the same type. This mode is not used by default, and the default

packages, modules and double imports - oh my!

2011-10-03 Thread Chris Withers
Hi All, The attached package gives that smallest possible example of problems I'm hitting with some SQLAlchemy declarative classes. In short, I want to be able to do: python -m pack.module and have if the __name__=='__main__' block spit out the SQL to create the tables necessary for the

Re: packages, modules and double imports - oh my!

2011-10-03 Thread Chris Withers
On 03/10/2011 11:22, Chris Rebert wrote: http://docs.python.org/library/runpy.html : The runpy module['s] main use is to implement the -m command line switch If the supplied module name refers to a package rather than a normal module, then that package is imported and the __main__ submodule

TestFixtures 2.2.0 Released!

2011-10-04 Thread Chris Withers
Hi All, The TestFixtures releases keep coming, I hope someone other than me is finding these useful ;-) This release features a change to test_datetime and test_date so that they return instances of the real datetime.datetime and datetime.date classes by default. I'm hoping this will

Re: Need A script to open a excel file and extract the data using autofilter

2011-10-04 Thread Chris Withers
On 01/10/2011 23:00, David Monaghan wrote: after opening the text.xls file i need to filter all the rows in which the status column is passed and copy the whole sheet to another sheet I don't do this often enough to have it to mind, so what I normally do is record a Macro, convert it to VBS

TestFixtures 2.3.0 Released!

2011-10-11 Thread Chris Withers
Hi All, Another TestFixtures release. This release adds warning backstops when you forget to clean up LogCapture, Replacer, TempDirectory and TestComponents instances. A replacer which didn't get its .restore() method called when it should have been caused me a lot of pain recently, so this

Re: Want to make the transition to games?

2011-10-15 Thread Chris Withers
Please don't spam this list with jobs, especially if they have nothing to do with Python. If they do, use the job board instead: http://www.python.org/community/jobs/howto/ cheers, Chris On 12/10/2011 05:49, Marta wrote: Hi, I'm working as an onsite recruiting consultant and we are

Re: Seven Python Developers Needed $125K

2011-10-15 Thread Chris Withers
I'd suggest you post to the job board rather than spamming the list: http://www.python.org/community/jobs/howto/ cheers, Chris On 11/10/2011 19:16, WR wrote: Top Global Consulting Firm in NYC needs 7 Python Developers Up to $125K depending on experience Solid knowledge of fundamental

xlrd 0.9.0 released, now with Python 3 support!

2013-01-31 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.9.0: http://pypi.python.org/pypi/xlrd/0.9.0 This release means the supported versions of Python supported by xlrd are 2.6, 2.7, 3.2 and 3.3! Very exciting stuff, and a massive thank you to Thomas Kluyver (@takluyver on GitHub) for doing

testfixtures 3.0.0 Released!

2013-03-05 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 3.0.0. The big change for this release is that testfixtures now supports Python 2.6, 2.7, 3.2 and 3.3! As a result, some changes have been made to TempDirectory to support encoding and decoding. There's also a nice little addition

xlutils 1.6.0 released!

2013-04-05 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlutils 1.6.0: http://pypi.python.org/pypi/xlutils/1.6.0 This release features shiny new Sphinx-based documentation: http://pythonhosted.org/xlutils/ It also has some changes that make xlutils compatible with the upcoming xlrd 0.9.1 release.

xlrd 0.9.1 released!

2013-04-05 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.9.1: http://pypi.python.org/pypi/xlrd/0.9.1 This release includes the following changes: - A tonne of bugs when used with Python 3 were fixed thanks to John Machin. - Extra byte data in hyperlink records now records a warning rather than

xlwt 0.7.5 released!

2013-04-05 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlwt 0.7.5. This release contains the following: - Fixes a bug that could cause a corrupt SST in .xls files written by a wide-unicode Python build. - A ValueError is now raised immediately if an attempt is made to set column width to other

xlrd 0.9.2 released!

2013-04-09 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.9.2: http://pypi.python.org/pypi/xlrd/0.9.2 This release includes the following changes: - Fix some packaging issues that meant docs and examples were missing from the tarball. - Fixed a small but serious regression that caused problems

Re: [pyxl] Re: xlrd 0.9.2 released!

2013-04-26 Thread Chris Withers
, Chris On 23/04/2013 12:24, Ondrej Ján wrote: Hello. Can you please tell me, how compatible is this version with older versions? In Fedora/CentOS we have versions 0.7 and 0.6. Can I release and Fedora/EPEL update to 0.9.2? Thank you. SAL Dňa utorok, 9. apríla 2013 21:38:30 UTC+2 Chris Withers

Re: [pyxl] Re: xlrd 0.9.2 released!

2013-04-29 Thread Chris Withers
On 26/04/2013 20:37, Ondrej Ján wrote: If users have python-xlrd installed, package maintainer should release only updates, which are API compatible with older versions. Right, the only API change between 0.6 and 0.9 is the removal of the 'pickleable' parameter to open_workbook. However,

testfixtures 3.0.1 Released!

2013-06-10 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 3.0.1. This is a bug fix release featuring the following changes: - Some documentation tweaks and clarifications. - Fixed a bug which masked exceptions when using compare() with a broken generator. - Fixed a bug when comparing a

[issue6703] cross platform failure and silly test in doctest

2010-11-29 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: What this patch doesn't appear to address is that there doesn't appear to be any point to module_relative. Can anyone clarify what the intention of this option is? (it doesn't appear to have any meaningful point from my experience

[issue1243] option.dest not set when callback called with optparse

2007-10-06 Thread Chris Withers
New submission from Chris Withers: The attached script demonstrates the bug. option.dest should be set, even if not explicitly supplied in the call to parser.add_option, by the time the callback is called. Unless dest='something' is specified in the call to add_option, you will get

[issue1243] option.dest not set when callback called with optparse

2007-10-08 Thread Chris Withers
Chris Withers added the comment: I'm not sure I fully understand where the fix should go but I'll put a note in to look into this. In the meantime, a good workaround is to supply an explicit destination: parser.add_option('--myopt',action='callback',callback=mycallback,dest='myopt

[issue1243] option.dest not set when callback called with optparse

2007-10-08 Thread Chris Withers
Chris Withers added the comment: But what type should I specify? I was using a callback to get a datetime object as an option... __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1243

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-01-30 Thread Chris Withers
New submission from Chris Withers: Somewhere in email.MIMEText.MIMEText.as_string (I'm not sure where) long subject headers are folded using a newline followed by a tab: from email.MIMEText import MIMEText m = MIMEText('foo') m['Subject']='AA '*40 m.as_string() 'Content-Type: text/plain

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-06-18 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: I guess not... Maybe try catching Tarek on irc or drop him a mail? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6884

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2010-07-06 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Maybe an old-fashioned monkey-patch would be the way to go? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1974

[issue5612] whitespace folding in the email package could be better ; -)

2010-08-07 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: What's email6 and where can I find out more about it? Chris -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5612

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-09-14 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: This is a regex bug, and it just bit me again :-( Because of this bug, you cannot currently build a bdist_egg (and therefore cannot install with easy_install) http://pypi.python.org/pypi/buildout-versions on windows. The only choice I

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-09-15 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Okay, so here's the patch: Change line 352 on distutils/filelist.py from: pattern_re = ^ + os.path.join(prefix_re, .* + pattern_re) To: pattern_re = ^+prefix_re+re.escape(os.sep)+.*+pattern_re os.path.join is is not always the saviour

[issue4308] repr of httplib.IncompleteRead is stupid

2008-11-12 Thread Chris Withers
New submission from Chris Withers [EMAIL PROTECTED]: The repr of httplib.IncompleteRead contains all the data in the read so far. This is stupid. Consider the download of a 100Mb file which fails after 30Mb. You end up with 90Mb of text in the log entry logged with the python logging framework

[issue4308] repr of httplib.IncompleteRead is stupid

2008-11-12 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Please find attached a patch against the trunk. I'd really appreciate it if this could get merged to the 2.5 and 2.6 branches too, in case of a future release there. -- keywords: +patch versions: +Python 2.5, Python 2.6 Added file: http

[issue4442] datetime not subclassable in the usual way

2008-11-26 Thread Chris Withers
New submission from Chris Withers [EMAIL PROTECTED]: from datetime import datetime class defaultdatetime(datetime): ... defaults=(2001,1,1) ... def __init__(self,*args): ... if not args: ... args = self.defaults ... datetime.__init__(self,*args) ... defaultdatetime

[issue4442] datetime not subclassable in the usual way

2008-11-26 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: But that isn't documented anywhere... -- assignee: - georg.brandl components: +Documentation nosy: +georg.brandl type: feature request - ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org

[issue7759] mhlib fails on Btrfs filesystem (test_mhlib failure)

2010-01-23 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Please can you write a test for your patch? -- nosy: +cjw296 stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7759

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2010-01-23 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Please can you starts a small test suite for the code module that tests the fix you are proposing and include it as another patch? -- nosy: +cjw296 ___ Python tracker rep...@bugs.python.org

[issue7743] Additional potential string - float conversion issues.

2010-01-23 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Out of curiosity, is it possible to write unit tests for any/all of this? I haven't yet found any examples that cause this crash without bigcomp enabled. I presume you meant *with* bigcomp enabled? Forgive my lack of knowledge

[issue7744] Allow site.addsitedir insert to beginning of sys.path

2010-01-23 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: This sounds like something best taken to the python-ideas mailing list. Can you do that and update the issue with the outcome of any discussion? -- nosy: +cjw296 ___ Python tracker rep

[issue7759] mhlib fails on Btrfs filesystem (test_mhlib failure)

2010-01-24 Thread Chris Withers
Changes by Chris Withers ch...@simplistix.co.uk: -- nosy: -cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7759 ___ ___ Python-bugs-list

[issue7775] str.rpartition(sep) - (tail, sep, head)

2010-01-24 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: Can you please provide information about the actual problem you're reporting? -- nosy: +cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7775

[issue7792] Errors registering non-classes with ABCs

2010-01-27 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: ...and for the second feature, Andrew may wish to look at zope.component, which provides for this already. -- nosy: +cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue7793] regrtest fails with RuntimeError: maximum recursion depth exceeded in some cases

2010-01-27 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Can you try and list what the cases are which cause this failure to occur? -- nosy: +cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7793

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-22 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Andi, I'm in total agreement with you :-) (so if this bug could get fixed, both issues could get closed) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1974

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-23 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Again, in total agreement with Andi *EXCEPT*: Please use ' ' instead of '\t' for the continuation character. It's the \t that gets mis-rendered by Outlook and Thunderbird (at the very least!) and since ' ' is also valid according to the RFC

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-26 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Ori, I do agree with both you and Barry but is there any chance someone could make the one-character change to make the /t a space so we can stop seeing weirdness in common mail clients? Perhaps a separate issue could be raised to refactor

[issue3249] bug adding datetime.timedelta to datetime.date

2008-07-01 Thread Chris Withers
New submission from Chris Withers [EMAIL PROTECTED]: The following demonstrates the problem: from datetime import datetime,timedelta datetime.now().date()+timedelta(hours=1) datetime.date(2008, 7, 1) I'd expect the above to either result in a TypeError or (preferably) datetime.datetime(2008

[issue3250] datetime.time does not support arithmetic

2008-07-01 Thread Chris Withers
New submission from Chris Withers [EMAIL PROTECTED]: from datetime import time time(9,0)-time(8,0) Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported operand type(s) for -: 'datetime.time' and 'datetime.time' I'd expect a datetime.timedelta(0,3600

[issue3249] bug adding datetime.timedelta to datetime.date

2008-07-03 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: This may be as documented but it's *extremely* counter intuitive and seems to go against the grain of where python is headed. (remember that whole struggle to get 3/2 = 1.5 rather 3/2=1? ;-) ) I've changed the type to feature request, what's

[issue3249] bug adding datetime.timedelta to datetime.date

2008-07-04 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Amaury, Yes, I agree with you, and that sucks too. I'd suggest opening another bug for that ;-) For an allegedly nice, shiny, new and perfect module, datetime sure seems to have an awful lot lacking... Chris

[issue3250] datetime.time does not support arithmetic

2008-07-04 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Hi George, I haven't looked at your patch but that fact that there are no unit tests and you talk about copying and pasting code, I'd suggest this might not be a good patch. Refactor so code is only in one place rather than copying and pasting

[issue3722] print followed by exception eats print with doctest

2008-08-29 Thread Chris Withers
New submission from Chris Withers [EMAIL PROTECTED]: Here's an example from a python interpreter session: Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. def test(): ... print hello ... raise

[issue3722] print followed by exception eats print with doctest

2008-08-29 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Here's the full test file. Added file: http://bugs.python.org/file11301/doctestbug.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3722

[issue3722] print followed by exception eats print with doctest

2008-09-04 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Out of interest, where are the doctest docs you quoted? I missed that bit and that disturbs me :-S I'm not sure documenting a bug and trying to explain it away makes it any less of a bug, nonetheless, lets leave this one open as a feature

[issue3250] datetime.time does not support arithmetic

2009-07-06 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: I think so. FWIW, I'd recommend looking at: http://pypi.python.org/pypi/python-dateutil ...for doing things that python's builtin datetime stuff doesn't cater for. -- resolution: - wont fix status: open - closed

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: I tried to use the following to change the buffersize for a download: from base64 import encodestring from httplib import HTTPResponse,HTTPConnection,HTTPSConnection,_UNKNOWN from datetime import datetime class FHTTPResponse(HTTPResponse

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Well, for me, buffer size doesn't appear to have made any difference... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2576

[issue6703] cross platform failure and silly test in doctest

2009-08-14 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: Hi All, Line 355 of this code on the 2.6 branch and trunk: http://svn.python.org/view/python/branches/release26- maint/Lib/doctest.py?view=annotate http://svn.python.org/view/python/trunk/Lib/doctest.py?annotate=69012 ...contain

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-15 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Why not allow True or an integer as values for a buffer_size parameter to the HTTPConnection constructor. False would be the default, which would mean no buffering as currently is the case. True would mean use buffering of the default

[issue6816] Provide CPython command line functionality via runpy module

2009-09-01 Thread Chris Withers
Changes by Chris Withers ch...@simplistix.co.uk: -- nosy: +cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list

[issue2576] httplib read() very slow due to lack of socket buffer

2009-09-04 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Yep, having done some more extensive profiling, it looks like my issue is different: all the time is being spent in httplib's HTTPResponse._read_chunked. That wouldn't be a symptom of this issue, would

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: As the comment in this method suggests, accumulating the value by repeated string concatenation is slow. Appending to a list speeds this up dramatically. To quantify this, downloading a 110Mb file from Apache take: ~3s using Internet

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Fix for trunk committed in r74655. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6838

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Fix merged to 2.6, 3.1 and 3.2 branches. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6838

[issue6703] cross platform failure and silly test in doctest

2009-09-04 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Hmm, I don't think tests will fail, however, there are cryptic docs for this... http://docs.python.org/library/doctest.html#basic-api I don't really get what module_relative is about and I've always run into the non- cross-platform issue

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2009-09-11 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: With a simple setup.py: from distutils.core import setup setup(name='packagename') And a MANIFEST.in containing: include buildout.cfg The result of a debug run of python setup.py sdist on Windows is: Distribution.parse_config_files

[issue6816] Provide CPython command line functionality via runpy module

2009-11-19 Thread Chris Withers
Changes by Chris Withers ch...@simplistix.co.uk: -- nosy: -cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list

[issue7529] StreamHandler does not live in logging.Handlers

2009-12-17 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: http://docs.python.org/library/logging.html#module-logging.handlers ...explains that StreamHandler lives in logging but then the class docs say logging.handlers. Georg, if this isn't trivial for you to fix, re-assign it to me and I'll

[issue3722] print followed by exception eats print with doctest

2011-03-20 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Terry, My original post was not about *temporary* output inserted for debugging, but test mocks and the like which form a permanent part of the test and which output to stdout. cheers, Chris

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2012-01-18 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Just as a post-fix to this, the email handlers for the python logging framework that I maintain as a package on PyPI now handle unicode email correctly: http://pypi.python.org/pypi/mailinglogger/3.7.0 I'd suggest people looking for fully

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2012-12-09 Thread Chris Withers
Changes by Chris Withers ch...@simplistix.co.uk: -- nosy: -cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7741 ___ ___ Python-bugs-list

[issue17179] TypeError: type() takes 1 or 3 arguments

2013-02-11 Thread Chris Withers
New submission from Chris Withers: from types import new_class from datetime import datetime new_class('tdatetime', (datetime, ), kwds={'foo':'bar'}) Traceback (most recent call last): File console, line 1, in module File /src/Python-3.3.0/Lib/types.py, line 52, in new_class return

[issue17185] create_autospec

2013-02-11 Thread Chris Withers
New submission from Chris Withers: Sticking an issue in at Michael's request... Older versions of mock had a helper called mocksignature. In newer versions, create_autospec replaces this, but doesn't get it right sometimes: from inspect import getargspec from mock import create_autospec

[issue17186] no way to introspect registered atexit handlers

2013-02-11 Thread Chris Withers
New submission from Chris Withers: Python 2 had a private but usable way of introspecting and manipulating registered atexit handlers by way of the atexit._exithandlers. In Python 3, registering and unregistering are handled, but there is no longer a way to see what atexit handlers

[issue17179] Incorrect use of type function in types.new_class

2013-02-13 Thread Chris Withers
Chris Withers added the comment: Eric, surely this is a bugfix candidate for 3.3.1? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17179

[issue17179] Misleading error from type() when passing unknown keyword argument

2013-02-18 Thread Chris Withers
Chris Withers added the comment: Some background: I hit this problem when adding Python 3 compatibility to one of my libraries, where I had the following code: from types import ClassType ... class_ = ClassType(n, (sometype, ), dict(class_attr1='foo', class_attr2='bar') It wasn't at all

[issue17186] no way to introspect registered atexit handlers

2013-02-22 Thread Chris Withers
Chris Withers added the comment: Barry advised me to open this issue as it's a functional regression from Python 2. My use case is unit testing code that registers atexit handlers and making sure the right handlers are registered with the correct parameters

[issue17186] no way to introspect registered atexit handlers

2013-02-22 Thread Chris Withers
Chris Withers added the comment: I can think of other use cases. Anyway, I'm just glad your opinion isn't the only one there is ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17186

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-06-22 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Just got bitten by this as well, what still needs to happen with the patch? -- keywords: -easy nosy: +cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2202

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-06-23 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Hmm, I'd argue it's a bug: File /usr/lib64/python2.5/urllib2.py, line 972, in get_algorithm_impls return H, KD UnboundLocalError: local variable 'H' referenced before assignment ...does not say anything like: The digest

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-06-23 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: ...which is, of course, rather disappointing. When *would* md5-sess land? 2.7? 3.3?! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2202

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-06-24 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Who with and where does the argument need to be had? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2202

[issue4442] document immutable type subclassing via __new__

2012-06-12 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: It's the fact that for immutable types, initialization is done in __new__ instead of __init__ that isn't documented anywhere. This should be Python-level rather than C-level documentation. The example I gave in #msg76473 is confusing

[issue4442] document immutable type subclassing via __new__

2012-06-13 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Probably also wouldn't go amiss to put some notes near the docs for common immutable types that people might subclass: datetime, maybe tuple? -- ___ Python tracker rep...@bugs.python.org http

[issue16441] range usage in gzip module leads to excessive memory usage.

2012-11-08 Thread Chris Withers
New submission from Chris Withers: gzip.py uses range instead of xrange in two places. This results in excessive memory usage when opening large .gz files. I actually bumped into this using tarfile. Am I right in thinking that range basically *is* xrange in 3.x? If so, this bug applies only

[issue16441] range usage in gzip module leads to excessive memory usage.

2012-11-08 Thread Chris Withers
Chris Withers added the comment: Okay, here's the patch. I can't imagine any unit tests are needed or will be impacted by this. I do have commit rights, am I good to commit this? -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file27927

[issue16441] range usage in gzip module leads to excessive memory usage.

2012-11-09 Thread Chris Withers
Chris Withers added the comment: Committed on 2.7 branch. -- stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16441

[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Why can't it be applied to 2.5? No problem with the 2nd resp.close() being removed... ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4308

[issue5423] Exception raised when attempting to call set_charset on an email.mime.multipart once sub-parts have been attached

2009-03-05 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: Hi All, I'm splitting this out from [Issue1823] as it's a separate issue. Here's a minimal case to reproduce: from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText msg = MIMEMultipart() msg.attach

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2009-03-05 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Okay, splitting this out a little. I've moved the exception when setting character set after adding parts out to [Issue5423]. Here's a simpler example of the problem with setting character sets on multiparts: from email.MIMEMultipart

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2009-03-30 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Barry and I talked about this and he's is now working on it. We're literally going to remove the \t folding substitution and have it do the default space folding substitution instead. -- resolution: - accepted versions: +Python

[issue5612] whitespace folding in the email package could be better ; -)

2009-03-30 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: In python 3 this has been done better already, but in python2.7 we still have this problem: from email.mime.text import MIMEText m = MIMEText('foo') m['Subject'] = 'AA '*40 str(m) 'From nobody Mon Mar 30 13:22:44 2009\nContent-Type

[issue1645148] MIME renderer: wrong header line break with long subject?

2009-03-30 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: This bug is a combination of [Issue1974] and [Issue5612]. [Issue1974] is being worked on. [Issue5612] is fixed in Python 3, but will need more work to be fixed in Python 2, *if* anyone cares about it... Please followup on one

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2009-03-31 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: It's probably worth noting that changing: from email.mime.text import MIMEText m = MIMEText('foo') m['subject']='something long' ...to: from email.header import Header m = MIMEText('foo') m['subject']=Header('something long

[issue3722] print followed by exception eats print with doctest

2009-04-02 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Hey Georg, I agree with the priority, but I'm still not convinced this is just a feature request. The piece of documentation that Tim is referring to is a tiny footnote in the doctest docs, and, as I said previously, I'm not sure

[issue18996] unittest: more helpful truncating long strings

2014-06-20 Thread Chris Withers
Chris Withers added the comment: So, this appears to be the source of some degraded behaviour for me with Python 3.4 versus Python 3.3. This code, prior to 3.4: from testfixtures import Comparison as C class AClass: def __init__(self,x,y=None): self.x = x if y

<    1   2   3   4   5   6   >