Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
tion of: game.players.passing() is not known. This is all info I saw: https://stackoverflow.com/q/28056171/1324175 I searched Google using quite a few search strings, for example: python object returning value python class returning value python dot python attribute but didn't find an answer b

Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
ortunately this was all I had: https://stackoverflow.com/q/28056171/1324175 -- Let There Be Light Custom LED driveri prema specifikacijama http://tinyurl.com/customleddriver Chupo -- https://mail.python.org/mailman/listinfo/python-list

Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article <8bff3a64-e154-4e39-b558-952e8f28a...@googlegroups.com>, Rick Johnson says... > Listen... if you are not familiar with all of Python's built-in functions, > all special methods of Python objects, and all the methods of strings, > integers, floats, lists, tuples,

Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article , DL Neil says... > It can't be - there must be some source for p (code and data)! Surely > you're only showing us a small portion of the code? > I am not author of the question on StackOverflow. I was looking for something about Python and that question w

Re: How to replace space in a string with \n

2019-01-31 Thread Alister via Python-list
(' ') > > if text.count(' ') in text: > space=\n > > rightText = text-space > > print(rightText) > > I should have an output like this: > The best day of my life! -- There is nothing new except what has been forgotten. -- Marie Antoinette -- https://mail.python.org/mailman/listinfo/python-list

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
yer of the material, that means my 3D printer driver is working well. I assumed you could imagine that the driver for driving the head of 3D printer is not just a few lines of code, that it works in real-time and that it interacts with the hardware. > Your reseme may be impressive... What

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
> I was thought > I meant: 'I was taught'. -- Let There Be Light Custom LED driveri prema specifikacijama http://tinyurl.com/customleddriver Chupo -- https://mail.python.org/mailman/listinfo/python-list

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
In article , Chris Angelico says... > There are stupid questions, but I enjoy answering those too. You don't > need to apologize for asking these questions. All you need to do is > ignore the trolls like Rick. In fact, if you abandon Google Groups and > instead read the mailing

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
/mail.python.org/mailman/listinfo/python-list

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
> mission-critical code. And i suppose when the plane crashes you can always > fall back on the "beautiful plumage" of your resume, eh chap? > Now that you are saying that, I thing I should abandon my 150 km/h racing quadcopter flight controller project :-O Especially because

Re: Python program to phone?

