On 2022-05-12, Mats Wichmann wrote:
> On 5/12/22 10:25, Dan Stromberg wrote:
>> Hi folks.
>>
>> I heard there's a Windows-like "py" command for Linux (and Mac?).
>>
>> I'm finally getting to porting a particular project's Python 2.7 code to
>> 3.x, and one of the first steps will probably be
On 2022-06-28, Chris Angelico wrote:
> On Wed, 29 Jun 2022 at 01:37, נתי שטרן wrote:
>> headers["Authorization"] = "Basic
>> YjMwMzcwODY3NTUzNDMwNTg5NzA2MjkyNDFmMDE1YWY6VjNKYTk2Y1F4RTFzeTdYbzRnbkt0a2k1djhscXUyU01oSE5VWUwwRg=="
>>
>
> The error is that you just revealed your credentials to
On 2022-06-08, Dave wrote:
> I hate regEx and avoid it whenever possible, I’ve never found something that
> was impossible to do without it.
I love regular expressions and use them where appropriate. Saves tons of
code and is often much more readable than the pages of code required to
do the
On 2022-06-08, Christian Gollwitzer wrote:
> Am 07.06.22 um 23:01 schrieb Christian Gollwitzer:
>
>>> In [3]: re.sub(r'^\d+\s*', '', s) Out[3]: 'Trinket'
>>>
>
> that RE does match what you intended to do, but not exactly what you
> wrote in the OP. that would be '^\d\d.' start with exactly two
On 2022-06-08, Dave wrote:
> Hi All,
>
> I decided to start a new thread as this really is a new subject.
>
> I've got two that appear to be identical, but fail to compare. After getting
> the ascii encoding I see that they are indeed different, my question is how
> can I replace the \u2019m
On 2022-06-08, dn wrote:
> On 08/06/2022 10.18, De ongekruisigde wrote:
>> On 2022-06-08, Christian Gollwitzer wrote:
>>> Am 07.06.22 um 21:56 schrieb Dave:
>>>> It depends on the language I’m using, in Objective C, I’d use isNumeric,
>>>> just wante
On 2022-06-07, Stefan Ram wrote:
> Dave writes:
>>Example: if "05 Trinket" I want "Trinket"
>
> We're not supposed to write complete solutions,
Okay, wasn't aware of this group policy; will keep it in mind.
--
You're rewriting parts of Quake in *Python*?
MUAHAHAHA
--
ileName[0].isdigit() and myCompareFileName[1].isdigit():
> myCompareFileName = myCompareFileName[3:]
>
> if myCompareFileName != myTitleName:
> print('File Name Mismatch - Artist: ',myArtistName,' Album:
> ',myAlbumName,' Track:',myTitleName,' File: ',myFile)
> Thanks
On 2022-06-08, Christian Gollwitzer wrote:
> Am 07.06.22 um 21:56 schrieb Dave:
>> It depends on the language I’m using, in Objective C, I’d use isNumeric,
>> just wanted to know what the equivalent is in Python.
>>
>
> Your problem is also a typical case for regular expressions. You can
>
On 2022-06-07, Dave wrote:
> Hi,
>
> I’m new to Python and have a simple problem that I can’t seem to find the
> answer.
>
> I want to test the first two characters of a string to check if the are
> numeric (00 to 99) and if so remove the fist three chars from the string.
>
> Example: if “05
On 2022-06-08, 2qdxy4rzwzuui...@potatochowder.com
<2qdxy4rzwzuui...@potatochowder.com> wrote:
> On 2022-06-08 at 08:07:40 -0000,
> De ongekruisigde wrote:
>
>> Depending on the problem a regular expression may be the much simpler
>> solution. I love them for e.g. te
-06-09 at 03:18:56 +1000,
>> > Chris Angelico wrote:
>> >
>> > > On Thu, 9 Jun 2022 at 03:15, <2qdxy4rzwzuui...@potatochowder.com> wrote:
>> > > >
>> > > > On 2022-06-08 at 08:07:40 -,
>> > > > De ongekruisigde wro
On 2023-11-01, Mats Wichmann wrote:
> On 11/1/23 05:35, Simon Connah via Python-list wrote:
>> OK. I've been doing some reading and that you should avoid regex to check
>> email addresses. So what I was thinking was something like this:
>
> To be a little more specific, Avoid Rolling Your Own
On 2023-10-20, Chris Angelico wrote:
> On Fri, 20 Oct 2023 at 22:31, Janis Papanagnou via Python-list
> wrote:
>>
>> On 19.10.2023 01:23, Chris Angelico wrote:
>> >
>> > Broadly speaking, your ideas are great. Any programming language CAN
>> > be used for the server (and I've used several, not
14 matches
Mail list logo