Re: Error

2020-12-07 Thread Michael Torrie
On 12/7/20 11:07 AM, Barry Fitzgerald wrote: > I did the pip install I did the pip install pygameThe pip install > pgzero I get this error C:\Users\barol>pip install pgzeroDefaulting > to user installation because normal site-packages is not > writeableCollecting pgzero Using cached

Re: Error

2020-12-06 Thread Michael Torrie
On 12/5/20 11:41 AM, Barry Fitzgerald via Python-list wrote: > Good day," > > I purchased a book for my son and followed the directions to a T. > (Coding Games in Python) Whenever I got to the point of of moving the > "hello" file over to pgzrun is where my trouble began. Its not > finding a path

Re: Error

2020-12-06 Thread Michael Torrie
On 12/5/20 11:41 AM, Barry Fitzgerald via Python-list wrote: > Good day," > > I purchased a book for my son and followed the directions to a T. (Coding > Games in Python) > Whenever I got to the point of of moving the "hello" file over to pgzrun is > where my trouble began. > Its not finding a

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Michael Torrie
On 10/31/20 5:42 PM, Greg Ewing wrote: > On 1/11/20 9:44 am, Barry Scott wrote: > >> It does not appear to me that use native widgets is important for a tool kit. > > It's not strictly necessary. However, recreating the exact appearance > and behaviour of native widgets is a lot of work, and

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Michael Torrie
On 10/22/20 12:58 PM, Lammie Jonson wrote: > > I have been a rails developer as well as JS/react. I had wanted to > look at python a bit due to it's popularity. > > I looked at tkinter which seems to have quite a few examples out > there, but when I searched indeed.com for tkinter and wxpython

Re: Help with the best practice to learn python

2020-10-19 Thread Michael Torrie
On 10/19/20 9:12 AM, Azhar Ansari wrote: > Hello Python Community, > Kindly help me with the best practice to learn python. > Lots of material over net but its very confusing. What is your goal? Python is a tool. What do you want to do with it? If you don't have any particular thing in mind,

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Michael Torrie
On 10/18/20 5:37 PM, Mladen Gogala via Python-list wrote: > On Sun, 18 Oct 2020 12:19:18 -0600, Michael Torrie wrote: > >> Python certainly is procedural. A script starts at the top and executes >> through to the bottom and ends, barring any flow control in the middle. >>

Re: Simple question - end a raw string with a single backslash ?

2020-10-18 Thread Michael Torrie
On 10/18/20 11:07 AM, Mladen Gogala via Python-list wrote: > The fundamental > difference between the two languages is that Perl is procedural while > Python is a fully OO language. Discussion of Perl vs Python necessarily > devolves into the discussion of procedural vs OO paradigms. Python

Re: Python for Windows

2020-10-14 Thread Michael Torrie
On 10/14/20 11:29 AM, Ana María Pliego San Martín wrote: > I've tried to install Python a couple of times on my computer. Although it > works fine when first downloaded, every time I turn off my computer and > then back on Python says it has a problem that needs fixing. After "fixing" > it, I

Re: Python's carbon guilt

2020-10-11 Thread Michael Torrie
On 10/10/20 9:58 AM, Peter Pearson wrote: > Python advocates might want to organize their thoughts on > this subject before their bosses spring the suggestion: > > From > https://www.sciencemag.org/news/2020/10/we-re-part-problem-astronomers-confront-their-role-and-vulnerability-climate-change >

Re: Problem

2020-09-30 Thread Michael Torrie
On 9/29/20 4:31 PM, Ron Villarreal via Python-list wrote: > Tried to open Python 3.8. I have Windows 10. Icon won’t open. Did you read the documentation? https://docs.python.org/3/using/windows.html Seems like this comes up several times a week. Perhaps the installer should automatically open

Re: Your confirmation is required to join the Python-list mailing list

2020-09-10 Thread Michael Torrie
On 9/10/20 10:48 AM, LZ Lian wrote: > Dear Python Team, > > I've subscribed as requested. I've attached the subscription email > for your reference too > > Now, for the issue I’ve tried to download and install the latest > version of Python software a few times. However, each time I run the

Re: newbie

2020-09-09 Thread Michael Torrie
On 9/8/20 7:24 PM, Grant Edwards wrote: > On 2020-09-08, Don Edwards wrote: > >> I may need. My aim is to write a program >> that simulates croquet - 2 balls colliding with the strikers (cue) ball >> going into the hoop (pocket), not the target ball. I want to be able to >> move the balls around

