Re: Compare zip lists where order is important

2019-08-28 Thread Frank Millman
On 2019-08-29 5:24 AM, Sayth Renshaw wrote: Hi Trying to find whats changed in this example. Based around work and team reschuffles. So first I created my current teams and then my shuffled teams. people = ["Tim","Bill","Sally","Ally","Fred","Fredricka"] team_number = [1,1,2,2,3,3] shuffle_p

Re: [SOLVED] Re: Compare zip lists where order is important

2019-08-28 Thread Peter Otten
Sayth Renshaw wrote: > On Thursday, 29 August 2019 14:03:44 UTC+10, Sayth Renshaw wrote: >> On Thursday, 29 August 2019 13:53:43 UTC+10, Sayth Renshaw wrote: >> > On Thursday, 29 August 2019 13:25:01 UTC+10, Sayth Renshaw wrote: >> > > Hi >> > > >> > > Trying to find whats changed in this exam

unable to to install paython

2019-08-28 Thread Alemu Geletew via Python-list
-- https://mail.python.org/mailman/listinfo/python-list

pandas loc on str lower for column comparison

2019-08-28 Thread Sayth Renshaw
Hi I am importing 4 columns into a dataframe from a spreadsheet. My goal is to create a 5th column with TRUE or False if column 4 (str) matches column 3. Trying to leverage this answer https://stackoverflow.com/a/35940955/461887 This is my code import pandas as pd xls = pd.ExcelFile("Melb

[SOLVED] Re: Compare zip lists where order is important

2019-08-28 Thread Sayth Renshaw
On Thursday, 29 August 2019 14:03:44 UTC+10, Sayth Renshaw wrote: > On Thursday, 29 August 2019 13:53:43 UTC+10, Sayth Renshaw wrote: > > On Thursday, 29 August 2019 13:25:01 UTC+10, Sayth Renshaw wrote: > > > Hi > > > > > > Trying to find whats changed in this example. Based around work and te

Re: Compare zip lists where order is important

2019-08-28 Thread Sayth Renshaw
On Thursday, 29 August 2019 13:53:43 UTC+10, Sayth Renshaw wrote: > On Thursday, 29 August 2019 13:25:01 UTC+10, Sayth Renshaw wrote: > > Hi > > > > Trying to find whats changed in this example. Based around work and team > > reschuffles. > > > > So first I created my current teams and then my

Re: Compare zip lists where order is important

2019-08-28 Thread Sayth Renshaw
On Thursday, 29 August 2019 13:25:01 UTC+10, Sayth Renshaw wrote: > Hi > > Trying to find whats changed in this example. Based around work and team > reschuffles. > > So first I created my current teams and then my shuffled teams. > > people = ["Tim","Bill","Sally","Ally","Fred","Fredricka"] >

Re: An "Object" class?

2019-08-28 Thread Alan Bawden
Cristian Cocos writes: > Thank you! I can see that the taxonomy of built-in classes (i.e. the > subclass/superclass relations) is not very developed. At the very least I > would have loved to see stuff such as int declared as a subClass/subType > of float and the like--that is, a class taxonomy i

if STREAM.isatty():

2019-08-28 Thread Hongyi Zhao
Hi, I read the following code: https://github.com/shichao-an/homura/blob/master/homura.py On the line 265-266, it said: if STREAM.isatty(): p = (self.progress_template + '\r') % params What's mean by using the above two lines? Can I not use them? Regards -- https://mail

Re: How to use regex to search string between {}?

2019-08-28 Thread Sayth Renshaw
> > A site like http://www.pyregex.com/ allows you to check your regex with > slightly fewer clicks and keystrokes than editing your program. Thanks Jason -- https://mail.python.org/mailman/listinfo/python-list

Compare zip lists where order is important

2019-08-28 Thread Sayth Renshaw
Hi Trying to find whats changed in this example. Based around work and team reschuffles. So first I created my current teams and then my shuffled teams. people = ["Tim","Bill","Sally","Ally","Fred","Fredricka"] team_number = [1,1,2,2,3,3] shuffle_people = ["Fredricka","Bill","Sally","Tim","All

Re: How to use regex to search string between {}?

2019-08-28 Thread Jason Friedman
> > If I have path: /home/admin/hello/yo/{h1,h2,h3,h4} > > import re > r = re.search('{.}', path) > # r should be ['h1,h2,h3,h4'] but I fail > > Why always search nothing? > A site like http://www.pyregex.com/ allows you to check your regex with slightly fewer clicks and keystrokes than editing yo

Re: Fwd: installation problem

2019-08-28 Thread DL Neil
On 29/08/19 10:11 AM, fateme jbr wrote: Dear Python team We are a mailing list of enthusiasts with volunteer membership. I downloaded "Windows x86-64 executable installer " form your website. My windows version is 8.1 and it is

Fwd: installation problem

2019-08-28 Thread fateme jbr
Dear Python team I downloaded "Windows x86-64 executable installer " form your website. My windows version is 8.1 and it is 64 bit. After installation, I got the message that "Setup was successful", but it didn't lunch to the program

Re: An "Object" class?

2019-08-28 Thread Chris Angelico
On Thu, Aug 29, 2019 at 4:35 AM Cristian Cocos wrote: > > Thank you! I can see that the taxonomy of built-in classes (i.e. the > subclass/superclass relations) is not very developed. At the very least I > would have loved to see stuff such as int declared as a subClass/subType > of float and the l

Re: An "Object" class?

2019-08-28 Thread Cristian Cocos
Thank you! I can see that the taxonomy of built-in classes (i.e. the subclass/superclass relations) is not very developed. At the very least I would have loved to see stuff such as int declared as a subClass/subType of float and the like--that is, a class taxonomy in tune with standard mathematical

Re: How do I decouple these two modules?

2019-08-28 Thread Andrea D'Amore
On Wed, 28 Aug 2019 at 10:04, Spencer Du via Python-list wrote: > I have code for a GUI and MQTT […] currently they rely on each other to some > extent. How? I am failing to see the circular dependency there. -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: Python unit test framework to fire 1000 unique concurrent requests

2019-08-28 Thread Pankaj Jangid
vishwatheworld...@gmail.com writes: > Looking for a unit test framework with below requirements: > 1. Send 1000 unique URL requests in parallel ( Not sequential and not > repetitive requests) > 2. Verify HTTP response status code ( eg: 200, 403, 404 etc) of each > requests in parallel > 3. Veri

How do I decouple these two modules?

2019-08-28 Thread Spencer Du via Python-list
Hi I have code for a GUI and MQTT. How do I make both of these modules decoupled because currently they rely on each other to some extent. GUI.py import logging from datetime import timedelta import time from thespian.actors import * from transitions import Machine import paho.mqtt.client as mq