Re: [Python-Dev] PEP520 and absence of __definition_order__

2016-09-11 Thread Ethan Furman
On 09/11/2016 01:55 AM, Victor Stinner wrote: 2016-09-10 3:49 GMT-04:00 Ethan Furman wrote: With __definition_order__ Enum can display the actual creation order of enum members and methods, while relying on Enum.__dict__.keys() presents a jumbled mess with many attributes the user never wrote

Re: [Python-Dev] Python 3.6 dict becomes compact and gets a private version; and keywords become ordered

2016-09-12 Thread Ethan Furman
On 09/12/2016 09:27 AM, Gregory P. Smith wrote: For the regular dict (non kwargs or namespace __dict__) use case I would actually like to /see disorder preserved during iteration/. If we don't, we will eventually to find ourselves in a similar state we were in pre hash-randomization: Does a

Re: [Python-Dev] Python 3.6 dict becomes compact and gets a private version; and keywords become ordered

2016-09-15 Thread Ethan Furman
On 09/15/2016 08:02 AM, Raymond Hettinger wrote: Eric is correct on this one. The consecutive hashes make a huge difference for Python 3.5. While there is a table full table scan, the check for NULL entries becomes a predictable branch when all the keys are in consecutive positions. Ther

Re: [Python-Dev] Benchmarking Python and micro-optimizations

2016-10-20 Thread Ethan Furman
On 10/20/2016 03:56 AM, Victor Stinner wrote: Last months, I worked a lot on benchmarks. I ran benchmarks, analyzed results in depth (up to the hardware and kernel drivers!), I wrote new tools and enhanced existing tools. Thank you! -- ~Ethan~ ___ P

Re: [Python-Dev] Deprecate `from __future__ import unicode_literals`?

2016-12-16 Thread Ethan Furman
On 12/16/2016 11:24 AM, Guido van Rossum wrote: I am beginning to think that `from __future__ import unicode_literals` does more harm than good. I don't recall exactly why we introduced it, but with the restoration of u"" literals in Python 3.3 we have a much better story for writing straddli

Re: [Python-Dev] Merry Christmas to me, and Python users everywhere

2016-12-27 Thread Ethan Furman
On 12/26/2016 08:46 PM, Glenn Linderman wrote: So either Google (my email host) noticed that I got 3 of the same message, and suppressed two of them, or the python-dev mail server that hosts the mailing lists merged the expanded destinations with duplicate suppression. I'm inclined to think t

Re: [Python-Dev] Imports with underscores

2017-01-09 Thread Ethan Furman
On 01/09/2017 03:42 AM, Steve Holden wrote: When I asked him why he suggested a) this would improve encapsulation, and b) the practice was supported in the stdlib. Further investigation reveals that some modules (e.g. argparse, crypt, difflib, random) do use this technique, but it is far fro

[Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Ethan Furman
Question: I need to add a threaded test to the enum test module [1] -- is there anything extra I need to worry about besides the test itself? Setting or resetting or using a tool library, etc? -- ~Ethan~ [1] The test to be added: def test_unique_composite(self): # override __eq

Re: [Python-Dev] Default formatting

2017-01-22 Thread Ethan Furman
On 01/22/2017 11:48 AM, Serhiy Storchaka wrote: On 25.10.16 12:37, Serhiy Storchaka wrote: Classes that doesn't define the __format__ method for custom PEP 3101 formatting inherits it from parents. Originally the object.__format__ method was designed as [1]: def __format__(self, format_spe

Re: [Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Ethan Furman
On 01/22/2017 12:02 PM, Ethan Furman wrote: Question: I need to add a threaded test to the enum test module [1] -- is there anything extra I need to worry about besides the test itself? Setting or resetting or using a tool library, etc? Thanks everyone. @support.reap_threads and skipping

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-02-28 Thread Ethan Furman
On 02/28/2017 09:42 PM, Nick Coghlan wrote: So would folks be OK with my asking the author of the PR for https://bugs.python.org/issue29679 (adding asynccontextmanager) to rewrite the patch to add it as asyncio.contextlib.asyncontextmanager (with a cross-reference from the synchronous contextl

[Python-Dev] Enum conversions in the stdlib

2017-03-02 Thread Ethan Furman
There are a few modules that have had their constants redefined as Enums, such as signal, which has revealed a minor nit: >>> pp(list(signal.Signals)) [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] The resulting enumeration is neither in alpha no

[Python-Dev] Fwd: Re: Enum conversions in the stdlib

2017-03-02 Thread Ethan Furman
I strongly prefer numeric order for signals. --Guido (mobile) ___ 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.c

Re: [Python-Dev] Enum conversions in the stdlib

2017-03-03 Thread Ethan Furman
On 03/03/2017 02:35 AM, Guyzmo wrote: On Thu, Mar 02, 2017 at 04:13:17PM -0800, Ethan Furman wrote: The resulting enumeration is neither in alpha nor value order. While this has no bearing on programmatic usage I would like these Enums to be ordered, preferably by value. Would anyone prefer

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-03-07 Thread Ethan Furman
On 03/07/2017 09:41 AM, Brett Cannon wrote: I don't think a common practice has bubbled up yet for when there's both synchronous and asynchronous versions of an API (closest I have seen is appending an "a" to the async version but that just looks like a spelling mistake to me most of the time)

[Python-Dev] Sorting

2017-04-05 Thread Ethan Furman
Just want to drop a note and say THANK YOU to everyone for the work in improving Python to the 3 branch. And if you're curious as to why: I just spent three hours trying to figure out why my comparisons were succeeding when they should be raising exceptions -- and then remembered that in 2.x t

[Python-Dev] windows installer and python list mention

2017-04-10 Thread Ethan Furman
Apparently the Windows installer mentions asking for help on Python List. If accessing Python List directly via email it is necessary to subscribe first -- perhaps that could be mentioned? Bonus Python Points for mentioning the other methods that do not require subscribing. :) Rejection text

Re: [Python-Dev] __getattribute__'s error is not available in __getattr__

2017-05-02 Thread Ethan Furman
On 05/01/2017 08:47 PM, Jason Maldonis wrote: If this should be asked in learn python I apologize -- please just tell me without answering. If you could re-ask this question over on Python List I'd love to discuss which errors you are seeing from __getattribute__ (beside AttributeError, of c

[Python-Dev] mention aenum in the Enum docs?

2017-05-09 Thread Ethan Furman
A comment on a recent SO answer [1] wondered why my aenum library wasn't mentioned in the docs to help guide people that needed/wanted more advanced Enum options to it. I responded that Python was not in the habit of mentioning third-party libraries in the docs. However, I thought I would doub

[Python-Dev] python docs

2017-05-10 Thread Ethan Furman
Not sure where to ask about this, so I'm asking here. In the on-line docs, at the very bottom of a page, in fine print, is a link: _Find a bug?_ Following that link leads to a short page with some advice on how to handle it. Under the second heading [1] is this paragraph: If you’re short on

Re: [Python-Dev] python docs

2017-05-10 Thread Ethan Furman
On 05/10/2017 07:53 AM, Ethan Furman wrote: Why is python-list the place to send behavioral bugs to? It's been my experience that folks there will (rightly) ask the individual to file a bug on the tracker. Thank you for the abundance of answers. I am now totally on-board with such

Re: [Python-Dev] mention aenum in the Enum docs?

2017-05-10 Thread Ethan Furman
On 05/10/2017 05:50 PM, Steven D'Aprano wrote: On Tue, May 09, 2017 at 10:05:43AM -0700, Ethan Furman wrote: A comment on a recent SO answer [1] wondered why my aenum library wasn't mentioned in the docs to help guide people that needed/wanted more advanced Enum options to it. I

Re: [Python-Dev] PEP 538 (review round 2): Coercing the legacy C locale to a UTF-8 based locale

2017-05-28 Thread Ethan Furman
On 05/27/2017 11:46 PM, INADA Naoki wrote: Now I approve the PEP 538. Thank you, Nick and Inada-san! -- ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.

Re: [Python-Dev] PEP 7 and braces { .... } on if

2017-06-05 Thread Ethan Furman
if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, "invalid escape sequence '\\%c'", *first_invalid_escape) < 0) { Py_DECREF(result); return NULL; } What other core developers think about this?

Re: [Python-Dev] PEP 7 and braces { .... } on if