Re: Replacement for pygtk?

2020-09-05 Thread Michael Torrie
On 9/4/20 3:24 PM, Grant Edwards wrote: > I assume that difference is because pygtk was hand-written and gi is > built auto-magically using SWIG or something like that? Essentially, yes. Although pygobject does not use a tool like swig to generate static wrappers. Rather it uses the GTK

Re: Replacement for pygtk?

2020-09-03 Thread Michael Torrie
On 9/3/20 1:17 PM, Grant Edwards wrote: > On 2020-09-03, Grant Edwards wrote: >> [...] >> >> Is pygobject the replacement for pygtk? > > It seems to be. I've started porting my pygtk app, and it's going > pretty smoothly. I've already got my two custom widgets working. > Oddly, the main module

Re: Another 2 to 3 mail encoding problem

2020-08-26 Thread Michael Torrie
On 8/26/20 9:27 AM, Alexa Oña wrote: > Don’t send me more emails > > https://mail.python.org/mailman/listinfo/python-list ^ Please unsubscribe from the mailing list. Click on the link above. Thank you. --

Re: Program chaining on Windows

2020-08-24 Thread Michael Torrie
On 8/24/20 1:30 AM, Rob Cliffe via Python-list wrote: >> Hmm. Python isn't really set up to make this sort of thing easy. > I guess this sentence pretty well answers my whole post. :-( After reading Eryk Sun's posts, it doesn't appear that Python is the issue here, but rather Windows does not

Re: LittleRookie

2020-08-18 Thread Michael Torrie
On 8/18/20 4:26 PM, Jamelaumn wrote: > i would say i'm new at programing i have a year of experience in python(but > i'm tottaly a noob) i guess i'm starting to learn SQL now.What should i do to > learn better and faster? The only way is to build something with it. Solve a problem with Python.

Re: Need to 'import gtk' on Ubuntu 20.04, what do I need?

