Re: [Tutor] Questions (and initial responses) on using version control: Why cannot I push my single (master) branch to origin without an error occurring?

2015-05-01 Thread Albert-Jan Roskam via Tutor
On Fri, May 1, 2015 6:21 AM CEST Alex Kleider wrote: >On 2015-04-30 20:39, boB Stepp wrote: >> I created my remote repository on, say my C-drive, with "git init". I >> then copied and pasted a file to that location and put it under >> version control with "git add fil

Re: [Tutor] subprocess.Popen(..., cwd) and UNC paths

2015-05-01 Thread Albert-Jan Roskam via Tutor
On Thu, Apr 30, 2015 1:12 AM CEST eryksun wrote: >On Wed, Apr 29, 2015 at 11:54 AM, Albert-Jan Roskam > wrote: >> Hmmm, that sounds pretty convincing indeed (makes it even stranger that CD >> works the way it works). >> I believe it threw a WindowsError, indicating t

Re: [Tutor] Questions (and initial responses) on using version control: Why cannot I push my single (master) branch to origin without an error occurring?

2015-05-01 Thread Albert-Jan Roskam via Tutor
On Fri, May 1, 2015 5:39 AM CEST boB Stepp wrote: >I created my remote repository on, say my C-drive, with "git init". Not with 'git init --bare'? I usually prefer initializing a remote with a readme, so I can simply clone it and then populate it with files. No 'gi

Re: [Tutor] Questions (and initial responses) on using version control: Why cannot I push my single (master) branch to origin without an error occurring?

2015-05-02 Thread Albert-Jan Roskam via Tutor
- On Sat, May 2, 2015 6:19 AM CEST boB Stepp wrote: >On Fri, May 1, 2015 at 1:41 PM, Albert-Jan Roskam wrote: >> >> >> On Fri, May 1, 2015 5:39 AM CEST boB Stepp wrote: >> >>I created my remote repository on, say my C-drive, with "git init

Re: [Tutor] Object references and garbage collection confusion

2015-05-05 Thread Albert-Jan Roskam via Tutor
- On Tue, May 5, 2015 8:00 PM CEST Steven D'Aprano wrote: >On Tue, May 05, 2015 at 12:29:59AM -0400, Brandon D wrote: >> Hello tutors, >> >> I'm having trouble understanding, as well as visualizing, how object >> references work in the following situation. For demons

Re: [Tutor] Help Learn python - Step by Step

2015-05-10 Thread Albert-Jan Roskam via Tutor
On Sat, May 9, 2015 7:08 PM CEST boB Stepp wrote: >On Sat, May 9, 2015 at 3:23 AM, acolta wrote: >> >> Hi guys, >> >> I want to start coding in python. My background is Linux/Bash/Perl >> (begginner). >> My appreciate if somebody will recommend books/tutorials + exe

Re: [Tutor] reading lines from a list of files

2015-05-12 Thread Albert-Jan Roskam via Tutor
-- On Tue, May 12, 2015 8:48 AM CEST Peter Otten wrote: >Alex Kleider wrote: > >> Is there a better (more 'Pythonic') way to do the following? >> >> for f_name in f_names: >> with open(f_name, 'r') as f: >> for line in f: > >There's the file

Re: [Tutor] reading lines from a list of files

2015-05-12 Thread Albert-Jan Roskam via Tutor
-- On Tue, May 12, 2015 9:54 PM CEST Peter Otten wrote: >Albert-Jan Roskam wrote: > >> It was not that long ago that I found out about the fileinput module, so I >> sometimes forget to use it. It is not specify the encoding of the files, >> is it? It'd be nice if one c

[Tutor] https://trinket.io

2015-05-21 Thread Albert-Jan Roskam via Tutor
Hi, Wired.com features trinket.io [1] and I thought it'd be nice to share this here: https://trinket.io. Not sure whether I like this better than IPython Notebook, though. Regards, Albert-Jan [1] http://www.wired.com/2015/05/running-python-browser-awesome-think

[Tutor] ls *.py[co] >> .hidden

2015-05-21 Thread Albert-Jan Roskam via Tutor
Hi, I would like to hide .pyc and .pyo files because they are visually distracting. Is the aforementioned command the best way? [1]. I know Python 3 uses __pycache__ (much better!), but I also need Python 2. And not writing bytecode files altogether using what's-that-environment-var-called-ag

Re: [Tutor] ls *.py[co] >> .hidden

2015-05-21 Thread Albert-Jan Roskam via Tutor
- Original Message - > From: Steven D'Aprano > To: tutor@python.org > Cc: > Sent: Thursday, May 21, 2015 6:11 PM > Subject: Re: [Tutor] ls *.py[co] >> .hidden > > On Thu, May 21, 2015 at 03:54:20PM +0100, Bod Soutar wrote: > >> ls *.pyc *.pso >> .hidden >> >> should work > [...] >

Re: [Tutor] ls *.py[co] >> .hidden

2015-05-21 Thread Albert-Jan Roskam via Tutor
- Original Message - > From: Alan Gauld > To: tutor@python.org > Cc: > Sent: Friday, May 22, 2015 1:44 AM > Subject: Re: [Tutor] ls *.py[co] >> .hidden > > On 21/05/15 17:57, Emile van Sebille wrote: >> On 5/21/2015 9:28 AM, Albert-Jan Roskam via Tu

tutor@python.org

2015-06-12 Thread Albert-Jan Roskam via Tutor
> > From: Laura Creighton >To: Michelle Meiduo Wu >Cc: l...@openend.se; "tutor@python.org" >Sent: Thursday, June 11, 2015 11:11 PM >Subject: Re: [Tutor] Python&Pytest > > >In a message of Thu, 11 Jun 2015 09:25:25 -0400, Michelle Meiduo Wu writes: >>Hi there, >