[Python-Dev] Re: Debugging of native extensions on windows

2023-03-14 Thread Christopher Barker
escaped me? > > > > ___ > 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 > http

[Python-Dev] Re: Feature Request: Adding Way to Annotate Class Variables Distinct from Instance Variables

2022-12-21 Thread Christopher Barker
@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@python.org/message/7XFIE6YGRGO3XKCR7MZGDN6CCGUNN6MR/ > Code of Conduct: http:/

[Python-Dev] Re: Python Launcher not Installed on Windows Machine

2022-12-15 Thread Christopher Barker
python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/SNOKIVOL55FOJZ5J2CPXFNL5LZJHTX7O/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching

[Python-Dev] Re: A proposal to modify `None` so that it hashes to a constant

2022-11-29 Thread Christopher Barker
ailing 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@python.org/message/JIR4WQ5B432BQ4R27EMWZP6HCNFLFPMU/

[Python-Dev] Re: Switching to Discourse

2022-07-22 Thread Christopher Barker
-/ but maybe one more big report / feature request. And it’s one more pro for GH discussions- GH is built for code, so much more likely to support it well. Coincidentally, I just noticed GH discussions today — the setuptools project is using it. -CHB -- Christopher Barker, PhD (Chris) Python

[Python-Dev] Re: Switching to Discourse

2022-07-21 Thread Christopher Barker
OT: Does anyone else find it very odd to call a communication system “discord”? dis·cord /ˈdiskôrd/ *noun* 1. 1. disagreement between people. "a prosperous family who showed no signs of discord" “Naming things is hard” — but really? -CHB -- Christopher Barker,

