I think we have discussed this a few times. There are tradeoffs in computer
science and obviously a compiled language with some optimization using
low-level data structures does much better at solving simple problems.
Interpreted languages often have serious overhead to start with and allow all
On Sun, Feb 14, 2021 at 3:05 PM Christian Gollwitzer
wrote:
> Am 14.02.21 um 11:12 schrieb Paul Rubin:
> > Christian Gollwitzer writes:
> >> He wants that neoGFX is scriptable in Python, but instead of linking
> >> with CPython, he will write his own Python implementation instead,
> >> because C
On 14/02/2021 23:00, Christian Gollwitzer wrote:
Am 14.02.21 um 11:12 schrieb Paul Rubin:
Christian Gollwitzer writes:
He wants that neoGFX is scriptable in Python, but instead of linking
with CPython, he will write his own Python implementation instead,
because CPython is slow/not clean/ what
Am 14.02.21 um 11:12 schrieb Paul Rubin:
Christian Gollwitzer writes:
He wants that neoGFX is scriptable in Python, but instead of linking
with CPython, he will write his own Python implementation instead,
because CPython is slow/not clean/ whatever. He doesn't seem to
understand that this is a
On 14/02/2021 21:14, Chris Green wrote:
What's the easiest way to change the first occurrence of a specified
character in a string?
By using a grown up (i.e. non-toy) programming language.
/Flibble
--
😎
--
https://mail.python.org/mailman/listinfo/python-list
MRAB wrote:
> On 2021-02-14 21:14, Chris Green wrote:
> > What's the easiest way to change the first occurrence of a specified
> > character in a string?
> >
> > E.g. I want to change linux-raid.vger.kernel.org to
> > linux-r...@vger.kernel.org, it's a fairly general requirement of
> > needing to
Gary Herron wrote:
>
> On 2/14/21 1:14 PM, c...@isbd.net wrote:
> > What's the easiest way to change the first occurrence of a specified
> > character in a string?
> >
> > E.g. I want to change linux-raid.vger.kernel.org to
> > linux-r...@vger.kernel.org, it's a fairly general requirement of
> >
The string type has a replace function that does what you want.
Except you can't change a string -- they are immutable -- so this
creates a new string.
>>> s = 'linux-raid.vger.kernel.org'
>>> new_s = s.replace('.', '@', 1)
>>> new_s
'linux-r...@vger.kernel.org'
On 2/14/21 1:14 PM, c...@isb
with_at = with_dots.replace(".", "@", 1)
https://docs.python.org/3/library/stdtypes.html#str.replace
--Ned.
On Sunday, February 14, 2021 at 4:18:22 PM UTC-5, Chris Green wrote:
> What's the easiest way to change the first occurrence of a specified
> character in a string?
>
> E.g. I want to c
On 2021-02-14 21:14, Chris Green wrote:
What's the easiest way to change the first occurrence of a specified
character in a string?
E.g. I want to change linux-raid.vger.kernel.org to
linux-r...@vger.kernel.org, it's a fairly general requirement of
needing to change '.' to '@'.
Alternatively is
Check out re.sub's "count" parameter.
https://stackoverflow.com/questions/3951660/how-to-replace-the-first-occurrence-of-a-regular-expression-in-python
On Sun, Feb 14, 2021 at 1:20 PM Chris Green wrote:
> What's the easiest way to change the first occurrence of a specified
> character in a stri
On 2021-02-14 20:50, Chris Green wrote:
It isn't clear from the documentation. Does email.message.get() care
about the case of the header it's getting?
I checking mailing list mails and the "List-Id:" header is a bit
'mixed', i.e. it can be List-Id:, or List-ID: or list-id:, will
email.message.g
What's the easiest way to change the first occurrence of a specified
character in a string?
E.g. I want to change linux-raid.vger.kernel.org to
linux-r...@vger.kernel.org, it's a fairly general requirement of
needing to change '.' to '@'.
Alternatively is there an RE 'match' function that would t
It isn't clear from the documentation. Does email.message.get() care
about the case of the header it's getting?
I checking mailing list mails and the "List-Id:" header is a bit
'mixed', i.e. it can be List-Id:, or List-ID: or list-id:, will
email.message.get("List-Id:", "unknown") find all of them
On 13/02/2021 19:12, Dan Stromberg wrote:
> On Sat, Feb 13, 2021 at 10:25 AM duncan smith
> wrote:
>
>> On 12/02/2021 03:04, Terry Reedy wrote:
>>> On 2/11/2021 3:22 PM, duncan smith wrote:
>>>
It seems that I can mutate a deque while iterating over it if I
assign to an index, bu
On 14/02/2021 09:10, Michał Jaworski wrote:
Wow, that thread is entertaining. It seems that neos is one of it’s kind. What
I hope is that it will support TempleOS.
Going back going back to your original question Mr. Fibble. If ISO standard is
what you really need to finish your project you can
On 14/02/2021 09:10, Michał Jaworski wrote:
Wow, that thread is entertaining. It seems that neos is one of it’s kind. What
I hope is that it will support TempleOS.
Going back going back to your original question Mr. Fibble. If ISO standard is
what you really need to finish your project you can
Of course not.
Its like saying "JAVA sucks" without any citation or proof.
And I'm just curious - why not use C directly, since he is so great
developer for whatever task he needs to do?
Fun time reading... Hope it will continue.
Thank you.
On Sun, Feb 14, 2021, 1:22 AM Christian Gollwitzer
-- Forwarded message -
From: Igor Korot
Date: Sat, Feb 13, 2021, 9:20 PM
Subject: Re: Sketch
To: Mr Flibble
Cc:
Hi,
On Sat, Feb 13, 2021, 9:12 PM Mr Flibble
wrote:
> On 14/02/2021 05:04, Mark Lawrence wrote:
> > On Sunday, February 14, 2021 at 5:01:46 AM UTC, Mr Flibble wr
> On 14 Feb 2021, at 09:42, Abdur-Rahmaan Janhangeer
> wrote:
>
> Greetings all,
>
> on 3.7 when i do
>
> $ python -m venv venv
>
> it creates a venv in venv folder
>
> but on 3.9 it returns no such file or directory
>
> os: windows. Any ideas on why the behaviour changes?
I did this on
Greetings all,
on 3.7 when i do
$ python -m venv venv
it creates a venv in venv folder
but on 3.9 it returns no such file or directory
os: windows. Any ideas on why the behaviour changes?
--
https://mail.python.org/mailman/listinfo/python-list
Am 14.02.21 um 01:19 schrieb Chris Angelico:
On Sun, Feb 14, 2021 at 11:14 AM Mr Flibble
wrote:
On 13/02/2021 23:30, Igor Korot wrote:
Hi,
But most importantly - what is the reason for this ?
I mean - what problems the actual python compiler produce?
Thank you.
I am creating neos as I need
Wow, that thread is entertaining. It seems that neos is one of it’s kind. What
I hope is that it will support TempleOS.
Going back going back to your original question Mr. Fibble. If ISO standard is
what you really need to finish your project you can always take up this
challenge and standardiz
23 matches
Mail list logo