Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197424
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Schimon Jehudah <sch@fedora.email> |
| Newsgroups | comp.lang.python |
| Subject | Module urljoin does not appear to work with scheme Gemini |
| Date | Mon, 21 Apr 2025 08:38:45 +0300 |
| Lines | 35 |
| Message-ID | <mailman.26.1745214249.3008.python-list@python.org> (permalink) |
| References | <20250421083845.5e5b6d69@workstation.localdomain> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de 3QCL0lyH8Ak55uHyE/B7fgABSyUjGRWB6h9kaLbfJePQ== |
| Cancel-Lock | sha1:pzvqTCrADwblwfi1m1/3edUXTpg= sha256:u/ObliDZ5uRBlNgINiC3CG+f7lx6WMFr1sa4rQ6lK+g= |
| Return-Path | <sch@fedora.email> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| Authentication-Results | mail.python.org; dkim=pass reason="1024-bit key; unprotected key" header.d=fedora.email header.i=@fedora.email header.b=KggT0vxj; dkim-adsp=pass; dkim-atps=neutral |
| X-Spam-Status | OK 0.009 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'received:205': 0.07; 'advise.': 0.09; 'fails': 0.09; 'received:email': 0.09; 'skip:u 50': 0.09; 'subject:not': 0.09; 'url:master': 0.09; 'import': 0.15; 'gemini': 0.16; 'subject:Module': 0.16; 'subject:does': 0.16; 'url:branch': 0.16; 'url:sch': 0.16; 'urllib.parse': 0.16; 'yesterday,': 0.16; 'problem': 0.16; 'python': 0.16; 'to:addr :python-list': 0.20; '>>>': 0.28; 'whom': 0.30; 'module': 0.31; 'concern': 0.32; 'format,': 0.32; "skip:' 40": 0.32; "skip:' 10": 0.37; 'though': 0.37; 'added': 0.39; 'appears': 0.40; 'reports': 0.40; 'should': 0.40; 'skip:n 30': 0.67; 'url:net': 0.67; 'day.': 0.68; 'handles': 0.76; 'received:localdomain': 0.81; 'task,': 0.84; 'url:src': 0.84; 'skip:p 60': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=fedora.email; q=dns/txt; s=aug2020; bh=fbNoTbL0dWBj/fXf9aL9ADzXbBjDJYa5/Snk4AXTdWw=; h=from:subject:date:message-id:to:mime-version:content-type:content-transfer-encoding; b=KggT0vxj5olh9SWkRHKfNg1Vzlaru8zHdlCeQtwColt3lbT7TdBOhvpm74TvTeHagD6ei+HOR cu2ZWLFR3OfoqTogyJ4BbCxM36HkvmhQvMlYHTlm+1W1R3cQYRJI45p1A8zF3E7a8RufLPa7lLI kmvnxofRFxskrXii+m37bM8= |
| X-Zone-Loop | 3b4896e73abb521d8e5f00142bf7a8d701d3ff4e5cd8 |
| X-Originating-IP | [192.42.116.215] |
| X-Mailer | Claws Mail 4.3.1 (GTK 3.24.48; x86_64-pc-linux-gnu) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.39 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <https://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <20250421083845.5e5b6d69@workstation.localdomain> |
| Xref | csiph.com comp.lang.python:197424 |
Show key headers only | View raw
Good day.
Yesterday, I have added support for a new syndication format, Gemini
feed.
Yet, it appears that module urljoin fails at its task, even though
module urlsplit correctly handles Gemini.
Python 3.13.3
>>> from urllib.parse import urljoin
>>> urljoin('gopher://gopher.floodgap.com:70/1/overbite', '../one-level-up')
'gopher://gopher.floodgap.com:70/one-level-up'
>>> urljoin('gopher://gopher.floodgap.com:70/1/overbite', 'same-level')
'gopher://gopher.floodgap.com:70/1/same-level'
>>> urljoin('gemini://woodpeckersnest.space/~schapps/journal/2025-04-20-slixfeed-gemini-and-twtxt.gmi', '../one-level-up')
'../one-level-up'
>>> urljoin('gemini://woodpeckersnest.space/~schapps/journal/2025-04-20-slixfeed-gemini-and-twtxt.gmi', 'same-level')
'same-level'
>>> from urllib.parse import urlsplit
>>> urlsplit('gopher://gopher.floodgap.com:70/1/overbite')
SplitResult(scheme='gopher', netloc='gopher.floodgap.com:70', path='/1/overbite', query='', fragment='')
>>> urlsplit('gemini://woodpeckersnest.space/~schapps/journal/2025-04-20-slixfeed-gemini-and-twtxt.gmi')
SplitResult(scheme='gemini', netloc='woodpeckersnest.space', path='/~schapps/journal/2025-04-20-slixfeed-gemini-and-twtxt.gmi', query='', fragment='')
>>>
https://git.xmpp-it.net/sch/Slixfeed/src/branch/master/slixfeed/parser/gmi.py
Is this a problem with the module urljoin?
To whom should reports about such concern be conveyed?
Please advise.
Kind regards,
Schimon
Back to comp.lang.python | Previous | Next | Find similar
Module urljoin does not appear to work with scheme Gemini Schimon Jehudah <sch@fedora.email> - 2025-04-21 08:38 +0300
csiph-web