[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Christopher Barker
hon-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@python.org/message/T43OZ4LWUT7QBENWPKIA3LFT52GWJV3Q/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher

[Python-Dev] Re: Declarative imports

2022-04-12 Thread Christopher Barker
erms of what is returned by the equivalent statement. I really don't to > try and teach that distinction to a newcomer. > Frankly, there are already an overwhelming-to-a-newcomer number of ways to import modules. We really don't want nore! -CHB -- Christopher Barker, PhD (Chris) Python L

[Python-Dev] Re: Importing a submodule doesn't always set an attribute on its parent

2022-04-09 Thread Christopher Barker
ubscribe 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@python.org/message/IRXLI6XANNQTOGSBQGOFX25UJD6J4SGJ/ > Code of Conduct: http://python.org/psf/co

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

2022-04-08 Thread Christopher Barker
s list (and python-ideas) should probably be retired, or turned into an announcement-only list -- having the current split is the worst option of all. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Develo

[Python-Dev] Re: Make HAMT available to python script

2022-04-05 Thread Christopher Barker
/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/IQMBELHLSWSEYQI7BEPTJTYP47BWTBUV/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Sc

[Python-Dev] Re: Make HAMT available to python script

2022-04-02 Thread Christopher Barker
API (i.e. preserves order). If someone needs an implementation that has specific performance characteristics that are different, and doesn't need key order preservation, then THAT can be a special case. Which, IIUC, is what the current HAMT in cPython is about. Anyway, it would be nice for someone

[Python-Dev] Re: Make HAMT available to python script

2022-04-01 Thread Christopher Barker
mplementation. And it seems that's an API that is already clearly defined. + 1 from me -- just the other day I was wishing it was there. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wx

[Python-Dev] Re: Enhancing generic type documentation in the standard library

2022-03-30 Thread Christopher Barker
CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an em

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

2022-03-28 Thread Christopher Barker
ect, but if someone wants to, I think it would be a great idea. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython

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

2022-03-28 Thread Christopher Barker
hort: I think I agree with most folks here that we should still include the batteries, and they should be updated / maintained to some extent. What exactly could/should be done is going to have to be worked on on a case by case basis. -CHB -- Christopher Barker, PhD (Chris) Python Langu

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

2022-03-27 Thread Christopher Barker
f those. (but yes, that's a lot of work that someone(s) would have to do) Back to the topic at hand, rather than remove urllib, maybe it could be made better -- an as-easy-to-use-as-requests package in the stdlib would be really great. -CHB -- Christopher Barker, PhD (Chris) Python Language Cons

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

2022-03-13 Thread Christopher Barker
Oops, didn’t notice this wasn’t Python-ideas — that’s where it should be. -CHB On Sun, Mar 13, 2022 at 3:44 PM Christopher Barker wrote: > > Possible solution: >> s = {} # new empty set >> d = {:} # new empty dictionary (the ":" is a reference to key-value pai

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

2022-03-13 Thread Christopher Barker
pelling here. set() is (maybe?) the only builtin, but is initializing and empty set that common? Note, there was a recent thread on this list about a literal for frozenset — I think: f{} was proposed— you may want to revive that -and add s{} for an empty set … Though i personally wouldn’t support t

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

2022-02-08 Thread Christopher Barker
le shold be able to keep up with all but the very latest. > make Python less attractive and less useful for beginners. On this point, I'm not so sure -- the first thing I do for beginners is to point them to requests, as it's easier to use :-) -- but see my point above, that's why it would be good

[Python-Dev] Re: Should we require IEEE 754 floating-point for CPython?

2022-02-07 Thread Christopher Barker
e main platform that this was an issue for, for computationally heavy code, was Cray -- but it seems they're 754 compatible now, yes? Thanks for doing this, -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Developme

[Python-Dev] Re: PyPy on PySide6 is there: PyPy with a Gui

2022-02-03 Thread Christopher Barker
tion? or computing the mandelbrot set, for which I would expect to see performance numbers like that. Anyway, really cool in any case -- a major step for PyPy. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI a

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-02-03 Thread Christopher Barker
rge-like auto-build system is inherently easier for conda packages than binary wheels. Which doesn't mean it couldn't be done -- just that the challenge of third party libs would need to be addressed. In any case, someone would have to do the work, as usual. -CHB -- Christopher Barker, PhD (Chri

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

2022-02-02 Thread Christopher Barker
p to make it easy to set - e.g a flag to cythonize or something. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scip

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

2022-02-01 Thread Christopher Barker
HPQW7AIKDQQYV4IFHAKQZVXACL/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython

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

2022-02-01 Thread Christopher Barker
On Tue, Feb 1, 2022 at 3:22 PM Greg Ewing wrote: > On 2/02/22 11:53 am, Christopher Barker wrote: > > As a long time Cython user, but not a Cython developer, I think (2) is > > the primary purpose, with (1) as a handy side benefit (otherwise > > we'd just use ctypes, yes?)

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

2022-02-01 Thread Christopher Barker
ssage archived at > https://mail.python.org/archives/list/python-dev@python.org/message/EACB7ZZVDDNL4QAIODYDNWLKI455QDKP/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Devel

[Python-Dev] Re: Request to revert unittest and configparser incompatible changes in Python 3.11

2022-01-28 Thread Christopher Barker
Which is pretty easy to do with pytest, but maybe not so easy everywhere? > But we shouldn't just > dismiss warnings in those dependencies as "warnings I don't care about" > and ignore them as Not My Problem. > Unless we have done due diligence already :-) -CHB --

[Python-Dev] Re: Request to revert unittest and configparser incompatible changes in Python 3.11

2022-01-27 Thread Christopher Barker
sts/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/HB4ZSI5UWSI3R3ASTIOCAYNU7YPBB57F/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching -

[Python-Dev] Re: Restated typing issue for class fields.

2022-01-19 Thread Christopher Barker
cribe 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@python.org/message/ANSJXQTUQDGADZRLAV5YFRU74NHUBVBL/ > Code of Conduct: http://python.org/p

[Python-Dev] Re: Request to revert unittest and configparser incompatible changes in Python 3.11

2022-01-18 Thread Christopher Barker
ilence the ones I don't want. And it does prompt me to make sure that the upstream packages are working on it. Now we just need to get more people to use pytest :-) -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Deskto

[Python-Dev] Re: Changing PySequence and PyMapping checks

2022-01-15 Thread Christopher Barker
uld) define a type that only requires the methods that you need. I think MyPy's Protocol can be used for that, for example. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wx

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

2022-01-09 Thread Christopher Barker
read. > > > > If I > > had stumbled on it at 3.16 with samples, tutorials, and books all > infused > > with typing clutter (which *looks* like boiler-plate even if it isn't) I > > wouldn't have given it a second glance. > > And again, I hear you. I too wish people w

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

2022-01-08 Thread Christopher Barker
ifferent. But in the end, if they are not going to be pre-processed, anon only allowed in annotations, then yes, no nead for the t"" at all. I think the first question is whether a typing language is a good idea at all -- then we can worry about these details. This is not the case with

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

2022-01-07 Thread Christopher Barker
__ > 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-de

[Python-Dev] Re: Function Prototypes

2021-12-23 Thread Christopher Barker
Ronny Pfannschmidt > > "I find this unnecessary and unreadable. > > Python isn't C or Java." - BundleOfJoysticks (Reddit) > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-de

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-19 Thread Christopher Barker
note: I wasn't thinking -- typeshed, of course, has a lot more than the standard lib. But it's still a collection of widely used somewhat general purpose libraries. So I think my hypothesis is still valid. -CHB On Sun, Dec 19, 2021 at 8:54 PM Christopher Barker wrote: > A question that c

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-19 Thread Christopher Barker
production code bases could provide anecdotal evidence. Anyway, if my hypothesis is correct, then it's not so bad that not-so-nice syntax is required to type hint general purpose utilities. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software D

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-19 Thread Christopher Barker
back on python-ideas about extending the __getitem__ protocol, partly motivated by type hints. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Developme

[Python-Dev] Re: Python 3.10 vs 3.8 performance degradation

2021-12-19 Thread Christopher Barker
ing something different. Still to be discovered what that is. Note the OP: make sure that it's not as simple as a change to the default for the threads parameter. Note2: even if this is a regression cPython itself, I suspect the numpy list may be a better wey to get it figured out. -CHB --

[Python-Dev] Re: my plans for subinterpreters (and a per-interpreter GIL)

2021-12-15 Thread Christopher Barker
ount(None))" 4110 and a newly started iPython session: In [2]: sys.getrefcount(None) Out[2]: 28491 It does seem a bit silly to actually be tracking that refcount :-) -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development

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

2021-12-13 Thread Christopher Barker
to: class Foo: def __init__(self, a=0): self.a = a Which behaves the same way when used the same way with Enum. So why should dataclasses be special in this particular way? -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software

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

2021-12-02 Thread Christopher Barker
-- 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@python.org/message/XRJJ4ZMOQJXOTRFT3FQ25QXHXOKBVXKP/ > Cod

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

2021-12-02 Thread Christopher Barker
till, maybe you have inadvertently listed everything that is agreed about > typing PEPs.  > Rob Cliffe > > On 02/12/2021 23:20, Christopher Barker wrote: > > > >for library authors. > >> Providing high quality stubs and the best user experience is not easy. >&g

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

2021-12-02 Thread Christopher Barker
resent -- damn iPhone! On Thu, Dec 2, 2021 at 3:20 PM Christopher Barker wrote: > >for library authors. > > > > Providing high quality stubs and the best user experience is not easy. > > But I believe that referring people to typeshed can help. > > > This is a

[Python-Dev] Re: Expectations of typing (was: The current state of typing PEPs)

2021-12-02 Thread Christopher Barker
o play well together. While Union[PathLike, str] is a pretty light lift, this is one tiny example of what we "typing skeptics" are concerned about: a transition away from full on dynamic typing to a more static style. Maybe that won't come to pass -- we'll see. -CHB -- Christopher

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

2021-12-02 Thread Christopher Barker
bligation to provide any feature asked for, but a well-managed project will encourage useful contributions from users. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scip

[Python-Dev] Re: Expectations of typing (was: The current state of typing PEPs)

2021-12-01 Thread Christopher Barker
ry way -- e.g. duck typing, baby! Is there really no way to annotate that simply now? -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, n

[Python-Dev] Re: Expectations of typing (was: The current state of typing PEPs)

2021-11-30 Thread Christopher Barker
ping who > insist that everything should be annotated. > well, we got folks wanting to change PEP 8 becuase they don't want their linter to complain -- so it will be a battle. > (Have you run into VS Code yet? It gets tremendous value from typing > stubs, in the form of improved auto-comple

[Python-Dev] Re: Expectations of typing (was: The current state of typing PEPs)

2021-11-30 Thread Christopher Barker
Another concern I have is the over specification of types. I have seen many examples of, e.g. func(x: int, y: float, stuff: List(int]): but very few of: func(x: SupportsInt, y: SupportsFloat, stuff: Sequence[SupportsInt]): (or even Iterable[int]) Is that even the right thing to do to get

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

2021-11-30 Thread Christopher Barker
ion of PEP 563's impact, but it's not totally clear to me if it's been resolved. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPytho

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

2021-11-29 Thread Christopher Barker
ctive role in developing static typing has influenced how it's being perceived. I do think this is a topic for the community to grapple with, but not really a Python-dev responsibility. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development

[Python-Dev] Re: Preventing Unicode-related gotchas (Was: pre-PEP: Unicode Security Considerations for Python)

2021-11-29 Thread Christopher Barker
LMFOM6M5ZB/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython __

[Python-Dev] Re: Optimizing literal comparisons and contains

2021-11-28 Thread Christopher Barker
/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.python.org/mailman3/lists/python-dev.python.org/ > Message archived at >

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

2021-11-27 Thread Christopher Barker
On Fri, Nov 26, 2021 at 5:47 PM Jim J. Jewett wrote: > Steven D'Aprano wrote: > > Maybe PEP 563 could include a decorator in the typing module to > > destringify all the annotations in a class or function? > > If it were in an annotations module, that would probably be sufficient. > > If it is

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

2021-11-26 Thread Christopher Barker
icted. In fact, other than the basic core types, you need to use specialized types with this system anyway. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy

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

2021-11-26 Thread Christopher Barker
ht in a phone) Maybe inspect.get_annotations() does, or will be able to, solve many of these issues. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython,

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

2021-11-25 Thread Christopher Barker
e typing -- so it can no longer be completely ignored. But dunders are the property of the language (or sometimes the > implementation), and they always have been. If you use them in a way > that's not documented to work, you're at risk even if it happens to > work now. PEP 3107 didn't documen

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

2021-11-20 Thread Christopher Barker
tly, being an interface to > typing enthusiasts Again -- is it only "typing enthusiasts" that you want to engage? Or "users of annotations"? -- maybe it is, but it would be nice if that was a clear statement from the SC. - CHB -- Christopher Barker, PhD (Chris)

[Python-Dev] Re: Do we need to remove everything that's deprecated?

2021-11-14 Thread Christopher Barker
thing about it is that it provided both translation ala 2to3 and compatibility ala six. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython ___

[Python-Dev] Re: Preventing Unicode-related gotchas (Was: pre-PEP: Unicode Security Considerations for Python)

2021-11-14 Thread Christopher Barker
o NFC only have any hope of being accepted? and/or adding normaliztion to setattr() and maybe other places where names are set in code? -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop

[Python-Dev] Re: Preventing Unicode-related gotchas (Was: pre-PEP: Unicode Security Considerations for Python)

2021-11-14 Thread Christopher Barker
ot;\N{LATIN > CAPITAL LETTER P}". > Is it possible to only capture things like the combining characters and not the "equivalent" ones like the above? -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI a

[Python-Dev] Re: Do we need to remove everything that's deprecated?

2021-11-14 Thread Christopher Barker
o need updates and re-releases. I don't think anyone's suggesting that you do a release only to remove deprecations. For the example above -- if ALL you are doing is moving from running on Python 3.5 to running on a newer version, wouldn't that $5k cost have to be absorbed anyway? -CHB --

[Python-Dev] Re: Preventing Unicode-related gotchas (Was: pre-PEP: Unicode Security Considerations for Python)

2021-11-14 Thread Christopher Barker
t; -- Paul McGuire > > > > > ___ > 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/

[Python-Dev] Re: Do we need to remove everything that's deprecated?

2021-11-13 Thread Christopher Barker
Deprecated code does normally more or less work, and often > it never gets close to dangerous behavior. On the flip side, it often > can cause dangerous behavior, I’m confused — did you mean “sometimes cause dangerous behavior”? That’s pretty rare isn’t it? -CHB -- Christopher

[Python-Dev] Re: Do we need to remove everything that's deprecated?

2021-11-12 Thread Christopher Barker
s no better reason than that, the change never should have been made. But once made, keeping multiple names around forever is not a good option. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development -

[Python-Dev] Re: Having Sorted Containers in stdlib?

2021-11-11 Thread Christopher Barker
ev@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@python.org/message/5SURNB4C5FGJ6LSXUPVW2EFP22ERKSGB/ > Code of Conduct: http://python.or

[Python-Dev] Re: Having Sorted Containers in stdlib?

2021-11-10 Thread Christopher Barker
On Tue, Nov 9, 2021 at 11:05 PM Paul Bryan wrote: > On Tue, Nov 09, 2021 at 10:01:35PM -0800, Christopher Barker wrote: > > What are use cases for sorted dicts? > > Good question :-) It could be handy for deterministic iteration of its values, for example to > allow