2017-06-06 Thread Ethan Furman
On 06/06/2017 05:30 PM, Barry Warsaw wrote: On Jun 05, 2017, at 08:19 AM, Ethan Furman wrote: I would format that as: if (PyErr_WarnFormat( PyExc_DeprecationWarning, 1, "invalid escape sequence

Re: [Python-Dev] PEP 538 warning at startup: please remove it

2017-06-12 Thread Ethan Furman
On 06/12/2017 05:24 AM, Nick Coghlan wrote: I suspect the eventual outcome is going to be dropping that particular warning (since it's been problematic for Fedora's 3.6 backport as well, and the problems are due to the warning itself, *not* the locale coercion), but I'd prefer to keep the notifi

Re: [Python-Dev] Impact of Namedtuple on startup time

2017-07-17 Thread Ethan Furman
On 07/17/2017 02:26 PM, Barry Warsaw wrote: namedtuple is great and clever, but it’s also a bit clunky. It has a weird > signature and requires a made up type name. It’s also rather unPythonic if > you want to support default arguments when creating namedtuple instances. > Maybe as you say, a

Re: [Python-Dev] Impact of Namedtuple on startup time

2017-07-17 Thread Ethan Furman
On 07/17/2017 02:31 PM, Brett Cannon wrote: I vaguely remember some years ago someone proposing a patch that used metaclasses to avoid using exec() (I think it was to benefit PyPy or one of the JIT-backed interpreters). Would that work to remove the need for exec() while keeping the code in pu

Re: [Python-Dev] Impact of Namedtuple on startup time

2017-07-17 Thread Ethan Furman
On 07/17/2017 03:27 PM, Greg Ewing wrote: Barry Warsaw wrote: namedtuple is great and clever, but it’s also a bit clunky. It has a weird signature and requires a made up type name. Maybe a metaclass could be used to make something like this possible: class Foo(NamedTuple, fields = 'x,

Re: [Python-Dev] Impact of Namedtuple on startup time

2017-07-17 Thread Ethan Furman
On 07/17/2017 04:45 PM, Guido van Rossum wrote: Raymond agreed to reopen the issue. Everyone who's eager to redesign namedtuple, please go to python-ideas. Python Ideas thread started. -- ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.org ht

[Python-Dev] Design Philosophy: Performance vs Robustness/Maintainability

2017-07-18 Thread Ethan Furman
CPython in particular and > the perception of Python’s applicability to many problems. I think we’re better > off trying to identify and address such problems than ignoring or minimizing them. Ethan Furman: Speed is not the only factor, and certainly shouldn't be the first concer

Re: [Python-Dev] Impact of Namedtuple on startup time

2017-07-18 Thread Ethan Furman
On 07/18/2017 08:12 AM, Guido van Rossum wrote: There are some weighty things being said in this subthread that shouldn't be hidden under the heading of improving NamedTuple. For continued discussion of our development philosophy let's open a new thread. (I have an opinion but I expect I'm not

Re: [Python-Dev] Design Philosophy: Performance vs Robustness/Maintainability

2017-07-18 Thread Ethan Furman
On 07/18/2017 09:16 AM, Antoine Pitrou wrote: On Tue, 18 Jul 2017 09:08:08 -0700 Ethan Furman wrote: Nick Coughlan: - It is "Nick Coghlan" not "Coughlan". Argh. Sorry, Nick, and thank you, Antoine! As another example of this: while trading the global

Re: [Python-Dev] PEP 550 v3

2017-08-19 Thread Ethan Furman
On 08/19/2017 01:40 AM, Antoine Pitrou wrote: On Fri, 18 Aug 2017 16:33:27 -0400 Yury Selivanov wrote: There are a few open questions left, namely the terminology and design of ContextKey API. On the former topic, I'm quite happy with the latest version: Execution Context, Logical Context, an

Re: [Python-Dev] PEP 550 v3

2017-08-20 Thread Ethan Furman
On 08/19/2017 10:41 PM, Nick Coghlan wrote: On 20 August 2017 at 10:21, Guido van Rossum wrote: The way we came to "logical context" was via "logical thread (of control)", which is distinct from OS thread. But I think we might need to search for another term... Right. Framing it in pragmatic

Re: [Python-Dev] PEP 550 v3 naming

2017-08-21 Thread Ethan Furman
On 08/21/2017 04:43 AM, Antoine Pitrou wrote: On Mon, 21 Aug 2017 01:45:05 -0400 "Jim J. Jewett" wrote: Building on Brett's suggestion: FrameContext: used in/writable by one frame It's not frame-specific, it's actually shared by an arbitrary number of frames (by default, all frames in a

Re: [Python-Dev] PEP 550 v3 naming

2017-08-23 Thread Ethan Furman
On 08/23/2017 11:27 AM, Yury Selivanov wrote: Out of what was proposed so far to replace Logical Context: [...] I don't think that replacing LogicalContext with any name in this list will make any improvement. How about ExecutionContext and ContextVars ? We are already used to different lev

Re: [Python-Dev] PEP 550 v3 naming

2017-08-23 Thread Ethan Furman
On 08/23/2017 12:17 PM, Yury Selivanov wrote: How about ExecutionContext and ContextVars ? We are already used to different levels of variables: global, local, non-local, class. I think having variables tied to a Context, and having search flow back to previous Contexts, would be easy to un

Re: [Python-Dev] Scope, not context? (was Re: PEP 550 v3 naming)

2017-08-24 Thread Ethan Furman
On 08/24/2017 06:52 AM, Barry Warsaw wrote: To me, the functionality proposed in PEP 550 feels more like a "scope" than a "context". Unlike a lexical scope, it can't be inferred from the layout of the source code. It's more of a dynamic "execution scope" and the stacking of "local execution sc

Re: [Python-Dev] PEP 550 v4

2017-08-25 Thread Ethan Furman
All in all, I like it. Nice job. On 08/25/2017 03:32 PM, Yury Selivanov wrote: A *context variable* is an object representing a value in the execution context. A new context variable is created by calling the ``new_context_var()`` function. A context variable object has two methods: * ``loo

Re: [Python-Dev] PEP 550 v4

2017-08-26 Thread Ethan Furman
On 08/26/2017 09:25 AM, Yury Selivanov wrote: On Fri, Aug 25, 2017 at 10:19 PM, Ethan Furman wrote: A *context variable* is an object representing a value in the execution context. A new context variable is created by calling the ``new_context_var()`` function. A context variable object has

Re: [Python-Dev] PEP 550 v4

2017-08-26 Thread Ethan Furman
On 08/26/2017 12:12 PM, David Mertz wrote: I'm convinced by the new section explaining why a single value is better than a namespace. Nonetheless, it would feel more "Pythonic" to me to create a property `ContextVariable.val` whose getter and setter was `.lookup()` and `.set()` (or maybe `._lo

Re: [Python-Dev] Pep 550 and None/masking

2017-08-27 Thread Ethan Furman
On 08/27/2017 11:02 AM, Chris Jerdonek wrote: Hi Jim, it seems like each time you reply you change the subject line and start a new thread. Very few others are doing this (e.g. Yury when releasing a new version). Would it be possible for you to preserve the threading like others? I must admi

Re: [Python-Dev] PEP 550 v4

2017-08-28 Thread Ethan Furman
On 08/28/2017 04:19 AM, Stefan Krah wrote: What about this? async def bar(): setcontext(Context(prec=1)) for i in range(10): await asyncio.sleep(1) yield i async def foo(): async for i in bar(): # ctx.prec=1? print(Decimal(100) / 3) If I und

Re: [Python-Dev] PEP 550 v4

2017-08-28 Thread Ethan Furman
On 08/28/2017 09:12 AM, Yury Selivanov wrote: If we forget about dynamic scoping (I don't know why it's being brought up all the time, TBH; nobody uses it, almost no language implements it) Probably because it's not lexical scoping, and possibly because it's possible for a function to be runn

[Python-Dev] Re: Sinai and Bunimovich stadium Billiard

2021-10-23 Thread Ethan Furman
On 10/23/21 8:01 PM, edivmanci...@gmail.com wrote: > I'm starting now to program with kwant and I'm having problems like: Sorry, you've reached the wrong list -- this one is for the development of Python itself. For general help using Python, subscribe to python-l...@python.org which you

[Python-Dev] PEP 663:

2021-11-02 Thread Ethan Furman
: Ethan Furman Discussions-To: python-dev@python.org Status: Draft Type: Informational Content-Type: text/x-rst Created: 23-Feb-2013 Python-Version: 3.11 Post-History: 20-Jul-2021, 02-Nov-2021 Resolution: Abstract Update the ``repr()``, ``str()``, and ``format()`` of the various Enum

[Python-Dev] PEP 467: Minor bytes and bytearray improvements

2021-11-04 Thread Ethan Furman
ar).encode('ascii'). The rendered version is at https://www.python.org/dev/peps/pep-0467/ Happy reading! PEP: 467 Title: Minor API improvements for binary sequences Version: $Revision$ Last-Modified: $Date$ Author: Nick Coghlan , Ethan Furman Status: Draft Type: Standards Track Cont

[Python-Dev] Re: Oh look, I've been subscribed to python/issues-test-2 notifications again

2021-11-04 Thread Ethan Furman
On 11/4/21 12:21 PM, Brett Cannon wrote: > What notification? (I fully admit I may not have gotten one due to some team I'm in, but I have > no such notification if it happened recently.) I've received 20-30 in the last three or four days. I'm not concerned about it, just providing a data poi

[Python-Dev] Re: PEP 467: Minor bytes and bytearray improvements

2021-11-08 Thread Ethan Furman
On 11/8/21 4:45 AM, Victor Stinner wrote: > Is it implement "like" ascii(obj).encode("ascii") but with minor > changes? What changes? It works like `str()`, but you get ascii-encoded bytes (or an exception if that's not possible). The difference with the built-in ascii is the absence of extra

[Python-Dev] containment and the empty container

2021-11-08 Thread Ethan Furman
When is an empty container contained by a non-empty container? For example: {} in {1:'a', 'b':2] <-- TypeError because of hashability set() in {1, 2, 'a', 'b'} <-- ditto [] in ['a', 'b', 1, 2] <-- False '' in 'a1b2' <-- True SomeFlag.nothing in SomeFlag.something <-- ??? Personally,

[Python-Dev] Re: containment and the empty container

2021-11-08 Thread Ethan Furman
Let's use a concrete example: `re.RegexFlag` ``` Help on function match in module re: match(pattern, string, flags=0) Try to apply the pattern at the start of the string, returning a Match object, or None if no match was found. ``` In use we have: result = re.match('present', 'who

[Python-Dev] Re: containment and the empty container

2021-11-08 Thread Ethan Furman
gs are iterable -- `list(F1) == [F1]; list(F1 | F2) == [F1, F2]` - iterating over a Flag only returns the "pure" (aka single-bit) flags, even if multi-flag instances have been created (at least, they will in 3.11) On 11/8/21 8:32 PM, Guido van Rossum wrote: > On Mon, Nov 8, 2021

[Python-Dev] Re: containment and the empty container

2021-11-09 Thread Ethan Furman
On 11/8/21 3:09 PM, Steven D'Aprano wrote: > On Mon, Nov 08, 2021 at 01:43:03PM -0800, Ethan Furman wrote: >> SomeFlag.nothing in SomeFlag.something <-- ??? > > I don't think that consistency with other containers is particularly > relevant here. More useful

[Python-Dev] Re: containment and the empty container

2021-11-11 Thread Ethan Furman
On 11/9/21 9:02 AM, Guido van Rossum wrote: > On Mon, Nov 8, 2021 at 10:29 PM Ethan Furman wrote: >> The way I see it, the following should hold >> >> empty_flag = RegexFlag(0) >> any_case = RegexFlag.IGNORECASE >> any_case_o

[Python-Dev] Adding pep-8-casing-compliant aliases for unittest and logging

2021-11-11 Thread Ethan Furman
On 11/11/21 11:53 AM, Matt del Valle wrote: > Okay, so from the replies so far it looks like this is very quickly going into the 'never gonna happen' > dumpster, so in the interests of salvaging *something* out of it: [...] > I just dislike having to settle for 'it's what we've got'. With thes

[Python-Dev] Re: Adding pep-8-casing-compliant aliases for unittest and logging

2021-11-11 Thread Ethan Furman
Woops, wrong list -- please disregard. -- ~Ethan~ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https:/

[Python-Dev] Re: AWS Course in Chennai

2021-11-20 Thread Ethan Furman
Sorry for the spam -- one of us must have clicked on the wrong button. :-/ -- ~Ethan~ Moderator ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/pyth

[Python-Dev] Re: The current state of typing PEPs

2021-11-30 Thread Ethan Furman
On 11/26/21 1:13 AM, Paul Moore wrote: > On Fri, 26 Nov 2021 at 05:14, Guido van Rossum wrote: >> >> My memory is also hazy, but I'm quite sure that *in my mind* annotations were >> intended as a compromise between conflicting proposals for *typing*. We didn't >> have agreement on the syntax or s

[Python-Dev] multiple inheritance and `__str__`

2021-11-30 Thread Ethan Furman
I ran into an issue today with `str()` not behaving as I thought it should. Given the following test script, what should happen? -- 8< -- class Blah(object): def __str__(self): return 'blah' class Huh(int, Blah): pass class Hah(Blah, int): pass

[Python-Dev] Re: Should dataclasses add__set__ (and possibly __get __) descriptors ?

2021-12-13 Thread Ethan Furman
On 12/12/21 10:43 PM, Vioshim wrote: > Anyways, at the moment that I write this message in python3.10.1, It happens that when making a class with the dataclasses module, this class can't actually be used in Multiple inheritance for Enum purposes, this is mostly to avoid code repetition by havin

[Python-Dev] Re: Should dataclasses add__set__ (and possibly __get __) descriptors ?

2021-12-13 Thread Ethan Furman
On 12/13/21 3:34 PM, Steven D'Aprano wrote: > I think this may be what you are looking for: [...] Beat me to it. :-) -- ~Ethan~ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://

[Python-Dev] Re: facing the issue for remove the value from list (when value is repeated)

2021-12-21 Thread Ethan Furman
Hello! The python-dev list is for developing the next version of Python. For help using Python, please send your question to python-l...@python.org Thanks, and good luck! -- ~Ethan~ ___ Python-Dev mailing list -- python-dev@python.org To unsubscr

[Python-Dev] Re: Suggestion: a little language for type definitions

2022-01-08 Thread Ethan Furman
On 1/8/22 5:46 PM, Steven D'Aprano wrote: > [...] if you hate type annotations because they are unreadable, then you > hate Python because Python is unreadable. Not so. A simple list comprehension is (usually) quite readable, while a triply-nested list comprehension all on one line is not. S

[Python-Dev] Re: 3.11 enhanced error location - can it be smarter?

2022-01-18 Thread Ethan Furman
On 1/18/22 10:43 AM, Mats Wichmann wrote: > A thought - how about omitting the underline line if the > to-be-underlined part would be the whole line? I would also like that change -- when the underlining is a portion of the whole it's quite useful, but when it's the whole line it's a lot of ext

[Python-Dev] Re: 3.11 enhanced error location - can it be smarter?

2022-01-18 Thread Ethan Furman
On 1/18/22 11:59 AM, Pablo Galindo Salgado wrote: > We considered using colours and other markers such as bold text, but that opens a considerable can of worms with > detecting in all systems and configurations if that can be done. I have been told that some of these situations are > quite tric

[Python-Dev] Re: 3.11 enhanced error location - can it be smarter?

2022-01-19 Thread Ethan Furman
On 1/19/22 1:10 PM, Barry Scott wrote: > On 18 Jan 2022, at 19:59, Pablo Galindo Salgado wrote: >> We considered using colours and other markers such as bold text, but that opens a considerable can of worms with >> detecting in all systems and configurations if that can be done. I have been tol

[Python-Dev] Re: Increase of Spammy PRs and PR reviews

2022-01-29 Thread Ethan Furman
On 1/29/22 3:14 AM, Lrupert via Python-Dev wrote: > As someone who is watching the python/cpython repository, I'm very used to see lots of traffic. But > lately there have been a surge of spammy PRs which are about the same, generally very trivial subject > but individually fixing each occurren

[Python-Dev] Re: Increase of Spammy PRs and PR reviews

2022-01-31 Thread Ethan Furman
On 1/31/22 8:47 AM, Lrupert via Python-Dev wrote: > This gives a bad impression to others about their intentions (constant contribution of trivial > / low quality stuff with little-to-no-gain to achieve a higher number of commits, since it is > a visible metric). Two of us have already comment

[Python-Dev] Re: Please update Cython *before* introcuding C API incompatible changes in Python

2022-02-04 Thread Ethan Furman
On 2/4/22 6:23 AM, Stefan Behnel wrote: > One recent example is the new error locations in tracebacks, where PEP 657 explicitly lists > the new "co_positions" field in code objects as an implementation detail of CPython. If we > want to implement this in Cython, then there is no other way than

[Python-Dev] Re: It's now time to deprecate the stdlib urllib module

2022-02-06 Thread Ethan Furman
On 2/6/22 6:08 AM, Victor Stinner wrote: > I propose to deprecate the urllib module in Python 3.11. It would emit > a DeprecationWarning which warn users, so users should consider better > alternatives like urllib3 or httpx: well known modules, better > maintained, more secure, support HTTP/2 (ht

[Python-Dev] Re: Request for feedback: pathlib.AbstractPath prototype

2022-02-09 Thread Ethan Furman
On 2/9/22 6:59 AM, Barney Gale wrote: > Over the last couple of years I've been tidying up the pathlib internals, with a view > towards adding an AbstractPath class to the hierarchy. Users would be able to subclass > AbstractPath to implement other kinds of filesystems: s3, google cloud storag

[Python-Dev] Re: Please update Cython *before* introcuding C API incompatible changes in Python

2022-02-09 Thread Ethan Furman
On 2/9/22 8:40 AM, Pablo Galindo Salgado wrote: > Petr Viktorin wrote: >> Should there be a getter/setter for co_positions? > > We consider the representation of co_postions private, so we don't want (for now) to ad > getters/setters. Isn't the whole point of getters/setters is to allow public

[Python-Dev] Re: Request for feedback: pathlib.AbstractPath prototype

2022-02-10 Thread Ethan Furman
On 2/10/22 1:45 PM, Brett Cannon wrote: > Protocols would let folks rely on a common Path object API w/o having to require the object > come from pathlib itself or explicitly subclass something (which I admit would be rare, but > there's no reason to artificially constrain this either). Now may

[Python-Dev] PSA: Linux vulnerability

2022-03-08 Thread Ethan Furman
https://arstechnica.com/information-technology/2022/03/linux-has-been-bitten-by-its-most-high-severity-vulnerability-in-years/ -- ~Ethan~ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org ht

[Python-Dev] Re: An unambiguous way of initializing an empty dictionary and set

2022-03-13 Thread Ethan Furman
On 3/13/22 14:49, joao.p.f.batista...@gmail.com wrote: > Currently: > l = [] # new empty list > t = () # new empty tuple > s = set() # new empty set (no clean and consistent way of initializing regarding the others) <<< > d = {} # new empty dictionary > > Possible solution: > s = {} # new empty

[Python-Dev] Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-26 Thread Ethan Furman
[apologies for the late post, just found this in my drafts folder] On 2/7/22 12:49 AM, Stéfane Fermigier wrote: 3. Overall, I think the days where "battery included" was a positive argument are over I strongly disagree. Being able to download something and immediately get something to work

[Python-Dev] walrus operator and expression

2022-03-28 Thread Ethan Furman
In the following bit of code: while s := input.read(MAXBINSIZE): while len(s) < MAXBINSIZE and ns := input.read(MAXBINSIZE-len(s)): s += ns line = binascii.b2a_base64(s) output.write(line) I'm getting this error on the second line: cannot use assignm

[Python-Dev] Re: (no subject)

2022-03-30 Thread Ethan Furman
[woops] ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@p

[Python-Dev] Re: Descriptions in unittest and avoiding confusion

2022-04-04 Thread Ethan Furman
On 4/4/22 10:52, Coyot Linden (Glenn Glazer) wrote: > On 4/4/22 Guido wondered: >> How did we get from a specific issue with docstrings and the unittest package's test >> reporting to multi-line comments? > > Apologies, as I said earlier, I meant to write multiline /string/, not multiline /comm

[Python-Dev] Re: About PEPs being discussed on Discourse

2022-04-07 Thread Ethan Furman
On 4/7/22 07:31, Petr Viktorin wrote: On 07. 04. 22 15:59, Victor Stinner wrote: Would it be possible to announce new PEPs on python-dev please? Currently, all PEPs should be announced on python-dev, but not necessarily right after they're published. They should be announced before submitti

[Python-Dev] Re: Switching to Discourse

2022-07-15 Thread Ethan Furman
On 7/15/22 08:37, Petr Viktorin wrote: > And that's exactly why I consume Discourse in mailing list mode, with client-side > filtering in Thunderbird. How do you handle threading? I follow each (sub)thread through to it's end, as it keeps a logical flow, but Discourse has everything linear wh

[Python-Dev] Re: Switching to Discourse

2022-07-20 Thread Ethan Furman
On 7/20/22 17:35, Cameron Simpson wrote: > On 18Jul2022 16:53, Joannah Nanjekye wrote: >> My original stand on preferring email stands though due to stable >> standards. > > Several of us use the email mode in Discourse. It works quite well. For > me, both python-dev and the PDO posts land in my

[Python-Dev] Re: Switching to Discourse

2022-12-09 Thread Ethan Furman
On 12/9/22 09:20, Barry Warsaw wrote: > The whole shift away from email leaves me calmer and better engaged. There are definitely advantages to the different methods of staying engaged, and which is the best fit definitely depends on the individual. It seems to me the best possible outcome of

[Python-Dev] Re: computersmarketing

2022-12-20 Thread Ethan Furman
Gah. Already dealt with. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives

[Python-Dev] Re: PEP 448 review

2023-03-29 Thread Ethan Furman
My apologies for the accidentally accepted spam. If you reply to that original message, please remove the link before sending. Thanks. ;-) -- ~Ethan~ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le..

[Python-Dev] Re: PEP 448 review

2023-03-29 Thread Ethan Furman
On 3/29/23 13:23, Brett Cannon wrote: Wow, we are now getting Canadian-specific spam! Since the volume on this mailing list is so low, should we change everyone to be moderated to start and then remove that after they have posted appropriately? Or did this get through by accident? Accident.

[Python-Dev] Re: The Python 2 death march

2019-09-26 Thread Ethan Furman
On 09/26/2019 09:28 AM, Brett Cannon wrote: Steve Dower wrote: The biggest thing that will change is that all our CI systems will stop testing 2.7, and there's a good chance we'll lock (or delete?) the 2.7 branch from our repo. A final tag of the branch will be made and then the branch will

[Python-Dev] Re: RFC: PEP 608: Coordinated Python release

2019-10-25 Thread Ethan Furman
On 10/25/2019 07:25 AM, Victor Stinner wrote: I just posted a new PEP for comments, please reply there, rather than by email: https://discuss.python.org/t/rfc-pep-608-coordinated-python-release/2539 PEP 608: Coordinated Python release https://www.python.org/dev/peps/pep-0608/ Abstract: Block

[Python-Dev] Re: small improvement idea for the CSV module

2019-10-30 Thread Ethan Furman
On 10/30/2019 02:53 AM, Steve Holden wrote: If using a dictionary but still requiring attribute access, techniques such as those used at https://github.com/holdenweb/hw can be used to simply client code. Unless I'm missing something, that doesn't have the memory improvement that namedtuples

[Python-Dev] Re: A much better tokenize.untokenize function

2019-11-04 Thread Ethan Furman
On 11/04/2019 03:42 AM, Edward K. Ream wrote: On Sun, Nov 3, 2019 at 7:23 PM Edward K. Ream wrote: Let's be clear, there is no reason for python libraries to include every little code gem. However, I have two motivations adding the gem to the tokenize module: This is all irrelevant if you h

[Python-Dev] Re: Should we require all deprecations to have a removal version that we follow through on?

2019-11-27 Thread Ethan Furman
On 11/27/2019 10:38 AM, Brett Cannon wrote: What do people think of the idea of requiring all deprecations specifying a version that the feature will be removed in (which under our annual release cadence would be at least the third release from the start of the deprecation, hence the deprecat

[Python-Dev] Re: Deprecating the "u" string literal prefix

2019-12-03 Thread Ethan Furman
On 12/03/2019 09:16 AM, Serhiy Storchaka wrote: The 'u" string literal prefix was removed in 3.0 and reintroduced in 3.3 to help writing the code compatible with Python 2 and 3 [1]. After the dead of Python 2.7 we will remove some deprecated features kept for compatibility with 2.7. When we ar

[Python-Dev] Re: Deprecating the "u" string literal prefix

2019-12-03 Thread Ethan Furman
On 12/03/2019 09:31 AM, Guido van Rossum wrote: I think it’s too soon to worry about this. I don’t see a reason to harass people who maintain code based that were just recently migrated. I'm happy to go with this, since my libraries still do the 2/3 straddle. Do we want to set a date/version

[Python-Dev] PEP 608 and backwards compatibility [was: Deprecating the "u" string literal prefix]

2019-12-04 Thread Ethan Furman
On 12/04/2019 04:21 AM, Victor Stinner wrote: IMHO we need a metric to measure the risk of an incompatible change: estimate the percentage of broken Python applications. For example, run the test suite of the PyPI top 100 projects with the incompatible change and see how many fails. That's the r

[Python-Dev] Re: PEP 611: The one million limit.

2019-12-06 Thread Ethan Furman
On 12/06/2019 03:19 PM, Gregory P. Smith wrote: I'd prefer it if we stayed on topic here... I find discussion of other computing limits, and how and why they failed (and the hassles of working around them), very relevant. -- ~Ethan~ ___ Python-Dev

[Python-Dev] Re: More feedback on PEP 611, please

2019-12-11 Thread Ethan Furman
I am totally against arbitrary limits in the CPython reference implementation and in the language as a whole. -- ~Ethan~ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.pyt

[Python-Dev] Re: Dict __missing__ consistency issues.

2020-01-08 Thread Ethan Furman
ido van Rossum] I don't think __missing__ should be called by get() -- get() already has a way to deal with missing keys, and making it use two different mechanisms would be weird (e.g. if get() calls __missing__, is the default value ever used?). [Ethan Furman] It could be if __missing__ refused to

[Python-Dev] Re: Request to postpone some Python 3.9 incompatible changes to Python 3.10

2020-01-23 Thread Ethan Furman
On 01/23/2020 03:36 PM, Barry Warsaw wrote: On Jan 23, 2020, at 14:03, Victor Stinner wrote: It's not only about specific changes, but more a discussion about a general policy to decide if a deprecated feature should stay until 3.10, or if it's ok to remove it in 3.9. Given that we’ve change

[Python-Dev] Re: Request to postpone some Python 3.9 incompatible changes to Python 3.10

2020-01-23 Thread Ethan Furman
On 01/23/2020 07:02 PM, Robert Collins wrote: On Fri, 24 Jan 2020 at 14:46, Ethan Furman mailto:et...@stoneleaf.us>> wrote: On 01/23/2020 03:36 PM, Barry Warsaw wrote: > On Jan 23, 2020, at 14:03, Victor Stinner wrote: >> It's not only about specific

<    8   9   10   11   12   13   14   15   16   >