2020-07-25 Thread Michael Torrie
On 7/23/20 2:41 PM, Chris Green wrote: > I have recently upgraded my desktop system from ubuntu 19.10 to ubuntu > 20.04. I have some Oki printer/scanner driver software that is > written in Python 2 and, although python 2 is still installed on my > system it's no longer the default python and the

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-03 Thread Michael Torrie
On 7/3/20 10:57 AM, Jon Ribbens via Python-list wrote: > On 2020-07-03, Ethan Furman wrote: >> On 07/02/2020 07:42 PM, Jon Ribbens via Python-list wrote: >>> She didn't - you did. >> >> Please keep the discourse civil. Petty taunts are not helpful. > > Sorry, I don't understand what you are

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 4:46 PM, Random832 wrote: > It's possible that this wasn't explained clearly enough in the commit > message itself (though I would argue it was definitely adequately > explained in the ensuing on-list discussion, and wonder how much of > that discussion you've actually read), but the

Re: FW: Pycharm Won't Do Long Underscore

2020-07-02 Thread Michael Torrie
On 7/2/20 2:55 PM, Danilo Coccia wrote: > Il 30/06/2020 23:46, Joe Pfeiffer ha scritto: >> "Peter J. Holzer" writes: >>> I agree. Although there are some fonts with special ligatures for >>> programming. I have never used one, but that seems like an interesting >>> concept. >> >> I've never heard

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 1:26 PM, Jon Ribbens via Python-list wrote: > On 2020-07-02, Michael Torrie wrote: >> Agreed. She just needs to fix her commit message to remove the sentence >> about the relics of white supremacy. The fact she would conflate an >> author's name with some kind

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 11:11 AM, Dieter Maurer wrote: > In the replaced sentence > `When writing English, follow Strunk and White` > I interpret "Strunk and White" as a reference to some > document containing rules for readable English and "Strunk and White" > are likely the authors of this document. I do not

Re: Pycharm Won't Do Long Underscore

2020-06-25 Thread Michael Torrie
On 6/24/20 7:38 PM, Grant Edwards wrote: > On 2020-06-24, Peter J. Holzer wrote: > >> There is U+FF3F Fullwidth Low Line. >> >>> If there were, Python would not know what to do with it >> >> You can use it in variable names, but not at the beginning, and it isn't >> equivalent to two

Re: Problems with python383.dll

2020-06-17 Thread Michael Torrie
On 6/16/20 11:18 AM, Manuel Fernandez - Università wrote: > Dear Sirs, > I tried to install the software Python 3.8.3 (32 bit), but after it > finished and I tried to start it, there appeared a message in which it > was written that it couldn't find the file python383.dll and stopped. > What can

Re: repair modify uninstall

2020-06-10 Thread Michael Torrie
On 6/10/20 2:09 PM, DL Neil via Python-list wrote: > On 10/06/20 11:26 PM, Silvia Aminul wrote: >> I tried installing Python for windows 10 (the latest version of python >> for >> windows ) >> >> And after downloading and trying to launch it keeps saying repair modify >> uninstall

Re: ctypes & allocated memory

2020-06-07 Thread Michael Torrie
On 6/7/20 2:25 PM, Barry wrote: >> Does ctypes, when using restype, frees allocated memory? >> >> For example, will the memory allocated by "strdup" be freed after the "del" >> statement? If not, how can I free it? > > See https://linux.die.net/man/3/strdup that tells you to use free() to delete

Re: ctypes & allocated memory

2020-06-07 Thread Michael Torrie
On 6/7/20 7:15 AM, Miki Tebeka wrote: > Hi, > > Does ctypes, when using restype, frees allocated memory? > > For example, will the memory allocated by "strdup" be freed after the "del" > statement? If not, how can I free it? I don't think so. I did a quick google search and came up with this

Re: Fwd: How can I build embeddable zip python on Linux

2020-06-04 Thread Michael Torrie
On 6/4/20 2:47 AM, Filip Bascarevic wrote: > When I tried to build GDB with Python support on Linux, I realized I > couldn’t find embeddable python for Linux. > > Please, can you give me some instructions how can I build embeddable Python > from source in Linux? Is it possible in the Linux

Re: Division issue with 3.8.2 on AIX 7.1

2020-06-04 Thread Michael Torrie
On 6/3/20 10:37 PM, Sherry L. West wrote: > I need off this list please. I don’t even have this. Unsubscribe here: https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: Python not running

2020-05-20 Thread Michael Torrie
On 2020-05-20 8:22 a.m., Supriyo Roy wrote: > I have installed the latest version of python which is 3.8.3. However, when > I try to run a sample program, a small python icon appears on my taskbar > for a split second and then disappears. Nothing else happens. Please advise > me on how to get

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-11 Thread Michael Torrie
On 5/11/20 9:25 PM, Michael Torrie wrote: > On 5/11/20 8:33 PM, Buddy Peacock wrote: >> I am trying to install python on my surface with windows 10, version 1903, >> build 18362.778. The installer seems to think everything worked. But there >> is no Python folder anywhere on

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-11 Thread Michael Torrie
On 5/11/20 8:33 PM, Buddy Peacock wrote: > I am trying to install python on my surface with windows 10, version 1903, > build 18362.778. The installer seems to think everything worked. But there > is no Python folder anywhere on the system. I looked in the root directory > as well as "Program

Re: phyton hata

2020-05-04 Thread Michael Torrie
On 5/4/20 4:15 AM, HÜSEYİN KOÇ wrote: > Phyton 3.8.2 versiyonu bilgisayarıma indirdim fakat sorunlar ile > karşılaştınız diyerek hata veriyor > > > Windows 10 için Posta ile > gönderildi > Please ensure Windows is up to date using Windows

Re: Fwd: Sorry, but . . .

2020-04-28 Thread Michael Torrie
On 4/28/20 2:41 PM, Ganesha Sharma wrote: > When I was installing Python 3.8.2, The installer gave me a BSoD. Is there > a way to fix that? I tried 3.6.2 but with Add to Path, with > environment variables off, it did not work. I just want the full Python, > but can you ask the developers to fix

Re: Function to avoid a global variable

2020-04-27 Thread Michael Torrie
On 4/27/20 10:39 AM, Bob van der Poel wrote: > Thanks Chris! > > At least my code isn't (quite!) as bad as the xkcd example :) > > Guess my "concern" is using the initialized array in the function: > >def myfunct(a, b, c=array[0,1,2,3] ) > > always feels like an abuse. > > Has anyone

Re: pytube problem

2020-04-15 Thread Michael Torrie
On 4/14/20 11:22 PM, Abhi Bajpai wrote: > Respected sir or mam.. I am facing issue related to pytube there is > always problem with youtube module please look into this and try to > solve it... I have to submit project.. and now all depends on you. This is a mailing list for general Python help,

Re: What variable type is returned from Open()?

2020-04-15 Thread Michael Torrie
On 4/15/20 5:47 PM, dcwhat...@gmail.com wrote: > So in the case of Python, whenever the type information is available, > I want to make it explicit rather than inferred. Whether the A.I. is > running a simulation of the software in an IDE, or analyzing them as > text documents, they should be

Re: python programs to track bitcoins

2020-04-10 Thread Michael Torrie
On 4/9/20 11:16 PM, dreamyladyg...@gmail.com wrote: > I`m looking if there any programs out there to track bitcoins and those > programs were made by python You can use Google search as well as any of us, or some other search engine. What have you found so far? > > > it`s kinda urgent In the

Re: Fwd: Troubling running my Python

2020-04-08 Thread Michael Torrie
On 4/8/20 1:12 PM, Lorraine Healy wrote: > Hi, > > I have downloaded the 3.8 64 bit python program to my PC but the > interpreter will not run. It seems to have 'repaired' itself when I ran the > setup again but the interpreter still won't run. > Is there a reason for this? Do you require a

Re: A PDF journey to find all python PDF

2020-04-04 Thread Michael Torrie
On 4/4/20 9:08 AM, anson freer wrote: > Thanks, I'll check them out. > tutor sent "The reason it is being held: > > Post by non-member to a members-only list". > > could I be on both lists? I did unsubscribe Yes you can subscribe to both lists of course. But you have to subscribe to each

Re: A PDF journey to find all python PDF

2020-04-03 Thread Michael Torrie
On 4/3/20 1:02 PM, anson freer wrote: > This forum mentioned the Tutor forum so I signed up > I waited a day or 2 heard nothing so I sent msg > got Post by non-member to a members-only list > replied to apologized and > received auto msg > part of which gave do's and don't's of forum > then I

Re: Fw: Python installation problem

2020-04-01 Thread Michael Torrie
On 4/1/20 11:09 AM, HERNANDEZ AGUIRRE JOSE GABRIEL DE LA DOLOROSA wrote: > Para: python-list@python.org > > I  installed  the Python software , but I could not find the python.exe file > with the Unscramble software Actually in windows 10, Idle shows up in the start menu under the "I"s, not in

Re: Fw: Python installation problem

2020-04-01 Thread Michael Torrie
On 4/1/20 11:09 AM, HERNANDEZ AGUIRRE JOSE GABRIEL DE LA DOLOROSA wrote: > I  installed  the Python software , but I could not find the python.exe file > with the Unscramble software What is this "Unscramble software?" After Python is installed, you probably will find the "Idle" integrated

Re: How to uninstall Python3.7 in Windows using cmd ?

2020-03-29 Thread Michael Torrie
On 3/29/20 6:41 PM, Mike Dewhirst wrote: > I would first determine whether it is the 32 or 64 bit version which is > installed. I would then visit www.python.org and download the exact same > python executable installer. Don't know what msi is but it doesn't > matter. I think it just means

Re: Confusing textwrap parameters, and request for RE help

2020-03-27 Thread Michael Torrie
On 3/27/20 3:28 PM, Dan Stromberg wrote: > Back when I was a kid, and wordprocessors were exemplified by WordStar, I > heard about a study the conclusion of which was that aligned right edges > were harder to read - that it was better to align on the left and leave the > right ragged. > > But one

Re: How to build python binaries including external modules

2020-03-18 Thread Michael Torrie
On 2020-03-18 5:06 p.m., James via Python-list wrote: > 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. Cython

Re: Python question

2020-03-13 Thread Michael Torrie
On 3/12/20 4:19 PM, Mike Dewhirst wrote: > I'm not sure I understand what you are saying. How is gmail > behaviour breaking things? The problem is if I post to a mailing list from gmail (either the web interface or Thunderbird via Google's SMTP servers), Google will silently discard my own

