On Wed, Feb 16, 2022 at 07:01:42PM -0600, Tim Peters wrote:
> You may not realize how easy this is? Just in case: go to a shell and type
>
> pip install regex
>
> (or, on Windows, "python -m pip install regex" in a DOS box).
>
> That's it. You're done.
Easier said than actually done.
https://
[Steven D'Aprano ]
> [skipping FUD about pip]
If the OP: has problems with pip they can't easily resolve, I expect
they'll say so. In my experience, effective help consists of sticking
to the simplest things that can possibly work at first, not bury a
questioner with an exhaustive account of every
I have no problem installing software via pip. This is a large project that has
many other dependencies already managed via pip and virtualenv.
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to python-ideas-le...@py
And, as it turns out, I already had it installed via some transitive
dependency. The bigger task will be to testing. Indeed it may be as easy as
"import regex as re" but I need to test and make sure my regexes still work as
expected and that the performance doesn't take a big hit. Trust, but ve
And unfortunately it does appear that my app took an almost a 20% performance
hit from using regex instead of re, unfortunately. Processing time for a test
dataset with 700MB of logs went from 77 seconds with the standard library re to
92 seconds with regex. Profiling confirms that the time sp
[J.B. Langston ]
> And unfortunately it does appear that my app took an almost a 20%
> performance hit from using regex instead of re, unfortunately.
> Processing time for a test dataset with 700MB of logs went from
> 77 seconds with the standard library re to 92 seconds with regex.
> Profiling c
I see. I guess the ambiguity would stem from trying to force match objects into
the sequence protocol even though the custom __getitem__() means that they're
essentially a mixed mapping:
Mapping[int | str, str | None]
If we avoid any sort of "smart" length derived from only mo.groups() or
As it turns out, there actually is a wrapper class in the stdlib which
encapsulates heapq: queue.PriorityQueue, at least for the most part. Although
its intention is not to be a wrapper class for heapq, it is one by nature. But
for the sake of its actual purpose, threading, it comes with overhea
Consider the following scenario:
1) You have to format your pc.
2) You copy your python projects to your hard disk along with the virtual
environment(I keep the virtual environment in the project folder only).
3)When you copy your projects back after successfully formatting your pc, the
useless v
On Fri, 18 Feb 2022 at 13:12, Vishesh Mangla wrote:
>
> Consider the following scenario:
> 1) You have to format your pc.
> 2) You copy your python projects to your hard disk along with the virtual
> environment(I keep the virtual environment in the project folder only).
> 3)When you copy your pr
`pip freeze` can be useful for this kind of thing
On Thu, 17 Feb 2022 at 18:19, Chris Angelico wrote:
> On Fri, 18 Feb 2022 at 13:12, Vishesh Mangla
> wrote:
> >
> > Consider the following scenario:
> > 1) You have to format your pc.
> > 2) You copy your python projects to your hard disk along
11 matches
Mail list logo