python - How can I tell if a list or function approaches infinite? -


i trying make function returns true if list/function goes infinite. there simple way accomplish this?

http://en.wikipedia.org/wiki/halting_problem

this paradoxical question. asking if can potentially solve halting problem in python. if list or function goes infinite means never returns, way know. if function never returns can never determine whether or not never returning. if right, never find out. otherwise it'll return.

that said, if looking values closing bound. create cutoff point value acceptably close bound. once you've hit value assuming you've reached fair distance.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Add class to another page attribute using URL id - Jquery -