From grace.carey at 101ways.com Mon Jul 2 06:32:37 2018 From: grace.carey at 101ways.com (Grace Carey) Date: Mon, 2 Jul 2018 11:32:37 +0100 Subject: [python-uk] NumPy Engineer to work on medical diagnostic tools in Oxford Message-ID: Hi all, 101 Ways have recently taken on a new project in Oxford working with a startup who are building a medical diagnostic tool and we are looking to hire a NumPy engineer to join the team, alongside a CTO who is more frontend focused (react). They are working on a handheld diagnostic device, currently, in the R&D stage, that is based upon 10 years of academic research from Oxford University's Chemistry department - who also developed the blood glucose testing device and the handheld DNA sequencer. The software you will be working on is an internal application for capturing the timeline of experiments and deriving computational insights in real time to aid exploration of experimental data. The gig offers a great opportunity to gain experience developing and operating serverless applications as they are 100% AWS Lambda. Current Stack: Python Flask React.js + Redux AWS Lambda AWS DynamoDB AWS CloudFormation / CodePipeline / CodeBuild If this sounds interesting, get in touch if you'd like to know more specifics or details about the competitive day rate on offer. Best, Grace -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntoll at ntoll.org Mon Jul 2 17:20:43 2018 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Mon, 2 Jul 2018 22:20:43 +0100 Subject: [python-uk] Fwd: [PSF-Community] Python Software Foundation Survey In-Reply-To: References: Message-ID: <362665fd-9735-5ba8-a9f5-2bbac25d7394@ntoll.org> Hi Folks, The PSF would like to know what you know about the PSF. If I say any more, I'll defeat the object of the questionnaire linked to in the forwarded email below. The more answers we get from the Python community, the more voices are heard. Please consider taking just a moment or two to fill out the survey. Best wishes, Nicholas. -------- Forwarded Message -------- Subject: [PSF-Community] Python Software Foundation Survey Date: Mon, 2 Jul 2018 10:27:43 -0700 From: Betsy Waliszewski To: PSF Community Hello, fellow Pythonistas! The PSF would very much like to find out what you do - /or don't/ - know about our foundation. Our?short survey takes just 5 minutes to complete and?your?input will help us be better at communicating our initiatives and goals. Link to the survey - https://goo.gl/3r2C9z Thanks in advance for your help. Cheers, Betsy -------------- next part -------------- _______________________________________________ PSF-Community mailing list PSF-Community at python.org https://mail.python.org/mailman/listinfo/psf-community From jon+python-uk at unequivocal.eu Tue Jul 3 07:37:57 2018 From: jon+python-uk at unequivocal.eu (Jon Ribbens) Date: Tue, 3 Jul 2018 12:37:57 +0100 Subject: [python-uk] Fwd: [PSF-Community] Python Software Foundation Survey In-Reply-To: <362665fd-9735-5ba8-a9f5-2bbac25d7394@ntoll.org> References: <362665fd-9735-5ba8-a9f5-2bbac25d7394@ntoll.org> Message-ID: <20180703113757.3t4i3wwdxh2oj2vj@unequivocal.eu> On Mon, Jul 02, 2018 at 10:20:43PM +0100, Nicholas H.Tollervey wrote: > Hi Folks, > > The PSF would like to know what you know about the PSF. > > If I say any more, I'll defeat the object of the questionnaire > linked to in the forwarded email below. Sorry, couldn't do it - in common with most surveys, it's far too badly written to be answerable in any meaningful way. Generally by the time I get to the third unanswerable question I give up. From ntoll at ntoll.org Tue Jul 3 08:17:14 2018 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Tue, 3 Jul 2018 13:17:14 +0100 Subject: [python-uk] Fwd: [PSF-Community] Python Software Foundation Survey In-Reply-To: <20180703113757.3t4i3wwdxh2oj2vj@unequivocal.eu> References: <362665fd-9735-5ba8-a9f5-2bbac25d7394@ntoll.org> <20180703113757.3t4i3wwdxh2oj2vj@unequivocal.eu> Message-ID: <24501e8f-9645-d464-cb66-64216aaa9d30@ntoll.org> On 03/07/18 12:37, Jon Ribbens wrote > Sorry, couldn't do it - in common with most surveys, it's far too > badly written to be answerable in any meaningful way. Generally > by the time I get to the third unanswerable question I give up. :-( I'm not responsible for the survey, but I can give feedback to those who wrote it. Care to tell me (off list?) what the problem was? N. From sophie.hendley at digvis.co.uk Thu Jul 5 10:11:48 2018 From: sophie.hendley at digvis.co.uk (Sophie Hendley) Date: Thu, 5 Jul 2018 15:11:48 +0100 Subject: [python-uk] Python job/ Remote/ Flexible working Message-ID: Hey guys, Just a quick one on this very sweaty day :) I have numerous open Python roles at the moment. Some short details below. If you are interested message me and I will send on the full details. *Python dev- Fully remote* Role for a London based booking site. Python, Micro-services, TDD. Fully remote/ part remote or fully office based, its up to you! Very family friendly company. Salary ?40-60k *Python Dev- Flexi work* Exciting time to join a rapidly expanding start-up with lots of funding. Python, Django, DevOps, Agile! Flexible working pick your own office hours and unlimited holiday. A very inclusive company with a great culture. Salary up to ?75k depending on experience. Thanks Guys, as I said message me for more details :) Sophie -- Sophie Hendley| Founder| Digital Vision *M:* 07505145903 *E: *sophie.hendley at digvis.co.uk *W:* www.digvis.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfine2358 at gmail.com Thu Jul 5 11:01:09 2018 From: jfine2358 at gmail.com (Jonathan Fine) Date: Thu, 5 Jul 2018 16:01:09 +0100 Subject: [python-uk] Fwd: [PSF-Community] Python Software Foundation Survey In-Reply-To: <24501e8f-9645-d464-cb66-64216aaa9d30@ntoll.org> References: <362665fd-9735-5ba8-a9f5-2bbac25d7394@ntoll.org> <20180703113757.3t4i3wwdxh2oj2vj@unequivocal.eu> <24501e8f-9645-d464-cb66-64216aaa9d30@ntoll.org> Message-ID: Hi I've just completed the survey. It took a couple of minutes. I hope my answers are useful. I think Jon Ribbens has been a bit hard on the survey (which however does have faults). Creating and running surveys is hard, so credit to the PSF for giving it a go. Jonathan On Tue, Jul 3, 2018 at 1:17 PM, Nicholas H.Tollervey wrote: > On 03/07/18 12:37, Jon Ribbens wrote > >> Sorry, couldn't do it - in common with most surveys, it's far too >> badly written to be answerable in any meaningful way. Generally >> by the time I get to the third unanswerable question I give up. >> > > :-( > > I'm not responsible for the survey, but I can give feedback to those who > wrote it. Care to tell me (off list?) what the problem was? > > N. > > _______________________________________________ > python-uk mailing list > python-uk at python.org > https://mail.python.org/mailman/listinfo/python-uk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.janner at austinfraser.com Wed Jul 11 06:22:11 2018 From: j.janner at austinfraser.com (Jamie Janner) Date: Wed, 11 Jul 2018 11:22:11 +0100 Subject: [python-uk] Python Contractors Needed - London Message-ID: Hi All, I wanted to reach out with a few roles for my clients based in London. Happy to discuss rates/clients/projects etc: Python/Flask - Startup in West London - 6/12 month contract Python/Django - Cryptocurrency trade platform - Covent Garden - 6-month contract Python/Pandas - Travel and Tourism - Farringdon - 3-month contract I look forward to speaking with you soon, Jamie *Jamie Janner* / Consultant / Python Contract / *Tel* +44(0)1189520153 / austinfraser.com / Twitter / LinkedIn / ?2018. Austin Fraser Ltd. Terms and Conditions. The protection of your personal data is important to Austin Fraser. For information about how we process your data please see our privacy notice. Check out our blog! Austin Fraser Ltd registered in England: 05684470. Floor 11, Thames Tower, Station Road, Reading, Berkshire, RG1 1LX -------------- next part -------------- An HTML attachment was scrubbed... URL: From sophie.hendley at digvis.co.uk Wed Jul 11 10:22:31 2018 From: sophie.hendley at digvis.co.uk (Sophie Hendley) Date: Wed, 11 Jul 2018 15:22:31 +0100 Subject: [python-uk] Does anyone need help finding Python developers? Message-ID: Hey Guys, I will keep it brief, I am on the hunt for clients who need Python developers. I have just had a long term client of mine make an unfortunate round of redundancies and I need a bit more variety in what I can offer to these candidates. I am coming cap in hand to see if anyone wants to meet for a coffee or have a call and discuss open Python roles they might be looking to use agencies to recruit for. Check out my website below if you want to see a bit more about Digital vision and me. Thanks all. Sophie -- Sophie Hendley| Founder| Digital Vision *M:* 07505145903 *E: *sophie.hendley at digvis.co.uk *W:* www.digvis.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.inglesby at gmail.com Thu Jul 12 13:25:45 2018 From: peter.inglesby at gmail.com (Peter Inglesby) Date: Thu, 12 Jul 2018 18:25:45 +0100 Subject: [python-uk] Benevolent Dictator On Permanent Vacation Message-ID: Hi folks, You may already have seen that Guido is stepping back from his position as Python's BDFL, and you can read more here . I'm not sure anybody knows what this'll mean in practice, but I thought it might be a good opportunity for us as the UK Python community to say thanks to Guido for everything he's done. Does anybody have any good ideas for how we could do this? Peter. -------------- next part -------------- An HTML attachment was scrubbed... URL: From walker_s at hotmail.co.uk Thu Jul 12 13:44:52 2018 From: walker_s at hotmail.co.uk (S Walker) Date: Thu, 12 Jul 2018 17:44:52 +0000 Subject: [python-uk] Benevolent Dictator On Permanent Vacation In-Reply-To: References: Message-ID: While it's a couple of months away, perhaps a send-off at PyconUK (assuming the organisers are happy with that) would be appropriate? S On 12/07/18 18:25, Peter Inglesby wrote: Hi folks, You may already have seen that Guido is stepping back from his position as Python's BDFL, and you can read more here. I'm not sure anybody knows what this'll mean in practice, but I thought it might be a good opportunity for us as the UK Python community to say thanks to Guido for everything he's done. Does anybody have any good ideas for how we could do this? Peter. _______________________________________________ python-uk mailing list python-uk at python.org https://mail.python.org/mailman/listinfo/python-uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfine2358 at gmail.com Thu Jul 12 14:50:02 2018 From: jfine2358 at gmail.com (Jonathan Fine) Date: Thu, 12 Jul 2018 19:50:02 +0100 Subject: [python-uk] Benevolent Dictator On Permanent Vacation In-Reply-To: References: Message-ID: Hi Thank you, Peter, for bringing this to our attention. I've spent about 10 minutes reading through the thread started by Guido's announcement, and also his plea for patience regarding PEP 572. https://mail.python.org/pipermail/python-committers/2018-July/thread.html I think one of the best ways to thank someone is to continue their work. Guido has spent much time and energy taking good care of Python, and we can thank him by taking good care of it ourselves. That way Python will last a long time. In his message, Guido passes the question of succession to the core developers. Those of us who are not core developers might like, at PyconUK, to think about how we can help support the process. Over the next few days I'll look over the python-committers thread again. with best wishes Jonathan On Thu, Jul 12, 2018 at 6:44 PM, S Walker wrote: > While it's a couple of months away, perhaps a send-off at PyconUK > (assuming the organisers are happy with that) would be appropriate? > > S > > > On 12/07/18 18:25, Peter Inglesby wrote: > > Hi folks, > > You may already have seen that Guido is stepping back from his position as > Python's BDFL, and you can read more here > > . > > I'm not sure anybody knows what this'll mean in practice, but I thought it > might be a good opportunity for us as the UK Python community to say thanks > to Guido for everything he's done. > > Does anybody have any good ideas for how we could do this? > > Peter. > > > _______________________________________________ > python-uk mailing listpython-uk at python.orghttps://mail.python.org/mailman/listinfo/python-uk > > > > _______________________________________________ > python-uk mailing list > python-uk at python.org > https://mail.python.org/mailman/listinfo/python-uk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at dev.ngo Tue Jul 17 07:23:58 2018 From: steve at dev.ngo (Stephen Hawkes) Date: Tue, 17 Jul 2018 12:23:58 +0100 Subject: [python-uk] Using your Python career to make the world a better place (for real!) Message-ID: And now for something completely different... (puts on best John Cleese voice) Do you want to use your Python skills in a creative, fast paced team working exclusively with some of the world's biggest and most effective charities, NGOs and not for profit organisations? Do you want to work in a team where you have an equal share in shaping our direction and you are supported to grow as a developer and a person? If 'yes' then DEV might be the perfect place for you. We're The Developer Society, a total not-for-profit co-op digital agency based in Birmingham's awesome Digbeth area and with the possibility of a flexible/remote working arrangement. We work on solving fascinating problems with inspiring people and we are committed to empowering each other at the same time. Rather than VC pressure (and the joy of share dilution!), we model real company ownership, and it's working... All of our projects are all Python powered and we love to support PyCon UK & the PSF where we can (hope you liked the PyConUK design!), and efforts to grow the community in the UK (check out codegrades.com, a recent design from us) We believe that great people want to do meaningful and challenging work that contributes to the lives of others...and at DEV you don't have to sacrifice a salary to do so. We work exclusively with amazing charities and NGOs like The Refugee Council, Macmillan, Save The Children, Help Refugees, Amnesty International, 38 Degrees and lots of others. If you'd like to know more about life at DEV then read up here and to see more about our Python roles here . Come join us and use your skills to make the world a better place. Would genuinely love to hear what you think about all of this. (And if you ever want a custom Python illustration for your meetup, let me know, I had way too much fun with the PyCon UK ones) ~Steve -- Stephen Hawkes Founder and Director *THE DEVELOPER SOCIETY_* The not-for-profit co-op digital agency, run by and for the sector. *Studio:* +44 (0) 333 344 7800 <+44%20333%20344%207800> *Web:* dev.ngo *Skype: *Add me via stevehawkz *Address:* Fazeley Studios, 191 Fazeley Street, Digbeth, Birmingham, B5 5SE -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntoll at ntoll.org Tue Jul 17 07:33:34 2018 From: ntoll at ntoll.org (Nicholas H.Tollervey) Date: Tue, 17 Jul 2018 12:33:34 +0100 Subject: [python-uk] Using your Python career to make the world a better place (for real!) In-Reply-To: References: Message-ID: <8a5a0cb8-c331-e7c3-7ebb-a8a76eee7c5d@ntoll.org> Folks, I've worked with Steve over the course of several years. For instance, he designed the snakes used extensively by PyCon UK but which were originally for the education track and creation of educational resources (and they're released as a free-to-use community resource too). We've also worked on several other web based Python-y projects. You really *do* want to look into working with him if he has an opportunity for you to do so. NOTE: Steve didn't ask me to write this email... in fact, he's probably as surprised as you are by this email. Let that be a signal of the high regard I have for him and his colleagues. I can't recommend Steve and Dev Society highly enough. N. On 17/07/18 12:23, Stephen Hawkes wrote: > And now for something completely different... (puts on best John Cleese > voice) > > Do you want to use your Python skills in a creative, fast paced team > working exclusively with some of the world's biggest and most effective > charities, NGOs and not for profit organisations?? > > Do you want to work in a team where you have an equal share in shaping > our direction and you are supported to grow as a developer and a person?? > > If 'yes' then DEV might be the perfect place for you. We're The > Developer Society, a total not-for-profit co-op digital agency based in > Birmingham's awesome Digbeth area and with the possibility of a > flexible/remote working arrangement.?We work on solving fascinating > problems with inspiring people and we are committed to empowering each > other at the same time. Rather than VC pressure (and the joy of share > dilution!), we model real company ownership, and it's working... > > All of our projects are all Python powered and we love to support PyCon > UK & the?PSF where we can (hope you liked the PyConUK design!), and > efforts to grow the community in the UK (check out?codegrades.com > , a recent design from us) > > We believe that great people want to do meaningful and challenging work > that contributes to the lives of others...and at DEV you don't have to > sacrifice a salary to do so.?We work exclusively with amazing charities > and NGOs like The Refugee Council,?Macmillan, Save The Children, Help > Refugees, Amnesty International, 38 Degrees and lots of others.? > > If you'd like to know more about life at DEV then?read up here > ?and to see more about our?Python roles here > . Come join us and use your > skills to make the world a better place. > > Would genuinely love to hear what you think about all of this. > (And if you ever want a custom Python illustration for your meetup, let > me know, I had way too much fun with the PyCon UK ones) > > ~Steve > -- > > Stephen Hawkes > Founder and Director > *THE DEVELOPER SOCIETY_* > > The not-for-profit co-op digital agency, run by and for the sector. > > *Studio:*?+44 (0) 333 344 7800 > *Web:*?dev.ngo > *Skype:?*Add me via stevehawkz > *Address:*?Fazeley Studios,?191 Fazeley Street, Digbeth, Birmingham, B5 > ?5SE > > > _______________________________________________ > python-uk mailing list > python-uk at python.org > https://mail.python.org/mailman/listinfo/python-uk > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 455 bytes Desc: OpenPGP digital signature URL: From harry.percival at gmail.com Thu Jul 19 05:46:37 2018 From: harry.percival at gmail.com (Harry Percival) Date: Thu, 19 Jul 2018 10:46:37 +0100 Subject: [python-uk] Using your Python career to make the world a better place (for real!) In-Reply-To: <8a5a0cb8-c331-e7c3-7ebb-a8a76eee7c5d@ntoll.org> References: <8a5a0cb8-c331-e7c3-7ebb-a8a76eee7c5d@ntoll.org> Message-ID: I would also like to endorse Steve and DEV for their help with a redesign on the pythonanywhere site a year or so ago. It looks *way* better (any remaining dodgy aspects of the design are entirely our fault) and Steve was a pleasure to work with. On Tue, 17 Jul 2018, 12:33 Nicholas H.Tollervey, wrote: > Folks, > > I've worked with Steve over the course of several years. For instance, > he designed the snakes used extensively by PyCon UK but which were > originally for the education track and creation of educational resources > (and they're released as a free-to-use community resource too). We've > also worked on several other web based Python-y projects. > > You really *do* want to look into working with him if he has an > opportunity for you to do so. > > NOTE: Steve didn't ask me to write this email... in fact, he's probably > as surprised as you are by this email. Let that be a signal of the high > regard I have for him and his colleagues. I can't recommend Steve and > Dev Society highly enough. > > N. > > On 17/07/18 12:23, Stephen Hawkes wrote: > > And now for something completely different... (puts on best John Cleese > > voice) > > > > Do you want to use your Python skills in a creative, fast paced team > > working exclusively with some of the world's biggest and most effective > > charities, NGOs and not for profit organisations? > > > > Do you want to work in a team where you have an equal share in shaping > > our direction and you are supported to grow as a developer and a person? > > > > If 'yes' then DEV might be the perfect place for you. We're The > > Developer Society, a total not-for-profit co-op digital agency based in > > Birmingham's awesome Digbeth area and with the possibility of a > > flexible/remote working arrangement. We work on solving fascinating > > problems with inspiring people and we are committed to empowering each > > other at the same time. Rather than VC pressure (and the joy of share > > dilution!), we model real company ownership, and it's working... > > > > All of our projects are all Python powered and we love to support PyCon > > UK & the PSF where we can (hope you liked the PyConUK design!), and > > efforts to grow the community in the UK (check out codegrades.com > > , a recent design from us) > > > > We believe that great people want to do meaningful and challenging work > > that contributes to the lives of others...and at DEV you don't have to > > sacrifice a salary to do so. We work exclusively with amazing charities > > and NGOs like The Refugee Council, Macmillan, Save The Children, Help > > Refugees, Amnesty International, 38 Degrees and lots of others. > > > > If you'd like to know more about life at DEV then read up here > > and to see more about our Python roles here > > . Come join us and use your > > skills to make the world a better place. > > > > Would genuinely love to hear what you think about all of this. > > (And if you ever want a custom Python illustration for your meetup, let > > me know, I had way too much fun with the PyCon UK ones) > > > > ~Steve > > -- > > > > Stephen Hawkes > > Founder and Director > > *THE DEVELOPER SOCIETY_* > > > > The not-for-profit co-op digital agency, run by and for the sector. > > > > *Studio:* +44 (0) 333 344 7800 > > *Web:* dev.ngo > > *Skype: *Add me via stevehawkz > > *Address:* Fazeley Studios, 191 Fazeley Street, Digbeth, Birmingham, B5 > > < > https://maps.google.com/?q=191+Fazeley+Street,+Digbeth,+Birmingham,+B5&entry=gmail&source=g > > 5SE > > > > > > _______________________________________________ > > python-uk mailing list > > python-uk at python.org > > https://mail.python.org/mailman/listinfo/python-uk > > > > > _______________________________________________ > python-uk mailing list > python-uk at python.org > https://mail.python.org/mailman/listinfo/python-uk > -- -- Harry Percival +44 78877 02511 -------------- next part -------------- An HTML attachment was scrubbed... URL: From asad.hasan2004 at gmail.com Sat Jul 28 03:41:37 2018 From: asad.hasan2004 at gmail.com (Asad) Date: Sat, 28 Jul 2018 13:11:37 +0530 Subject: [python-uk] Welcome to the "python-uk" mailing list In-Reply-To: References: Message-ID: Hi All , I am new to python just completed 4 lecture on python, I am looking for a pyhton script of module which check the versions of the rpm in linux . I have a situation in which I have two list list1 and list2 : list1 is prerequisites rpm for application and list2 is the list of rpm's in the system list1 = [ "binutils-2.23.52.0.1-12.el7.x86_64", "compat-libcap1-1.10-3.el7.x86_64", "compat-libstdc++-33-3.2.3-71.el7.i686", "compat-libstdc++-33-3.2.3-71.el7.x86_64", "gcc-4.8.2-3.el7.x86_64", "gcc-c++-4.8.2-3.el7.x86_64", "glibc-2.17-36.el7.i686", "glibc-2.17-36.el7.x86_64", "glibc-devel-2.17-36.el7.i686", "glibc-devel-2.17-36.el7.x86_64", "ksh", "libaio-0.3.109-9.el7.i686", "libaio-0.3.109-9.el7.x86_64", "libaio-devel-0.3.109-9.el7.i686", "libaio-devel-0.3.109-9.el7.x86_64", "libgcc-4.8.2-3.el7.i686", "libgcc-4.8.2-3.el7.x86_64", "libstdc++-4.8.2-3.el7.i686", "libstdc++-4.8.2-3.el7.x86_64", "libstdc++-devel-4.8.2-3.el7.i686", "libstdc++-devel-4.8.2-3.el7.x86_64", "libXi-1.7.2-1.el7.i686", "libXi-1.7.2-1.el7.x86_64", "libXtst-1.2.2-1.el7.i686", "libXtst-1.2.2-1.el7.x86_64", "make-3.82-19.el7.x86_64", "sysstat-10.1.5-1.el7.x86_64", ] lsit2 = ['acl-2.2.51-12.el7.x86_64', 'adcli-0.8.1-3.el7.x86_64', 'audit-2.7.6-3.el7.x86_64', 'audit-libs-2.7.6-3.el7.i686', 'audit-libs-2.7.6-3.el7.x86_64', 'audit-libs-python-2.7.6-3.el7.x86_64', 'authconfig-6.2.8-30.el7.x86_64', 'autofs-5.0.7-70.0.1.el7_4.1.x86_64', 'autogen-libopts-5.18-5.el7.x86_64', 'avahi-autoipd-0.6.31-17.el7.x86_64', 'avahi-libs-0.6.31-17.el7.x86_64', 'bash-4.2.46-29.el7_4.x86_64', 'bc-1.06.95-13.el7.x86_64', 'bind-libs-9.9.4-51.el7_4.2.x86_64', 'bind-libs-lite-9.9.4-51.el7_4.2.x86_64', 'bind-license-9.9.4-51.el7_4.2.noarch', 'bind-utils-9.9.4-51.el7_4.2.x86_64', 'binutils-2.25.1-32.base.el7_4.2.x86_64', 'biosdevname-0.7.2-2.el7.x86_64', 'btrfs-progs-4.9.1-1.0.2.el7.x86_64', 'bzip2-1.0.6-13.el7.x86_64', 'bzip2-libs-1.0.6-13.el7.i686', 'bzip2-libs-1.0.6-13.el7.x86_64', 'ca-certificates-2017.2.14-71.el7.noarch', 'c-ares-1.10.0-3.el7.x86_64', 'checkpolicy-2.5-4.el7.x86_64', 'chkconfig-1.7.4-1.el7.x86_64', 'compat-libcap1-1.10-7.el7.x86_64', 'compat-libstdc++-33-3.2.3-72.el7.i686', 'compat-libstdc++-33-3.2.3-72.el7.x86_64', 'coreutils-8.22-18.0.1.el7.x86_64', 'cpio-2.11-25.el7_4.x86_64', 'cpp-4.8.5-16.0.3.el7_4.2.x86_64', 'cracklib-2.9.0-11.el7.i686', 'cracklib-2.9.0-11.el7.x86_64', 'cracklib-dicts-2.9.0-11.el7.x86_64', 'cronie-1.4.11-17.el7.x86_64', 'cronie-anacron-1.4.11-17.el7.x86_64'] I would like to do a rpm version check between the two list (list1 and list2) so it only prints the rpm from list1 which are not installed and version available in list2 is higher or lower . Thanks in advance , On Sat, Jul 28, 2018 at 1:31 AM wrote: > Welcome to the python-uk at python.org mailing list! Welcome to the > python-uk mailing list. > > This list is to help UK Python users to form a community, arrange > events, advertise help or jobs wanted or sought and generally chat. > > > To post to this list, send your message to: > > python-uk at python.org > > General information about the mailing list is at: > > https://mail.python.org/mailman/listinfo/python-uk > > If you ever want to unsubscribe or change your options (eg, switch to > or from digest mode, change your password, etc.), visit your > subscription page at: > > > https://mail.python.org/mailman/options/python-uk/asad.hasan2004%40gmail.com > > > You can also make such adjustments via email by sending a message to: > > python-uk-request at python.org > > with the word `help' in the subject or body (don't include the > quotes), and you will get back a message with instructions. > > You must know your password to change your options (including changing > the password, itself) or to unsubscribe without confirmation. It is: > > Welc0me at 1 > > Normally, Mailman will remind you of your python.org mailing list > passwords once every month, although you can disable this if you > prefer. This reminder will also include instructions on how to > unsubscribe or change your account options. There is also a button on > your options page that will email your current password to you. > -- Asad Hasan +91 9582111698 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan.jeffrey at gmail.com Sat Jul 28 03:49:41 2018 From: nathan.jeffrey at gmail.com (Nathan Jeffrey) Date: Sat, 28 Jul 2018 08:49:41 +0100 Subject: [python-uk] Welcome to the "python-uk" mailing list In-Reply-To: References: Message-ID: If I were going to do that, I would make those lists into sets, and then you could use set arithmetic to calculate the intersections. Have a look on Stack Overflow. This is fairly bread-and-butter stuff, and I am sure there is a better answer there than I could concoct here ? Good luck! - N On Sat, 28 Jul 2018, 08:42 Asad, wrote: > Hi All , > > I am new to python just completed 4 lecture on python, I am > looking for a pyhton script of module which check the versions of the rpm > in linux . > > I have a situation in which I have two list list1 and list2 : > > list1 is prerequisites rpm for application > > and list2 is the list of rpm's in the system > > list1 = [ > "binutils-2.23.52.0.1-12.el7.x86_64", > "compat-libcap1-1.10-3.el7.x86_64", > "compat-libstdc++-33-3.2.3-71.el7.i686", > "compat-libstdc++-33-3.2.3-71.el7.x86_64", > "gcc-4.8.2-3.el7.x86_64", > "gcc-c++-4.8.2-3.el7.x86_64", > "glibc-2.17-36.el7.i686", > "glibc-2.17-36.el7.x86_64", > "glibc-devel-2.17-36.el7.i686", > "glibc-devel-2.17-36.el7.x86_64", > "ksh", > "libaio-0.3.109-9.el7.i686", > "libaio-0.3.109-9.el7.x86_64", > "libaio-devel-0.3.109-9.el7.i686", > "libaio-devel-0.3.109-9.el7.x86_64", > "libgcc-4.8.2-3.el7.i686", > "libgcc-4.8.2-3.el7.x86_64", > "libstdc++-4.8.2-3.el7.i686", > "libstdc++-4.8.2-3.el7.x86_64", > "libstdc++-devel-4.8.2-3.el7.i686", > "libstdc++-devel-4.8.2-3.el7.x86_64", > "libXi-1.7.2-1.el7.i686", > "libXi-1.7.2-1.el7.x86_64", > "libXtst-1.2.2-1.el7.i686", > "libXtst-1.2.2-1.el7.x86_64", > "make-3.82-19.el7.x86_64", > "sysstat-10.1.5-1.el7.x86_64", > ] > > lsit2 = ['acl-2.2.51-12.el7.x86_64', 'adcli-0.8.1-3.el7.x86_64', > 'audit-2.7.6-3.el7.x86_64', 'audit-libs-2.7.6-3.el7.i686', > 'audit-libs-2.7.6-3.el7.x86_64', 'audit-libs-python-2.7.6-3.el7.x86_64', > 'authconfig-6.2.8-30.el7.x86_64', 'autofs-5.0.7-70.0.1.el7_4.1.x86_64', > 'autogen-libopts-5.18-5.el7.x86_64', 'avahi-autoipd-0.6.31-17.el7.x86_64', > 'avahi-libs-0.6.31-17.el7.x86_64', 'bash-4.2.46-29.el7_4.x86_64', > 'bc-1.06.95-13.el7.x86_64', 'bind-libs-9.9.4-51.el7_4.2.x86_64', > 'bind-libs-lite-9.9.4-51.el7_4.2.x86_64', > 'bind-license-9.9.4-51.el7_4.2.noarch', > 'bind-utils-9.9.4-51.el7_4.2.x86_64', > 'binutils-2.25.1-32.base.el7_4.2.x86_64', 'biosdevname-0.7.2-2.el7.x86_64', > 'btrfs-progs-4.9.1-1.0.2.el7.x86_64', 'bzip2-1.0.6-13.el7.x86_64', > 'bzip2-libs-1.0.6-13.el7.i686', 'bzip2-libs-1.0.6-13.el7.x86_64', > 'ca-certificates-2017.2.14-71.el7.noarch', 'c-ares-1.10.0-3.el7.x86_64', > 'checkpolicy-2.5-4.el7.x86_64', 'chkconfig-1.7.4-1.el7.x86_64', > 'compat-libcap1-1.10-7.el7.x86_64', > 'compat-libstdc++-33-3.2.3-72.el7.i686', > 'compat-libstdc++-33-3.2.3-72.el7.x86_64', > 'coreutils-8.22-18.0.1.el7.x86_64', 'cpio-2.11-25.el7_4.x86_64', > 'cpp-4.8.5-16.0.3.el7_4.2.x86_64', 'cracklib-2.9.0-11.el7.i686', > 'cracklib-2.9.0-11.el7.x86_64', 'cracklib-dicts-2.9.0-11.el7.x86_64', > 'cronie-1.4.11-17.el7.x86_64', 'cronie-anacron-1.4.11-17.el7.x86_64'] > > I would like to do a rpm version check between the two list (list1 and > list2) > > so it only prints the rpm from list1 which are not installed and version > available in list2 is higher or lower . > > Thanks in advance , > > > On Sat, Jul 28, 2018 at 1:31 AM wrote: > >> Welcome to the python-uk at python.org mailing list! Welcome to the >> python-uk mailing list. >> >> This list is to help UK Python users to form a community, arrange >> events, advertise help or jobs wanted or sought and generally chat. >> >> >> To post to this list, send your message to: >> >> python-uk at python.org >> >> General information about the mailing list is at: >> >> https://mail.python.org/mailman/listinfo/python-uk >> >> If you ever want to unsubscribe or change your options (eg, switch to >> or from digest mode, change your password, etc.), visit your >> subscription page at: >> >> >> https://mail.python.org/mailman/options/python-uk/asad.hasan2004%40gmail.com >> >> >> You can also make such adjustments via email by sending a message to: >> >> python-uk-request at python.org >> >> with the word `help' in the subject or body (don't include the >> quotes), and you will get back a message with instructions. >> >> You must know your password to change your options (including changing >> the password, itself) or to unsubscribe without confirmation. It is: >> >> Welc0me at 1 >> >> Normally, Mailman will remind you of your python.org mailing list >> passwords once every month, although you can disable this if you >> prefer. This reminder will also include instructions on how to >> unsubscribe or change your account options. There is also a button on >> your options page that will email your current password to you. >> > > > -- > Asad Hasan > +91 9582111698 > _______________________________________________ > python-uk mailing list > python-uk at python.org > https://mail.python.org/mailman/listinfo/python-uk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From asad.hasan2004 at gmail.com Sat Jul 28 06:47:55 2018 From: asad.hasan2004 at gmail.com (Asad) Date: Sat, 28 Jul 2018 16:17:55 +0530 Subject: [python-uk] Welcome to the "python-uk" mailing list In-Reply-To: References: Message-ID: Hi All , I got few steps ahead : How to I iterate from keys of one dictionary to another and just compare the version ? import os import re from distutils.version import StrictVersion import operator lines=[] new_dict={} old_dict={} fo = open("rpmlist1.txt", "r") for line in fo: line=line.strip() lines.append(line) #print lines get_rpm_parts = re.compile(r""" ^ (.*) # name - (.*) # version - ([0-9]+) # build [.] ([^.]+) # os [.] ([^.]+) $ # architecture """, re.X) for s in lines: match = re.search(get_rpm_parts, s) if match : # print "name: %s ver: %s arch: %s" % (match1.group ( 1 ), match1.group ( 2 ), match1.group ( 5 )) new_dict[match.group(1)] = {"name": s, "version": match.group ( 2 ), "build": match.group ( 3 ),"os": match.group ( 4 ), "arch": match.group ( 5 )} #else: # print "no match1",s print new_dict list1 = [ "binutils-2.23.52.0.1-12.el7.x86_64", "compat-libcap1-1.10-3.el7.x86_64", "compat-libstdc++-33-3.2.3-71.el7.i686", "compat-libstdc++-33-3.2.3-71.el7.x86_64", "gcc-4.8.2-3.el7.x86_64", "gcc-c++-4.8.2-3.el7.x86_64", "glibc-2.17-36.el7.i686", "glibc-2.17-36.el7.x86_64", "glibc-devel-2.17-36.el7.i686", "glibc-devel-2.17-36.el7.x86_64", "ksh", "libaio-0.3.109-9.el7.i686", "libaio-0.3.109-9.el7.x86_64", "libaio-devel-0.3.109-9.el7.i686", "libaio-devel-0.3.109-9.el7.x86_64", "libgcc-4.8.2-3.el7.i686", "libgcc-4.8.2-3.el7.x86_64", "libstdc++-4.8.2-3.el7.i686", "libstdc++-4.8.2-3.el7.x86_64", "libstdc++-devel-4.8.2-3.el7.i686", "libstdc++-devel-4.8.2-3.el7.x86_64", "libXi-1.7.2-1.el7.i686", "libXi-1.7.2-1.el7.x86_64", "libXtst-1.2.2-1.el7.i686", "libXtst-1.2.2-1.el7.x86_64", "make-3.82-19.el7.x86_64", "sysstat-10.1.5-1.el7.x86_64", ] for i in list1: match1 = re.search(get_rpm_parts, i) if match1: #print "name: %s ver: %s arch: %s" % (match1.group ( 1 ), match1.group ( 2 ), match1.group ( 5 )) old_dict[match1.group ( 1 )] = {"name": i, "version": match1.group ( 2 ), "build": match1.group ( 3 ),"os": match1.group ( 4 ), "arch": match1.group ( 5 )} # else: # print "no match1",s print old_dict ----Please let me know from here how to proceed further *************** On Sat, Jul 28, 2018 at 1:20 PM Nathan Jeffrey wrote: > If I were going to do that, I would make those lists into sets, and then > you could use set arithmetic to calculate the intersections. > > Have a look on Stack Overflow. This is fairly bread-and-butter stuff, and > I am sure there is a better answer there than I could concoct here ? > > Good luck! > > - N > > On Sat, 28 Jul 2018, 08:42 Asad, wrote: > >> Hi All , >> >> I am new to python just completed 4 lecture on python, I am >> looking for a pyhton script of module which check the versions of the rpm >> in linux . >> >> I have a situation in which I have two list list1 and list2 : >> >> list1 is prerequisites rpm for application >> >> and list2 is the list of rpm's in the system >> >> list1 = [ >> "binutils-2.23.52.0.1-12.el7.x86_64", >> "compat-libcap1-1.10-3.el7.x86_64", >> "compat-libstdc++-33-3.2.3-71.el7.i686", >> "compat-libstdc++-33-3.2.3-71.el7.x86_64", >> "gcc-4.8.2-3.el7.x86_64", >> "gcc-c++-4.8.2-3.el7.x86_64", >> "glibc-2.17-36.el7.i686", >> "glibc-2.17-36.el7.x86_64", >> "glibc-devel-2.17-36.el7.i686", >> "glibc-devel-2.17-36.el7.x86_64", >> "ksh", >> "libaio-0.3.109-9.el7.i686", >> "libaio-0.3.109-9.el7.x86_64", >> "libaio-devel-0.3.109-9.el7.i686", >> "libaio-devel-0.3.109-9.el7.x86_64", >> "libgcc-4.8.2-3.el7.i686", >> "libgcc-4.8.2-3.el7.x86_64", >> "libstdc++-4.8.2-3.el7.i686", >> "libstdc++-4.8.2-3.el7.x86_64", >> "libstdc++-devel-4.8.2-3.el7.i686", >> "libstdc++-devel-4.8.2-3.el7.x86_64", >> "libXi-1.7.2-1.el7.i686", >> "libXi-1.7.2-1.el7.x86_64", >> "libXtst-1.2.2-1.el7.i686", >> "libXtst-1.2.2-1.el7.x86_64", >> "make-3.82-19.el7.x86_64", >> "sysstat-10.1.5-1.el7.x86_64", >> ] >> >> lsit2 = ['acl-2.2.51-12.el7.x86_64', 'adcli-0.8.1-3.el7.x86_64', >> 'audit-2.7.6-3.el7.x86_64', 'audit-libs-2.7.6-3.el7.i686', >> 'audit-libs-2.7.6-3.el7.x86_64', 'audit-libs-python-2.7.6-3.el7.x86_64', >> 'authconfig-6.2.8-30.el7.x86_64', 'autofs-5.0.7-70.0.1.el7_4.1.x86_64', >> 'autogen-libopts-5.18-5.el7.x86_64', 'avahi-autoipd-0.6.31-17.el7.x86_64', >> 'avahi-libs-0.6.31-17.el7.x86_64', 'bash-4.2.46-29.el7_4.x86_64', >> 'bc-1.06.95-13.el7.x86_64', 'bind-libs-9.9.4-51.el7_4.2.x86_64', >> 'bind-libs-lite-9.9.4-51.el7_4.2.x86_64', >> 'bind-license-9.9.4-51.el7_4.2.noarch', >> 'bind-utils-9.9.4-51.el7_4.2.x86_64', >> 'binutils-2.25.1-32.base.el7_4.2.x86_64', 'biosdevname-0.7.2-2.el7.x86_64', >> 'btrfs-progs-4.9.1-1.0.2.el7.x86_64', 'bzip2-1.0.6-13.el7.x86_64', >> 'bzip2-libs-1.0.6-13.el7.i686', 'bzip2-libs-1.0.6-13.el7.x86_64', >> 'ca-certificates-2017.2.14-71.el7.noarch', 'c-ares-1.10.0-3.el7.x86_64', >> 'checkpolicy-2.5-4.el7.x86_64', 'chkconfig-1.7.4-1.el7.x86_64', >> 'compat-libcap1-1.10-7.el7.x86_64', >> 'compat-libstdc++-33-3.2.3-72.el7.i686', >> 'compat-libstdc++-33-3.2.3-72.el7.x86_64', >> 'coreutils-8.22-18.0.1.el7.x86_64', 'cpio-2.11-25.el7_4.x86_64', >> 'cpp-4.8.5-16.0.3.el7_4.2.x86_64', 'cracklib-2.9.0-11.el7.i686', >> 'cracklib-2.9.0-11.el7.x86_64', 'cracklib-dicts-2.9.0-11.el7.x86_64', >> 'cronie-1.4.11-17.el7.x86_64', 'cronie-anacron-1.4.11-17.el7.x86_64'] >> >> I would like to do a rpm version check between the two list (list1 and >> list2) >> >> so it only prints the rpm from list1 which are not installed and version >> available in list2 is higher or lower . >> >> Thanks in advance , >> >> >> On Sat, Jul 28, 2018 at 1:31 AM wrote: >> >>> Welcome to the python-uk at python.org mailing list! Welcome to the >>> python-uk mailing list. >>> >>> This list is to help UK Python users to form a community, arrange >>> events, advertise help or jobs wanted or sought and generally chat. >>> >>> >>> To post to this list, send your message to: >>> >>> python-uk at python.org >>> >>> General information about the mailing list is at: >>> >>> https://mail.python.org/mailman/listinfo/python-uk >>> >>> If you ever want to unsubscribe or change your options (eg, switch to >>> or from digest mode, change your password, etc.), visit your >>> subscription page at: >>> >>> >>> https://mail.python.org/mailman/options/python-uk/asad.hasan2004%40gmail.com >>> >>> >>> You can also make such adjustments via email by sending a message to: >>> >>> python-uk-request at python.org >>> >>> with the word `help' in the subject or body (don't include the >>> quotes), and you will get back a message with instructions. >>> >>> You must know your password to change your options (including changing >>> the password, itself) or to unsubscribe without confirmation. It is: >>> >>> Welc0me at 1 >>> >>> Normally, Mailman will remind you of your python.org mailing list >>> passwords once every month, although you can disable this if you >>> prefer. This reminder will also include instructions on how to >>> unsubscribe or change your account options. There is also a button on >>> your options page that will email your current password to you. >>> >> >> >> -- >> Asad Hasan >> +91 9582111698 >> _______________________________________________ >> python-uk mailing list >> python-uk at python.org >> https://mail.python.org/mailman/listinfo/python-uk >> > _______________________________________________ > python-uk mailing list > python-uk at python.org > https://mail.python.org/mailman/listinfo/python-uk > -- Asad Hasan +91 9582111698 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alistair.broomhead at gmail.com Sat Jul 28 07:27:53 2018 From: alistair.broomhead at gmail.com (Alistair Broomhead) Date: Sat, 28 Jul 2018 12:27:53 +0100 Subject: [python-uk] Welcome to the "python-uk" mailing list In-Reply-To: References: Message-ID: So I'd still agree with the advice to post this on StackOverflow, as it's a better format for a mailing list for this sort of question, but you're almost there, I advise you look at dict.items, also your rpm list code might be a little cleaner if you looked at named groups for re, and considered turning those loops into functions. There's plenty more I could suggest, but as suggested earlier this isn't the best forum for this sort of help, I'd point to either the aforementioned StackOverflow, or looking at IRC channels on freenode. On Sat, 28 Jul 2018, 11:48 Asad, wrote: > Hi All , > > I got few steps ahead : How to I iterate from keys of one > dictionary to another and just compare the version ? > > import is > import re > from distutils.version import StrictVersion > import operator > > lines=[] > new_dict={} > old_dict={} > > > fo = open("rpmlist1.txt", "r") > for line in fo: > line=line.strip() > lines.append(line) > > #print lines > > get_rpm_parts = re.compile(r""" > ^ (.*) # name > - (.*) # version > - ([0-9]+) # build > [.] ([^.]+) # os > [.] ([^.]+) $ # architecture > """, re.X) > > for s in lines: > match = re.search(get_rpm_parts, s) > if match : > # print "name: %s ver: %s arch: %s" % (match1.group ( 1 ), match1.group ( 2 ), match1.group ( 5 )) > new_dict[match.group(1)] = {"name": s, "version": match.group ( 2 ), "build": match.group ( 3 ),"os": match.group ( 4 ), "arch": match.group ( 5 )} > #else: > # print "no match1",s > > print new_dict > > > > list1 = [ > "binutils-2.23.52.0.1-12.el7.x86_64", > "compat-libcap1-1.10-3.el7.x86_64", > "compat-libstdc++-33-3.2.3-71.el7.i686", > "compat-libstdc++-33-3.2.3-71.el7.x86_64", > "gcc-4.8.2-3.el7.x86_64", > "gcc-c++-4.8.2-3.el7.x86_64", > "glibc-2.17-36.el7.i686", > "glibc-2.17-36.el7.x86_64", > "glibc-devel-2.17-36.el7.i686", > "glibc-devel-2.17-36.el7.x86_64", > "ksh", > "libaio-0.3.109-9.el7.i686", > "libaio-0.3.109-9.el7.x86_64", > "libaio-devel-0.3.109-9.el7.i686", > "libaio-devel-0.3.109-9.el7.x86_64", > "libgcc-4.8.2-3.el7.i686", > "libgcc-4.8.2-3.el7.x86_64", > "libstdc++-4.8.2-3.el7.i686", > "libstdc++-4.8.2-3.el7.x86_64", > "libstdc++-devel-4.8.2-3.el7.i686", > "libstdc++-devel-4.8.2-3.el7.x86_64", > "libXi-1.7.2-1.el7.i686", > "libXi-1.7.2-1.el7.x86_64", > "libXtst-1.2.2-1.el7.i686", > "libXtst-1.2.2-1.el7.x86_64", > "make-3.82-19.el7.x86_64", > "sysstat-10.1.5-1.el7.x86_64", > ] > > for i in list1: > match1 = re.search(get_rpm_parts, i) > if match1: > #print "name: %s ver: %s arch: %s" % (match1.group ( 1 ), match1.group ( 2 ), match1.group ( 5 )) > old_dict[match1.group ( 1 )] = {"name": i, "version": match1.group ( 2 ), "build": match1.group ( 3 ),"os": match1.group ( 4 ), "arch": match1.group ( 5 )} > # else: > # print "no match1",s > > print old_dict > > ----Please let me know from here how to proceed further *************** > > On Sat, Jul 28, 2018 at 1:20 PM Nathan Jeffrey > wrote: > >> If I were going to do that, I would make those lists into sets, and then >> you could use set arithmetic to calculate the intersections. >> >> Have a look on Stack Overflow. This is fairly bread-and-butter stuff, and >> I am sure there is a better answer there than I could concoct here ? >> >> Good luck! >> >> - N >> >> On Sat, 28 Jul 2018, 08:42 Asad, wrote: >> >>> Hi All , >>> >>> I am new to python just completed 4 lecture on python, I am >>> looking for a pyhton script of module which check the versions of the rpm >>> in linux . >>> >>> I have a situation in which I have two list list1 and list2 : >>> >>> list1 is prerequisites rpm for application >>> >>> and list2 is the list of rpm's in the system >>> >>> list1 = [ >>> "binutils-2.23.52.0.1-12.el7.x86_64", >>> "compat-libcap1-1.10-3.el7.x86_64", >>> "compat-libstdc++-33-3.2.3-71.el7.i686", >>> "compat-libstdc++-33-3.2.3-71.el7.x86_64", >>> "gcc-4.8.2-3.el7.x86_64", >>> "gcc-c++-4.8.2-3.el7.x86_64", >>> "glibc-2.17-36.el7.i686", >>> "glibc-2.17-36.el7.x86_64", >>> "glibc-devel-2.17-36.el7.i686", >>> "glibc-devel-2.17-36.el7.x86_64", >>> "ksh", >>> "libaio-0.3.109-9.el7.i686", >>> "libaio-0.3.109-9.el7.x86_64", >>> "libaio-devel-0.3.109-9.el7.i686", >>> "libaio-devel-0.3.109-9.el7.x86_64", >>> "libgcc-4.8.2-3.el7.i686", >>> "libgcc-4.8.2-3.el7.x86_64", >>> "libstdc++-4.8.2-3.el7.i686", >>> "libstdc++-4.8.2-3.el7.x86_64", >>> "libstdc++-devel-4.8.2-3.el7.i686", >>> "libstdc++-devel-4.8.2-3.el7.x86_64", >>> "libXi-1.7.2-1.el7.i686", >>> "libXi-1.7.2-1.el7.x86_64", >>> "libXtst-1.2.2-1.el7.i686", >>> "libXtst-1.2.2-1.el7.x86_64", >>> "make-3.82-19.el7.x86_64", >>> "sysstat-10.1.5-1.el7.x86_64", >>> ] >>> >>> lsit2 = ['acl-2.2.51-12.el7.x86_64', 'adcli-0.8.1-3.el7.x86_64', >>> 'audit-2.7.6-3.el7.x86_64', 'audit-libs-2.7.6-3.el7.i686', >>> 'audit-libs-2.7.6-3.el7.x86_64', 'audit-libs-python-2.7.6-3.el7.x86_64', >>> 'authconfig-6.2.8-30.el7.x86_64', 'autofs-5.0.7-70.0.1.el7_4.1.x86_64', >>> 'autogen-libopts-5.18-5.el7.x86_64', 'avahi-autoipd-0.6.31-17.el7.x86_64', >>> 'avahi-libs-0.6.31-17.el7.x86_64', 'bash-4.2.46-29.el7_4.x86_64', >>> 'bc-1.06.95-13.el7.x86_64', 'bind-libs-9.9.4-51.el7_4.2.x86_64', >>> 'bind-libs-lite-9.9.4-51.el7_4.2.x86_64', >>> 'bind-license-9.9.4-51.el7_4.2.noarch', >>> 'bind-utils-9.9.4-51.el7_4.2.x86_64', >>> 'binutils-2.25.1-32.base.el7_4.2.x86_64', 'biosdevname-0.7.2-2.el7.x86_64', >>> 'btrfs-progs-4.9.1-1.0.2.el7.x86_64', 'bzip2-1.0.6-13.el7.x86_64', >>> 'bzip2-libs-1.0.6-13.el7.i686', 'bzip2-libs-1.0.6-13.el7.x86_64', >>> 'ca-certificates-2017.2.14-71.el7.noarch', 'c-ares-1.10.0-3.el7.x86_64', >>> 'checkpolicy-2.5-4.el7.x86_64', 'chkconfig-1.7.4-1.el7.x86_64', >>> 'compat-libcap1-1.10-7.el7.x86_64', >>> 'compat-libstdc++-33-3.2.3-72.el7.i686', >>> 'compat-libstdc++-33-3.2.3-72.el7.x86_64', >>> 'coreutils-8.22-18.0.1.el7.x86_64', 'cpio-2.11-25.el7_4.x86_64', >>> 'cpp-4.8.5-16.0.3.el7_4.2.x86_64', 'cracklib-2.9.0-11.el7.i686', >>> 'cracklib-2.9.0-11.el7.x86_64', 'cracklib-dicts-2.9.0-11.el7.x86_64', >>> 'cronie-1.4.11-17.el7.x86_64', 'cronie-anacron-1.4.11-17.el7.x86_64'] >>> >>> I would like to do a rpm version check between the two list (list1 and >>> list2) >>> >>> so it only prints the rpm from list1 which are not installed and version >>> available in list2 is higher or lower . >>> >>> Thanks in advance , >>> >>> >>> On Sat, Jul 28, 2018 at 1:31 AM wrote: >>> >>>> Welcome to the python-uk at python.org mailing list! Welcome to the >>>> python-uk mailing list. >>>> >>>> This list is to help UK Python users to form a community, arrange >>>> events, advertise help or jobs wanted or sought and generally chat. >>>> >>>> >>>> To post to this list, send your message to: >>>> >>>> python-uk at python.org >>>> >>>> General information about the mailing list is at: >>>> >>>> https://mail.python.org/mailman/listinfo/python-uk >>>> >>>> If you ever want to unsubscribe or change your options (eg, switch to >>>> or from digest mode, change your password, etc.), visit your >>>> subscription page at: >>>> >>>> >>>> https://mail.python.org/mailman/options/python-uk/asad.hasan2004%40gmail.com >>>> >>>> >>>> You can also make such adjustments via email by sending a message to: >>>> >>>> python-uk-request at python.org >>>> >>>> with the word `help' in the subject or body (don't include the >>>> quotes), and you will get back a message with instructions. >>>> >>>> You must know your password to change your options (including changing >>>> the password, itself) or to unsubscribe without confirmation. It is: >>>> >>>> Welc0me at 1 >>>> >>>> Normally, Mailman will remind you of your python.org mailing list >>>> passwords once every month, although you can disable this if you >>>> prefer. This reminder will also include instructions on how to >>>> unsubscribe or change your account options. There is also a button on >>>> your options page that will email your current password to you. >>>> >>> >>> >>> -- >>> Asad Hasan >>> +91 9582111698 >>> _______________________________________________ >>> python-uk mailing list >>> python-uk at python.org >>> https://mail.python.org/mailman/listinfo/python-uk >>> >> _______________________________________________ >> python-uk mailing list >> python-uk at python.org >> https://mail.python.org/mailman/listinfo/python-uk >> > > > -- > Asad Hasan > +91 9582111698 > _______________________________________________ > python-uk mailing list > python-uk at python.org > https://mail.python.org/mailman/listinfo/python-uk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfine2358 at gmail.com Sat Jul 28 07:54:20 2018 From: jfine2358 at gmail.com (Jonathan Fine) Date: Sat, 28 Jul 2018 12:54:20 +0100 Subject: [python-uk] Welcome to the "python-uk" mailing list In-Reply-To: References: Message-ID: Hi Asad Here's a method I find useful. It is to start with the easiest problem you can't solve. Your problem is > I would like to do a rpm version check between the two list (list1 and list2) > so it only prints the rpm from list1 which are not installed and version available in list2 is higher or lower So break it down into smaller, easier parts. For example, suppose len(list1) == len(list2) == 1. Can you solve the problem in this case. I think you may already have the regular expression. By the way, have you tried http://www.pythontutor.com/ http://www.pythontutor.com/visualize.html#mode=edit They might help you a lot. Good luck. -- Jonathan