I have an HTTPS server written in python, based on ssl package. This
application is running on 3 virtual machines which were created by
clonning.
The application works perfectly on 2 machines but on the third it
doesn't. Instead of the normal "Server Hello" message it gives me an
Alert Level: Fata
I have the following regexp which fails to compile. Can somebody explain why?
>>> re.compile(r"""^(?: [^y]* )*""", re.X)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.6/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.6/
$ python --version
Python 2.6.6
On Fri, Sep 30, 2011 at 12:18 PM, Chris Angelico wrote:
> On Fri, Sep 30, 2011 at 7:10 PM, Ovidiu Deac wrote:
>> I have the following regexp which fails to compile. Can somebody explain why?
>>
>>>>> re.compile(r""&qu
ern object at 0x7f4069cc3730>
Is this a bug in python regex engine? Or maybe some incompatibility with Perl?
On Fri, Sep 30, 2011 at 12:29 PM, Chris Angelico wrote:
> On Fri, Sep 30, 2011 at 7:26 PM, Ovidiu Deac wrote:
>> $ python --version
>> Python 2.6.6
>
> Ah, I think I
Thanks for the answer. I will give a try to pypy regex.
On Fri, Sep 30, 2011 at 4:56 PM, Vlastimil Brom
wrote:
> 2011/9/30 Ovidiu Deac :
>> This is only part of a regex taken from an old perl application which
>> we are trying to understand/port to our new Python implementa
Hi,
I have the following situation:
My application uses nosetests to discover&run the unittests. I pass
the log configuration file as --logging-config=logging.conf
Everything works just fine, the logs are printed as required by the
configuration file which makes me happy. I take this as a sign th
> But, as there is no case where AAA can be used without BBB, I would
> like to avoid importing BBB in my Python scripts when I already import
> AAA.
Then why do you need to explicitely pass BBB() to AAA constructor? You
could leave AAA constructor with no parameters or with a parameter
with a def
> You set le level of your handler, but did not set the level of the logger
> itself.
> Replace file.setLevel(logging.INFO) by
> logging.getLogger().setLevel(logging.INFO)
>
> Log events are matched versus the logger level 1st, then the handler level
> (if applicable). Most of the time you don't ne
Anyway, thanks for the first part.
Anybody else has any idea why using the same configuration file works
when running the tests with nosetests and doesn't work with
logging.config.fileConfig() ?
--
http://mail.python.org/mailman/listinfo/python-list
It worked. Setting disable_existing_loggers=False fixed my problem.
Thanks to both of you!
Ovidiu
On Fri, Mar 26, 2010 at 9:09 PM, Vinay Sajip wrote:
> On Mar 26, 4:26 pm, Ovidiu Deac wrote:
>> Anyway, thanks for the first part.
>>
>> Anybody else has any idea why using t
10 matches
Mail list logo