[Python-Dev] Re: Having Sorted Containers in stdlib?

2021-11-09 Thread Christopher Barker
Neither > would treap. > > > ___ > 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

[Python-Dev] Re: Python multithreading without the GIL

2021-11-01 Thread Christopher Barker
ip >> >> P.S. I suppose I should have cc'd Sam when I first replied to this >> thread, but I'm doing so now. I figured my mistake would reveal itself >> early on. Sam, here's my first post about my little "project." >> https://mail.python.org/archi

[Python-Dev] Re: Python multithreading without the GIL

2021-10-31 Thread Christopher Barker
s example from his seminal talk: > > https://youtu.be/ph374fJqFPE > Thanks, I'll take a look when I get a chance That may not be the best source of the talk -- just the one I found first :-) -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scient

[Python-Dev] Re: Python multithreading without the GIL

2021-10-28 Thread Christopher Barker
_ > 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@python.org/mess

[Python-Dev] Re: Type annotations, PEP 649 and PEP 563

2021-10-22 Thread Christopher Barker
s that they want those uses to continue to be supported. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython ___ P

[Python-Dev] Re: Type annotations, PEP 649 and PEP 563

2021-10-21 Thread Christopher Barker
would be to get a NameError at module load time, like we do now. Second would be a NameError as soon as it is accessed. Getting a special value is OK though, now that I'm thinking about it, I could probably put that special case code in one place, and provide a nice error message. -CHB -- Ch

