[Python-Dev] Re: Merge Request Review Reminder

2021-03-22 Thread Jakub Stasiak
> On 22 Mar 2021, at 13:07, Faisal Mahmood wrote: > > Thanks Jakub, I wasn't aware of the netaddr library but just gave it a play > and it does seem very similar and I think it's very useful and completely > valid. > > I think the subtle difference is also th

[Python-Dev] Re: Merge Request Review Reminder

2021-03-20 Thread Jakub Stasiak
I can’t say how many library users actually consume this particular section of the API, of course, but I expect this API to be used and it seems rather useful. Best, Jakub [1] https://netaddr.readthedocs.io/en/latest/api.html#netaddr.IPNetwork.next [2] https://netaddr.readthedocs.io/en/lates

[Python-Dev] Re: Signature discrepancies between documentation and implementation

2021-02-09 Thread Jakub Stasiak
ues. > > > > Erlend To provide some context as you looked for issues on bpo: in the two I was involved in[1][2] the resolution was to update the documenttion to reflect the actual situation. Best, Jakub [1] https://bugs.python.org/issue42230

[Python-Dev] Re: macOS issues with 3.8.7rc1

2020-12-09 Thread Jakub Stasiak
rg/message/Q45VNQYOYXTRRTA26Q4M2WNXPFKL4S2O/ > Code of Conduct: http://python.org/psf/codeofconduct/ > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.pytho

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-11-02 Thread Jakub Kulík
atches, of which we have several ( https://github.com/oracle/solaris-userland/tree/master/components/python/python39/ ). Also, as mentioned in the bug tracker, we are looking at how to provide build bots running on Oracle Solaris. Jakub pá 30. 10. 2020 v 13:54 odesílatel Victor Stinner napsal: &

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-09 Thread Jakub Stasiak
== spam: >>> # Match >>> ``` > I like this one. Doesn't it also solve the issue of store vs. load? > Everything is stored but the guard clause can look-up. I have to say I find this to be the most satisfactory solution – everything else (dot prev

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-24 Thread Jakub Stasiak
> On 24 Jun 2020, at 19:14, Guido van Rossum wrote: > > (Jakub, next time please trim the original post from your quote to what's > necessary.) > Apologies, unintentional, I was replying from the web interface since I wasn’t subscribed to this gorup when the thread was s

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-24 Thread Jakub Stasiak
> On 24 Jun 2020, at 17:57, mi...@drach.uk wrote: > > To me match also sound confusing as a keyword. You don't match things to > cases in English. > Maybe match x: against 1? https://idioms.thefreedictionary.com/match+against > > match point: >against (x, 1): >... >against (1,

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-24 Thread jakub
ors' determination to write such a lengthy and (from skimming it) complex and comprehensive proposal *and* providing a reference implementation on top of that, the amount of work (including internal bikeshedding) must've been substantial. Needless to say it's +1 from my humble pers

Re: [Python-Dev] We cannot fix all issues: let's close XML security issues (not fix them)

2018-09-07 Thread Jakub Wilk
yyaml/issues/207 -- Jakub Wilk ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)

2017-12-06 Thread Jakub Wilk
ntation could return "C", or "POSIX", or even something entirely different. Beyond that, I don't know what the actual functional differences are. I don't believe there are any. [0] http://pubs.opengroup.org/onlinepubs/9699919799/functions/setlocale.html -- Jakub

Re: [Python-Dev] Proposal: go back to enabling DeprecationWarning by default

2017-11-07 Thread Jakub Wilk
yword "async" in their codebase are like this: from ..strategy.async import AsyncStrategy from .async import AsyncStrategy These do not provoke deprecation warnings from Python 3.6. (They probably should!) I'm afraid that showing deprecation warnings by default wouldn'

Re: [Python-Dev] \G (match last position) regex operator non-existant in python?

2017-10-29 Thread Jakub Wilk
this means that you have to request V1 to use \G though.) No, \G is available in the V0 mode. -- Jakub Wilk ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/ma

Re: [Python-Dev] \G (match last position) regex operator non-existant in python?

2017-10-27 Thread Jakub Wilk
leased in 1994. PCRE supports it since v4.0, released in 2003. -- Jakub Wilk ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] SK-CSIRT identified malicious software libraries in the official Python package repository, PyPI

2017-09-15 Thread Jakub Wilk
ed, so continue directly to uploading files. -- Jakub Wilk ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Helping contributors with chores (do we have to?)

2017-06-25 Thread Jakub Wilk
g() { set -e -u; git fetch origin \"pull/$1/head:gh-$1\" && git checkout \"gh-$1\"; }; _g" If I want to checkout PR#42, I do: $ git hub-pr 42 -- Jakub Wilk ___ Python-Dev mailing list Python-Dev@python.org https://ma

Re: [Python-Dev] PEP 545: Python Documentation Translations

2017-03-29 Thread Jakub Wilk
is unfortunate. It seems to imply that you can meaningfully compare a language code and a territory code for equality. This is not the case. For example, Belarusian (language code "be") is mainly spoken in Belarus (country code "by"), not in Belgium (country code "be")

Re: [Python-Dev] PEP 538: Coercing the legacy C locale to a UTF-8 based locale

2017-03-11 Thread Jakub Wilk
ble coercion from Python code, because it happens to early. The best you can do is to write a wrapper script in a different language that sets PYTHONCOERCECLOCALE=0; but then you still get a spurious warning. -- Jakub Wilk ___ Python-Dev mailing list Pyt

Re: [Python-Dev] re performance

2017-01-29 Thread Jakub Wilk
d it supports both capture groups and greedy/non-greedy matching. The implementation is explained in this article: https://swtch.com/~rsc/regexp/regexp3.html -- Jakub Wilk ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/ma

Re: [Python-Dev] flock in Python 3

2014-04-13 Thread Jakub QB Dorňák
You are right, it should be https://pypi.python.org/pypi/flock - Original Message - From: "Benjamin Peterson" To: "Jakub QB Dorňák" , "Python Dev" Sent: Friday, April 11, 2014 6:38:43 PM Subject: Re: [Python-Dev] flock in Python 3 On Fri, Apr 11, 2014,

[Python-Dev] flock in Python 3

2014-04-11 Thread Jakub QB Dorňák
Hi all, writing a threaded application I've been surprised that there is no object api for fcntl.flock implementing __enter__() and __exit__() methods to be used with 'with' statement. I have written one (https://pypi.python.org/pypi), but I wonder whether this could get into the Python Standar