Re: Python question

2020-03-12 Thread Michael Torrie
On 3/11/20 8:47 PM, DL Neil via Python-list wrote: > Didn't someone once claim "do no harm"? > > There are two sides to every story! Rather than changing the (Discussion > List) server, which affects everyone; ask those who don't like Google's > tactics/behavior to change their (email) client!

Re: Python question

2020-03-10 Thread Michael Torrie
On 3/10/20 6:49 PM, Souvik Dutta wrote: > What about moving on to a social media app completely made in pythoj for > python? No thanks. I don't want to be on yet another web forum. I don't need "social media" or a "social media app." Email works exceedingly well for this sort of thing, despite

Re: Python question

2020-03-10 Thread Michael Torrie
On 3/10/20 6:40 AM, Chris Angelico wrote: > On Tue, Mar 10, 2020 at 11:22 PM Marco Sulla via Python-list >> I would reply, but I was already too much off topic. I want only to >> write what Gmail reports to me about the last message of the person >> that started this discussion: >> >>> This

Re: Using zipfile to create a zip file with directories and files

2020-03-07 Thread Michael Torrie
On 3/7/20 1:08 AM, mus...@posteo.org wrote: > On Fri, 6 Mar 2020 20:06:40 -0700 > Michael Torrie wrote: > >> The documentation talks about writing files from >> disk, but I'm interested in creating these files from within Python >> directly in the zip archive. >

