e. The use case of passing a name
into a function (or somewhere else?) and then immediately deleting it is
rare indeed -- not worth new syntax.
-Chris
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Developme
rsation is 20 (!) years too late[*] -- and it did
take place then. It's not going to change now.
-CHB
[*] https://peps.python.org/pep-0308/
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
ail to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/J5RH7ZGWO23APG42E6ZU5QPRXMYKJ7W4/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
On Tue, Jul 4, 2023 at 5:49 PM Chris Angelico wrote:
> On Wed, 5 Jul 2023 at 10:26, Christopher Barker
> wrote:
> > The :problem", as I see it.
> >
> > - The Python standard library is not, and will never be fully
> comprehensive -- most projects req
either.
> I think to achieve a scalable, funded, decentralized, and trustworthy
> package index a DAO makes some amount of sense.
>
I had to look that up: "Decentralized autonomous organization (DAO)"
So, yes.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
could be a pretty low level of effort,
actually. The actual mechanism would be to simply copy it from PyPi once
approved -- not that hard to automate. hmmm
Probably the biggest challenge would be coming up with the criteria for
approval -- not an easy question.
And it would require substantial
ndred such people and you've got something! But
critical mass would be hard to get.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
On Sat, Jul 1, 2023 at 10:24 PM Chris Angelico wrote:
> On Sun, 2 Jul 2023 at 15:11, Christopher Barker
> wrote:
> > The OP of this thread is not alone -- folks want an authoritative source
> -- they may not get that
>
> An authoritative source is absolutely perfect for som
ded, which is a start, but a way for the
community to highlight the cream of the crop, and everyone to see that
would be nice, if it worked.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
ly quickly and there's some
packages there, maybe something good.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
_
end an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/OGFJOPQPNV4YH6QPOAJXKDWVIMXNHHIS/
> Code of Conduct: http://python.org/psf/codeofconduct/
n.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/DPZMOAICSV2YKBYWFSW36LW5GSPZFRNK/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teach
ived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/5EEE27MQZLFYF3HJMFVR3KINPIZB3HRI/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Developmen
cified.
Then the type annotation is left unadulterated -- much easier for the type
checkers.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy,
n-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/ITFYOC4KKBGJ2VRFOOYM4
s://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/RHQWRDV46TPPHTVD5ZRYFHILQM6PZ53T/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, Ph
GCXXVC6YLWM/
> 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
___
n-ideas@python.org/message/R2NBDZHCCTJNRN27XP7PY7QLKDLYKSAW/
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
> ___
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an emai
o python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/RJSQTN6DK5GUHTYP2CSZV7FH45IHUC6X/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
@python.org/message/HU755XCIZZBCG6PYCMQQVEUMNUEOHBZQ/
> 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, C
C code —
but join() us pretty fundamental:-(
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
Python-ideas mailing
under the hood?
Interestingly, neither does the f-string, *if* you include a format
> code with lots of room. I guess str.__format__ doesn't always call
> __str__().
>
Now that you mention that, UserString should perhaps have a __format__,
More evidence that it's not really being maintained.
Th
as@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/KUNHKJJJTSXNSJRBTGZNIA2TGYM5OE7O/
> Code o
on-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/CCZG6ALFEV3B67LENW5ZDJG5XSHKREG4/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
On Tue, Dec 20, 2022 at 8:21 PM Stephen J. Turnbull > UserStrings are not instances of str though. I think THAT is a bug.
>
> I guess, although surely the authors of that class thought about it.
Well, kind of — the entire reason for UserString was that at the time, str
itself could not be
On Tue, Dec 20, 2022 at 6:20 PM Lucas Wiman wrote:
> On Tue, Dec 20, 2022 at 5:38 PM Christopher Barker
> wrote:
>
>> But collections.UserString does exist -- so if you want to subclass, and
>> performance isn't critical, then use that. Steven A pointed out that
>> Us
mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/T7FZ3FIA6INMHQIRVZ3ZZJC
worth more than giving IDEs hints SATO
what to do.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
Python-ideas
ct: 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-ideas mailing list -- p
gitHub issues, and of course discuss.python.org,
which is where much (most) of these kinds of discussion have moved.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy,
. But that gives it a perceived endorsement as
an all-Python standard — I’m suggesting that we wouldn’t want to
accidentally provide a similar perceived endorsement of a particular static
type checker.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software
n-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/CG2IGZSV2Z4YMKLPK5MBWK4K4CDYTAFB/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- S
existing functionality.
>
This is the key point — and you are quite right. I’ll let others comment on
whether this extension to pattern matching makes sense — I haven’t really
dig into it enough to have an opinion.
-CHB
>
> Cheers,
> Matt
>
>
> On Wed, Sep 14, 2022 at 3:43 PM C
ifferent
place, in a different way.
I would be interested in hearing about the use cases you have in mind, and
where that fits into the whole type vs value checking continuum.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software
only rows where value is NULL",
Good example— wouldn’t it be nice if all the database interaction packages
used the same Sentinel for this? In that case it would go in the DB api,
but the idea holds.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
code to use -- a bit like the
built-in Exceptions.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
Python-ideas mai
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/XIYNOYSBYFPVFXPZTM7O6TENSN5S6Q25/
> Code of Conduct: http:/
r my part, I don’t think I’ve ever had a need for a multiset - so a third
party lib is fine.
I have no idea if I’m unusual, but that’s the case you’d need to make.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GU
ved at
> https://mail.python.org/archives/list/python-ideas@python.org/message/EMDUKIHECPQJETKGYNPJPXT7VV6Y2HCH/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Soft
age/JZZ6QJVEJBC4TZF6SUBWD3TUK2RHIRTW/
> 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-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/7XPPPC63XVXFIXP2WIT6ARRX7CTYPRSX/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
( with
extraneous “\r”s in the substrings…
-CHB
On Mon, Jun 20, 2022 at 5:04 PM Christopher Barker
wrote:
> If you are working with bytes, then numpy could be perfect— not a small
> dependency of course, but it should work, and work fast.
>
> And a cython method would be quite easy to write, b
t;
> ___
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
&
d an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/AETGT5HDF3QOFODOWKB4X45ZE4CZ7Y3M/
> Code of Conduct: http://python.org/psf/codeofconduct/
&g
ilman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/6WAMKYXOYA3SKL5HIRZP4WARMYYKXI3Q/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Con
gt;
You have just articulated why I find type annotations so hard to read.
Back OT: add annotations to the examples, and it gets worse. I like it or
not, I suspect annotations are becoming “standard”
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific So
unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/ETCU6O7QGERUFQND5XRBLGHV5OT4CNT3/
> Code of Conduct: http://python.org/
ython.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/WZFC3WAOMTQ2UQIMGBJ2VTBBOE5XUWBR/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Ch
was going to be the first — and that’s been delayed.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
Python-ideas
SZDIZATQDGLXRZVSUSQWBQJ2UUTJ/
> 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
__
e], name: str) ->
bool
Docstring:
True if 'name' is a resource inside 'package'.
Directories are *not* resources.
And check this out:
In [6]: resources.is_resource('importlib','__init__.py')
Out[6]: True
So the __init__.py file is a resource. and:
In [9]: resources.is_resource('importlib','met
want to store resources.
After all, if you want to put modules in a nested dir, you have to add a
__init__.py to the dir as well.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPyth
On Sun, May 15, 2022 at 11:57 PM Greg Ewing
wrote:
> On 16/05/22 5:05 pm, Christopher Barker wrote:
> > a directory is not a binary artifact -- it can't have actually data in
> > it like a file can.
>
> and:
>
> > the entire
> > point of resources is to prov
owed so that when it is known that the package and resources
are stored on the file system then those subdirectory names can be used
directly.
"""
which implies to me that the system is expected to optionally handle
subdirs.
Perhaps you can write a ResourceResader that meets your needs, and it
tions. But no matter how
you slide it, if the types are not homogenous, then there will be some loss
of some sort. Which is why I think it's better to make it explicit.
It's actually hard for me to imagine a case where someone would have mixed
types that wasn't an accident -- another reason to be explicit.
accidentally sent off list.
-CHB
-- Forwarded message -
From: Christopher Barker
Date: Fri, May 13, 2022 at 8:14 PM
Subject: Re: [Python-ideas] Re: Heterogeneous numeric data in statistics
library
To: Cameron Simpson
On Thu, May 12, 2022 at 5:06 PM Cameron Simpson
that there is actually a lot to be done, if you
want the general case.
What do you expect you'd get with the OP's suggestion? You might get the
basic set up code, but that's actually not the hard part of a C extension
anyway. I'm not sure it would buy you much.
-CHB
--
Christopher Barker,
nge, because Python types really are different than C types --
it's not always obvious what you want.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, s
; https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/S7MU7ONVRAVYPXYTYMRGW32NYU3L7RIE/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Pyt
customize your matching function,
you might as just write the code.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
r methods, and it might even be useful in other contexts [*].
I think:
def fun(x, y.z):
...
would work fine, too. e.g. you wouldn't be restricted to using other
parameters.
That being said, I'm still -1 on the idea.
[*] -- the "other contexts" is key for me -- if someone can show t
Bringing this back on list -- I hope that was an accident.
(NOTE: getting a touch off-topic here -- but I do bring it back around at
the end)
On Wed, May 4, 2022 at 4:38 AM Paul Moore wrote:
> On Tue, 3 May 2022 at 17:46, Christopher Barker
> wrote:
> > On Tue, May 3, 2022 at
Sorry - auto-correct is not my friend :-(
-CHB
On Tue, May 3, 2022 at 12:07 PM Ethan Furman wrote:
> On 5/2/22 23:21, Christopher Barker wrote:
>
> > But yes, there are many use cases not suited to dataclasses. The
> question is how many of these would
> > rap pa
On Mon, May 2, 2022 at 9:30 PM Joao S. O. Bueno
wrote:
> Anyway, there is something dataclasses do today that prevent you from jsut
> adding a @dataclass for binding __init__ attributes from an otherwise
> "complete class that does things":
>
I nor anyone else ever claimed dataclasses could be
On Mon, May 2, 2022 at 7:42 PM Steven D'Aprano wrote:
> On Sun, May 01, 2022 at 10:40:49PM -0700, Christopher Barker wrote:
>
> > Yes, any class could use this feature (though it's more limited than
> what
> > dataclasses do) -- what I was getting is is that it would not
On Sun, May 1, 2022 at 1:16 AM Steven D'Aprano wrote:
> > > On Sat, Apr 23, 2022 at 12:11:07PM -0700, Christopher Barker wrote:
> > > > Absolutely. However, this is not an "all Classes" question.
> > > Isn't it? I thought this was a proposal to allow any c
y:
positional vs keyword
*args, **kwargs
keyword-only.
(and all of these from both the caller and callee perspective)
That's a lot of possible combinations -- believe me, it's pretty darn
complex and hard to explain!
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teachi
On Sat, Apr 30, 2022 at 6:40 PM Steven D'Aprano wrote:
> On Sat, Apr 23, 2022 at 12:11:07PM -0700, Christopher Barker wrote:
> > Absolutely. However, this is not an "all Classes" question.
>
> Isn't it? I thought this was a proposal to allow any class to partake in
>
python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/76GFMSU7OVG3GMFXD52TJFSPG47N2QLR/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher
arameters, mutable and immutable.
Anyway, I just thought it should be clearly said.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
_
nything special, or "don't do that"?
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
Python-ideas mailing list --
the API of a
class hierarchy. Indeed, the MRO of a class hierarchy is part of the API.
If you change the MRO, it is a potentially breaking change, just as if a
method is added or removed, or renamed, or ...
Nothing to see here -- this is all deliberate, and useful.
-CHB
--
Christopher B
nt it for lambda functions.
>>
>> Cheers,
>>
>> Pablo and Quimey
>>
>> ___
>> Python-ideas mailing list -- python-ideas@python.org
>> To unsubscribe send an email to python-ideas-le...@python.org
>> h
s that want units built in to Python is "what's so
hard about that?
Ricky wrote:
"Python is so painful to use for units I've actually avoided it,"
Really? have you tried pint? or anything else? what is so painful about
this?
-CHB
--
Christopher Barker, PhD (Chris)
Python Language
ng on here: when I write code that may be
run in the context of someone else's "application" (or my own, two years
later :-) ) -- I want to know exactly what the unit calculations will mean,
and that they won't be messed with at run time by a standard recommended
practice.
-CHB
--
Christophe
is a bad idea.
What I'm not suggesting, because I think it wouldn't be that helpful, and
maybe not possible would be to have something like:
set_units_registry_to(my_units system)
and then have:
distance = 500[miles]
use my_units_system's definition of miles in that module without having
explici
ng dir is global — not a good choice.
The module-scope hammer does not fit every nail. Stop trying to hammer
> in screws.
I don’t know about anyone else, but I’m not arguing for module scope. I’m
arguing against implicit global configuration.
-CHB
--
Christopher Barker, PhD (Chris)
Python
ll break when it's
used in a different context.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
Python-ideas mailin
ere's no point trying to make this scoped, just as we don't have
> lots of other things scoped (like sys.modules). Shared state across
> the application is a *good* thing, not a bad one.
>
Not in this case, it isn't (IMHO :-; )
-CHB
--
Christopher Barker, PhD (Chris)
Python La
ld make a lot of sense to
> offer an easy way to register all of your library's units with the
> system repository, thus making them all available; but that would be
> completely optional to both you and your users.
>
But if I did that, then one lib registering my units with the globa
wrote:
> This message is for those that would like to "play" with a more natural
> looking syntax for units in Python.
>
This is very cool -- thanks!
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
-
lab.research.google.com/github/agile-geoscience/xlines/blob/master/notebooks/13_Physical_units_with_pint.ipynb
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Developmen
me make all sorts of arbitrary decisions about what "mile" and
"oz" and all that means, and it's not going to get broken by someone else
that prefers different uses -- at least if they use the public API.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consu
g. The legend goes that he was only caught because the
bank had a promotional event in which they drew a randomly selected
account -- and found his.
Are you SURE your accounting software is doing the right thing? ;-)
-CHB
Also -- if it uses 64 bit floats, it'll have problems with trillions of
d
in that package -- not any global
setting that a user of the package, or some other package, might mess with?
So what's the point of a global context? Isn't it an accident waiting to
happen?
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific
ndard type system, and in fact, are moving
towards breaking other uses of annotations. Let's not go down that path
again.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
-
e is
using Decimals -- let alone two different third party packages using them
in very different ways -- it's literally impossible for the developer of
package A to know how package B works or that someone might be using both.
Then put all this behind a multithreading web server, and you have a re
head, or setting it on a dividers, but you ARE measuring distance in
latitude minutes.
[2] https://en.wikipedia.org/wiki/API_gravity
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, nump
de, where
1 minute is a nautical mile.
But anyway, a humorous one-off.
But it makes the point that there is no one way to handle units that works
for everyone.
An astonishing amount of “real work” is done with “squishy” units.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teach
ferent
units :-)
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
Python-ideas mailing list -- python-idea
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscrib
ed at
> https://mail.python.org/archives/list/python-ideas@python.org/message/ZJJPUWUUCWFRAZYNG46EFH3LFG7RZB6A/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
-
nto a slower, more fragile, harder to understand, less user-friendly
> regex.
>
I do agree there.
I also agree with Chris A's suggestion:
*some* scanner / parser that could be used for this and many other things
that's significantly more straightforward that regex's.
-CHB
--
Christopher
deas@python.org/message/QM7MIHKP2GSBN6TYMPDIFKGHGC7KEH6E/
> 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,
y for that horrible name ;-)
), but apparently you can't use __slots__ in a tuple subclass ('cause
tuple's already using it ??) -- but that could be done in a builtin. then
it wouldn't need a __dict__
There's also various options for storing the fields -- I only tried the
first one I thought of.
This remin
too if you wanted.
Anyway -- that's in idea -- details to be fleshed out if anyone wanted to
pursue this.
-CHB
On Sat, Mar 26, 2022 at 1:49 PM Christopher Barker
wrote:
>
> If I wanted to submit this as a pep (or even just submit this for a
>> potential sponsorship), is the best way
n, which would also work. mixins are great
when you have multiple features that you need to mix and match in various
ways.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and
ful” and
“super considered helpful” — the thing is, they both say the same thing— in
order for super() to work you have to follow certain rules. And then it
works predictably. Whether that’s helpful or not depends on your use case.
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consultin
ython-ideas@python.org/message/Q6JTO37I42OKOAIJVBD63UL5QO3KEYLI/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Developmen
deas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/NH5JOZUHEN7TPNCFDQKJXFJHXQL6MTI2/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
1 - 100 of 869 matches
Mail list logo