the python shell window is already executing a command

2014-09-16 Thread Seymore4Head
I have googled for a solution to this problem. None I have tried worked. I have a very short program that runs for a count of 20 and ends. What I do is click on the IDLE window and without making any changes I just hit f5 to rerun the program. Sometimes I get the error "the python shell window i

Re: [OT] Question about Git branches

2014-09-16 Thread Tim Delaney
On 17 September 2014 02:25, Chris Angelico wrote: > On Wed, Sep 17, 2014 at 2:08 AM, Robert Kern > wrote: > > Yes, but this is due to different design decisions of git and Mercurial. > git > > prioritized the multiple branches in a single clone use case; Mercurial > > prioritized re-cloning. It'

Re: Why `divmod(float('inf'), 1) == (float('nan'), float('nan'))`

2014-09-16 Thread Terry Reedy
On 9/16/2014 5:40 PM, cool-RR wrote: While debugging my code I found that the bug was because I assumed that something like `divmod(float('inf'), 1)` would be equal to `(float('inf'), float('nan'))`, while Python returns `(float('nan'), float('nan'))`. Why does Python make the division result be

[ANN] Jedi Python Autocomplete in Zeus IDE

2014-09-16 Thread jumppanen . jussi
The latest version of the Zeus IDE adds Python autocomplete using the Jedi package. Details about Jedi can be found here: http://jedi.jedidjah.ch/en/latest/ Details of how the autocomplete works can be found here: http://www.zeusedit.com/zforum/viewtopic.php?t=7200 Details of whats new in this

Re: [OT] Question about Git branches

2014-09-16 Thread Marko Rauhamaa
Jason Swails : > One of the code git repos I work with every day is ~4 GB for a working > repo and ~1.6 GB for a bare one. At any given time, I have ~6 branches > I'm working on. Well, branches could be seen as a compression technique. I'm trying to keep my git repositories in the < 1 MB range.

Why `divmod(float('inf'), 1) == (float('nan'), float('nan'))`

2014-09-16 Thread cool-RR
While debugging my code I found that the bug was because I assumed that something like `divmod(float('inf'), 1)` would be equal to `(float('inf'), float('nan'))`, while Python returns `(float('nan'), float('nan'))`. Why does Python make the division result be NaN in this case? `float('inf') / 1`

Problems in python pandas