Using zipfile to create a zip file with directories and files inside

2020-03-07 Thread Michael Torrie
I am trying to do something very simple but having no success in finding out how to do it. I just want to use the Python zipfile module to create a zip file with a specific directory structure and create and write to files inside those subdirectories (not files already on disk). The

Re: Using zipfile to create a zip file with directories and files inside those directories

2020-03-07 Thread Michael Torrie
On 3/7/20 1:08 AM, mus...@posteo.org wrote: > On Fri, 6 Mar 2020 20:06:40 -0700 > Michael Torrie wrote: > >> The documentation talks about writing files from >> disk, but I'm interested in creating these files from within Python >> directly in the zip archive. >

Using zipfile to create a zip file with directories and files inside those directories

2020-03-06 Thread Michael Torrie
I am trying to do something very simple but having no success in finding out how to do it. I just want to use the Python zipfile module to create a zip file with a specific directory structure and create and write to files inside those subdirectories (not files already on disk). The documentation

Re: Application setup like windows msi

2020-03-04 Thread Michael Torrie
On 3/4/20 4:51 PM, J A wrote: > I was wondering g if there was a way to distribute an application that took > advantage of user input like a windows .msi does. On linux of course. Several installer frameworks can make interactive installers for Linux. There's the NullSoft installer and

Re: insert data in python script

2020-02-18 Thread Michael Torrie
On 2/18/20 2:41 AM, alberto wrote: > Il giorno martedì 18 febbraio 2020 09:34:51 UTC+1, DL Neil ha scritto: >> The first instruction (immediately above) imports the module preos.py. >> That works (no error message!). >> >> The second instruction refers to a Python class called Molecule. That >>

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Michael Torrie
On 2/12/20 7:44 AM, Ethan Furman wrote: > On 02/11/2020 04:38 PM, Michael Torrie wrote: > >> It's all just different ways of accounting for the same things. In >> the olden days before the term "technical debt" was invented, we >> called this "total cost

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 6:15 PM, Chris Angelico wrote: > On Wed, Feb 12, 2020 at 12:13 PM Michael Torrie wrote: >> >> On 2/11/20 5:55 PM, Chris Angelico wrote: >>> But you CAN rewrite code such that it reduces technical debt. You can >>> refactor code to make it more logi

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 5:53 PM, Python wrote: > If your hypothetical project was implemented perfectly from the > beginning, in Python2.x, it may never need updating, and therefore > there may well never be any reason to port it to python3. So doing so > would be neither "debt" nor "cost" but rather "waste."

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 5:55 PM, Chris Angelico wrote: > But you CAN rewrite code such that it reduces technical debt. You can > refactor code to make it more logical. You can update things to use > idioms that better express the concepts you're trying to represent > (maybe because those idioms require

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 5:42 PM, Chris Angelico wrote: > Yes, if you consider the term to be synonymous with TCO, then > naturally you'll see it as useless. But it isn't. Technical debt is a > very specific thing and it CAN be paid off. We'll agree to disagree on the last bit. And I'm not the only one that

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 5:37 PM, Chris Angelico wrote: > On Wed, Feb 12, 2020 at 11:32 AM Michael Torrie wrote: >> >> On 2/11/20 2:25 PM, Barry Scott wrote: >>> At Chris said moving to python3 will *reduce* your technical debt. >>> You are paying off the debt. >> >&

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 1:09 PM, Chris Angelico wrote: > What you're talking about is costs in general, but "debt" is a very > specific term. You accrue technical debt whenever you "borrow" time > from the future - doing something that's less effort now at the > expense of being worse in the future. You pay

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 2:25 PM, Barry Scott wrote: > At Chris said moving to python3 will *reduce* your technical debt. > You are paying off the debt. While at the same time incurring new debt. > Not to mention that its harder to hire people to work on tech-debt legacy > code. > > Given the choice between

Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 4:05 AM, Chris Angelico wrote: > Or just the recognition that, eventually, technical debt has to be > paid. Speaking about technical debt is certainly fashionable these days. As if we've somehow discovered a brand new way of looking at things. But it doesn't matter what you do,

