python / exceptiongroups

An early draft of a PEP around Exception Groups in Python
22 stars 4 forks source link

Created a new class for hadling exceptions and write logs #10

Closed bot8080 closed 3 years ago

bot8080 commented 3 years ago

I have created a small class to handle the exceptions easily and creating a log file respectively. I want to submit this small piece of code. How can I ?

gvanrossum commented 3 years ago

Is your contribution for this particular project? In this repo we are experimenting with a design for multi-errors as found in Trio.

bot8080 commented 3 years ago

Actually, it is a small 10-20 lines of code only. I created a normal class in order to track exceptions and create a log file corresponding to it. I want to request you, if you can add this library into official python3 repo. It will be helpful for a new/old user to learn and track exceptions quickly. Here is demo

Try: Print(dict) Except: Error = handleException() Error.createlog('filename.txt','extra comment line can also be added into file according to exception ')

comment is optional

Details like line number, file name, exception type or name will be written into file.

gvanrossum commented 3 years ago

I think you got the wrong tracker. Try mailing python-ideas.

bot8080 commented 3 years ago

Sir, how can i contact there. Is it any repository name?? Or is there any email id to connect?

gvanrossum commented 3 years ago

It's a mailing list. Just Google it.