2014-09-16 Thread prashant.mudgal
Hi All, I am having some problem in python. I have written the code import pandas as pd import numpy as np from scipy.optimize import minimize pd.set_option('display.mpl_style', 'default') """Read the input file into the dataframe""" """T1 file contains the decision variables, corresponding inve

Re: [OT] Question about Git branches

2014-09-16 Thread Ben Finney
Terry Reedy writes: > I agree. If a post on parquet flooring were held for moderation, I > would discard it. Threads that wander off into parquet flooring type > topics are best let die. I'm glad to know that, thank you. > >> (2) Parquetry flooring has nothing to do with Python programming, > >

Re: [OT] Question about Git branches

2014-09-16 Thread Robert Kern
On 2014-09-16 17:25, Chris Angelico wrote: On Wed, Sep 17, 2014 at 2:08 AM, Robert Kern wrote: Yes, but this is due to different design decisions of git and Mercurial. git prioritized the multiple branches in a single clone use case; Mercurial prioritized re-cloning. It's natural to do this kin

Too many emails, remove (was Re: Python 3.3.2 help)

2014-09-16 Thread Terry Reedy
On 9/16/2014 7:25 AM, D Moorcroft wrote: Can i be taken off the list please as i am getting too many e-mails. Go to https://mail.python.org/mailman/listinfo/python-list and at the bottom, enter your email address in the box after "To unsubscribe from Python-list, get a password reminder, or ch

Re: [OT] Question about Git branches

2014-09-16 Thread Terry Reedy
On 9/16/2014 4:00 AM, Albert-Jan Roskam wrote On Tue, Sep 16, 2014 9:37 AM CEST Steven D'Aprano wrote: Ben Finney wrote: "Frank Millman" writes: I know there some Git experts on this list, so I hope you don't mind me posting this question here I do. There may be experts on parquetry f

Re: [OT] Question about Git branches

2014-09-16 Thread Chris Angelico
On Wed, Sep 17, 2014 at 2:08 AM, Robert Kern wrote: > Yes, but this is due to different design decisions of git and Mercurial. git > prioritized the multiple branches in a single clone use case; Mercurial > prioritized re-cloning. It's natural to do this kind of branching in git, > and more natura

Re: [OT] Question about Git branches

2014-09-16 Thread Robert Kern
On 2014-09-16 13:14, Steven D'Aprano wrote: Chris Angelico wrote: On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: "Frank Millman" : You are encouraged to make liberal use of 'branches', Personally, I only use forks, IOW, "git clone". I encourage that practice. Then, there is little

Re: Iterator, modify data in loop body

2014-09-16 Thread Chris Angelico
On Tue, Sep 16, 2014 at 6:49 PM, Thomas Rachel wrote: > Am 13.09.2014 09:22 schrieb Chris Angelico: > >> In that case, don't iterate over the list at all. Do something like this: >> >> while lst: >> element = lst.pop(0) >> # work with element >> lst.append(new_element) > > > And if

Re: Iterator, modify data in loop body

2014-09-16 Thread Thomas Rachel
Am 13.09.2014 09:22 schrieb Chris Angelico: In that case, don't iterate over the list at all. Do something like this: while lst: element = lst.pop(0) # work with element lst.append(new_element) And if you don't like that, define a def iter_pop(lst): while lst: yiel

Re: Thread-ID - how much could be?

2014-09-16 Thread Thomas Rachel
Am 11.09.2014 23:32 schrieb Ervin Hegedüs: There is no upper limit to the thread name other than that you will eventually run out of memory ;) thanks - I hope that the memory will not run out by these threads... :) Anyway, that means, on my system: import sys print sys.maxint 9223372036854

Re: [OT] Question about Git branches

2014-09-16 Thread Jason Swails
On Tue, 2014-09-16 at 10:59 +0200, Frank Millman wrote: > "Chris Angelico" wrote in message > news:CAPTjJmr5gh8=1zPjG_KdTmA2QgT_5jj=kh=jyvrfv1atl1e...@mail.gmail.com... > > On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: > >> "Frank Millman" : > >> > >>> You are encouraged to make liberal

Re: [OT] Question about Git branches

2014-09-16 Thread Tim Delaney
On 16 September 2014 22:14, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > Chris Angelico wrote: > > > On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa > wrote: > >> "Frank Millman" : > >> > >>> You are encouraged to make liberal use of 'branches', > >> > >> Personally, I only us

Re: [OT] Question about Git branches

2014-09-16 Thread Chris Angelico
On Tue, Sep 16, 2014 at 10:14 PM, Steven D'Aprano wrote: > Chris Angelico wrote: > >> On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: >>> "Frank Millman" : >>> You are encouraged to make liberal use of 'branches', >>> >>> Personally, I only use forks, IOW, "git clone". I encourage tha

Re: [OT] Question about Git branches

2014-09-16 Thread Steven D'Aprano
Chris Angelico wrote: > On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: >> "Frank Millman" : >> >>> You are encouraged to make liberal use of 'branches', >> >> Personally, I only use forks, IOW, "git clone". I encourage that >> practice. Then, there is little need for "git checkout". Inste

Re: Python 3.3.2 help

2014-09-16 Thread MRAB
On 2014-09-16 12:25, D Moorcroft wrote: Hi, Can i be taken off the list please as i am getting too many e-mails. [snip] It's up to you to unsubscribe from the list. -- https://mail.python.org/mailman/listinfo/python-list

Re: List insert at index that is well out of range - behaves like append that too SILENTLY

2014-09-16 Thread MRAB
On 2014-09-16 06:58, dieter wrote: Harish Tech writes: Let me demonstrate the problem I encountered : I had a list a = [1, 2, 3] when I did a.insert(100, 100) [1, 2, 3, 100] as list was originally of size 4 and I was trying to insert value at index 100 , it behaved like append instead o

Re: Python 3.3.2 help

2014-09-16 Thread D Moorcroft
Hi, Can i be taken off the list please as i am getting too many e-mails. Thank you, David Moorcroft ICT Operations Manager & Website Manager Turves Green Girls' School - Original Message - From: "Steven D'Aprano" To: python-list@python.org Sent: Monday, 15 September, 2014 3:08:09 PM Su

Re: CSV methodology

2014-09-16 Thread Peter Otten
jayte wrote: > On Mon, 15 Sep 2014 09:29:02 +0200, Peter Otten <__pete...@web.de> wrote: > >>jayte wrote: >> >>> Sorry, I neglected to mention the values' significance. The MXP program >>> uses the "distance estimate" algorithm in its fractal data generation. >>> The values are thus, for each po

Re: python script monitor

2014-09-16 Thread Skip Montanaro
On Sep 16, 2014 4:17 AM, "Nicholas Cannon" wrote: > > Nah I mean like there is performance issues. It delivers result that I want just mot very conveinetly fast. Take a look at the cProfile module. That's what it's called in Python 2.x. Not sure if it lost its camel case spelling in 3.x or is now

Re: [OT] Question about Git branches

2014-09-16 Thread Frank Millman
"Albert-Jan Roskam" wrote in message > > > I like "Pragmatic guide to Git". 122 pages, to the point, practical. > Thanks, Albert-Jan. I have started reading it, and it looks useful. Thanks too for your previous response, which was also 'pragmatic and to the point' :-) Frank -- https://mai

Re: python script monitor

2014-09-16 Thread Nicholas Cannon
Nah I mean like there is performance issues. It delivers result that I want just mot very conveinetly fast. -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Question about Git branches

2014-09-16 Thread Frank Millman
"Chris Angelico" wrote in message news:CAPTjJmr5gh8=1zPjG_KdTmA2QgT_5jj=kh=jyvrfv1atl1e...@mail.gmail.com... > On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: >> "Frank Millman" : >> >>> You are encouraged to make liberal use of 'branches', >> >> Personally, I only use forks, IOW, "git c

Re: [OT] Question about Git branches

2014-09-16 Thread Albert-Jan Roskam
- On Tue, Sep 16, 2014 10:29 AM CEST Chris Angelico wrote: >On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: >> "Frank Millman" : >> >> You are encouraged to make liberal use of 'branches', >> >> Personally, I only use forks, IOW, "git clone". I encourage that >

Re: [OT] Question about Git branches

2014-09-16 Thread Chris Angelico
On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: > "Frank Millman" : > >> You are encouraged to make liberal use of 'branches', > > Personally, I only use forks, IOW, "git clone". I encourage that > practice. Then, there is little need for "git checkout". Instead, I just > cd to a different

Re: [OT] Question about Git branches

2014-09-16 Thread Marko Rauhamaa
"Frank Millman" : > You are encouraged to make liberal use of 'branches', Personally, I only use forks, IOW, "git clone". I encourage that practice. Then, there is little need for "git checkout". Instead, I just cd to a different directory. Branches and clones are highly analogous processwise; I

Re: [OT] Question about Git branches

2014-09-16 Thread Albert-Jan Roskam
- On Tue, Sep 16, 2014 9:37 AM CEST Steven D'Aprano wrote: >Ben Finney wrote: > >> "Frank Millman" writes: >> >> I know there some Git experts on this list, so I hope you don't mind >> me posting this question here. >> >> I do. There may be experts on parquetry floo

Re: [OT] Question about Git branches

2014-09-16 Thread Steven D'Aprano
Ben Finney wrote: > "Frank Millman" writes: > >> I know there some Git experts on this list, so I hope you don't mind >> me posting this question here. > > I do. There may be experts on parquetry flooring in this forum, but a > topic is not on-topic merely because some people here may know abou

Re: functools.wraps behaviour

2014-09-16 Thread ISE Development
Chris Angelico wrote: > On Tue, Sep 16, 2014 at 9:15 AM, ISE Development > wrote: >> @functools.wraps(func) >> def wrapper(self): >> func(self) >> return wrapper >> >> try: >> k.method(1) >> except Exception as e: >> print('exception:',e