how to disable trackback in python?

A forum for general discussion of the Python programming language.

how to disable trackback in python?

Postby vijaykumbhani » Sat Aug 24, 2013 9:24 am

not display error in terminal
[b][i]With Regards,
Vijay Kumbhani[/i][/b]
vijaykumbhani
 
Posts: 33
Joined: Wed Aug 14, 2013 4:26 am
Location: Surat, Gujarat, India

Re: how to disable trackback in python?

Postby stranac » Sat Aug 24, 2013 9:37 am

You can catch the exceptions in a try/except and then do whatever you want.
Friendship is magic!

R.I.P. Tracy M. You will be missed.
User avatar
stranac
 
Posts: 1093
Joined: Thu Feb 07, 2013 3:42 pm

Re: how to disable trackback in python?

Postby vijaykumbhani » Sat Aug 24, 2013 10:09 am

i know that handlers (try - catch)
but without handlers how i disable trackback ?
[b][i]With Regards,
Vijay Kumbhani[/i][/b]
vijaykumbhani
 
Posts: 33
Joined: Wed Aug 14, 2013 4:26 am
Location: Surat, Gujarat, India

Re: how to disable trackback in python?

Postby stranac » Sat Aug 24, 2013 10:56 am

I don't think you can, but you could redirect stderr.
But why would you want that?
Friendship is magic!

R.I.P. Tracy M. You will be missed.
User avatar
stranac
 
Posts: 1093
Joined: Thu Feb 07, 2013 3:42 pm

Re: how to disable trackback in python?

Postby metulburr » Sat Aug 24, 2013 3:29 pm

houston we have a problem. But i don't know what it is.
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
steam
User avatar
metulburr
 
Posts: 1313
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: how to disable trackback in python?

Postby micseydel » Sat Aug 24, 2013 5:42 pm

I think stranac's answer is what you want, but in case it isn't, note that the error won't be displayed but because you didn't catch the exception, the program will crash.
Join the #python-forum IRC channel on irc.freenode.net!
User avatar
micseydel
 
Posts: 1128
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Re: how to disable trackback in python?

Postby vijaykumbhani » Thu Sep 12, 2013 11:30 am

because, i will make interpreter using python
i want to python's generated error do not print (Trackback),
without try catch handlers
[b][i]With Regards,
Vijay Kumbhani[/i][/b]
vijaykumbhani
 
Posts: 33
Joined: Wed Aug 14, 2013 4:26 am
Location: Surat, Gujarat, India


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 2 guests

cron