Title: from_format spanish cause error (copied from google examples) · Issue #971 · python-pendulum/pendulum · GitHub
Open Graph Title: from_format spanish cause error (copied from google examples) · Issue #971 · python-pendulum/pendulum
X Title: from_format spanish cause error (copied from google examples) · Issue #971 · python-pendulum/pendulum
Description: [ X] I am on the latest Pendulum version. [ X] I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: Pendulum version: Issue pendulum.from_format("15 de enero de 2026", "DD [de] MMMM [de] ...
Open Graph Description: [ X] I am on the latest Pendulum version. [ X] I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: Pendulum version: Issue pendulum.from_format("1...
X Description: [ X] I am on the latest Pendulum version. [ X] I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: Pendulum version: Issue pendulum.from_format(&q...
Opengraph URL: https://github.com/python-pendulum/pendulum/issues/971
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"from_format spanish cause error (copied from google examples)","articleBody":"\u003c!--\n Hi there! Thank you for discovering and submitting an issue.\n\n Before you submit this; let's make sure of a few things.\n Please make sure the following boxes are ticked if they are correct.\n If not, please try and fulfill these first.\n-->\n\n\u003c!-- Checked checkbox should look like this: [x] -->\n- [ X] I am on the [latest](https://github.com/sdispater/pendulum/releases/latest) Pendulum version.\n- [ X] I have searched the [issues](https://github.com/sdispater/pendulum/issues) of this repo and believe that this is not a duplicate.\n\n\u003c!--\n Once those are done, if you're able to fill in the following list with your information,\n it'd be very helpful to whoever handles the issue.\n-->\n\n- **OS version and name**: \u003c!-- Replace with version + name -->\n- **Pendulum version**: \u003c!-- Replace with version -->\n\n## Issue\npendulum.from_format(\"15 de enero de 2026\", \"DD [de] MMMM [de] YYYY\", locale=\"es\")\n\n File \"C:\\Users\\solma\\PycharmProjects\\miloto-add\\.venv\\Lib\\site-packages\\pendulum\\__init__.py\", line 279, in from_format\n parts = _formatter.parse(string, fmt, now(tz=tz), locale=locale)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\solma\\PycharmProjects\\miloto-add\\.venv\\Lib\\site-packages\\pendulum\\formatting\\formatter.py\", line 408, in parse\n if not re.fullmatch(pattern, time):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\solma\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\re\\__init__.py\", line 172, in fullmatch\n return _compile(pattern, flags).fullmatch(string)\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\solma\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\re\\__init__.py\", line 307, in _compile\n p = _compiler.compile(pattern, flags)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\solma\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\re\\_compiler.py\", line 745, in compile\n p = _parser.parse(p, flags)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\solma\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\re\\_parser.py\", line 979, in parse\n p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\solma\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\re\\_parser.py\", line 460, in _parse_sub\n itemsappend(_parse(source, state, verbose, nested + 1,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\solma\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\re\\_parser.py\", line 857, in _parse\n raise source.error(err.msg, len(name) + 1) from None\nre.error: redefinition of group name 'd' as group 4; was group 2 at position 140\n","author":{"url":"https://github.com/daniv","@type":"Person","name":"daniv"},"datePublished":"2026-06-15T04:57:54Z","url":"https://github.com/python-pendulum/pendulum/issues/971"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:53c184d2-908d-84c6-2af3-2f05e3e0fbf2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD9A:279C41:F1D99:15A510:6B0464A3 |
| html-safe-nonce | 33b63f3c1e6f78885736f1ee3b95b2001fed8bcab6e929ffa922f9803cfe9c4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDlBOjI3OUM0MTpGMUQ5OToxNUE1MTA6NkIwNDY0QTMiLCJ2aXNpdG9yX2lkIjoiNzUwODgyNzE2NzE3MDc4MjM3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c30e0b5bfcfa17af0b899884fa7e3cf0f3c274da1dd6ea450af4aaa78a503d9c |
| hovercard-subject-tag | issue:4662180751 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python-pendulum/pendulum/971/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e61ce32743492a6e800d8dc6b7a4728225a55d33d3370899774a1abf54988bc/python-pendulum/pendulum/issues/971 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e61ce32743492a6e800d8dc6b7a4728225a55d33d3370899774a1abf54988bc/python-pendulum/pendulum/issues/971 |
| og:image:alt | [ X] I am on the latest Pendulum version. [ X] I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: Pendulum version: Issue pendulum.from_format("1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daniv |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-pendulum/pendulum git https://github.com/python-pendulum/pendulum.git |
| octolytics-dimension-user_id | 191041900 |
| octolytics-dimension-user_login | python-pendulum |
| octolytics-dimension-repository_id | 62095504 |
| octolytics-dimension-repository_nwo | python-pendulum/pendulum |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 62095504 |
| octolytics-dimension-repository_network_root_nwo | python-pendulum/pendulum |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 03e114520787ad27289207f153520ef97461127c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width