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
but user can select other locations) | +-App INI Folder | +-App INI file -- https://mail.python.org/mailman/listinfo/python-list

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
, 2019 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 >>

Formatting floating point

2019-09-04 Thread Dave via Python-list
on formatting numbers? Not interested in replacement values like '{} {}'.format(1, 2). Thanks, Dave -- https://mail.python.org/mailman/listinfo/python-list

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
o. > > > Thanks! There are quite a few vim users that frequent the alt.os.linux newsgroups, i.e.; alt.os.linux alt.os.linux.debian alt.os.linux.mint alt.os.linux.ubuntu -- GNU/Linux user #557453 The early bird might get the worm but it is the second mouse that gets the cheese. -- https://mail.python.org/mailman/listinfo/python-list

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

2019-09-09 Thread Wildman via Python-list
nderstand Binary and those who don't." -Spike -- https://mail.python.org/mailman/listinfo/python-list

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
s this: with fits.open(fits_filename) as data: df=pd.DataFrame(data[1].data) ... ^-- See these spaces in front of the commands. That are indentations and all consecutive indented lines are an indented block. Please read the tutorial at https://docs.python.org/3/tutorial/index.html (fourth time now ;-) ) -- https://mail.python.org/mailman/listinfo/python-list

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
py" (Of course, the Exec command in the .desktop file should match.) Is one method better than the other or does it acutally matter? -- GNU/Linux user #557453 "There are only 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: Launching a Script on the Linux Platform

2019-11-12 Thread Wildman via Python-list
on. Shebang! Yea, that is the correct term. All I could think of was hashbang. I knew that wasn't quite right. Yes, I prefer to envoke env in the shebang line instead of depending on the path. Paths can change especially in a multi-user system but env will always know where to find the executable. Thank you for your input. Shebang is the logical answer with all else being equal. -- GNU/Linux user #557453 "Setting a good example is a far better way to spread ideals than through force of arms." -Ron Paul -- https://mail.python.org/mailman/listinfo/python-list

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
D1306 in not installed. https://github.com/adafruit/Adafruit_Python_SSD1306 -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

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
ist-le...@python.org > https://mail.python.org/mailman3/lists/python-announce-list.python.org/ > > Support the Python Software Foundation: > http://www.python.org/psf/donations/ signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-list

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
dule(s) to a list of default modules. Or is it possible? The goal was to build python for cross-platforms with external modules. James -- https://mail.python.org/mailman/listinfo/python-list

Re: Python error

2020-04-02 Thread Mirko via Python-list
would like to know why in the python3.8 version I have this error. Because you installed numpy only for 3.7.6. All Python installations have their own module paths, so you need to install numpy for 3.8.1 too. Do it with: python3.8 -m pip install numpy -- https://mail.python.org/mailman/listinfo/python-list

python

2020-04-15 Thread mike via Python-list
and nothing works - Any Help would be appreciated thank you in advance Top of Form Bottom of Form Python 36-32 problem encoding module not found Bottom of Form Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

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
and cannot tell you where those > certificates are located and how to add additional root certificates. -- https://mail.python.org/mailman/listinfo/python-list

Re: Concatenation of multiple video files in single file

2020-05-09 Thread Wildman via Python-list
/kkroening.github.io/ffmpeg-python/ -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Questioning the effects of multiple assignment

2020-07-06 Thread dn via Python-list
.g., a function) with a possibly empty series of arguments: ... If there are more positional arguments than there are formal parameter slots, a TypeError exception is raised, unless a formal parameter using the syntax *identifier is present; in this case, that formal parameter receives a tuple containing the excess positional arguments (or an empty tuple if there were no excess positional arguments). https://docs.python.org/dev/reference/expressions.html#calls -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Access last element after iteration

2020-07-07 Thread dn via Python-list
alling routine'/outer-block would then be able to utilise a try...except...else...finally structure - arguably both 'richer' and better-understood by 'the average pythonista' than for...else/while...else (per previous discussions 'here') Your thoughts? Apologies to OP, if am 'hi-jacking' original post. -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Questioning the effects of multiple assignment

2020-07-07 Thread dn via Python-list
time ago, and evidently the client has not seen fit to even consider upgrading as part of any sprint, to-date. Note to self...) So, please be aware of: https://docs.python.org/3/whatsnew/3.8.html#positional-only-parameters https://www.python.org/dev/peps/pep-0570/ If you are running a more recent release, perhaps you might like to re-run the snippets, experiment, and document any contrary findings? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Questioning the effects of multiple assignment

