best way to remove leading zeros from a tuple like string

Chris Angelico rosuav at gmail.com
Tue May 22 11:12:04 EDT 2018


On Wed, May 23, 2018 at 12:50 AM, Grant Edwards
<grant.b.edwards at gmail.com> wrote:
> On 2018-05-22, Thomas Jollans <tjol at tjol.eu> wrote:
>> On 2018-05-20 23:54, Paul wrote:
>>> you will find several useful sites where you can test regexes.  Regex
>>> errors are very common, even after you have experience with them.
>>
>> What's the benefit of those compared to simply trying out the regex in a
>> Python console?
>
> Doesn't everybody have an executable file in their home directory
> named "testit.py" which is continually morphed to test different
> Python features?
>

Certainly not! Mine is ~/tmp/runme.py in case I need other files with it.

:)

ChrisA



More information about the Python-list mailing list