Re: How to make a cross platform python app with pyinstaller??

2020-02-04 Thread Michael Torrie
On 2/4/20 8:33 PM, Chris Angelico wrote: > On Wed, Feb 5, 2020 at 2:32 PM Souvik Dutta wrote: >> >> Hi, >> I made a python gui with pyqt5 and packed it with pyinstaller. It is >> running well in my computer but when I gave it to a friend who doesn't have >> any python version installed and it

Re: Help on PyQt5 !!

2020-01-30 Thread Michael Torrie
On 1/30/20 4:38 AM, Souvik Dutta wrote: > Hey guys. I might be asking the most childish question. I have a window in > pyqt5 (a file in python). Let's call it win1. > I have another pyqt5 (another file in python). Let's call it win2. Now win2 > is called when add button in win1 is clicked. So far

Re: PyQt5 QLineEditor help!!!

2020-01-29 Thread Michael Torrie
On 1/29/20 6:11 PM, Souvik Dutta wrote: > Hi guys I just started to learn PyQt5 and was wondering if like kivy we can > delete the text in a textbox after taking the input. That is I want to make > the textbox blank after the text is read. Also can you suggest a way to > connect a cancel button

Re: Help on dictionaries...

2020-01-29 Thread Michael Torrie
On 1/29/20 6:14 PM, Souvik Dutta wrote: > Hey I was thinking how I can save a dictionary in python(obviously) so that > the script is rerun it automatically loads the dictionary. You could use the pickle module for that. See the python.org documentation on pickle. Alternatively you could use a

Re: Python-list Digest, Vol 196, Issue 26

2020-01-27 Thread Michael Torrie
On 1/27/20 12:03 AM, אורי wrote: > Please don't reply to digest. Replying to a digest is just fine. Just make sure to change the subject line in the future so people know what it's referring to. -- https://mail.python.org/mailman/listinfo/python-list

Re: Clarification on Immutability please

2020-01-21 Thread Michael Torrie
On 1/21/20 6:52 PM, Ethan Furman wrote: > On 01/21/2020 10:55 AM, Michael Torrie wrote: > >> Slicing >> returns a new object whether one is slicing a tuple, list, or a string, >> the latter two are mutable objects. > > Strings are not mutable. Yup I got my ite

Re: Clarification on Immutability please

2020-01-21 Thread Michael Torrie
On 1/21/20 11:38 AM, Chris Angelico wrote: > Are you sure that it does? I can't reproduce this. When you slice the > first two from a tuple, you create a new tuple, and until the > assignment happens, both the new one and the original coexist, which > means they MUST have unique IDs. And

Re: Debian Buster: ModuleNotFoundError: No module named 'mysql'

2020-01-18 Thread Michael Torrie
On 1/18/20 9:03 AM, ^Bart wrote: >> What could I do to fix this issue?! :\ > > I understood I have Python 2.7 and Python 3 but I can't install modules > on Python 3... :\ > > ^Bart pip is probably defaulting to Python 2.7. Try using pip3, or this more explicit syntax: python3 -m pip install

Re: Floating point overflow and underflow

2020-01-07 Thread Michael Torrie
On 1/7/20 8:46 PM, Shashank Tiwari wrote: > Yes, I tried this and it worked. I was wondering if I could use the output > of pow (or math.pow). Sure: pow(Decimal('2.2'), Decimal('0.45')) -- https://mail.python.org/mailman/listinfo/python-list