[Python-Dev] Re: Type annotations, PEP 649 and PEP 563

2021-10-20 Thread Christopher Barker
w many third party libs. So that may not be practical. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython ___ Python

[Python-Dev] Re: Regressions caused the recent work on ceval.c and frame objects

2021-09-19 Thread Christopher Barker
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@python.org/message/TDGG4VFRZO5CDKTUH4AXYDLVXOKNLZZE/ > Code of Con

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-09-09 Thread Christopher Barker
s what bytes are targeted for. Anyone doing that should know what they are doing :-) -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, s

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-09-08 Thread Christopher Barker
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@python.org/message/TTFJ4VP5PCR557VHEH5LPSWAPNPE4QQU/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christophe

[Python-Dev] Re: Should PEP 8 be updated for Python 3 only?

2021-08-26 Thread Christopher Barker
Thanks all. The PR is in process, and I believe it includes everything brought up here. If you have any more thoughts, please post them there. -CHB On Thu, Aug 26, 2021 at 1:54 AM Petr Viktorin wrote: > On 26. 08. 21 9:54, Marc-Andre Lemburg wrote: > > On 26.08.2021 06:07, Christoph

[Python-Dev] Re: Should PEP 8 be updated for Python 3 only?

2021-08-25 Thread Christopher Barker
org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/TWNYNKGCCMGNK4CXZGVZBCGCPQL7HMYF/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teachin