2020-07-07 Thread dn via Python-list
parameters (instead of an immutable tuple) might cause problems/"side-effects", were those parameters' values changed within the function! Making sense to you? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Questioning the effects of multiple assignment

2020-07-08 Thread dn via Python-list
REPL-experimentation, have also learned - without first feeling as flummoxed, as we were...) -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

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
correct result would be 0. Did you notice any warning or error messages? https://unix.stackexchange.com/questions/308207/exit-code-at-the-end-of-a-bash-script-- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Friday Finking: Limiting parameters

2020-07-10 Thread dn via Python-list
27;t have to go to the other team to ask their 'permission'/agreement/cooperation or wait for them to build the requisite method! Is passing a function as an argument a safe and valid way to do business, or is it 'showing off'? Does the pass-a-function idea making testing easier (of both the call-ed and the call-ing routines) and might it make a change (eg adding another field) easier to manage in-future? What do you do? Refs: Steve McConnell, "Code Complete", Microsoft Press, 2004. -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

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 getting the same modify setup prompt. I am not sure of what to do? Thank you in advance. Regret that this mailing list does not support graphics attachments. Which part of https://docs.python.org/dev/using/windows.html failed? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python

Re: Issues in downloading python

2020-07-17 Thread dn via Python-list
-- https://mail.python.org/mailman/listinfo/python-list

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

2020-07-17 Thread dn via Python-list
ask a specific question about the situation which is challenging you. Be advised that the members of this list are volunteers. That said, if you want to pay someone to code for you, perhaps mention your budget... -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

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
y dislike this picture, so don't tell anyone I said-so...) Further tutorials you may find helpful: https://towardsdatascience.com/python-basics-iteration-and-looping-6ca63b30835c https://www.w3schools.com/python/gloss_python_iterator_vs_iterable.asp https://www.tutorialspoint.com/difference-between-python-iterable-and-iterator https://www.python-course.eu/python3_iterable_iterator.php -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

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
Conda instructions, Python docs, and the NumPy docs (if relevant)? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

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

2020-07-22 Thread dn via Python-list
hub.com/grantps/superhelp -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

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
Like the decision to use vim or emacs, this topic can generate a lot of heat and emotion. Is there room for both? (and for 'modern IDEs') The "dare not speak out" is sad - both for the individuals and/or the organisation. Wither "inclusion" and "tolerance"? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: How to limit *length* of PrettyPrinter

2020-07-23 Thread dn via Python-list
e who 'lurk' on the list - which is fine. Presumably they are able to read contributions and learn from what seems interesting. This behavior is (to me) a major justification for the digest service - not being 'bombarded' by many email msgs is how some voice their

Re: Iterators, iterables and special objects

2020-07-24 Thread dn via Python-list
-- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: How to limit *length* of PrettyPrinter

2020-07-25 Thread dn via Python-list
ng API from scalar values to a choice between scalars and a tuple. (or was it a list - or does it really matter?) There seemed to be no suggestion beyond isinstance(). In this case, there will be a 'ladder' of if...elif...else clauses, and quite possibly needed in two places - parsin

Re: Symlinks already present

2020-07-26 Thread dn via Python-list
link. The size of a symbolic link is the length of the pathname it contains, without a terminating null byte. Thus, compare the results of the two calls to detect a difference. -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Dowloading package dependencies from locked down machine

2020-07-28 Thread dn via Python-list
PYTHONPATH dirs could be copied/mirrored to the 'difficult machine'. However, if the machine is 'locked-down', am slightly puzzled that 'the man' would allow you to add proscribed software by some other (non-Internet, eg USB) means! -- Regards =dn -- https://mail.pyth

Re: Winreg

2020-07-30 Thread dn via Python-list
On 31/07/2020 07:25, Barry Scott wrote: Use the Reply or Reply-To-All feature of your email program and it will do the rest for you. I can't find instructions for the proper way to reply to 'python list'. Is it simply a matter of keeping the message title identical to the o

Re: questions re: calendar module

2020-07-31 Thread dn via Python-list
s talking about datetime calculations? Please copy-paste code showing this "lock". -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: questions re: calendar module

2020-08-01 Thread dn via Python-list
On 01/08/2020 23:36, o1bigtenor wrote: On Sat, Aug 1, 2020 at 1:29 AM dn via Python-list mailto:python-list@python.org>> wrote: On 31/07/2020 02:52, o1bigtenor wrote: > I regularly work in planning through multiple years at once. > This means that I like to have a

