Re: How Do You Replace Variables With Their Values?

2019-07-10 Thread Frank Millman
On 2019-07-11 12:43 AM, CrazyVideoGamez wrote: How do you replace a variable with its value in python 3.7.2? For example, say I have: dinner = {'Starters':['Fried Calamari', 'Potted crab'],'Main Course':['Fish', 'Meat'], 'Desert':['Cake', 'Banana Split']} # Don't ask where I got the dinner fr

Re: How Do You Replace Variables With Their Values?

2019-07-10 Thread Ben Finney
Terry Reedy writes: > On 7/10/2019 6:37 PM, CrazyVideoGamez wrote: > > > and I'm just changing it with the code above (you can find that by > > printing it out). How can I make separate lists called 'Starters', > > 'Main Course', and 'Desert'? > > starters = dinner['Starters'] > main_course = din

Problem to delete or modify

2019-07-10 Thread Hla Kyi via Python-list
Dear Sir/ Madam,     1. I try to modify, some of the check boxes can not be selected.    2. I try to uninstall, "successfully uninstall" message is come out. When I exit it "if you have any problem, please contact  python-list@python.org " message is come out.     I install Python 3.7.2 at my la

Re: How Do You Replace Variables With Their Values?

2019-07-10 Thread Terry Reedy
On 7/10/2019 6:37 PM, CrazyVideoGamez wrote: the below twice. Please post just once and be patient for at least a couple of hours -- or days if not subscribed. How do you replace a variable with its value in python 3.7.2? Use the variable (name) in an expression. But this is not what you

Re: load extention spatialite in sqlite on windows

2019-07-10 Thread Chris Angelico
On Thu, Jul 11, 2019 at 8:57 AM MICHAEL LANE via Python-list wrote: > > conn.load_extension('c:\\mydll\\mod_spatialite') > sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) OsError 0xc1 (193) > (Background on this error at: http://sqlalche.me/e/e3q8) > Seems this is SQLite's way of

load extention spatialite in sqlite on windows

2019-07-10 Thread MICHAEL LANE via Python-list
Hi, I tried to reproduce this(https://geoalchemy-2.readthedocs.io/en/latest/spatialite_tutorial.html) in windows. How can I do that? I'm using Windows 10, my project use Pyramid Framework with Python 3.6.8. Even though I put the dll file in a directory defined in %PATH% or try with/without f

How Do You Replace Variables With Their Values?

2019-07-10 Thread CrazyVideoGamez
How do you replace a variable with its value in python 3.7.2? For example, say I have: dinner = {'Starters':['Fried Calamari', 'Potted crab'],'Main Course':['Fish', 'Meat'], 'Desert':['Cake', 'Banana Split']} # Don't ask where I got the dinner from for meal in dinner.keys(): meal = l

How Do You Replace Variables With Their Values?

2019-07-10 Thread CrazyVideoGamez
How do you replace a variable with its value in python 3.7.2? For example, say I have: dinner = {'Starters':['Fried Calamari', 'Potted crab'],'Main Course':['Fish', 'Meat'], 'Desert':['Cake', 'Banana Split']} # Don't ask where I got the dinner from for meal in dinner.keys(): meal = lis

Re: Difficulties configuring LTO on macOS with clang

2019-07-10 Thread Barry Scott
> On 10 Jul 2019, at 15:25, Scott Colby wrote: > > Unfortunately that path is absent on my system. Could the issue be that the > llvm version of ar is not present at all on macOS? What remains confusing in > that case is that by using CC=cc (and I assume just ar) the LTO compilation > succe

Re: OT: Is there a name for this transformation?

2019-07-10 Thread Peter J. Holzer
On 2019-07-10 08:57:29 -0400, kamaraju kusumanchi wrote: > Given a csv file with the following contents > > 20180701, A > 20180702, A, B > 20180703, A, B, C > 20180704, B, C > 20180705, C > > I would like to transform the underlying data into a dataframe such as > > date, A, B, C

Re: Pythonic custom multi-line parsers

2019-07-10 Thread Rob Gaddi
On 7/10/19 10:50 AM, Johannes Bauer wrote: Hi list, I'm looking for ideas as to a pretty, Pythonic solution for a specific problem that I am solving over and over but where I'm never happy about the solution in the end. It always works, but never is pretty. So see this as an open-ended brainstor

Re: issue

2019-07-10 Thread Terry Reedy
On 7/10/2019 10:35 AM, joshua kay wrote: Hello, i am encountering a issue with python 3.7.2rc1 64 bit currently My operating system is windows 10 and every time i try to run my code the shell just says: == RESTART: C:\Users\joshu\OneDrive\Desktop\python\projects\multi choice.py == You are runni

Pythonic custom multi-line parsers

2019-07-10 Thread Johannes Bauer
Hi list, I'm looking for ideas as to a pretty, Pythonic solution for a specific problem that I am solving over and over but where I'm never happy about the solution in the end. It always works, but never is pretty. So see this as an open-ended brainstorming question. Here's the task: There's a cu

Re: issue

2019-07-10 Thread Calvin Spealman
If you could share the code you are trying to run, which is causing the issue, someone might be able to help. Without that, it is doubtful you'll get any help. On Wed, Jul 10, 2019 at 11:08 AM joshua kay wrote: > Hello, > i am encountering a issue with python 3.7.2rc1 64 bit currently > My opera

issue

2019-07-10 Thread joshua kay
Hello, i am encountering a issue with python 3.7.2rc1 64 bit currently My operating system is windows 10 and every time i try to run my code the shell just says: == RESTART: C:\Users\joshu\OneDrive\Desktop\python\projects\multi choice.py == I how scanned the internet looking for a solution until i

Re: Difficulties configuring LTO on macOS with clang

2019-07-10 Thread Scott Colby
Unfortunately that path is absent on my system. Could the issue be that the llvm version of ar is not present at all on macOS? What remains confusing in that case is that by using CC=cc (and I assume just ar) the LTO compilation succeeds, despite cc being a symlink to clang anyway. Thanks, Scot

OT: Is there a name for this transformation?

2019-07-10 Thread kamaraju kusumanchi
Given a csv file with the following contents 20180701, A 20180702, A, B 20180703, A, B, C 20180704, B, C 20180705, C I would like to transform the underlying data into a dataframe such as date, A, B, C 20180701, True, False, False 20180702, True, True, False 20180703, True,