--snip-pyinputplus timeoutexception when you use these keyword arguments and also pass default keyword argumentthe function returns the default value instead of raising an exception enter the following into the interactive shellresponse pyip inputnum(limit= default=' / 'hello 'hellois not number world 'worldis not number response ' /ainstead of raising retrylimitexceptionthe inputnum(function simply returns the string ' /athe allowregexes and blockregexes keyword arguments you can also use regular expressions to specify whether an input is allowed or not the allowregexes and blockregexes keyword arguments take list of regular expression strings to determine what the pyinputplus function will accept or reject as valid input for exampleenter the following code into the interactive shell so that inputnum(will accept roman numerals in addition to the usual numbersimport pyinputplus as pyip response pyip inputnum(allowregexes=[ '( | | | | | | )+' 'zero']xlii response 'xliiresponse pyip inputnum(allowregexes=[ '( | | | | | | )+' 'zero']xlii response 'xliiof coursethis regex affects only what letters the inputnum(function will accept from the userthe function will still accept roman numerals with invalid ordering such as 'xvxor 'millibecause the '( | | | | | | )+regular expression accepts those strings you can also specify list of regular expression strings that pyinputplus function won' accept by using the blockregexes keyword argument enter the following into the interactive shell so that inputnum(won' accept even numbersimport pyinputplus as pyip response pyip inputnum(blockregexes=[ '[ ]$'] this response is invalid