[Python-Dev] Notes on PEP 8

2021-08-25 Thread Christopher Barker
Variables" and "Designing for Inheritance", the discussion of name mangling (leading __ names) is a bit redundant. Nothing incorrect or misleading -- just a copy-editing issue. Maybe I'll do a copy-editing PR -CHB -- Christopher Barker, PhD (Chris) Python Language Consult

[Python-Dev] Re: Should PEP 8 be updated for Python 3 only?

2021-08-25 Thread Christopher Barker
s with a global audience are encouraged to adopt a similar policy. """ But maybe we do want to keep comments, docstrings and literals as ASCII with escapes? -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software De

[Python-Dev] Re: Should PEP 8 be updated for Python 3 only?

2021-08-24 Thread Christopher Barker
ke the paragraph that > links to reference [6]. > will do -- hopefully I'll find some time for this tomorrow. -CHB > On Tue, Aug 24, 2021 at 9:42 PM Christopher Barker > wrote: > >> I just noticed that PEP 8 has quite a few references to Python 2. Perhaps >> it's t

[Python-Dev] Should PEP 8 be updated for Python 3 only?

2021-08-24 Thread Christopher Barker
late for PEP 8 for those code bases anyway. If I make a PR, will it be considered? -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-08-10 Thread Christopher Barker
I say it's not horrible, because bytes is a Sequence of bytes (or integer values between 0 and 255), initializing it with an iterable seems pretty reasonable, that's how we initialize most (all?) other sequences after all. And compatible with array.array and numpy arrays. -CHB -- Christopher

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-08-04 Thread Christopher Barker
__ > 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@python.org/message

[Python-Dev] Re: Is the Python review process flawed?

2021-07-01 Thread Christopher Barker
d maintainers, -CHB PS: All that being said, we, as a community, could do better. For instance, someone like me could do high-level triage on bug reports -- I need to set aside some time to do that. -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Softwar

[Python-Dev] Re: cmd.Cmd.prompt should be an instance attribute

2021-06-26 Thread Christopher Barker
MBUODIVL4CLR4O/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython

[Python-Dev] Re: Roundup to GitHub Issues migration

2021-06-21 Thread Christopher Barker
> By contrast, requiring a github account for reporting bugs also makes > python an unwelcoming place for non-developers in general. Github is a > developers' social network, "mere" users are much less likely to want to > be part of it. Many will just silently abandon their bug report. But you

[Python-Dev] Re: The repr of a sentinel

2021-05-23 Thread Christopher Barker
Thanks Tal for writing this up. A couple comments: 1) “Add a single new sentinel value, e.g. MISSING or Sentinel” (under rejected) I was one of the proponent of that -- but not as an alternative to having a stadardars way to create unique sentinels, but as an addition. That's kind of orthogonal

[Python-Dev] Re: PEP 659: Specializing Adaptive Interpreter

2021-05-20 Thread Christopher Barker
faster isn't a worthy goal. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython ___ Python-Dev mailing list --

[Python-Dev] Re: Critique of PEP 657 -- Include Fine Grained Error Locations in Tracebacks

2021-05-17 Thread Christopher Barker
M/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython ___ Python-Dev mai

[Python-Dev] Re: The repr of a sentinel

2021-05-13 Thread Christopher Barker
t recent call last): ... > TypeError: dataclasses.MISSING is a sentinel and cannot be instantiated > > - Tal > > > - Tal > _______ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le

[Python-Dev] Re: PEP 659: Specializing Adaptive Interpreter

2021-05-13 Thread Christopher Barker
I suggest we keep it really simple, and name the implementation. Building on Steve Holden’s suggestion: There is broad interest in improving the performance of the cPython runtime. (Interpreter?) -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific

[Python-Dev] Re: Keeping Python a Duck Typed Language.

2021-04-22 Thread Christopher Barker
> Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython ___ P

[Python-Dev] Re: Keeping Python a Duck Typed Language.

2021-04-21 Thread Christopher Barker
her of the behavioral constraints that are > required to quack like a sequence. > I'm not sure of the definition of "nominal" typing -- but it absolutely is NOT duck typing (As Luciano pointed out, Alex Martelli coined the term Goose Typing for this). The big distinction is wh

[Python-Dev] Re: PEP 563 and 649: The Great Compromise

2021-04-18 Thread Christopher Barker
importance. Require only a small manageable update for group 2 -- important, but a smaller group of folks that would actually have to change code. (hmm.. maybe not -- not many people write libraries like Pydantic, but all the users of those libraries would need to update their type annotatio

[Python-Dev] Re: PEP 563 and 649: The Great Compromise

2021-04-18 Thread Christopher Barker
ut[22]: {'x': int, 'y': int} Then the only thing that would change with PEP 563 is the default behaviour. If I'm not mistaken, the complexity (and performance hit) of dealing with the whole could be string, could be object, evaluate the string process would be in the type checkers, where performance i

[Python-Dev] Re: In support of PEP 649

2021-04-17 Thread Christopher Barker
: > Indeed -- that is the title of this thread, after all :-) And see others' notes, there seems to be two other places in the stdlib that will be affected. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GU

[Python-Dev] Re: In support of PEP 649

2021-04-16 Thread Christopher Barker
aclasses. Though *maybe* that could be addressed with a dataclasses update -- again, I've only started to think about it -- there was some discussion of that in the BPO, though Eric didn't seem particularly interested. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Tea

  1   2   >