[issue38999] Python launcher on Windows does not detect active venv

2019-12-24 Thread Ross Boylan
Ross Boylan added the comment: As someone who finds the current behavior surprising, and having lost significant time because of it, I have a couple of comments. 1) If the venv created a python3 (or 2, as appropriate) file, would the expected behavior with !#/usr/bin/env python3 be restored

Re: #line in python (dirty tricks)

2012-02-20 Thread Ross Boylan
Duncan Booth wrote Ross Boylan ross at biostat.ucsf.edu wrote: As an extension or alternate, could there be a decorator like @source_line(lineno, filename) for classes and methods that could do the conversion

#line in python

2012-02-18 Thread Ross Boylan
and methods that could do the conversion on the fly? I don't know if there's a way to go from the function (or class) object the decorator receives to the AST. Comments? Ross Boylan -- http://mail.python.org/mailman/listinfo/python-list

Condition.wait() behavior with timeout

2012-01-30 Thread Ross Boylan
, not one with notify() and a single thread waiting (which is what I'm thinking about). The thread does say there is no return value; it seems to me it would be useful to document that if it's still true (or True :). Can anyone help me understand what's going on? Thanks. Ross Boylan -- http

Re: unittest and threading

2012-01-25 Thread Ross Boylan
On Tue, 2012-01-24 at 13:54 -0800, Ross Boylan wrote: Is it safe to use unittest with threads? In particular, if a unit test fails in some thread other than the one that launched the test, will that information be captured properly? A search of the net shows a suggestion that all failures

unittest and threading

2012-01-24 Thread Ross Boylan
anything definitive. If it matters, I'm using CPython 2.7. Thanks. If you're using email, I'd appreciate a cc. Ross Boylan -- http://mail.python.org/mailman/listinfo/python-list

Re: inserting \ in regular expressions [solved]

2011-11-05 Thread Ross Boylan
On Wed, 2011-10-26 at 12:48 -0700, Ross Boylan wrote: I want to replace every \ and (the two characters for backslash and double quotes) with a \ and the same character, i.e., \ - \\ - \ I'd like to thank Ian, Dave, MRAB, and John for their helpful responses. I hadn't realized

inserting \ in regular expressions

2011-10-26 Thread Ross Boylan
on the reply. Thanks. Ross Boylan -- http://mail.python.org/mailman/listinfo/python-list

logging module and threading

2007-05-11 Thread Ross Boylan
) produces only a single log message indicating an associated object of a. The docs lead me to expect that I'd see one message from a and another from root. When I add handlers (e.g., FileHandlers) I do get the message recorded by each. Can anyone explain what's going on? Thanks. Ross Boylan