Re: Floating point overflow and underflow

2020-01-07 Thread Michael Torrie
On 1/7/20 8:18 PM, Shashank Tiwari wrote: > Thanks Chris. What if it's pow(2.2,0.45)? Why not do some more experimentation: >>> import decimal >>> a = decimal.Decimal('2.2') >>> b = decimal.Decimal('0.45') >>> a ** b Decimal('1.425903734234490793207619170') Is this what you mean? I'm sure there

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Michael Torrie
On 1/6/20 6:33 PM, Abdur-Rahmaan Janhangeer wrote: > No, i did not write that, it's not Abdur-Rahmaan Janhangeer wrote rather My mistake. I see now that it was something you forwarded to the list from someone else. Doesn't change my reply, though. Whoever said it, it's not very relevant. Who's

Re:

2020-01-06 Thread Michael Torrie
On 1/6/20 10:06 AM, AAKASH JANA wrote: > Julia is a rapidly progressing language directly attacking python's sweet > spot in a.i , m.l and other computational areas. I love python and want it > to remain undefeated . I think its time we create a compiler for python . > So that python can be

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Michael Torrie
On 1/6/20 10:24 AM, Abdur-Rahmaan Janhangeer wrote: > Maybe but if you know or have heard of Julia the language. You will realise > its going to take over what python gives us. So i think there is urgent > need for upgrades to newer versions of python to make basic tasks on python > way quicker.

Re: Error in python installation - was Re: Python, Be Bold!

2020-01-05 Thread Michael Torrie
On 1/5/20 7:59 AM, Kishor Soni wrote: > After proceeding installation, few minutes later such error appears > "0x80072f7d - unspecified error" > A log file is generated and attached herewith I prefer to keep communication on the list. Where did you download the installer from? Python.org or

Re:

2020-01-04 Thread Michael Torrie
On 1/4/20 3:29 PM, William Johnsson wrote: > Hello! My name is William and im 14 years old and live in sweden. Im > pretty new to programing in python and i need some help with code, > (That’s why i’m here). But i couldn’t really find what i was > searching for on the internet. I’m trying to

Re: Python, Be Bold!

2020-01-03 Thread Michael Torrie
On 2020-01-03 5:44 p.m., Abdur-Rahmaan Janhangeer wrote: > .jar provides more than just compression. It provides app info and has > signing ability This is the first time you've mentioned signing ability in this very long thread. At this point I have no idea what point you are even making

Re: Python, Be Bold!

2020-01-02 Thread Michael Torrie
On 1/2/20 2:11 PM, Abdur-Rahmaan Janhangeer wrote: > But single file are better suited for distribution. Maybe. Most windows applications are distributed with installers. I've made several bundles over the years with Nullsoft's installer builder. That's how commercial companies, including those

Re: Python, Be Bold!

2020-01-02 Thread Michael Torrie
On 1/2/20 1:42 PM, Abdur-Rahmaan Janhangeer wrote: > I am not proposing native executables, but a .jar like executable. The term > executable refers to one click run. But a jar file is not executable on Windows and never has been. You can't go to the cmd.exe window and type "myprogram.jar."

Re: Python, Be Bold!

2020-01-02 Thread Michael Torrie
On 1/2/20 1:33 PM, Chris Angelico wrote: > Using a package manager means you have ONE copy of the Python > interpreter, and all your scripts depend on it. If you update that > interpreter, ALL scripts benefit from the update. This is a solved > problem. Except that it's not actually a solved

Re: Python, Be Bold!

2020-01-02 Thread Michael Torrie
On 1/2/20 2:41 AM, Abdur-Rahmaan Janhangeer wrote: > i wonder who uses windows If this kind of thing is important to a user , what you propose would probably be the responsibility of the entity that is producing a Python distribution, such as Anaconda. Usually in such cases these distributions

Re: urllib unqoute providing string mismatch between string found using os.walk (Python3)

2019-12-21 Thread Michael Torrie
On 12/21/19 2:46 PM, Ben Hearn wrote: > These 2 paths look identical, one from the drive & the other from an xml url: > a = '/Users/macbookpro/Music/tracks_new/_NS_2018/J.Staaf - ¡Móchate! > _PromoMix_.wav' ^^ > b =

Re: Troubleshooting