Re: questions re: calendar module

2020-08-01 Thread dn via Python-list
On 02/08/2020 12:24, o1bigtenor wrote: On Sat, Aug 1, 2020 at 6:29 PM dn via Python-list wrote: On 01/08/2020 23:36, o1bigtenor wrote: On Sat, Aug 1, 2020 at 1:29 AM dn via Python-list mailto:python-list@python.org>> wrote: On 31/07/2020 02:52, o1bigtenor wrote: > I regul

Re: questions re: calendar module

2020-08-01 Thread dn via Python-list
On 02/08/2020 12:42, o1bigtenor wrote: On Sat, Aug 1, 2020 at 7:24 PM o1bigtenor wrote: On Sat, Aug 1, 2020 at 6:29 PM dn via Python-list wrote: On 01/08/2020 23:36, o1bigtenor wrote: On Sat, Aug 1, 2020 at 1:29 AM dn via Python-list mailto:python-list@python.org>> wrote: On 31/0

Re: Python running in the Command Prompt Window questions

2020-08-02 Thread dn via Python-list
be ironic if Popeye’s chicken was fried in Olive Oil? The irony was that the marketing drive behind Popeye eating spinach was based upon research that was in-error by at least a factor of ten. -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Updating a variable problem.

2020-08-04 Thread dn via Python-list
term you'll find in the Python docs) ie Local, Enclosing, Global, and Built-in scopes: https://realpython.com/python-scope-legb-rule/ and more in: https://realpython.com/python-namespaces-scope/ -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Explicit is better than Implicit

2020-08-06 Thread dn via Python-list
exactly "sparse") - but forgetting that this technology required the data-arrays to be zeroed first! So, random data from previous use of the same storage area, in random formats, threw all manner of 'spanners in the works'. When you take such news to your boss and colleagues, do NOT even try to convince yourself that they will not "shoot the messenger"! -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Save-to-file code not quite working completely

2020-08-08 Thread dn via Python-list
ollects a list of changes to the file which will be saved to the file, as above. Further, databases have been designed for this sort of partial update scenario. If/when updates become too frequent, or the file becomes extensive, recommend you look at using an RDBMS instead of using this 'flat-file' approach... -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: importlib: import X as Y; from A import B

2020-08-08 Thread dn via Python-list
you can test to ensure a library is available, or take evasive-action if it is not: >>> import so Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'so' (there is a module called "os" though!) -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Save-to-file code not quite working completely

2020-08-10 Thread dn via Python-list
On 10/08/2020 05:23, Dennis Lee Bieber wrote: On Sun, 9 Aug 2020 11:50:51 +1200, dn via Python-list declaimed the following: To be a logomach, let's talk about "update":- May I advise that a 'good practice' would be to create a new file, and thus be able to (also) main

Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread dn via Python-list
-- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to save any files

2020-08-11 Thread dn via Python-list
=dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Support

2020-08-13 Thread dn via Python-list
On 14/08/2020 08:31, Alexa Oña wrote: Helo, I am already subscribed. I De: Alexa Oña Enviado: jueves, 13 de agosto de 2020 18:51 Para: python-list@python.org Asunto: Support Hello, I am Alexa I have tried to install PYTHON 3.8.5, but could not install it on

Whitespace not/required

