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
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
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
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
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
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
andrew cooke added the comment:
thanks!
___
Python tracker
<http://bugs.python.org/issue4986>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/m
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
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
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
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
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
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
Changes by andrew cooke :
--
nosy: -acooke
___
Python tracker
<http://bugs.python.org/issue12029>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
andrew cooke added the comment:
Ah good point, thanks.
--
___
Python tracker
<http://bugs.python.org/issue9179>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
-
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
23 matches
Mail list logo