Re: Remote/Pair-Programming in-the-cloud

2019-08-04 Thread DL Neil
Herewith a progress-report, and an attempt to respond to (interposed) questions:- I've managed to utilise Cloud9 successfully. (finally!) The bulk of the work was in wending my way through the process of setting-up the "team" (or in this application: the PUG). Starting in Cloud9 itself is st

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread aishan0403
On Monday, 5 August 2019 07:21:52 UTC+8, MRAB wrote: > On 2019-08-05 00:10, A S wrote: > > Oh... By set did you mean by using python function set(variable) as > > something? > > > > So sorry for bothering you.. > > > Make it a set (outside the loop): > >     dictionary = set() > > and then add

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread aishan0403
On Monday, 5 August 2019 07:21:52 UTC+8, MRAB wrote: > On 2019-08-05 00:10, A S wrote: > > Oh... By set did you mean by using python function set(variable) as > > something? > > > > So sorry for bothering you.. > > > Make it a set (outside the loop): > >     dictionary = set() > > and then add

Re: _unquote

2019-08-04 Thread Jon Ribbens via Python-list
On 2019-08-04, Hongyi Zhao wrote: > See the following code excerpted from https://github.com/shichao-an/ > homura/blob/master/homura.py: > > --- > def unquote(s): > res = s > if not PY3: > if isinstance(res, six.text_type): > res = s.encode('utf-8') > return _unquot

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread MRAB
On 2019-08-05 00:10, A S wrote: Oh... By set did you mean by using python function set(variable) as something? So sorry for bothering you.. Make it a set (outside the loop):     dictionary = set() and then add the words to it (inside the loop):     dictionary.add(cell_range.value) (Maybe

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread MRAB
On 2019-08-04 23:52, A S wrote: Previously I had tried many methods and using set was one of them but it didn't work out either.. I even tried to append it to a list but it's not working out.. "not working out"? Well, that gives me no clue as to what you were doing wrong! On Mon, 5 Aug 2019

_unquote

2019-08-04 Thread Hongyi Zhao
Hi, See the following code excerpted from https://github.com/shichao-an/ homura/blob/master/homura.py: --- def unquote(s): res = s if not PY3: if isinstance(res, six.text_type): res = s.encode('utf-8') return _unquote(res) --- I'm very confused on the `_unquote'

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread MRAB
On 2019-08-04 18:53, A S wrote: Hi Mrab, Thank you so much for your detailed response, I really really appreciate it as I have been constantly trying to seek help regarding this issue. Yes, I figured that the dictionary is only capturing the last value :( I've been trying to get it to captur

Re: if bytes != str:

2019-08-04 Thread Jon Ribbens via Python-list
On 2019-08-04, Hongyi Zhao wrote: > I read and learn the the following code now: > > https://github.com/shadowsocksr-backup/shadowsocksr-libev/blob/master/src/ > ssrlink.py > > In this script, there are the following two customized functions: > > -- > def to_bytes(s): > if bytes != s

Re: How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread MRAB
On 2019-08-04 09:29, aishan0...@gmail.com wrote: I want to compare the common words from multiple .txt files based on the words in multiple .xlsx files. Could anyone kindly help with my code? I have been stuck for weeks and really need help.. Please refer to this link: https://stackoverflow.c

Re: Remote/Pair-Programming in-the-cloud

2019-08-04 Thread Ian Kelly
On Sat, Aug 3, 2019, 9:25 AM Bryon Tjanaka wrote: > Depending on how often you need to run the code, you could use a google doc > and copy the code over when you need to run. Of course, if you need linters > and other tools to run frequently this would not work. > I've conducted a number of remo

Re: if bytes != str:

2019-08-04 Thread Ian Kelly
On Sun, Aug 4, 2019, 9:02 AM Hongyi Zhao wrote: > Hi, > > I read and learn the the following code now: > > https://github.com/shadowsocksr-backup/shadowsocksr-libev/blob/master/src/ > ssrlink.py > > > In this s

Re: if bytes != str:

2019-08-04 Thread Dan Sommers
On 8/4/19 10:56 AM, Hongyi Zhao wrote: Hi, I read and learn the the following code now: https://github.com/shadowsocksr-backup/shadowsocksr-libev/blob/master/src/ ssrlink.py In this script, there are the following two customized functions: -- def to_bytes(s): if bytes != str:

if bytes != str:

2019-08-04 Thread Hongyi Zhao
Hi, I read and learn the the following code now: https://github.com/shadowsocksr-backup/shadowsocksr-libev/blob/master/src/ ssrlink.py In this script, there are the following two customized functions: -- def to_bytes(s): if bytes != str: if type(s) == str:

Re: Why they use this: duration = time.time() - self.start_time + 1

2019-08-04 Thread Richard Damon
On 8/3/19 10:33 PM, Hongyi Zhao wrote: > Hi, > > I read the code here: > > https://github.com/shichao-an/homura/blob/master/homura.py > > > It said in line 244: > > duration = time.time() - self.start_time + 1 > > I'm very confusing why it used like this instead of the following: > > duration

How to compare words from .txt file against words in .xlsx file via Python? I will then extract these words by writing it to a new .xls file

2019-08-04 Thread aishan0403
I want to compare the common words from multiple .txt files based on the words in multiple .xlsx files. Could anyone kindly help with my code? I have been stuck for weeks and really need help.. Please refer to this link: https://stackoverflow.com/questions/57319707/how-to-compare-words-from-t