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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 *
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
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
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
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
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:
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
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
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
>>>
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
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
> 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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
69 matches
Mail list logo