Python: How to compare what my function and pyc file funciton print (when I run both of them in loop at anothe?

I have a pyc file and to check if my function print the same at the pyc function. I want to run a loop that check some randomaly options at my function and check if it prints the same output as the another options. I didn’t want to use diff. Thanks

Update:

Why I don’t want to use diff?

I want to run it many times. and each fundtion call to check if the function give the same output.

How I can do it?

✅ Answers

? Favorite Answer

  • Why NOT diff?

    That is what it is for (diff – differences). But, if you REALLY don’t want to use diff, you could “roll your own”. You need a testing framework for the pyc function, and your own. Call each, and compare the outputs programmatically. This is called a “unit test”, and is used to validate your results.

    Main reason to not use diff – floating point processing, where two different kinds of computer or two different procedures to get the results are used, and the floating output is slightly different and cannot be directly compared.

  • So THATS what you call your junk now huh?…the ‘Burmese Python’??..alritey then.. properly i assume its greater useful than that previous call you used- “the Mitey Inch computer virus’…top? yet once you woulda paid greater useful interest in eighth grade wellbeing class, (or in my case, to Mrs Ortez- the superb neighbor lady around the corner), you woulda discovered that the ‘coughing and sneezing’, the rest human beings call ‘ejaculation’…. desire that helps some~

  • Other Related Questions

    Learning Visual Basic ?
    See also  What is the AutoCAD command "RP", and why does it crash the program?

    Answers Favorite AnswerTry using "System.Diagnostics.Process. GetProcessesByName( "iwmp" ).Length > " for your check.

    Microsoft Office word Fast answer needed its urgent?

    Answers Favorite AnswerTry this:http://www.techsupport.com///microsoft-wo...Here is another thread re: the same issue with instructions:http://www.pcreview.co.uk/forums/modification-not-...http://www.techsupport.com///microsoft-wo...http://support.microsoft.com/kb/http://answers.microsoft.com/en-us/office/forum/of...

    Can I download a whole city android google maps?

    Answers Favorite Answer:) Yes!!!Interesting question. I wonder why it has blocked in this way especially considering that Google Earth is very detailed and has good maps of Israel.

    What is meant by ROM ? Explain in simple but elaborate terms.What about mobile ROM’s?

    Answers Favorite AnswerHi Diva below is a link that will give a simple answer.http://wiki.answers.com/Q/What_does_ROM_stand_for_...Hope this helps.Source(s): Experience and wiki answers.ROM is Read only memory. i.e data can write only once.There two types of ROM..ROM.PROMThe difference between ROM and PROM.that is ROM is programmed during manufacturing it means data stored by manufacturing company.PROM is blank memory that a user programmable memory.user can store content on PROM.both ROM and PROM are Read only memory Data can write only once.and its not possible to write so many time.Memories of PROM and ROM are Non-volatile in nature. Its that stored informations can retain even power goes off.

    Leave a Comment