2019-12-12 Thread Michael Torrie
On 12/12/19 8:03 PM, Python wrote: >> Just when I think Windows 10 is a pretty decent system, I encounter >> something inexplicable like this. > > We've gone through that before, haven't we? Yup, Several times. The good news is her son finally got it installed by launching the installer from

Re: Troubleshooting

2019-12-12 Thread Michael Torrie
On 12/12/19 6:33 PM, Python wrote: > catherine morris wrote: >> Good evening, >> >> My son is trying to download python 3.8.0 on my PC, which has Windows 10, >> and it won't install properly. I'm not tech savvy and have no idea where to >> start. > > What happened exactly? Did you download the

Re: Troubleshooting

2019-12-12 Thread Michael Torrie
On 12/12/19 5:40 PM, catherine morris wrote: > Good evening, > > My son is trying to download python 3.8.0 on my PC, which has Windows 10, > and it won't install properly. I'm not tech savvy and have no idea where to > start. > > Catherine Morris I just learned today that Python is officially

Re: Python3 - How do I import a class from another file

2019-12-10 Thread Michael Torrie
On 12/10/19 2:08 PM, R.Wieser wrote: > You might know a thing or two about Python, but you (and a number of others > here) positivily stink as teachers, incapable or even unwilling to place > themselves in the shoes of a newbie. As it happens, I've heard Chris speak about teaching Python to

Re: Python3 - How do I import a class from another file

2019-12-10 Thread Michael Torrie
On 12/10/19 11:47 AM, R.Wieser wrote: > Who did I call stupid ?I mentioned that the language doing it as Chris > thinks it happens would be stupid, and I gave a reason for that (race > conditions everywhere). But odd: Neither him nor you nor anyone else who > complains about me thinking

Re: Python3 - How do I import a class from another file

2019-12-10 Thread Michael Torrie
On 12/10/19 5:44 AM, R.Wieser wrote: >> Well, that's exactly what happens. > > So, only the reference count gets lowered. Yep, thats daft. Why? Consider: a = someobject b = a How many references for someobject? After "del a" what should be be? It's still someobject (the same object). Or

Re: Aw: Re: stuck on time

2019-12-08 Thread Michael Torrie
On 12/8/19 11:47 AM, RobH wrote: > Err, excuse me, I was not attempting to hack into someone else's code. > As the code is in the public domain, I wanted it to work as is, like it > did for the author, without changing anything. No worries, you're totally fine. The word "hack" means something

Re: IOError: cannot open resource

2019-12-07 Thread Michael Torrie
On 12/7/19 9:48 AM, RobH wrote: > On 07/12/2019 16:00, Dan Sommers wrote: >> On 12/7/19 9:43 AM, RobH wrote: >>> When I run a python project with an oled display on a rasperry pi zero, >>> it calls for the Minecraftia.ttf font. I have the said file in >>> home/pi/.fonts/ >> >> Do you mean

Re: Error getting data from website

2019-12-07 Thread Michael Torrie
On 12/7/19 3:53 AM, Peter Otten wrote: > > ... because Amazon doesn' like what you do. You can cheat or play by their > rules and use the API. Yup and although I have no love for Amazon, I can understand why they don't want bots on the site. Already they have enough trouble with bots buying up

Re: Error getting data from website

2019-12-06 Thread Michael Torrie
On 12/6/19 5:31 PM, DL Neil via Python-list wrote: > If you read the HTML data that the REPL has happily splattered all over > your terminal's screen (scroll back) (NB "soup" is easier to read than > is "content"!) you will observe that what you saw in your web-browser is > not what Amazon

Re: Developers are advised to purge these malicious packages

2019-12-04 Thread Michael Torrie
On 12/4/19 10:59 AM, David Lowry-Duda wrote: > I notice that "python3-dateutil" is in over 4000 github repositories > [1]. That sounds like a disaster. > > [1]: https://github.com/search?q=python3-dateutil=Code It's clearly not, as Christian has already said. In fact it would be very difficult

Re: increasing the page size of a dbm store?

2019-12-02 Thread Michael Torrie
On 12/1/19 7:50 PM, Tim Chase wrote: > After sparring with it a while, I tweaked the existing job so that it > chunked things into dbm-appropriate sizes to limp through; for the > subsequent job (where I would have used dbm again) I went ahead and > switched to sqlite and had no further issues.

<    1   2   3   4   5   6   7   8   9   10   >