Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
suppress warning messages
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arek  
View profile  
 More options Nov 3 2012, 8:12 pm
From: Arek <akedzio...@comcast.net>
Date: Sat, 3 Nov 2012 17:12:47 -0700 (PDT)
Local: Sat, Nov 3 2012 8:12 pm
Subject: suppress warning messages

Hi

I developed wxpython application for windows.  How can I suppress warning
message.

I compiled the application using py2exe.  When the user exit the
application, the warning message is sent to log file.

C:\Python27\lib\site-packages\matplotlib\lines.py:49: RuntimeWarning:
invalid value encountered in greater_equal

  candidates = (u>=0) & (u<=1)

This is not the harmful warning in my application so I would like to keep
it from popping up (send to log file)

Regards,

Arek


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gadget/Steve  
View profile  
 More options Nov 4 2012, 2:44 am
From: Gadget/Steve <GadgetSt...@live.co.uk>
Date: Sun, 4 Nov 2012 07:44:47 +0000
Local: Sun, Nov 4 2012 2:44 am
Subject: Re: [wxPython-users] suppress warning messages

On 04/11/2012 12:12 AM, Arek wrote:

Arek,

The best, (only good), way to suppress a warning message is to fix the
problem that causes it.

Gadget/Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Werner  
View profile  
 More options Nov 4 2012, 4:44 am
From: Werner <werner.bru...@sfr.fr>
Date: Sun, 04 Nov 2012 10:45:26 +0100
Local: Sun, Nov 4 2012 4:45 am
Subject: Re: [wxPython-users] suppress warning messages

On 04/11/2012 08:44, Gadget/Steve wrote:

Arek,

Totally agree with Steve, warning and error messages are best dealt with
by correcting the code.

However if you are looking for ways to log log stuff to
files/console/email ..... etc e.g. during development and suppress all
that for a deployment version then you should look at the Python Logging
module.

http://docs.python.org/2/library/logging.html
http://docs.python.org/2/howto/logging-cookbook.html
http://www.red-dove.com/python_logging.html

Werner


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »