Re: regular expressions help

2019-09-20 Thread Barry Scott
When I'm debugging a regex I make the regex shorter and shorter to figure out what the problem is. Try starting with re.compile(r'm') and then add the chars one by one seeing what happens as the string gets longer. Barry > On 19 Sep 2019, at 09:41, Pradeep Patra wrote: > > I am using python 2

Re: Won't Uninstall

2019-09-20 Thread MRAB
On 2019-09-20 03:59, Fred Vincent wrote: Python 3.7.4 won’t uninstall, I have tried doing what I can such as going to the control panel and uninstalling the program there, but that did not work. Since I am unable to delete it I am unable to download a different version of python. How do I fix

Won't Uninstall

2019-09-20 Thread Fred Vincent
Python 3.7.4 won’t uninstall, I have tried doing what I can such as going to the control panel and uninstalling the program there, but that did not work. Since I am unable to delete it I am unable to download a different version of python. How do I fix this and fully uninstall python? Sent from

Re: exec and globals and locals ...

2019-09-20 Thread jfong
Peter Otten於 2019年9月20日星期五 UTC+8下午3時31分48秒寫道: > jf...@ms4.hinet.net wrote: > > x = 3 > def foo(): > > ... exec("print(globals(), locals()); x = x + 1; print(globals(), > > locals())") ... > foo() > > {'foo': , '__package__': None, '__builtins__': > > {, '__loader__': > {'_froze

Re: exec and globals and locals ...

2019-09-20 Thread Peter Otten
jf...@ms4.hinet.net wrote: x = 3 def foo(): > ... exec("print(globals(), locals()); x = x + 1; print(globals(), > locals())") ... foo() > {'foo': , '__package__': None, '__builtins__': > {, '__loader__': {'_frozen_importlib.BuiltinImporter'>, '__doc__': None, '__name__': > {'__