> Well, you could use an approach like the one suggested here:
>
> http://plumberjack.blogspot.com/2010/07/using-custom-formatter-to-dea...
That's nice, thanks. I'll use something like this. Just a thought : I
will use "errors=replace" in the call to the encode method to be sure
that the logger do
> > Ouch. Implicit encoding sounds like a bad behaviour.
Looking at the FileHandler source (
http://svn.python.org/view/python/trunk/Lib/logging/__init__.py?view=markup
) : the utf-8 encoding is a fallback. But *FileHandler family let you
specify the encoding you want, so that's OK I think.
But S
On 5 juil, 14:32, Chris Withers wrote:
> norbert wrote:
> > Your package has the same unicode problem :
> > import logging,logging.handlers
> > from mailinglogger.MailingLogger import MailingLogger
> > mailingLogger = MailingLogger(mailhost=('smtp.example.com'
On 5 juil, 13:17, Chris Withers wrote:
> try MailingLogger:
>
> If you have unicode problems with that, I'd be interested in fixing them!
Your package has the same unicode problem :
import logging,logging.handlers
from mailinglogger.MailingLogger import MailingLogger
mailingLogger = MailingLogger
Hello,
I want to send error messages with SMTPHandler logging. But
SMTPHandler does not seem to be unicode aware. Is there something
doable without playing with sys.setdefaultencoding ?
import logging,logging.handlers
smtpHandler =
logging.handlers.SMTPHandler(mailhost=("smtp.example.com",25),
fr
Hello list,
just in the moment I wanted to write about then lacking documentation
about Easy_Install, but then I found this one :
http://www-128.ibm.com/developerworks/library/l-cppeak3.html.
Just for google.
HTH
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
On 8 Dez., 08:40, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Norbert wrote:
> > the python websitehttp://www.python.org/mentions Version 2.3.6 and
> > 2.4.4 on the most prominent place. Shouldn't this be changed to 2.5.x
> > ?you're looking at the news sec
Hello all,
the python website http://www.python.org/ mentions Version 2.3.6 and
2.4.4 on the most prominent place. Shouldn't this be changed to 2.5.x ?
Regards
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
re information.
>
> hth,
> Don
Thank you for the tip, but I checked this and this is not the case.
I presume that I missed a step in the ez_setup process.
Thanks again
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
xit(
load_entry_point('setuptools==0.6c3', 'console_scripts',
'easy_install')()
)
What is going on here ?
I presume that there are some trivial things I don't understand, can
someone provide apointer or hint ?
Thank you for your time !
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
n 1.1:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6
As you may see you separate the header of a response from the body by an
empty line, generated with CRLF.
Since one CRLF ends the line inside the header you need two of them.
Bye
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
27;/'.
If you start your server in your home dir '/home/fab' then you have to
name your cgi_directories ['/Desktop/cgi-bin'].
In your response (cgi-script) you have to divide the header from the
content '\r\n\r\n'.
HTH
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
a,
deploy configuration files, search in logfiles for errors, etc. -- for
your project in Python.
Convince your project manager to develop prototypes. No one in your
company is better and faster in prototyping than the Python expert Ray.
HTH
Norbert
--
It is easier to get forgiveness than p
happily enough, and you could always automate
> save-as-workbook and any formatting you need afterwards.
But there are thorny issues with different locales and number formats.
Excel is also just too clever in recognising dates
All the best
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
;für' (maybe reader with only an english
enabled browser wouldn't see a difference..)
I tried to work with the encode method of string but It didn't work for me
some hint what to do?
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I'm using Python 24 on Windows > (2k)
Is there an easy way to convince optparse to accept newline in the helpstring?
and more importand also in the 'desc' string. I tried everything
(from the os.linesep) to \n, \r, \r\n, ...
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Alan,
i hoped it would be something trivial :)
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
How can I assure that the
starting function finishes, while the other thread still runs ?' . As
I said, this is the purpose of threading.
Thanks again
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
ng like the following :
start
threadfunction: entered
start completed<---
threadfunction x=10
threadfunction x=20
threadfunction x=30
Does anyone know what's going on here ?
Thanks for listening !
Norbert
--
http://mail.python.org/mailman/listinfo/python-list
19 matches
Mail list logo