Title: [5895] added code to raise error in sleep if invalid value by DominicPrince2003 · Pull Request #5907 · RustPython/RustPython · GitHub
Open Graph Title: [5895] added code to raise error in sleep if invalid value by DominicPrince2003 · Pull Request #5907 · RustPython/RustPython
X Title: [5895] added code to raise error in sleep if invalid value by DominicPrince2003 · Pull Request #5907 · RustPython/RustPython
Description: fixes #5895. I have added code to validate the input in the sleep() and raise the required errors. modified the test file and added few more test cases. Please let me know if any further changes are required. Summary by CodeRabbit New Features Enhanced the sleep function to accept both integer and floating-point values for seconds, improving flexibility in specifying sleep durations. Bug Fixes Improved error handling for invalid or out-of-range sleep durations, providing clearer feedback for incorrect input types or values.
Open Graph Description: fixes #5895. I have added code to validate the input in the sleep() and raise the required errors. modified the test file and added few more test cases. Please let me know if any further changes ar...
X Description: fixes #5895. I have added code to validate the input in the sleep() and raise the required errors. modified the test file and added few more test cases. Please let me know if any further changes ar...
Opengraph URL: https://github.com/RustPython/RustPython/pull/5907
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:51312446-afbf-697d-a14e-1586c9fb21d6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EB10:12D388:9C400A:DF103A:6A637E7F |
| html-safe-nonce | 3365d6f0eff8357ad92059cbedc09aece4cc2c5929f77c31b5b892a1077aaa2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjEwOjEyRDM4ODo5QzQwMEE6REYxMDNBOjZBNjM3RTdGIiwidmlzaXRvcl9pZCI6Ijc0OTExMjAzMjI2Njg4ODc2NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d1e0ad0c4c528a3c7db92d4bbc0a6e08497993eaf6b99a985d1214c57a12afff |
| hovercard-subject-tag | pull_request:2644436323 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/5907/files |
| twitter:image | https://avatars.githubusercontent.com/u/99886601?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/99886601?s=400&v=4 |
| og:image:alt | fixes #5895. I have added code to validate the input in the sleep() and raise the required errors. modified the test file and added few more test cases. Please let me know if any further changes ar... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4c1de337de00c7969335f8866af41463301071379a3a15fba12e9b85aa6378d6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a4df32552e4c631011bdcd4c81cc3d7408664a8b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width