Title: Chapter 21 - fix tcp_mojifinder.py crashes on empty search result by timheiko · Pull Request #62 · fluentpython/example-code-2e · GitHub
Open Graph Title: Chapter 21 - fix tcp_mojifinder.py crashes on empty search result by timheiko · Pull Request #62 · fluentpython/example-code-2e
X Title: Chapter 21 - fix tcp_mojifinder.py crashes on empty search result by timheiko · Pull Request #62 · fluentpython/example-code-2e
Description: Fixes #61 Start the TCP server % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. Connect to the TCP server and send a search query which return no results and some results, e.g. missing and hat % nc localhost 2323 ?> missing ────────────────────────────────────────────────────────────────── 0 found ?> hat U+2CD4 Ⳕ COPTIC CAPITAL LETTER OLD COPTIC HAT U+2CD5 ⳕ COPTIC SMALL LETTER OLD COPTIC HAT U+A271 ꉱ YI SYLLABLE HAT U+D571 핱 HANGUL SYLLABLE HAT U+1F3A9 🎩 TOP HAT U+1F452 👒 WOMANS HAT U+1F920 🤠 FACE WITH COWBOY HAT U+1F973 🥳 FACE WITH PARTY HORN AND PARTY HAT ────────────────────────────────────────────────────────────────── 8 found ?> The TCP server log contains no errors and doesn't crash the TCP connection: % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. From ('127.0.0.1', 63756): 'missing' To ('127.0.0.1', 63756): 0 results. From ('127.0.0.1', 63756): 'hat' To ('127.0.0.1', 63756): 8 results.
Open Graph Description: Fixes #61 Start the TCP server % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. Connect to the TCP server and send a search query which return no re...
X Description: Fixes #61 Start the TCP server % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. Connect to the TCP server and send a search query which retu...
Opengraph URL: https://github.com/fluentpython/example-code-2e/pull/62
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:ab2866db-d022-b727-19a5-b1a4f2173fe1 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8E94:2A1D2C:1ECD6D8:29691B6:69705BA1 |
| html-safe-nonce | fc50f00a859631c0dfcddae61ff4eca136e5ac6792043bb869e93998d901b855 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTk0OjJBMUQyQzoxRUNENkQ4OjI5NjkxQjY6Njk3MDVCQTEiLCJ2aXNpdG9yX2lkIjoiNTQxMjI3NzIxNDE4NTAyMDMyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eb20b0059209b1bdb8071540c7c464d48c3b880625310d52fb0320550debf519 |
| hovercard-subject-tag | pull_request:2731206481 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/fluentpython/example-code-2e/pull/62/checks |
| twitter:image | https://avatars.githubusercontent.com/u/175552092?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/175552092?s=400&v=4 |
| og:image:alt | Fixes #61 Start the TCP server % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. Connect to the TCP server and send a search query which return no re... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/fluentpython/example-code-2e git https://github.com/fluentpython/example-code-2e.git |
| octolytics-dimension-user_id | 9216311 |
| octolytics-dimension-user_login | fluentpython |
| octolytics-dimension-repository_id | 176997413 |
| octolytics-dimension-repository_nwo | fluentpython/example-code-2e |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 176997413 |
| octolytics-dimension-repository_network_root_nwo | fluentpython/example-code-2e |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width