Re: regex pattern to extract repeating groups

2018-08-27 Thread MRAB
On 2018-08-28 00:58, Malcolm wrote: On 28/08/2018 7:09 AM, John Pote wrote: On 26/08/2018 00:55, Malcolm wrote: I am trying to understand why regex is not extracting all of the characters between two delimiters. The complete string is the xmp IFD data extracted from a .CR2 image file. I do

Re: regex pattern to extract repeating groups

2018-08-27 Thread Malcolm
On 28/08/2018 7:09 AM, John Pote wrote: On 26/08/2018 00:55, Malcolm wrote: I am trying to understand why regex is not extracting all of the characters between two delimiters. The complete string is the xmp IFD data extracted from a .CR2 image file. I do have a work around, but it's messy a

Re: regex pattern to extract repeating groups

2018-08-27 Thread John Pote
On 26/08/2018 00:55, Malcolm wrote: I am trying to understand why regex is not extracting all of the characters between two delimiters. The complete string is the xmp IFD data extracted from a .CR2 image file. I do have a work around, but it's messy and possibly not future proof. Do you mean f

Re: python 2 urlopen vs python 3 urlopen

2018-08-27 Thread Terry Reedy
On 8/27/2018 1:25 PM, Sean Darcy wrote: python 2 : python Python 2.7.15 (default, May 15 2018, 15:37:31) . import urllib2 res = urllib2.urlopen('https://api.ipify.org').read() print res www.xxx.yyy.zzz In Python 2, this is the printed representation of a bytestring. python3 python3 Py

Re: regex pattern to extract repeating groups

2018-08-27 Thread Rob Gaddi
On 08/25/2018 04:55 PM, Malcolm wrote: I am trying to understand why regex is not extracting all of the characters between two delimiters. The complete string is the xmp IFD data extracted from a .CR2 image file. I do have a work around, but it's messy and possibly not future proof. Any insig

Re: python 2 urlopen vs python 3 urlopen

2018-08-27 Thread Chris Angelico
On Tue, Aug 28, 2018 at 3:25 AM, Sean Darcy wrote: > python 2 : > > python > Python 2.7.15 (default, May 15 2018, 15:37:31) > . import urllib2 res = urllib2.urlopen('https://api.ipify.org').read() print res > www.xxx.yyy.zzz > > python3 > > python3 > Python 3.6.6 (default, Jul 1

python 2 urlopen vs python 3 urlopen

2018-08-27 Thread Sean Darcy
python 2 : python Python 2.7.15 (default, May 15 2018, 15:37:31) . >>> import urllib2 >>> res = urllib2.urlopen('https://api.ipify.org').read() >>> print res www.xxx.yyy.zzz python3 python3 Python 3.6.6 (default, Jul 19 2018, 16:29:00) ... >>> from urllib.request import urlopen >>> res = url

regex pattern to extract repeating groups

2018-08-27 Thread Malcolm
I am trying to understand why regex is not extracting all of the characters between two delimiters. The complete string is the xmp IFD data extracted from a .CR2 image file. I do have a work around, but it's messy and possibly not future proof. Any insight greatly appreciated. Malcolm My tes

Data Science News Issue 2 released

2018-08-27 Thread Karthikeyan A K via Python-list
Hello All, We have released Issue 2 of Data Science news. One can get it here https://datasciencenews.herokuapp.com/2018/08/26/issue-2.html - Karthikeyan A K -- https://mail.python.org/mailman/listinfo/python-list

Re: Module not found

2018-08-27 Thread Peter Otten
Sharan Basappa wrote: > I am running a program that I got as reference from GitHub. > I am running on windows OS. > > Here is a snippet of the code (initial few lines). > > #!/usr/bin/env python > # -*- coding: utf-8 -*- > __author__ = 'Shilin He' > > import sys > sys.path.insert(0, 'D:\Project

pip not resolving newer package than required dependency

2018-08-27 Thread adam . preble
I have a module with a dependency specifically on pillow>=4.2.1. We are using an internal PyPI that has removed the pillow 4.x series, but it does have 5.2.0. If we try to install pillow>=4.2.1 it doesn't find anything. If we just instruct pip to install pillow, then it will end up installing pi

Re: Module not found

2018-08-27 Thread Larry Martell
On Mon, Aug 27, 2018 at 11:20 AM, Sharan Basappa wrote: > I am running a program that I got as reference from GitHub. > I am running on windows OS. > > Here is a snippet of the code (initial few lines). > > #!/usr/bin/env python > # -*- coding: utf-8 -*- > __author__ = 'Shilin He' > > import sys >

Module not found

2018-08-27 Thread Sharan Basappa
I am running a program that I got as reference from GitHub. I am running on windows OS. Here is a snippet of the code (initial few lines). #!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Shilin He' import sys sys.path.insert(0, 'D:\Projects\Initiatives\machine learning\loglizer-mast