[Python-Dev] About "Coverity Study Ranks LAMP Code Quality"

2006-03-13 Thread fermigier
http://www.internetnews.com/dev-news/article.php/3589361 "Perl had a defect density of only 0.186. In comparison Python had a defect density of 0.372 and PHP was actually above both the baseline and LAMP averages at 0.474." This is of course a PR stunt. But I'm wondering if the actual "bugs" list

Re: [Python-Dev] PEP 557: Data Classes

2017-09-09 Thread Stéfane Fermigier
it_price, other.quantity_on_hand) > return NotImplemented > > Data Classes saves you from writing and maintaining these functions. > > The PEP is largely complete, but could use some filling out in places. > Comments welcome! > > Eric. > > P.S. I wrote this PEP

Re: [Python-Dev] Investigating time for `import requests`

2017-10-03 Thread Stéfane Fermigier
per is able to run hundreds of tests in less that 1s. Note: In my projects, it take 3-4 seconds just to collect them (using pytest --collect-only), but I suspect Python's startup time is only responsible for a small part of this delay. Still, this is an important point to keep in mind.

Re: [Python-Dev] PEP 557: Data Classes

2017-10-12 Thread Stéfane Fermigier
ld help implement DDD technical concepts in Python, but its terminology should not conflict the DDD terminology, if we want to avoid confusion. Cheers, S. -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/in/sfermigier Founder & CEO, Abili

Re: [Python-Dev] PEP 557: Data Classes

2017-10-12 Thread Stéfane Fermigier
On Thu, Oct 12, 2017 at 10:20 AM, Mike Miller wrote: > > On 2017-10-12 00:36, Stéfane Fermigier wrote: > >> "An object that is not defined by its attributes, but rather by a thread >> of continuity and its identity." (from https://en.wikipedia.org/wiki/ >>

Re: [Python-Dev] PEP 563: Postponed Evaluation of Annotations

2017-11-02 Thread Stéfane Fermigier
ents ): def say_hello(user: User): return {'hello': user.username} => In each of the examples, the type annotation are used at runtime by the IoC container to inject an object of the appropriate type, based on some specifications. They may or may not be used by a typechecker too

Re: [Python-Dev] Remove typing from the stdlib

2017-11-03 Thread Stéfane Fermigier
yping module at > runtime. > They already do, as I've noted in my message about dependency injection, and I find this quite elegant. Previously, similar projects used decorators, or less elegant constructs. S. -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier

Re: [Python-Dev] Slipping Python 3.5.5rc1 and 3.4.8rc1 because of a Travis CI issue--can someone make Travis CI happy?

2018-01-22 Thread Stéfane Fermigier
hem because Travis CI is unhappy. All three CI tests fail > in the same way, reporting this error: > > The command "pyenv global system 3.5" failed and exited with 1 during . > > This seems to be related to https://github.com/travis-ci/travis-ci/issues/8363 S. -- Stefa

[Python-Dev] Meta-question about this mailing list

2018-04-25 Thread Stéfane Fermigier
eems the migration didn't work that well and the service shouldn't been relied upon. Regards, S. -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/in/sfermigier Founder & CEO, Abilian - Enterprise Social Software - http://www.a

Re: [Python-Dev] Examples for PEP 572

2018-07-04 Thread Stéfane Fermigier
On Wed, Jul 4, 2018 at 12:36 PM Stéfane Fermigier wrote: > > And dissimilar to countries where CS is not taught in schools, or another > language is used (Scratch or other block-languages are usually popular). > Just found: https://www.ibtimes.co.uk/coding-uk-classroom-python-over

Re: [Python-Dev] Examples for PEP 572

2018-07-04 Thread Stéfane Fermigier
bably more than 5 times more non professional Python programmers in France (counting only the high-school pupils, not other categories such as their teachers, but also scientist, sysadmins or hobbyist) than professional programmers. Next year it will be (more than) 1 to 10. The year after that, 1 t

[Python-Dev] Fwd: Examples for PEP 572

2018-07-04 Thread Stéfane Fermigier
mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/sfermigier%2Blists%40gmail.com > -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/

Re: [Python-Dev] Python Language Governance Proposals

