[issue12897] Support for iterators in multiprocessing map

2011-09-05 Thread andrew cooke
New submission from andrew cooke : http://stackoverflow.com/questions/7306522/combining-itertools-and-multiprocessing/7307078 suggests (and the idea itself seems reasonable) that it would sometimes be useful for multiprocessing to operate correctly (ie lazily) with lazy input (iterables

[issue12029] ABC registration of Exceptions

2011-05-08 Thread andrew cooke
New submission from andrew cooke : Hi, In general, registering a class with an ABC is equivalent to making it a subclass (isinstance and issubclass are patched through ABCMeta). However, this does not work for exceptions (see example below, where exception is not caught). This doesn't

[issue7792] Errors registering non-classes with ABCs

2010-01-26 Thread andrew cooke
New submission from andrew cooke : There are two related issues here. The first is, I think, a simple bug: When I try to register a function as a subclass of an ABC I get the error: TypeError: issubclass() arg 2 must be a class or tuple of classes Looking at the code - http

[issue2697] Logging ancestors ignored after configuration

2008-04-26 Thread andrew cooke
New submission from andrew cooke <[EMAIL PROTECTED]>: I am seeing some odd behaviour with logging which would be explained if loggers that are not defined explicitly (but which are controlled via their ancestors) must be created after the logging system is configured via fileConfig(). Th

[issue2697] Logging ancestors ignored after configuration

2008-05-05 Thread andrew cooke
andrew cooke <[EMAIL PROTECTED]> added the comment: Got more important things than this to worry about, but yes, original response not very helpful. In a perfect world this might be either justified more clearly or addressed. OTOH, I get the impression hardly anyone uses this package

[issue4986] Augmented Assignment / Operations Confusion in Documentation

2009-01-18 Thread andrew cooke
New submission from andrew cooke : There's a small confusion in terminology in the documentation related to methods that implement augmented assignment. The "Expressions" section of the language reference ("Simple statements") refers to augmented assignment - h

[issue4986] Augmented Assignment / Operations Confusion in Documentation

2009-01-18 Thread andrew cooke
andrew cooke added the comment: thanks! ___ Python tracker <http://bugs.python.org/issue4986> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue45690] Argparse exclusive group inside required exclusive group displays incorrectly

2021-11-02 Thread andrew cooke
New submission from andrew cooke : The code below, when invoked with -h, prints: (.env) [andrew@localhost py]$ python -m tests_sa.argparse_bug -h usage: argparse_bug.py [-h] (-a A | [-b B | -c C)] options: -h, --help show this help message and exit -a A -b B -c C where the final two

[issue18422] is_package missing so can't use -m

2013-07-10 Thread andrew cooke
New submission from andrew cooke: Using python 3.3, if I try to run __main__ I see this error: Traceback (most recent call last): File "/usr/local/lib/python3.3/runpy.py", line 140, in _run_module_as_main mod_name, loader, c

[issue18422] is_package missing so can't use -m

2013-07-10 Thread andrew cooke
andrew cooke added the comment: can't see how to edit posts, so adding as a comment, this is what triggers the bug: > PYTHONPATH=src python -m simplessl -- ___ Python tracker <http://bugs.python.org

[issue18423] Document limitations on -m

2013-07-10 Thread andrew cooke
New submission from andrew cooke: Apparently the limited support for -m is standard behaviour - see http://bugs.python.org/issue18422 - but it's not documented at http://docs.python.org/3/using/cmdline.html#cmdoption-m That should say, somewhere, that it only applies to leaf module

[issue18422] is_package missing so can't use -m

2013-07-10 Thread andrew cooke
andrew cooke added the comment: in case anyone else ends up here through google... the problem described here is not related to the linked issue. it was just a missing `__init__.py` in the module (plus sucky error messages). the following works fine: . ├── README.md ├── src

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread andrew cooke
andrew cooke added the comment: perhaps it could just work in a simple, consistent way? in my original report i wondered whether there was a significant performance hit. but so far the objections against fixing this seem to be (1) a lawyer could be convinced the current behaviour is

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread andrew cooke
Changes by andrew cooke : -- nosy: -acooke ___ Python tracker <http://bugs.python.org/issue12029> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12897] Support for iterators in multiprocessing map

2012-06-11 Thread andrew cooke
andrew cooke added the comment: hi - i'm the original author (may be using a different account). as far as i remember, i raised this because it seemed relevant given the link i gave. if you've looked at the issue and think your approach would work, or that this should be

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2009-08-27 Thread andrew cooke
andrew cooke added the comment: Came here wondering how best to solve this myself. I already subclass the request handler to do client validation (password etc) and it stuck me that a simpler solution would be to use thread local storage. This avoids having to modify dispatch. The

[issue9179] Lookback with group references incorrect (two issues?)

2010-07-06 Thread andrew cooke
New submission from andrew cooke : from re import compile # these work as expected assert compile('(a)b(?<=b)(c)').match('abc') assert not compile('(a)b(?<=c)(c)').match('abc') assert compile('(a)b(?=c)(c)').match('abc') a

[issue9179] Lookback with group references incorrect (two issues?)

2010-07-06 Thread andrew cooke
andrew cooke added the comment: I hope the above is clear enough (you need to stare at the regexps for a time) - basically, lookback with a group conditional is not as expected (it appears to be evaluated as lookahead?). Also, some patterns compile that probably shouldn't. The re pa

[issue9179] Lookback with group references incorrect (two issues?)

2010-07-06 Thread andrew cooke
andrew cooke added the comment: If it's any help, these are the equivalent tests as I think they should be (you'll need to translate engine(parse(... to compile(...) http://code.google.com/p/rxpy/source/browse/rxpy/src/rxpy/engine/backtrack/_test/e

[issue9179] Lookback with group references incorrect (two issues?)

2010-07-06 Thread andrew cooke
andrew cooke added the comment: I thought someone was working on the re module these days? I thought there I'd seen some issues with patches etc? Anyway, short term, sorry - no patch. Medium/long term, yes it's possible, but please don't rely on it. The simplest way to do

[issue9179] Lookback with group references incorrect (two issues?)

2010-07-06 Thread andrew cooke
andrew cooke added the comment: Ah good point, thanks. -- ___ Python tracker <http://bugs.python.org/issue9179> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread andrew cooke
andrew cooke added the comment: what is rietveld? and why is this marked as "easy"? it seems like it involves issues that aren't described well in the spec - it requires some kind of canonical way to describe urls with (and without) parameters to solve completely. -

[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread andrew cooke
andrew cooke added the comment: thanks (only subscribed to this now, so no previous email). my guess is that google are assuming a dumb regexp so http://example.com/foo? in a rule does not match http://example.com/foo and also i realised that http://google.com/robots.txt doesn&#