Re: Issue with opening a python file

2016-03-31 Thread Steven D'Aprano
On Fri, 1 Apr 2016 02:56 pm, Daniel Ding wrote: > Hello, I'm relatively new to python. > Recently I have been receiving errors every time I attempt to open python > files. When try open them, it sends me directly to the 'Modify Setup' > window. Clicking on repair or modify does not fix the problem

Set type for datetime intervals

2016-03-31 Thread Nagy László Zsolt
Hello, I need to compare sets of datetime intervals, and make set operations on them: intersect, union, difference etc. One element of a set would be an interval like this: element ::= (start_point_in_time, end_point_in_time) intervalset ::= { element1, element2, } Operations on element

Re: Threading is foobared?

2016-03-31 Thread Mark Sapiro
Random832 wrote: > One additional thing that would be nice and would solve most of the > duplicate problem with hypothetically including the rewritten > Message-IDs in outgoing emails, would be to detect crossposts to > multiple lists in the same Mailman instance, and to send them to Usenet > (and

Re: Threading is foobared?

2016-03-31 Thread Mark Sapiro
Random832 wrote: > Any chance that it could fix reference headers to match? > > Actually, merely prepending the original Message-ID itself to the > references header might be enough to change the reply's situation from > "nephew" ("reply to [missing] sibling") to "grandchild" ("reply to > [missin

Issue with opening a python file

2016-03-31 Thread Daniel Ding
Hello, I'm relatively new to python. Recently I have been receiving errors every time I attempt to open python files. When try open them, it sends me directly to the 'Modify Setup' window. Clicking on repair or modify does not fix the problem, it simply goes through the repair or modify process

Re: Use pyodbc to count and list tables, columns, indexes, etc

2016-03-31 Thread DFS
On 3/31/2016 11:44 PM, DFS wrote: import pyodbc dbName = "D:\test_data.mdb" conn = pyodbc.connect('DRIVER={Microsoft Access Driver (*.mdb)};DBQ='+dbName) cursor = conn.cursor() #COUNT TABLES, LIST COLUMNS tblCount = 0 for rows in

Re: The next major Python version will be Python 8

2016-03-31 Thread Steven D'Aprano
On Fri, 1 Apr 2016 11:13 am, Chris Angelico wrote: > Now's the time to get in with the ideas. My proposal is that Python 8, > in keeping with its new opinionated style, will require everyone to > follow a single timezone: Europe/Amsterdam. Swatch Internet time: https://en.wikipedia.org/wiki/Swat

Use pyodbc to count and list tables, columns, indexes, etc

2016-03-31 Thread DFS
import pyodbc dbName = "D:\test_data.mdb" conn = pyodbc.connect('DRIVER={Microsoft Access Driver (*.mdb)};DBQ='+dbName) cursor = conn.cursor() #COUNT TABLES, LIST COLUMNS tblCount = 0 for rows in cursor.tables(): if rows.

Re: The next major Python version will be Python 8

2016-03-31 Thread Roel Schroeven
Ethan Furman schreef op 2016-04-01 02:09: On 03/31/2016 05:02 PM, Roel Schroeven wrote: Victor Stinner schreef op 2016-03-31 23:40: Python 3 becomes more and more popular and is close to a dangerous point where it can become popular that Python 2. The PSF decided that it's time to elaborate a

Re: pip.exe issue with 3.5.1

2016-03-31 Thread Irmen de Jong
On 1-4-2016 0:27, hellofootball1 . wrote: > So i just downloaded python 3.5.1 on my laptop and my pip.exe was not > working. It would almost immediately close on me after I clicked on it. So > i deleted the scripts folder as all of them did the same thing and then > tried the modify feature and the

Re: The next major Python version will be Python 8

2016-03-31 Thread Chris Angelico
On Fri, Apr 1, 2016 at 11:09 AM, Ethan Furman wrote: > On 03/31/2016 05:02 PM, Roel Schroeven wrote: >> >> Victor Stinner schreef op 2016-03-31 23:40: > > >>> Python 3 becomes more and more popular and is close to a dangerous point >>> where it can become popular that Python 2. The PSF decided tha

Re: Convert set to list

2016-03-31 Thread Rob Gaddi
Larry Martell wrote: > I feel like I've converted sets to lists before. But maybe not. Or > maybe I am losing it from having worked 70 hours this week. > > Shouldn't this work? > > (Pdb) print block['relative_chart1']['vessel_names'] > set([u'Common Carotid', u'External Carotid', u'Internal Caroti

Re: The next major Python version will be Python 8

2016-03-31 Thread D'Arcy J.M. Cain
On Fri, 01 Apr 2016 02:02:34 +0200 Roel Schroeven wrote: > Victor Stinner schreef op 2016-03-31 23:40: > > Python 3 becomes more and more popular and is close to a dangerous > > point where it can become popular that Python 2. The PSF decided > > that it's time to elaborate a new secret plan to en

Re: Convert set to list

2016-03-31 Thread Larry Martell
On Thursday, March 31, 2016, Ben Finney wrote: > Larry Martell > writes: > > > I feel like I've converted sets to lists before. But maybe not. Or > > maybe I am losing it from having worked 70 hours this week. > > > > Shouldn't this work? > > In a Python interactive shell? Yes. > > In the PDB she

Re: The next major Python version will be Python 8

2016-03-31 Thread Ethan Furman
On 03/31/2016 05:02 PM, Roel Schroeven wrote: Victor Stinner schreef op 2016-03-31 23:40: Python 3 becomes more and more popular and is close to a dangerous point where it can become popular that Python 2. The PSF decided that it's time to elaborate a new secret plan to ensure that Python user

Re: Convert set to list

2016-03-31 Thread Ben Finney
Larry Martell writes: > I feel like I've converted sets to lists before. But maybe not. Or > maybe I am losing it from having worked 70 hours this week. > > Shouldn't this work? In a Python interactive shell? Yes. In the PDB shell? No, because some different names are defined as commands. Such

Re: The next major Python version will be Python 8

2016-03-31 Thread Roel Schroeven
Victor Stinner schreef op 2016-03-31 23:40: Python 3 becomes more and more popular and is close to a dangerous point where it can become popular that Python 2. The PSF decided that it's time to elaborate a new secret plan to ensure that Python users suffer again with a new major release breaking

Re: Convert set to list

2016-03-31 Thread Chris Angelico
On Fri, Apr 1, 2016 at 10:56 AM, Larry Martell wrote: > I feel like I've converted sets to lists before. But maybe not. Or > maybe I am losing it from having worked 70 hours this week. > > Shouldn't this work? > > (Pdb) print block['relative_chart1']['vessel_names'] > set([u'Common Carotid', u'Ext

Convert set to list

2016-03-31 Thread Larry Martell
I feel like I've converted sets to lists before. But maybe not. Or maybe I am losing it from having worked 70 hours this week. Shouldn't this work? (Pdb) print block['relative_chart1']['vessel_names'] set([u'Common Carotid', u'External Carotid', u'Internal Carotid']) (Pdb) type(block['relative_ch

pip.exe issue with 3.5.1

2016-03-31 Thread hellofootball1 .
So i just downloaded python 3.5.1 on my laptop and my pip.exe was not working. It would almost immediately close on me after I clicked on it. So i deleted the scripts folder as all of them did the same thing and then tried the modify feature and the repair feature of your installer to try and get p

Re: sympy

2016-03-31 Thread Oscar Benjamin
On 31 March 2016 at 22:33, Poul Riis wrote: > Den onsdag den 30. marts 2016 kl. 13.17.33 UTC+2 skrev Poul Riis: >> Is it possible to transfer results from sympy to 'normal' python. >> >> In the case below I think my intention is clear enough but it does not work >> as intended. How can it be done

The next major Python version will be Python 8

2016-03-31 Thread Victor Stinner
Hi, Python 3 becomes more and more popular and is close to a dangerous point where it can become popular that Python 2. The PSF decided that it's time to elaborate a new secret plan to ensure that Python users suffer again with a new major release breaking all their legacy code. The PSF is happy

Re: sympy

2016-03-31 Thread Poul Riis
Den onsdag den 30. marts 2016 kl. 13.17.33 UTC+2 skrev Poul Riis: > Is it possible to transfer results from sympy to 'normal' python. > > In the case below I think my intention is clear enough but it does not work > as intended. How can it be done? > > Poul Riis > > > > > from sympy import *

Re: Pyscripter Issues

2016-03-31 Thread tjohnson
On 3/31/2016 11:29 AM, Zachary Ware wrote: On Thursday, March 31, 2016, Simon Martin wrote: Hi I have been having issues trying to run python 3.5.1 and pyscripter 2.6. Giving the error message that it cannot initialize python. I have tried to re-install multiple versions of both python and

Re: Pyscripter Issues

2016-03-31 Thread tjohnson
On 3/31/2016 11:29 AM, Zachary Ware wrote: On Thursday, March 31, 2016, Simon Martin wrote: Hi I have been having issues trying to run python 3.5.1 and pyscripter 2.6. Giving the error message that it cannot initialize python. I have tried to re-install multiple versions of both python and

Re: Slice equivalent to dict.get

2016-03-31 Thread Zachary Ware
On Thu, Mar 31, 2016 at 12:51 PM, Terry Reedy wrote: > On 3/31/2016 11:24 AM, Peter Otten wrote: >> try...except to the rescue: >> > def get(seq, index, default=None): >> >> ... try: return seq[index] >> ... except IndexError: return default > > > Replace IndexError with (IndexError, K

Re: sympy

2016-03-31 Thread Oscar Benjamin
On 31 March 2016 at 11:57, Poul Riis wrote: > > ... However, the sympy way seems to be about 70 times slower than using the > derivative calculated 'by hand' (try the example below). > Can it be done in a more efficient way? > > Poul Riis > > > > from sympy import * > from time import * > x=Symbo

Re: sympy

2016-03-31 Thread Peter Otten
Chris Angelico wrote: > On Fri, Apr 1, 2016 at 1:55 AM, Peter Otten <__pete...@web.de> wrote: >> Hm, the two functions fmsympy() and fm() do not return the same value: >> >> $ python -i sympy_diff.py >> 1 evaluations with sympy : dt1 = 0.7178411483764648 >> 1 evaluations without sympy:

Re: Slice equivalent to dict.get

2016-03-31 Thread Terry Reedy
On 3/31/2016 11:24 AM, Peter Otten wrote: Steven D'Aprano wrote: Sometimes people look for a method which is equivalent to dict.get, where they can set a default value for when the key isn't found: py> d = {1: 'a', 2: 'b'} py> d.get(999, '?') '?' The equivalent for sequences such as lists a

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Terry Reedy
On 3/31/2016 10:13 AM, Marko Rauhamaa wrote: One could compose a table of correspondences: with some corrections --- list (L)dict (D) --- L[key] = value

Re: sympy

2016-03-31 Thread Chris Angelico
On Fri, Apr 1, 2016 at 1:55 AM, Peter Otten <__pete...@web.de> wrote: > Hm, the two functions fmsympy() and fm() do not return the same value: > > $ python -i sympy_diff.py > 1 evaluations with sympy : dt1 = 0.7178411483764648 > 1 evaluations without sympy: dt2 = 0.10177111625671387 >>>

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-31 Thread Sven R. Kunze
On 31.03.2016 18:30, Travis Griggs wrote: British: http://www.oxforddictionaries.com/definition/english/python American: http://www.dictionary.com/browse/python?s=t That does it. If I ever make some sort of open source module for pythun/pythawn I’ll be sure to call it either tuhmayto/tomawto

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-31 Thread Ian Kelly
On Thu, Mar 31, 2016 at 10:30 AM, Travis Griggs wrote: > >> On Mar 30, 2016, at 2:36 PM, Gregory Ewing >> wrote: >> >> Tim Golden wrote: >> >>> (I don't know how other English-speaking groups say the word, but in >>> England the first syllable is stressed and the second is the >>> conventional s

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-31 Thread Travis Griggs
> On Mar 30, 2016, at 2:36 PM, Gregory Ewing > wrote: > > Tim Golden wrote: > >> (I don't know how other English-speaking groups say the word, but in >> England the first syllable is stressed and the second is the >> conventional short "uh" sound). > > I can attest that New Zealand follows th

Re: Slice equivalent to dict.get

2016-03-31 Thread Sven R. Kunze
On 31.03.2016 17:07, Steven D'Aprano wrote: Sometimes people look for a method which is equivalent to dict.get, where they can set a default value for when the key isn't found: py> d = {1: 'a', 2: 'b'} py> d.get(999, '?') '?' The equivalent for sequences such as lists and tuples is a slice. I

Re: Slice equivalent to dict.get

2016-03-31 Thread Ian Kelly
On Thu, Mar 31, 2016 at 9:24 AM, Peter Otten <__pete...@web.de> wrote: > But note: > def get(seq, index, default=None): > ... return (seq[index:index+1] or [default])[0] > ... get("abc", -1, "default") > 'default' The discontinuity between -1 and 0 in indexing is a pain in the rear.

Re: Pyscripter Issues

2016-03-31 Thread John Gordon
In Simon Martin writes: > I have been having issues trying to run python 3.5.1 and pyscripter 2.6. > Giving the error message that it cannot initialize python. Which version of Python did you get: 32-bit or 64-bit? I vaguely recall that PyScripter won't work with the 64-bit version. -- John

Re: Pyscripter Issues

2016-03-31 Thread Zachary Ware
On Thursday, March 31, 2016, Simon Martin wrote: > > Hi > > I have been having issues trying to run python 3.5.1 and pyscripter 2.6. > Giving the error message that it cannot initialize python. > > I have tried to re-install multiple versions of both python and pyscripter to > no avail. Any advi

Re: Slice equivalent to dict.get

2016-03-31 Thread Peter Otten
Steven D'Aprano wrote: > Sometimes people look for a method which is equivalent to dict.get, where > they can set a default value for when the key isn't found: > > > py> d = {1: 'a', 2: 'b'} > py> d.get(999, '?') > '?' > > > The equivalent for sequences such as lists and tuples is a slice. If

Slice equivalent to dict.get

2016-03-31 Thread Steven D'Aprano
Sometimes people look for a method which is equivalent to dict.get, where they can set a default value for when the key isn't found: py> d = {1: 'a', 2: 'b'} py> d.get(999, '?') '?' The equivalent for sequences such as lists and tuples is a slice. If the slice is out of range, Python returns a

Re: Pyscripter Issues

2016-03-31 Thread Steven D'Aprano
On Fri, 1 Apr 2016 12:45 am, Simon Martin wrote: > Hi > > I have been having issues trying to run python 3.5.1 and pyscripter 2.6. > Giving the error message that it cannot initialize python. > > I have tried to re-install multiple versions of both python and pyscripter > to no avail. Any advice

Re: sympy

2016-03-31 Thread Peter Otten
Poul Riis wrote: > Den onsdag den 30. marts 2016 kl. 17.59.49 UTC+2 skrev Steven D'Aprano: >> On Thu, 31 Mar 2016 02:23 am, Poul Riis wrote: >> >> > What I intend to do is to let sympy find the derivative of some >> > welldefined function and next define the foundation derivative as a >> > normal

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Marko Rauhamaa
Jussi Piitulainen : > operator.itemgetter(*selector)(fields) # ==> ('y', 'y', 'x') > > [...] > > operator.itemgetter(*selector)(field_dict) # ==> ('y', 'y', 'x') > > It's not quite the same but it's close and it works the same for > strings, lists, dicts, ... Not quite the same, but nicely found

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Marko Rauhamaa
Random832 : > So can we discuss how a unified method to get a set of all valid > subscripts (and/or subscript-value pairs) on an object would be a > useful thing to have without getting bogged down in theoretical > claptrap about the meaning of the mapping contract? One could compose a table of c

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Mark Lawrence via Python-list
On 31/03/2016 14:27, Random832 wrote: On Thu, Mar 31, 2016, at 09:17, Mark Lawrence via Python-list wrote: On 31/03/2016 14:08, Antoon Pardon wrote: Op 31-03-16 om 13:57 schreef Chris Angelico: Okay. I'll put a slightly different position: Prove that your proposal is worth discussing by actual

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Marko Rauhamaa
Chris Angelico : > Or, even more likely and even more Pythonic: > [fields[i] for i in selector] > ['y', 'y', 'x'] > > As soon as you get past the easy and obvious case of an existing > function, filter and map quickly fall behind comprehensions in utility > and readability. The general need

Pyscripter Issues

2016-03-31 Thread Simon Martin
Hi I have been having issues trying to run python 3.5.1 and pyscripter 2.6. Giving the error message that it cannot initialize python. I have tried to re-install multiple versions of both python and pyscripter to no avail. Any advice? Thanks Simon Sent from Mail for Windows 10 -- https://m

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Rustom Mody
On Thursday, March 31, 2016 at 6:38:56 PM UTC+5:30, Antoon Pardon wrote: > Op 31-03-16 om 13:57 schreef Chris Angelico: > > Okay. I'll put a slightly different position: Prove that your proposal > > is worth discussing by actually giving us an example that we can > > discuss. So far, this thread ha

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Random832
On Thu, Mar 31, 2016, at 09:17, Mark Lawrence via Python-list wrote: > On 31/03/2016 14:08, Antoon Pardon wrote: > > Op 31-03-16 om 13:57 schreef Chris Angelico: > >> Okay. I'll put a slightly different position: Prove that your proposal > >> is worth discussing by actually giving us an example tha

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Mark Lawrence via Python-list
On 31/03/2016 14:08, Antoon Pardon wrote: Op 31-03-16 om 13:57 schreef Chris Angelico: Okay. I'll put a slightly different position: Prove that your proposal is worth discussing by actually giving us an example that we can discuss. So far, this thread has had nothing but toy examples (and bogoex

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Mark Lawrence via Python-list
On 31/03/2016 13:49, Marco Sulla via Python-list wrote: On 31 March 2016 at 14:30, Mark Lawrence via Python-list wrote: Note that dict also supports __getitem__() and __len__(), but is considered a mapping rather than a sequence because the lookups use arbitrary immutable keys rather than inte

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Chris Angelico
On Fri, Apr 1, 2016 at 12:08 AM, Antoon Pardon wrote: > Op 31-03-16 om 13:57 schreef Chris Angelico: >> Okay. I'll put a slightly different position: Prove that your proposal >> is worth discussing by actually giving us an example that we can >> discuss. So far, this thread has had nothing but toy

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Antoon Pardon
Op 31-03-16 om 13:57 schreef Chris Angelico: > Okay. I'll put a slightly different position: Prove that your proposal > is worth discussing by actually giving us an example that we can > discuss. So far, this thread has had nothing but toy examples (and > bogoexamples that prove nothing beyond that

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Jussi Piitulainen
Marko Rauhamaa writes: > Chris Angelico wrote: > >> Okay. I'll put a slightly different position: Prove that your >> proposal is worth discussing by actually giving us an example that we >> can discuss. > > Sorry for missing most of the arguments here, but if you are talking > about treating lists

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Marco Sulla via Python-list
I want also to add that we are focusing on sequences, but my proposal is also to make map interface more similar, introducing a vdict type that iterates over values, and this will be for me really more practical. PEP 234 ( http://legacy.python.org/dev/peps/pep-0234/ ) never convinced me. Van Rossu

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Chris Angelico
On Thu, Mar 31, 2016 at 11:36 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Thu, Mar 31, 2016 at 10:22 PM, Antoon Pardon >> wrote: >> Okay. I'll put a slightly different position: Prove that your proposal >> is worth discussing by actually giving us an example that we can >> discuss. > > S

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Marko Rauhamaa
Chris Angelico : > On Thu, Mar 31, 2016 at 10:22 PM, Antoon Pardon > wrote: > Okay. I'll put a slightly different position: Prove that your proposal > is worth discussing by actually giving us an example that we can > discuss. Sorry for missing most of the arguments here, but if you are talking

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Mark Lawrence via Python-list
On 31/03/2016 12:58, Marco Sulla via Python-list wrote: On 31 March 2016 at 04:40, Steven D'Aprano wrote: Enough of the hypothetical arguments about what one could do or might do. Let's see a concrete example of actual real world code used in production, not a mickey-mouse toy program, where it

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Marco Sulla via Python-list
On 31 March 2016 at 04:40, Steven D'Aprano wrote: > Enough of the hypothetical arguments about what one could do or might do. > Let's see a concrete example of actual real world code used in production, > not a mickey-mouse toy program, where it is desirable that adding or > deleting one key will

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Chris Angelico
On Thu, Mar 31, 2016 at 10:22 PM, Antoon Pardon wrote: > Op 31-03-16 om 12:36 schreef Steven D'Aprano: >> On Thu, 31 Mar 2016 06:52 pm, Antoon Pardon wrote: >> >>> it is your burden to argue that problem. >> No it isn't. I don't have to do a thing. All I need to do is sit back and >> wait as this

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Antoon Pardon
Op 31-03-16 om 12:36 schreef Steven D'Aprano: > On Thu, 31 Mar 2016 06:52 pm, Antoon Pardon wrote: > >> it is your burden to argue that problem. > No it isn't. I don't have to do a thing. All I need to do is sit back and > wait as this discussion peters off into nothing. The burden isn't on me to >

Re: sympy

2016-03-31 Thread Poul Riis
Den onsdag den 30. marts 2016 kl. 17.59.49 UTC+2 skrev Steven D'Aprano: > On Thu, 31 Mar 2016 02:23 am, Poul Riis wrote: > > > What I intend to do is to let sympy find the derivative of some > > welldefined function and next define the foundation derivative as a normal > > function so that I can c

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Antoon Pardon
Op 31-03-16 om 12:36 schreef Steven D'Aprano: > On Thu, 31 Mar 2016 06:52 pm, Antoon Pardon wrote: > >> it is your burden to argue that problem. > No it isn't. I don't have to do a thing. If that is how you think about this, why do you contribute? I completly understand if you are of the opinion t

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Steven D'Aprano
On Thu, 31 Mar 2016 06:52 pm, Antoon Pardon wrote: > it is your burden to argue that problem. No it isn't. I don't have to do a thing. All I need to do is sit back and wait as this discussion peters off into nothing. The burden isn't on me to justify the status quo. The burden is on those who wan

Which plugin allows quick creation of secure REST services?

2016-03-31 Thread David Shi via Python-list
Hello,  Which plugin allows quick creation of secure REST services?  so that Python scripts can be attached to it. Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: Interpreter not selected

2016-03-31 Thread Ben Finney
muhammed siddiq writes: > Hello Team, Welcome! We are less a team and more a community of Python enthusiasts. You are welcome to ask about Python here. If you need help specifically with PyCharm you will probably need to find its specific support community. > I have installed Python 3.5.1 and

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Antoon Pardon
Op 31-03-16 om 04:44 schreef Steven D'Aprano: > On Thu, 31 Mar 2016 03:52 am, Random832 wrote: > >> Like, these are common patterns: >> >> for i, x in enumerate(l): >># do some stuff, sometimes assign l[i] >> >> for k, v in d.items(): >># do some stuff, sometimes assign d[k] > > for a, b in

Interpreter not selected

2016-03-31 Thread muhammed siddiq
Hello Team, I have installed Python 3.5.1 and now trying to install pycharm, but its not selecting the interpreter and getting the below error all the time. [image: Inline image 1] Quick help will be really appreciated. -- Thanks & Regards Siddiq -- https://mail.python.org/mailman/listi

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Antoon Pardon
Op 31-03-16 om 04:40 schreef Steven D'Aprano: > On Thu, 31 Mar 2016 06:07 am, Antoon Pardon wrote: > >>> Because fundamentally, it doesn't matter whether dicts are surjections or >>> not. They're still many-to-one mappings, and those mappings between keys >>> and values should not change due to the