2020-08-13 Thread dn via Python-list
st recent call last): File "", line 1, in ValueError: Unknown format code '\x20' for object of type 'str' >>> f'{ line = :20}' " line = The mill's closed " >>> f'{line = :20}' "line = The mill's closed " Should the closing brace be considered part of a conversion or format-specification? The space (I'd like to add) cannot be considered part of a conversion or format-specification (see BNF, see text of web.ref)! (when you compare how long it took me to (speed) type this message, and how long it took me to figure-out that my 'excess space' was causing a fault in an f-string, the time-cost was about the same. Grrr! (the relative frustrations-caused, somewhat different!) Will be interested in explanations, and improvements to understanding. (but not so much in 'corrections' to my (mis-)behavior - I already pay that price!) If you're operating at the 'bleeding edge', will be interested to hear how the 'new parser' handles same. Web.Ref: https://docs.python.org/3/reference/lexical_analysis.html -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: How to install your personal module/package on site.

2020-08-14 Thread dn via Python-list
. How should I approach this? Does the word "public" mean world-wide, or perhaps only amongst your work-colleagues? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Whitespace not/required

2020-08-15 Thread dn via Python-list
On 15/08/2020 08:01, Dennis Lee Bieber wrote: On Fri, 14 Aug 2020 16:29:18 +1200, dn via Python-list declaimed the following: it is ignored by Python. (yes, this discussion disdains comments!) For example, whitespace is no problem when it comes to defining a list: month_names = ['Ja

Re: How to install your personal module/package on site.

2020-08-15 Thread dn via Python-list
on package management https://stackoverflow.com/questions/63320653/private-python-package-management -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Syntax question

2020-08-16 Thread dn via Python-list
vide an automatic check of the type of the argument(s) or of the result as in Java. There are 'pros' and 'cons'! -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: LittleRookie

2020-08-18 Thread dn via Python-list
but not for Python training. -- https://mail.python.org/mailman/listinfo/python-list

Re: LittleRookie

2020-08-19 Thread dn via Python-list
w.classcentral.com/ for example includes descriptions of courses available from all over the world... Web.Refs: https://www.edx.org/course/programming-for-everybody-getting-started-with-pyt https://www.coursera.org/learn/python-basics -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Issue

2020-08-20 Thread dn via Python-list
- exactly what happened as a result - use a descriptive message title that will help other beginners with similar problems to benefit from answers-given -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Temporary text for multiple entries

2020-08-21 Thread dn via Python-list
itle that will help other beginners with similar problems to benefit from answers-given -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Matrix of size 100*100- Meghna

2020-08-21 Thread dn via Python-list
as. Such should offer training and tutorial assistance to newcomers (in varying degrees) and be part of your choice-criteria. -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Program chaining on Windows

2020-08-23 Thread dn via Python-list
On 23/08/2020 19:31, Rob Cliffe via Python-list wrote: On WIndows 10, running Python programs in a DOS box, I would like one Python program to chain to another.  I.e. the first program to be replaced by the second (*not* waiting for the second to finish, as with e.g. os.system).  This doesn&#

Re: Program chaining on Windows

2020-08-23 Thread dn via Python-list
On 24/08/2020 09:04, Chris Angelico wrote: On Mon, Aug 24, 2020 at 6:39 AM dn via Python-list wrote: On 23/08/2020 19:31, Rob Cliffe via Python-list wrote: On WIndows 10, running Python programs in a DOS box, I would like one Python program to chain to another. I.e. the first program to be

Training Review: Computational Thinking for Problem Solving

2020-08-24 Thread dn via Python-list
fy which session/component). Disclaimer: I use the ('competing') edX training/education platform - but for non-Python courses. -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Output showing "None" in Terminal

2020-08-25 Thread dn via Python-list
e built-in to VS-Code, or something else? Please be advised that everyone here is volunteering his/her assistance, so the more you help us, the better we can help you! Also, are you aware that there is a Python-Tutor list specifically for Python trainers and trainees? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: About float/double type number in range.

2020-08-26 Thread dn via Python-list
t;*"*12 ) try: for fp_number in fp_iter( 3, 1, 0.5 ): print( fp_number ) except OverflowError as e: print( e ) <<< Console.out >>> 1 1.5 2.0 2.5 **** 1 1.25 1.5 1.75 2.0 2.25 2.5 2.75 1 1.5 2.0 2.5 1 1.25 1.5 1.75 2.0 2.25 2.5 2.75 RangeError: start must be less than stop -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem

2020-09-30 Thread Mirko via Python-list
Am 30.09.2020 um 17:55 schrieb Dennis Lee Bieber: > On Tue, 29 Sep 2020 22:31:18 + (UTC), Ron Villarreal via Python-list > declaimed the following: > >> Tried to open Python 3.8. I have Windows 10. Icon won’t open. > > What "Icon"? > > Pyth

Re: Problem

2020-10-01 Thread Mirko via Python-list
Am 30.09.2020 um 23:44 schrieb Chris Angelico: > On Thu, Oct 1, 2020 at 7:33 AM Mirko via Python-list >> We are seeing these troubles from newcomers on Windows all of the >> time -- and that for years. Isn't it time to ask if the way Python >> installs itself on Wind

Re: Problem

2020-10-01 Thread Mirko via Python-list
le problems. I'm talking about incremental improvements which reduce some -- not remove all -- those troubles, But again, I'm not the one who has to deal with all this. -- https://mail.python.org/mailman/listinfo/python-list

<    4   5   6   7   8   9   10   11   12   13   >