2019-02-06 Thread Alister via Python-list
On Mon, 04 Feb 2019 15:20:58 -0500, Steve wrote: > I have written my first python program (600 lines!) to help control my > blood sugar and it has been so successful that my A1c dropped form 9.3 > to an impressive 6.4. It will be much more useful if I had it on my > phone. (MotoG, A

Re: how to exit from a nested loop in python

2019-02-08 Thread Rurpy via Python-list
You can also use exceptions to do a multi-level break: class Next_i (Exception): pass for i in (1,2,3): try: for g in (1,2,3): for s in (1,2,3): print (i,g,s) if (g,s) == (2,2): raise Next_i except Next_i: continue -- https://mail.python.org/mailman/listinfo/python-list

Re: What's the address for?

2019-02-18 Thread Alister via Python-list
en - Become one with the blue screen. -- From a Slashdot.org post -- https://mail.python.org/mailman/listinfo/python-list

Re: How to play with Python in an existing app

2019-02-20 Thread 0x906 via Python-list
A rule of thumb to keep your sanity and maybe your job is to never touch a production system in any way. Use a copy of that db and do all your research there. > On Feb 20, 2019, at 10:56 AM, edmer2...@gmail.com wrote: > > So I'm a newbie to Python. I got access to an existing

Re: tkinter: variable width widgets in a grid?

2019-02-24 Thread Wildman via Python-list
ail.python.org/mailman/listinfo/python-list

Re: how to setup for localhost:8000

2019-02-24 Thread 0x906 via Python-list
; >> I am working on window 7 and Python 3.5 to setup a localhost:8000 but it did >> not get through as shown below: >>> python -m http.server >> Serving HTTP on 0.0.0.0 port 8000 ... >> >> But it did not show the results. >> >> Can someone help

Adopting semantic versioning in trunk based development with Python

2019-04-11 Thread dcs3spp via Python-list
Hi, Hoping posting this in the correct place...Apologies if not I am trying to understand how to use semantic versioning with trunk based development for a Python project. Has anyone had any experience of adopting a trunk based development with semantic versioning for packages? I store

Re: Adopting semantic versioning in trunk based development with Python

2019-04-12 Thread dcs3spp via Python-list
On Thursday, 11 April 2019 17:33:04 UTC+1, dcs3spp wrote: > Hi, > > Hoping posting this in the correct place...Apologies if not > > I am trying to understand how to use semantic versioning with trunk based > development for a Python project. Has anyone had any experi

Re: Tkinter on Mac OS crashes python

2019-05-14 Thread Wildman via Python-list
On Tue, 14 May 2019 11:22:54 -0600, Chip Towner wrote: > I am trying to use tkinter and when I attempt to do so Python crashes. I am > accessing Python (v 3.6.8) in Spyder (v3.6) from Anaconda. The version of > TkVersion tells me the version is 8.6 and the Anaconda environmen

Re: The if is not working properly

2019-05-19 Thread Alister via Python-list
value in which case use if a is True: -- https://mail.python.org/mailman/listinfo/python-list

Re: How to split a list type array into float array?

2019-05-21 Thread Alister via Python-list
> Thanks in advance what have you tried ? (hint look up the docs on the spit method for strings) -- https://mail.python.org/mailman/listinfo/python-list

Re: (no subject)

2019-05-31 Thread Alister via Python-list
On Wed, 29 May 2019 08:07:06 +0530, Sri Tharun wrote: > Why I am unable to install packages because you are doing it wrong -- https://mail.python.org/mailman/listinfo/python-list

Re: Make sure the window title is visible in tkinter

2019-06-26 Thread Wildman via Python-list
10 types of people in the world... those who understand Binary and those who don't." -Spike -- https://mail.python.org/mailman/listinfo/python-list

Re: Make sure the window title is visible in tkinter

2019-06-26 Thread Wildman via Python-list
h?" -Lrrr -- https://mail.python.org/mailman/listinfo/python-list

Re: Hiding a progressbar in tkinter

2019-06-26 Thread Wildman via Python-list
grid_forget(). https://stackoverflow.com/questions/33768577/tkinter-gui-with-progress-bar Disclaimer: I have not tested this code and cannot say for certain that it will work the way you want. -- GNU/Linux user #557453 "Be vewy vewy qwiwet, I'm hunting wabbits." -Elmer Fudd -- https://mail.python.org/mailman/listinfo/python-list

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Wildman via Python-list
epad.exe', stdin=sp.PIPE) >>p0.communicate(input=b'abcd') >>- >>But nothing happens. The notepad is completely empty. What have I missed? >>--Jach >> >>PS. I am using python 3.4 on Windows Vista > > Well I am not a Windows person, but i

Re: how to setup for localhost:8000

2019-07-07 Thread Alister via Python-list
On Sun, 07 Jul 2019 16:57:12 +, nabru wrote: > jaymoyer44 [jaymoye...@gmail.com] wrote: > >> On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com >> wrote: >>> Hi, >>> >>> I am working on window 7 and Python 3.5 to setup a localhost

Transfer Image from Raspberry Pi (Python) to Android app (Java)

2019-07-22 Thread rkartunova--- via Python-list
Hi everyone! I need help transferring an image via TCP from a python program on my raspberry pi to an android application. I have set up a client-server architecture such that my raspberry pi 3 records audio, performs some analysis on it, and then sends the data (via TCP) to the android app to

book on modern Python

2019-07-25 Thread beliavsky--- via Python-list
I did some basic programming in Python 2 and now use Python 3. All I know about Python 3 is that print is a function requiring parentheses. What is a good book on modern Python that covers topics such as type annotations? I know of Fluent Python: Clear, Concise, and Effective Programming by

Re: Definite or indefinite article for non-singletons?

2019-07-27 Thread Mirko via Python-list
all the things. > OR > If s is the empty string, frobs all the things. > """ > > It's entirely possible that a Python implementation will optimize > small strings and thus have exactly one empty string, but it's also > entirely possible to

Trouble installing python

2019-07-28 Thread Steven via Python-list
Good afternoon, I originally started with the latest version of python (3.7), but I was unable to figure out how to get to script mode. There weren't any tabs at the top of the interactive mode window. So I decided to uninstall 3.7, and try 3.5.2 (since that is the version my o

Modify setup

2019-07-30 Thread Steven via Python-list
Good morning, I have uninstalled and reinstalled different versions of Python, and continue to get the "modify setup" box when I try to open. Is there something I'm doing wrong? Sent from ProtonMail mobile -- https://mail.python.org/mailman/listinfo/python-list

Re: help with tkinter

2019-08-01 Thread Wildman via Python-list
On Thu, 01 Aug 2019 16:31:02 +0300, adam kabbara wrote: > Hello I am having trouble with tkinter when I enter the command from tkinter > import* I get an error message > What was the error and what version of Python are you using? For Python 2 you need... from Tkinter import* --

Python/SQLite best practices

2019-08-05 Thread Dave via Python-list
cur.close() | except Error as e: | print(e) What else? Dave, -- https://mail.python.org/mailman/listinfo/python-list

Re: beginner question-very basic

2019-08-11 Thread Wildman via Python-list
On Sun, 11 Aug 2019 12:50:29 -0400, slefkowitz wrote: > Just getting started with Python. > > Downloaded 3.7.4 rom python.org > > I wrote program in Notepad, saved it with a ".py" extension. > > What do I do next? How do I execute a program? I am assuming

Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Dave via Python-list
Oops! Just posted this to the wrong newsgroup. Sorry!!! I'm doing a Python app that uses SQLite, and am stumbling on a few questions. I've read a lot of books and documentation, but two questions still allude me. Ho

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Dave via Python-list
On 8/13/19 4:45 PM, MRAB wrote: On 2019-08-13 19:59, Chris Angelico wrote: On Wed, Aug 14, 2019 at 4:50 AM Dave via Python-list wrote: Some of the tables are related.  For example: Hiking_Table Trails_Table    Joining_Table

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Dave via Python-list
On 8/13/19 2:59 PM, Chris Angelico wrote: On Wed, Aug 14, 2019 at 4:50 AM Dave via Python-list wrote: Some of the tables are related. For example: Hiking_Table Trails_TableJoining_Table -- hike_id PK

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Dave via Python-list
gh. Right now I just need to know how to populate the join table and anything else that has escaped me. SQL is cool. SQL + Python (or C or C++ or Java) is more cool. Lot easier to understand than pointer math in C. Dave, -- https://mail.python.org/mailman/listinfo/python-list

Application Preferences

2019-08-19 Thread Dave via Python-list
file? How have other Python app developers done in this case? Thanks, Dave -- https://mail.python.org/mailman/listinfo/python-list

Re: Application Preferences

2019-08-19 Thread Dave via Python-list
make more sense to use a more traditional preferences file? How have other Python app developers done in this case? We handle the "where is my config file" question by defaulting to script's current directory, then a script-specific folder within their home directory. Users can

Re: Application Preferences

2019-08-19 Thread Dave via Python-list
On 8/19/19 1:53 PM, Barry Scott wrote: On 19 Aug 2019, at 13:43, Dave via Python-list wrote: The plan for an app that I'm doing was to use SQLite for data and to hold the preference settings as some apps do. The plan was changed last week to allow the user to select the location o

Re: Application Preferences

2019-08-19 Thread dboland9 via Python-list
Wow, what happened here? I posted this to the Python discussion group as it is a Python question, not an SQL question. That said, I agree with what you have said, and that was the plan. Plans get changed. A number of apps. allow the user to specify the location of data and configuration

Formatting floating point

2019-09-04 Thread Dave via Python-list
All, I have been going in circles trying to format a floating point number so there is only 1 decimal place. In reading all of the gobble-gook that passes for Python advice, it looked like I should have done this: numStr = '3.14159' num = float(numstr) # OK so far numFmt =

Re: Formatting floating point

2019-09-04 Thread Dave via Python-list
On 9/4/19 1:25 PM, Chris Angelico wrote: On Thu, Sep 5, 2019 at 3:16 AM Dave via Python-list wrote: All, I have been going in circles trying to format a floating point number so there is only 1 decimal place. In reading all of the gobble-gook that passes for Python advice, it looked like I

Re: Formatting floating point

2019-09-04 Thread Dave via Python-list
On 9/4/19 1:38 PM, Rhodri James wrote: On 04/09/2019 18:12, Dave via Python-list wrote: My question is why, and where do I find a reliable source of information on formatting numbers?  Not interested in replacement values like '{} {}'.format(1, 2). Here: https://docs.python.org

Re: [OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-09 Thread Wildman via Python-list
On Mon, 09 Sep 2019 10:23:57 -0700, Tobiah wrote: > We upgraded a server to 18.04 and now when I start typing > a python file (seems to be triggered by the .py extension) > the tabs default to 4 spaces. We have decades of code that > use tab characters, and it has not been our

Re: [OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-09 Thread Wildman via Python-list
On Mon, 09 Sep 2019 10:23:57 -0700, Tobiah wrote: > We upgraded a server to 18.04 and now when I start typing > a python file (seems to be triggered by the .py extension) > the tabs default to 4 spaces. We have decades of code that > use tab characters, and it has not been our

Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
cant find anything on the internet that can help me. What am i doing wrong. my_dict('high':21,'low':5) def add_vat(amount, vat_rate): berekening = amount * (1+vat_rate) return round(berekening,2) print(add_vat(101, 'high')) -- https://mail.python.org/mailman/listinfo/python-list

Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
(add_vat(101, 'high')) outcome: File "", line 3 def add_vat(amount, vat_rate({'high':21,'low':5})): ^ SyntaxError: invalid syntax -- https://mail.python.org/mailman/listinfo/python-list

Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
): > return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) * > 0.15538))/100 > > print(add_vat(101, 'high')) > print(add_vat(101, 'low')) > > -- > Pankaj Jangid Wow No idea what you did there :O Thanks but I think I need to use the dictionary -- https://mail.python.org/mailman/listinfo/python-list

Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
> > 110.09 > > > > > You can do something like this ;-) > > > > > > import math > > > > def add_vat(a, b): > > return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) * > > 0.15538))/100 > > > > print(add_vat(

phyton

2019-09-10 Thread tim.gast--- via Python-list
110.09 Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
g a dictionary? berekening = amount * (1+(vat_rate={'high':21, 'low':5}) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Mirko via Python-list
Am 21.09.2019 um 19:57 schrieb Dave Martin: > Can you provide an example of how to use the suite feature. Thank you. > There is no suite feature, Terry just tried to explain indented blocks to you in simple words. Really, indented blocks are one of the most basic aspects of Python. You

Re: Function to call a extern command as a filter

2019-09-25 Thread lain.mailinglist via Python-list
n_string): > latex = subprocess.run(cmd_string_for_pandoc, > input=markdown_string, > string=True, > capture_output=True) > return latex.output > > The above is completely untested and not in the least bit robust, but > that's the area of the standard library you should b

Launching a Script on the Linux Platform

2019-11-12 Thread Wildman via Python-list
What is the best approach for launching a Python GUI program on a Linux platform. The program will be distributed in .deb format. So the .deb will contain a menu file as well as a .desktop file. The post install script will update the system menu. My question is how should the program be

Re: Launching a Script on the Linux Platform

2019-11-12 Thread Wildman via Python-list
On Tue, 12 Nov 2019 18:39:38 +, Rhodri James wrote: > On 12/11/2019 18:25, Rob Gaddi wrote: >> On 11/12/19 10:06 AM, Wildman wrote: >>> What is the best approach for launching a Python GUI program >>> on a Linux platform.  The program will be distributed in .deb &g

Re: Launching a Script on the Linux Platform

2019-11-18 Thread Wildman via Python-list
On Sun, 17 Nov 2019 18:27:45 +, Barry Scott wrote: >> On 12 Nov 2019, at 20:24, Wildman via Python-list >> wrote: >> >> Yes, I prefer to envoke env in the shebang line instead of >> depending on the path. Paths can change especially in a >> multi-user s

Re: Launching a Script on the Linux Platform

2019-11-18 Thread Wildman via Python-list
On Tue, 19 Nov 2019 05:09:07 +1100, Chris Angelico wrote: > On Tue, Nov 19, 2019 at 5:06 AM Wildman via Python-list > wrote: >> >> On Sun, 17 Nov 2019 18:27:45 +, Barry Scott wrote: >> >> >> On 12 Nov 2019, at 20:24, Wildman via Python-list >> >

Re: Launching a Script on the Linux Platform

2019-11-18 Thread Wildman via Python-list
On Mon, 18 Nov 2019 22:15:31 +0100, Peter J. Holzer wrote: > On 2019-11-18 15:01:57 -0600, Wildman via Python-list wrote: >> On Tue, 19 Nov 2019 05:09:07 +1100, Chris Angelico wrote: >> > On Tue, Nov 19, 2019 at 5:06 AM Wildman via Python-list >> > wrote: >> >

Re: ImportError: No module named Adafruit_SSD1306

2019-12-04 Thread Wildman via Python-list
On Wed, 04 Dec 2019 20:25:33 +, RobH wrote: > I am trying to do this project on a pi zero: > > http://frederickvandenbosch.be/?p=1365 > > I copied the code to the pi zero Download folder and when I run it I get > the above error at line 4 > Import Adafruit_SSD1306 &

Re: Most elegant way to do something N times

2019-12-22 Thread Mirko via Python-list
]: def repeat(func, times, *args): ...: for _ in range(times): func(*args) ...: In [30]: repeat(f, 6, 1, 2, 3) (1, 2, 3) (1, 2, 3) (1, 2, 3) (1, 2, 3) (1, 2, 3) (1, 2, 3) -- https://mail.python.org/mailman/listinfo/python-list

Paper Print Help

2020-02-19 Thread Duram via Python-list
I have a drawing in a .gif file with (a,b) pixels and want to paperprint it in a position (x,y), what would be the code? -- https://mail.python.org/mailman/listinfo/python-list

Re: Please solve this problem

2020-03-09 Thread Wildman via Python-list
died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: The Real-Time Use of Python in Data Science World!

2020-03-10 Thread darcosion--- via Python-list
Why they are ads on this mailing list ? ‐‐‐ Original Message ‐‐‐ Le samedi 7 mars 2020 06:39, a écrit : > Besant Technologies providing Python Training in Chennai with expert guidance > and fully hands-on classes. Python is a high-level programming language > sometime

How to build python binaries including external modules

2020-03-18 Thread James via Python-list
When you build python binaries from source, how to add external modules? For example, to install cython, conventional method is building python first, then running setup.py for cython. I'd like to combine the 2-step into one. Thanks James -- https://mail.python.org/mailman/listinfo/python-list

Re: How to build python binaries including external modules

2020-03-18 Thread James via Python-list
On Wednesday, March 18, 2020 at 4:44:46 PM UTC-7, Michael Torrie wrote: > Cython requires a working Python interpreter to run the setup.py. How > would that work when building python itself? Python binary is built with a host of default modules. My question was how to promote external mo

Re: Python error

2020-04-02 Thread Mirko via Python-list
Am 02.04.2020 um 20:09 schrieb J Conrado: > Hi, > > I have the version of python installed: > Python 3.7.6 and Python 3.8.1 > If I type: > python > Python 3.7.6 (default, Jan 8 2020, 19:59:22) > [GCC 7.3.0] :: Anaconda, Inc. on linux > Type "help", "c

python

2020-04-15 Thread mike via Python-list
I need somehelpwith Python 36-32 and 38-32 I have been using sublime text 3 asmy ide for about 1 year now and everything was fine -I tried to change to Pycharm 2020 - I was going to use sublime 3 as my IDE for python36-32 and the Pycharm2020 forthe IDE forPython38-32. Unfortunatly snt wrong as

SSL Certificate Verify Failed (_ssl.c:600) using Windows Server 2019

2020-04-29 Thread separated via Python-list
hello python-list and the subsribers, I just bought a rdp from someone and try to install python in order to running youtube-dl but when I just run a simple youtube-dl command like 'youtube-dl [youtube video url]' it got me this message : ERROR: Unable to download webpage:

Re: SSL Certificate Verify Failed (_ssl.c:600) using Windows Server 2019

2020-04-30 Thread separated via Python-list
I have tried '-pip install certifi' but it didnt work I can provide the rdp login to you who want to help, just wont waste my cash for 1 month rdp. Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐ On Thursday, April 30, 2020 4:11 AM, separated via Python-li

Re: SSL Certificate Verify Failed (_ssl.c:600) using Windows Server 2019

2020-04-30 Thread separated via Python-list
> I just bought a rdp from someone and try to install python in order to > > running youtube-dl but when I just run a simple youtube-dl command like > > 'youtube-dl [youtube video url]' it got me this message : > > ERROR: Unable to download webpage: > CERTIF

Re: Concatenation of multiple video files in single file

2020-05-09 Thread Wildman via Python-list
On Sat, 09 May 2020 22:06:01 +0530, Akshay Ghodake wrote: > Hello, > > I want a help to concatenation of multiple video files into a single file > in python. > > Any help will be greatly appreciated. > > Best regards, > Akshay Ghodake This might help... https:/

Questioning the effects of multiple assignment

2020-07-06 Thread dn via Python-list
TLDR; if you are a Python 'Master' then feel free to skim the first part (which you should know hands-down), until the excerpts from 'the manual' and from there I'll be interested in learning from you... Yesterday I asked a junior prog to expand an __init__() to accep

Re: Access last element after iteration

2020-07-07 Thread dn via Python-list
/IMHO, one of the harder philosophical lessons to learn, is that (in Python at least) an exception is not necessarily an error - as in 'catastrophe'! Accordingly, there are many examples where 'success' in such a search-pattern might be terminated with raise. The 'c

Re: Questioning the effects of multiple assignment

2020-07-07 Thread dn via Python-list
w/tuple option be implemented as a keyword-argument. However, to answer the question: the method of assigning the arguments' values to parameters is to start from the left, but upon reaching a *identifier to re-start by allocating from the right. This will leave zero or more values 

Re: Questioning the effects of multiple assignment

2020-07-07 Thread dn via Python-list
/mail.python.org/pipermail/python-3000/2007-May/007300.html. Thank you - I had failed to find that discussion, but it and the explanation above, make perfect sense. You can color me hobgoblin for expecting ?'consistency'! - and whilst I'm liberally (mis-)quoting: I'm not g

Re: Questioning the effects of multiple assignment

2020-07-08 Thread dn via Python-list
o avoid side effects is quite common, and becoming increasingly so from what I've seen of recent programming trends. If something along those lines is something you'd be interested in and have some real-world examples of where it could specifically be useful (I currently don't), i

Re: Questioning the effects of multiple assignment

2020-07-08 Thread dn via Python-list
On 8/07/20 11:11 PM, o1bigtenor wrote: On Tue, Jul 7, 2020 at 2:30 AM Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote: Original message From: dn via Python-list mailto:python-list@python.org>> Date: 7/7/20  16:04  (GMT+10:00) To: 'Python

Re: python software foundation

2020-07-10 Thread dn via Python-list
On 11/07/20 5:19 AM, Chris Angelico wrote: On Sat, Jul 11, 2020 at 3:10 AM Jithesh Thirumaran wrote: please uninstall the site packages of python 3.7.2 and tell me the result thank you The result was 1. @Chris, we should discuss this: A

Friday Finking: Limiting parameters

2020-07-10 Thread dn via Python-list
mainframe computers, monolithic programs, when "structured programming" was 'the latest new idea', and OOP[s] was one's exclamation upon making a mistake) we have been re-reading and discussing "Code Complete". It is 'an oldie, but a goodie', and Python p

Re: Friday Finking: Limiting parameters

2020-07-12 Thread dn via Python-list
On 12/07/20 10:10 PM, Barry Scott wrote: On 12 Jul 2020, at 00:15, DL Neil via Python-list mailto:python-list@python.org>> wrote: That does not necessarily mean that the function needs to know the particular representation or form of that data.   Let those be objects with getter metho

Re: Python pandas Excel

2020-07-17 Thread dn via Python-list
you importing the Excel data into the Python environment? Are you able to import a single cell's value, eg "01/11/2017 00:00" Assuming the import produces a string, are you able to "slice" the string into the requisite components? -- Regards =dn -- https://mail.python.or

Re: Python pandas Excel

2020-07-17 Thread dn via Python-list
On 18/07/20 11:06 AM, Dennis Lee Bieber wrote: On Sat, 18 Jul 2020 09:08:50 +1200, dn via Python-list declaimed the following: Assuming the import produces a string, are you able to "slice" the string into the requisite components? Given the OP's stated output --

Re: help

2020-07-17 Thread dn via Python-list
On 18/07/20 1:53 PM, Castillo, Herbert S wrote: I downloaded python not to long ago, and today when I opened Python on Windows it gave me a modify setup prompt. I have tried to click on modify , repair and even uninstalled and installed it back, but when I try to open Python up again, I keep

Re: Issues in downloading python

2020-07-17 Thread dn via Python-list
On 17/07/20 7:22 PM, Shanmika Sugavaneswaran wrote: Though I install the setup , I couldn’t find Python in my system . I don’t know what cause the problem. Please help me! Please advise if the answer is not already covered in https://docs.python.org/dev/using/windows.html -- Regards =dn

Re: excel (multiple sheets) to yml file for each sheet

2020-07-17 Thread dn via Python-list
On 18/07/20 12:04 PM, stack flow wrote: help please. On Thursday, July 16, 2020 at 10:38:23 PM UTC-4, stack flow wrote: Hi, I have excel file with multiple sheets and need output as yml file for each sheet. could someone help me with python code? following is an example: aep sheet: aep

Re: A Python installation help doc much more friendly to newcomers? [Was Re: help]

2020-07-17 Thread dn via Python-list
On 18/07/20 3:29 PM, boB Stepp wrote: On Fri, Jul 17, 2020 at 9:48 PM dn via Python-list wrote: On 18/07/20 1:53 PM, Castillo, Herbert S wrote: I downloaded python not to long ago, and today when I opened Python on Windows it gave me a modify setup prompt. I have tried to click on modify

Re: A Python installation help doc much more friendly to newcomers? [Was Re: help]

2020-07-18 Thread dn via Python-list
On 18/07/20 11:48 PM, Oscar Benjamin wrote: On Sat, 18 Jul 2020 at 05:39, dn via Python-list wrote: On 18/07/20 3:29 PM, boB Stepp wrote: On Fri, Jul 17, 2020 at 9:48 PM dn via Python-list wrote: On 18/07/20 1:53 PM, Castillo, Herbert S wrote: I downloaded python not to long ago, and

Python Program Help

2020-07-21 Thread ksikor14--- via Python-list
#x27; * item[1])) I get this error: Traceback (most recent call last): File "main.py", line 1, in data_title = input("Enter a title for the data:\n") EOFError: EOF when reading a line And can't seem to figure out how to correct it any help would be greatly appreciated. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Program Help

2020-07-21 Thread dn via Python-list
On 7/22/20 7:16 AM, Dennis Lee Bieber wrote: On Tue, 21 Jul 2020 06:38:55 -0700 (PDT), ksikor14--- via Python-list declaimed the following: Since this is apparently a homework assignment, I'm not going to provide fixes -- just some comments. Logic error? (not entirely poking-fu

Re: Iterators, iterables and special objects

2020-07-21 Thread dn via Python-list
h is correct? ...more correct? (well, 'mine', of course! Cue Frank Sinatra: "I did it my way...") Some more reading, which also under-pins and expands the above web.ref: https://docs.python.org/3/library/stdtypes.html If 'everything' in Python is an "object&

Re: How to limit *length* of PrettyPrinter

2020-07-21 Thread dn via Python-list
output stream and print only the first n-characters? (on the grounds that 'close-enough is good-enough'. However, it's your spec...) -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: "OSError: [Errno 9] Bad file descriptor" When I try to Install the library in conda prompt

2020-07-21 Thread dn via Python-list
On 7/22/20 4:46 PM, Mathiyazhagan S wrote: Dear Sir/Madam, I'm new to the python program. I'm trying to install the "numby" or anything to add into the library by using the windows command prompt I'm getting some error please find the attachment. So please help

Re: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread dn via Python-list
ut which one is wrong, so it simply reports the error at the point where it finds it. As a general rule, if you're pointed to a line that looks fine, try looking above it. (And that's not just for Python - many many programming languages exhibit this same behaviour, for the same reason.)

Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread dn via Python-list
*beep* . -- ~eTHAN~ pYTHON lIST mODERATOR NoT a BoT  (i ThInK...) Enjoyed the joke! (and thanks for all the efforts you exert on our behalf) However, questions remain:- Robot: any machine or mechanical device that operates automatically with humanlike skill See also, Turing Machine (

Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread dn via Python-list
On 23/07/2020 11:51, Chris Angelico wrote: On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list wrote: However, questions remain:- Robot: any machine or mechanical device that operates automatically with humanlike skill What about a human that operates mechanically with merely robot-like

Re: Friday Finking: Limiting parameters

2020-07-22 Thread dn via Python-list
On 22/07/2020 05:37, Peter J. Holzer wrote: On 2020-07-13 17:21:40 +1200, dn via Python-list wrote: On 12/07/20 10:10 PM, Barry Scott wrote: I'd expect to see something like this: def mail_label( person, address ): first_name = person.first_name # or if you want a function inte

Re: Spam, bacon, sausage and Spam

2020-07-23 Thread dn via Python-list
list for the Python programming language. It's not a conference advertisement list. +1 (see later) I, OTOH, am unperturbed. +1 ... I have never attended EuroPython and probably never will (I'm on the other side of the planet) but I'm still interested. Rather than sub

<    11   12   13   14   15   16   17   18   19   20   >