Re: Using namedtuples field names for column indices in a list of lists

2017-01-12 Thread Michael Torrie
On 01/12/2017 02:26 AM, Deborah Swanson wrote: > It's true, I've only been on this list a few weeks, although I've seen > and been on the receiving end of the kind of "help" that feels more like > being sneered at than help. Not on this list, but on Linux and similar > lists. There does seem to be

Automatically restore virtualenv in Terminal.app on macOS (zsh, bash)

2017-01-12 Thread Ilya Kulakov
Today I discovered that one can customize session restoration in Terminal.app by defining the shell_session_save_user_state function. Here is a script that restores active virtualenv, e.g. after you reboot your machine: https://gist.github.com/Kentzo/185e4eab382bbcf1f0a9738a28128dce It's wr

Re: Find and append file path

2017-01-12 Thread Tim Chase
On 2017-01-12 18:32, Peter Otten wrote: > Why did you add an explicit isdir() check? My understanding is that > the names in dirs are known to be directories. Ah, right. The code I had laying around that did something similar but processes both the dirs and the files, so when the OP asked for jus

Re: Find and append file path

2017-01-12 Thread Peter Otten
Tim Chase wrote: > def dir_iter(root): > for fullpath in ( > os.path.join(path, dir_) > for path, dirs, files in os.walk(root) > for dir_ in dirs > ): > if os.path.isdir(fullpath): > yield fullpath Why did you add an explicit

Re: Doubt with matrix

2017-01-12 Thread Peter Otten
José Manuel Suárez Sierra wrote: > Hello, I want to go over matrix indexs with this code: > def comparador2(a, b): > c3 = ["0"] # variables > x = -1 # contador de letras aniadidas a c3 > i = 0 # contador bucle secuencia a > j = 0 # contador bucle secuencia b > l1 = len(a)

Re: Find and append file path

2017-01-12 Thread Tim Chase
On 2017-01-12 19:28, Iranna Mathapati wrote: > Example: > CLI Input: /root/user/branches/xyz > > find latest file and append to CLI path: > "/root/user/branches/xyz/Apple" I've used something like the below to find the most recent file in a directory tree (it also works for pulling other attribu

Re: Doubt with matrix

2017-01-12 Thread Bob Gailer
Always Post the entire traceback. That will show us the line of code that raised the error, as well as the sequence of function calls involved. On Jan 12, 2017 11:10 AM, "José Manuel Suárez Sierra" < josemsuarezsie...@gmail.com> wrote: > Hello, I want to go over matrix indexs with this code: > d

Doubt with matrix

2017-01-12 Thread José Manuel Suárez Sierra
Hello, I want to go over matrix indexs with this code: def comparador2(a, b): c3 = ["0"] # variables x = -1 # contador de letras aniadidas a c3 i = 0 # contador bucle secuencia a j = 0 # contador bucle secuencia b l1 = len(a) l2 = len(b) cont = [] # contador de cic

Re: Find and append file path

2017-01-12 Thread Rhodri James
On 12/01/17 13:58, Iranna Mathapati wrote: Hi Team, How to append file path and find the latest folder according to the latest date: CLI input :"/root/user/branches/xyz" i want to find latest file within CLI input path and append to given CLI path Example: CLI Input: /root/user/branches/xyz

Find and append file path

2017-01-12 Thread Iranna Mathapati
Hi Team, How to append file path and find the latest folder according to the latest date: CLI input :"/root/user/branches/xyz" i want to find latest file within CLI input path and append to given CLI path Example: CLI Input: /root/user/branches/xyz find latest file and append to CLI path: "/ro

ANN: Wing IDE 6.0.1 released

2017-01-12 Thread Wingware
Hi, We've just released Wing IDE 6.0.1 which improves remote host configuration, adds remote development support for 32-bit Linux and older 64-bit Linux systems, fixes stability problems affecting some users, and makes many other improvements. For details on this release, see the change log

Re: Using namedtuples field names for column indices in a list of lists

2017-01-12 Thread Chris Angelico
On Thu, Jan 12, 2017 at 9:27 PM, Marko Rauhamaa wrote: > An instructive anecdote: somebody I know told me he once needed the > definitive list of some websites. He posted a question on the relevant > online forum, but it fell on deaf ears. After some days, he replied to > his own posting saying he

timers in threaded application

2017-01-12 Thread Skip Montanaro
I know signals and threads are a bad mix, but I only discovered I was playing with fire a few minutes ago. I've been using the websocket-client library (https://pypi.python.org/pypi/websocket-client/) to interact with another system at work. It implements its own event loop, but doesn't seem to pla

Re: Using namedtuples field names for column indices in a list of lists

2017-01-12 Thread Marko Rauhamaa
"Deborah Swanson" : > I've only been on this list a few weeks, although I've seen and been > on the receiving end of the kind of "help" that feels more like being > sneered at than help. Not on this list, but on Linux and similar > lists. There does seem to be a "tough love" approach to "helping"

need help getting error when trying selenium with python

2017-01-12 Thread Ansuman Suryaprakash
pyhton version 3.5 selenium version 3.0.2 firefox version 50.1.0 pyhton code: from selenium import webdriver browser = webdriver.Firefox() browser.get('http://127.0.0.1:8000') assert 'Django' in browser.title Error: D:\django_learning_TDD>py functional_tests.py Traceback (most recent call la

RE: Using namedtuples field names for column indices in a list of lists

2017-01-12 Thread Deborah Swanson
Antoon Pardon wrote, on January 12, 2017 12:49 AM > > Op 11-01-17 om 23:57 schreef Deborah Swanson: > > > >> What are we supposed to do when somebody asks a question based on an > >> obvious mistake? Assume that they're a quick learner who has probably > >> already worked out their mistake and d

Re: Using namedtuples field names for column indices in a list of lists

2017-01-12 Thread Antoon Pardon
Op 11-01-17 om 23:57 schreef Deborah Swanson: > >> What are we supposed to do when somebody asks a question based on an >> obvious mistake? Assume that they're a quick learner who has probably >> already worked out their mistake and doesn't need an answer? That >> would certainly make our life ea