2018-10-23 Thread Stéfane Fermigier
alize the existing concept of "Python teams"; > Give more autonomy to Python teams; > Replace the BDFL (Guido van Rossum) with a new "Python Core Board" of > 3 members which have limited roles. Their key role is mostly to decide > how a PEP is approved (or rejected or

[Python-Dev] Re: Remove formatter module

2020-11-24 Thread Stéfane Fermigier
ail.sourceforge.net/ S. -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/in/sfermigier Founder & CEO, Abilian - Enterprise Social Software - http://www.abilian.com/ Chairman, National Council for Free & Open Source Software (CNLL) - http://c

[Python-Dev] Re: [Python-ideas] Re: Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Stéfane Fermigier
On Wed, Feb 24, 2021 at 1:47 PM Stéfane Fermigier wrote: > > So IMHO the best way to implement solution 3 would be by using some > variant of the approach popularized by Nix (repository of immutable > packages + links to each virtualenv). > Another benefit of this kind of ap

[Python-Dev] Re: [Python-ideas] Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Stéfane Fermigier
> 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.

[Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Stéfane Fermigier
-dev@python.org/message/OZRHP3Q6EZNCPCTEEXLZGOCTGY6B7YFW/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/in/sfermigier Founder & CEO, Abilian - Enterprise Social Software - http://www.abi

[Python-Dev] Re: [Python-ideas] Re: Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Stéfane Fermigier
On Wed, Feb 24, 2021 at 12:42 PM Paul Moore wrote: > On Wed, 24 Feb 2021 at 10:55, Stéfane Fermigier wrote: > > There is probably a clever way to reuse common packages (probably via > clever symlinking) and reduce the footprint of these installations. > > Ultimately the

[Python-Dev] Re: Typing syntax and ecosystem, take 2

2021-04-13 Thread Stéfane Fermigier
-functional-python#languages ), some with desirable (for some people at least) characteristics (homoiconic syntax, language-level support for actors and functional programming, pattern matching, etc.). They have very limited success in terms of adoption which is probably a lesson to keep in mind.

[Python-Dev] Re: Typing syntax and ecosystem

2021-04-14 Thread Stéfane Fermigier
v@python.org/message/2DMJPVE4T6SMXIPQJVWOOSYWJX6DA22H/ > > Code of Conduct: http://python.org/psf/codeofconduct/ > > > > -- > Luciano Ramalho > | Author of Fluent Python (O'Reilly, 2015) > | http://shop.oreilly.com/product/0636920032519.do > | Technical Principal

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Stéfane Fermigier
ightly higher of committers (50+) over the last year, similar to over previous years (including those that seem more active in terms of commit counts on the graph, like around 2010). S. -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/in/sfermigier

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Stéfane Fermigier
her tools. But the good news is that some of his projects have been picked up by other contributors, as the "Pallets" project, and, as a coincidence, they have made major new releases of most of Armin's old projects just a couple of days ago: https://www.palletsprojects.com/blog/flask

Re: [Python-Dev] PEP 544: Protocols - second round

2017-06-22 Thread Stéfane Fermigier
yCharm is able to do similar things (see https://blog.jetbrains.com/pycharm/2013/02/dynamic-runtime-type-inference-in-pycharm-2-7/ ). S. -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/in/sfermigier Founder & CEO, Abilian - Enterprise Social S

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

2022-01-08 Thread Stéfane Fermigier
e): … One could even argue that the “= None” part would be redundant (def f(x: int?): ...) and could be made optional. But that would open another can of worms. S. -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/in/sfermigier Founder & C

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

2022-01-09 Thread Stéfane Fermigier
m not proposing this kind of change) one could argue that 'list[int]’ doesn’t really relate to how lists are constructed or how the bracket operator is used in regular Python. A more intuitive construct (from this point of view) could have been ‘[int…]’. Same for dictionaries: ‘dict[int, s

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

2022-02-07 Thread Stéfane Fermigier
gt;> 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/KT6TGU

[Python-Dev] Re: PEP 638: Syntactic macros

2023-02-02 Thread Stéfane Fermigier
nicode characters) and operations could have some value, but also the drawback of tremendous additional complexity, specially if done in the most generic way. NB: on a very basic level, I remember trying, a few years ago, to use the Unicode "empty set" symbol as a synonym for set(), and it d

[Python-Dev] Re: PEP 638: Syntactic macros

2023-02-03 Thread Stéfane Fermigier
" On Fri, Feb 3, 2023 at 12:28 PM Stephen J. Turnbull < stephenjturnb...@gmail.com> wrote: > Stéfane Fermigier writes: > > > NB: on a very basic level, I remember trying, a few years ago, to use > the > > Unicode "empty set" symbol as a synonym for

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

2020-06-26 Thread Stéfane Fermigier
Using multimethods, Clojure lets you do it based on any arbitrary function. That's a pretty powerful concept. It comes down to the principle that programmers using a language should use the language's own best idioms. Trying to write Scala-like code in Clojure is going to have its difficult

[Python-Dev] Re: Recent PEP-8 change

2020-06-30 Thread Stéfane Fermigier
...@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/T55AGV7XPQ7YHU2VFIBHAWUZHEMZ43R3/ >> Code of Conduct: http://python.org/psf/codeofconduct/ >> > __