Re: How to have python 2 and 3 both on windows?

2022-04-22 Thread Mats Wichmann
On 4/22/22 11:40, Gisle Vanem wrote: > Barry wrote: > >> Tip “py.exe -0” will list the state of installed pythons. > Not here; 'py.exe -0' gives: >   Requested Python version (0) not installed > > Which PyInstaller version support this '-0' option? > Looks like this got added around 3.7... htt

Re: Style for docstring

2022-04-25 Thread Mats Wichmann
On 4/25/22 16:34, Cameron Simpson wrote: > On 23Apr2022 03:26, Avi Gross wrote: >> We know some people using "professional" language make things shorteror >> talk from a point of view different than others and often in >> otherwise incomprehensible jargon. >> If a programmer is taking about the

Re: new sorting algorithm

2022-05-02 Thread Mats Wichmann
On 5/2/22 07:09, charles hottel wrote: > Some versions of Quicksort switch over to Straight Insertion Sort when > the partitions become small enough. The correct size will vary depending > on the hardware. > > I have not kept up with the latest improvements and I am not familiar > with TimSort. 

Re: Python/New/Learn

2022-05-05 Thread Mats Wichmann
On 5/4/22 19:36, Patrick 0511 wrote: > Hello, I'm completely new here and don't know anything about python. Can > someone tell me how best to start? So what things should I learn first? If you know what kinds of learning experiences work best for you, that might help. For some people, books, or

Re: Fwd: Do projects exist to audit PyPI-hosted packages?

2022-05-06 Thread Mats Wichmann
On 5/6/22 09:24, Sam Ezeh wrote: > -- Forwarded message - > From: Sam Ezeh > Date: Fri, 6 May 2022, 15:29 > Subject: Re: Do projects exist to audit PyPI-hosted packages? > To: Skip Montanaro > > > I've had similar thoughts in the past. I don't know of anything but I > wonder if

Re: "py" command for Linux and Mac?

2022-05-12 Thread Mats Wichmann
On 5/12/22 10:25, Dan Stromberg wrote: > Hi folks. > > I heard there's a Windows-like "py" command for Linux (and Mac?). > > I'm finally getting to porting a particular project's Python 2.7 code to > 3.x, and one of the first steps will probably be changing a lot of "python2 > script.py" to use #

Re: Fwd: Could not load correctly

2022-05-23 Thread Mats Wichmann
On 5/21/22 09:14, Robert Loomis wrote: Forwarded Message Subject: Could not load correctly Date: Sat, 21 May 2022 10:58:39 -0400 From: Robert Loomis Reply-To: b...@loomisengineering.com To: python-list@python.org I am new to python.I tried to download

Re: F-string usage in a print()

2022-05-24 Thread Mats Wichmann
On 5/24/22 15:14, Kevin M. Wilson via Python-list wrote: > future_value = 0 > for i in range(years): > # for i in range(months): >future_value += monthly_investment >future_value = round(future_value, 2) ># monthly_interest_amount = future_value * monthly_interest_rate ># future_val

Re: help, please, with 3.10.4 install

2022-05-30 Thread Mats Wichmann
On 5/28/22 20:11, Jack Gilbert wrote: > I downloaded 3.10.4 on a 64 bit , 8.1 > also, the same line: Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, > 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32 in CMD prompt > > for the life of me I can't figure out how to launch python?? Sounds like you'r

Re: Function to Print a nicely formatted Dictionary or List?

2022-06-09 Thread Mats Wichmann
On 6/9/22 11:52, Chris Angelico wrote: > On Fri, 10 Jun 2022 at 03:44, Dave wrote: >> >> Hi, >> >> Before I write my own I wondering if anyone knows of a function that will >> print a nicely formatted dictionary? >> >> By nicely formatted I mean not all on one line! >> > > https://docs.python.or

Re: Need help in blockchain coding.

2022-06-11 Thread Mats Wichmann
On 6/11/22 15:29, dn wrote: > On 12/06/2022 02.51, Ayesha Tassaduq wrote: >> I am a beginner in python I want to transfer generated hash to a local >> database. I try it with socket programming but I fail. can anyone please >> help me ow I can do this? > > Where is the database? > Where is the s

Re: python.org wiki, not allowing me to log in?

2022-06-11 Thread Mats Wichmann
On 6/11/22 16:45, Dan Stromberg wrote: > Hi folks. > > I have a little elbow grease available, so I thought I'd edit > https://wiki.python.org/moin/BeginnersGuide/Download > > ...a little. > > However, signing in with my google creds by clicking the little Google > button, gives me: > OpenID dis

Re: fill out bulletins

2022-06-13 Thread Mats Wichmann
On 6/13/22 11:11, Michael F. Stemper wrote: > On 13/06/2022 08.49, jak wrote: >> Hello everyone, >> I would like to write a tool to compile post office bulletins because >> here, unfortunately, they are still the most convenient way to interface >> the public administration. I don't want to create

Re: argparse modify

2022-06-23 Thread Mats Wichmann
On 6/23/22 16:32, Dennis Lee Bieber wrote: > On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" > declaimed the following: > >> ??? wrote at 2022-6-23 15:31 +0300: >>> how to solve this (argparse) > >>>MAXREPEAT = _NamedIntConstant(32,name=str(32)) >>> TypeError: 'name' is an invalid k

Re: 3.11.0b4?

2022-06-24 Thread Mats Wichmann
On 6/23/22 07:14, Richard David wrote: > Is there a new scheduled date for releasing 3.11.0b4? Are there issues with > b4 that have implications for b3? > > I realize it will be released when ready and am not trying to push or harass > anyone involved. It just seems that versions are usually re

Re: Python installation

2022-07-04 Thread Mats Wichmann
On 7/4/22 06:29, Mark Pawelek wrote: > I also have a windows installation issue on Windows 10: > > ISSUE: I cannot select a folder to install Python in. I want to put > it under Program Files. The 'installer' only wants to put it in > C:\users\Lenovo\AppData\local\Programs\Python\Python310 > > W

Re: TENGO PROBLEMAS AL INSTALAR PYTHON

2022-07-08 Thread Mats Wichmann
On 7/8/22 14:15, Igor Korot wrote: > Hi, > > On Fri, Jul 8, 2022 at 2:54 PM ANGIE ODETTE LIMA BANGUERA > wrote: >> >> buenos dias necesito ayuda, tengo problemas al momento de instalar python >> 10.0 en la aplicación de visual studio code > > Can you please describe what the problem is? > Which

Re: list indices must be integers or slices, not str

2022-07-20 Thread Mats Wichmann
On 7/20/22 05:04, Frank Millman wrote: > I think the preferred style these days is f'{x[-1]}' which works." > > Unfortunately the 'f' option does not work for me in this case, as I am > using a string object, not a string literal. For that you could consider https://pypi.org/project/f-yeah/ (s

Re: random.SystemRandom().randint() inefficient

2022-07-27 Thread Mats Wichmann
On 7/27/22 02:45, Cecil Westerhof via Python-list wrote: > Barry writes: >> What version of python and where from? > > That is always good information of-course. > Debian 11.3 > 5.10.0-13-amd64 > 3.9.2 > > What do you mean with where the python version is from? On Windows, the platform of a la

Re: Trying to understand nested loops

2022-08-05 Thread Mats Wichmann
On 8/5/22 03:56, GB wrote: > On 05/08/2022 08:56, Frank Millman wrote: > >> BTW, there is an indentation error in your original post - line 5 >> should line up with line 4. > > As a Python beginner, I find that Python is annoyingly picky about > indents.  And, the significance of indents is a bi

Re: Python getting problem of installing pyqt5

2022-08-15 Thread Mats Wichmann
On 8/13/22 09:32, Varad Gore wrote: Looks like you have a version mismatch problem. > Collecting pyqt5 > Using cached PyQt5-5.15.7-cp37-abi3-win_amd64.whl (6.8 MB) > Requirement already satisfied: PyQt5-Qt5>=5.15.0 in > c:\users\gorev\appdata\local\packages\pythonsoftwarefoundation.python.3.1

Re: INSTALLATION DOES NOT WORK FRO GITBASH COMMAND LINE

2022-08-24 Thread Mats Wichmann
On 8/23/22 05:00, Gladstone Rose wrote: > Why is my installation of Python does not work at the command line for git > bash. > > I get the following message > bash: python3: command not found The git bash package for Windows is built from msys2, a GNU/Linux type environment which is only provisi

Re: ImportError: No module named spambayes.resources (line 12 of setup_all.py)

2022-08-24 Thread Mats Wichmann
On 8/24/22 13:54, Erik M. Brown via Python-list wrote: > Is anyone here familiar with SpamBayes? I am working with legacy 2.4.x > Python code (I'm not a programmer, more of a power user) and I'm attempting > to build the windows binary from the SpamBayes source. > > > > I'm running into an e

Re: WHAT THIS EXCEPTION MEANT? I ATTCHED SCREENSOHT

2022-09-09 Thread Mats Wichmann
On 9/8/22 06:34, נתי שטרן wrote: [image: image.png] The mailing list strips attachments, replacing them by a placeholder as you see above. If you want to try again, please paste the text of the exception. -- https://mail.python.org/mailman/listinfo/python-list

Re: [py-usr] flake8 gives me a W605 but Python don't

2022-09-10 Thread Mats Wichmann
On 9/10/22 13:20, Stefan Ram wrote: writes: 'Version: \d+.\d+.\d+.*' All unrecognized escape sequences are left in the string unchanged, i.e., the backslash is left in the result. This behavior is useful when debugging: if an escape sequence is mistyped, the resulting output is m

Re: Which architectures to support in a CI like Travis?

2022-09-19 Thread Mats Wichmann
On 9/18/22 03:46, c.bu...@posteo.jp wrote: Hello, I am using TravisCI for my project on GitHub. The project is packaged for Debian, Ubuntu, Arch and several other distros. All this distros support multiple architectures and they have their own test machines to take care that all packages workin

Re: when I open a python idle it's constantly showing subprocess connection error

2022-09-20 Thread Mats Wichmann
On 9/20/22 09:36, asika wrote: Sent from [1]Mail for Windows References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 dunno if you were trying to send screenshots or something, that doesn't work here. Try: https://docs.python.org/3/libra

Re: WG: Modify setup window

2022-10-11 Thread Mats Wichmann
On 10/11/22 01:20, evagreve...@gmail.com wrote: Hi, this window comes up every time I try to run the code. I am not sure how to solve it. I tried to repair and modify but it didn´t change anything. We don't know what you're asking, because this list doesn't forward images. You'll ne

Re: Find the path of a shell command

2022-10-13 Thread Mats Wichmann
On 10/12/22 14:51, Paulo da Silva wrote: Às 19:14 de 12/10/22, Jon Ribbens escreveu: On 2022-10-12, Paulo da Silva wrote: Às 05:00 de 12/10/22, Paulo da Silva escreveu: Hi! The simple question: How do I find the full path of a shell command (linux), i.e. how do I obtain the corresponding of,

Re: A trivial question that I don't know - document a function/method

2022-10-24 Thread Mats Wichmann
On 10/23/22 14:20, Paulo da Silva wrote: Às 21:58 de 22/10/22, Paulo da Silva escreveu: Hi all! What is the correct way, if any, of documenting a function/method? Thank you all for the, valuable as usual, suggestions. I am now able to make my choices. Paulo It also matters whether you exp

Re: Python 3.11 with Pygame

2022-10-25 Thread Mats Wichmann
On 10/25/22 11:47, Joni Ekholm wrote: Hi, Does Pygame work with 3.11? with 3.10 no problems. Br Joni It often takes a while for projects with binary wheels to to catch up to new Python releases. You can always go check: https://pypi.org/project/pygame/#files From that, it seems there are

Re: Python 3.11.0 installation and Tkinter does not work

2022-11-22 Thread Mats Wichmann
On 11/21/22 14:41, Thomas Passin wrote: On 11/21/2022 1:24 PM, Stefan Ram wrote: darkst...@o2online.de writes: import _tkinter    I don't know why you get this error message. Here, I do not    get an error message from that line. However, the normal way    to use tkinter, as far as I know, is

Re: argparse — adding a --version flag in the face of positional args

2022-11-27 Thread Mats Wichmann
On 11/27/22 16:40, Skip Montanaro wrote: I have a script to which I'd like to add a --version flag. It should print the version number then exit, much in the same way --help prints the help text then exits. I haven't been able to figure that out. I always get a complaint about the required positi

Re: Setupfailure

2022-11-29 Thread Mats Wichmann
On 11/28/22 07:12, Kelvin Buuri wrote: May python failed to install Was there an antual question here? If so, give details when re-asking. -- https://mail.python.org/mailman/listinfo/python-list

Re: unable to resolve readline issues

2022-12-05 Thread Mats Wichmann
On 12/4/22 13:08, Eryk Sun wrote: On 12/2/22, biglee12...@gmail.com wrote: From this point on Python became unusable as I uninstalled rebooted then reinstalled to find I have the same issues as stated. Finally uninstalled Python as it doesn't perform as usual especially trying to understand

Re: New computer, new Python

2022-12-09 Thread Mats Wichmann
On 12/9/22 14:56, rbowman wrote: On Fri, 9 Dec 2022 12:13:16 -0500 (EST), ker...@polaris.net wrote: How can I write my own Python Functions and subroutines in the new Python? Personally, I would go with VS Code: https://learn.microsoft.com/en-us/training/modules/python-install-vscode/ It su

Re: Top level of a recursive function

2022-12-13 Thread Mats Wichmann
On 12/13/22 10:36, Chris Angelico wrote: On Wed, 14 Dec 2022 at 03:35, Michael F. Stemper wrote: It's easy enough -- in fact necessary -- to handle the bottom level of a function differently than the levels above it. What about the case where you want to handle something differently in the top

Re: Download Not Working

2022-12-16 Thread Mats Wichmann
On 12/16/22 09:07, Kaiser Arnhart wrote: Good afternoon, I am unable to open Python 3 after downloading. For context, I uninstalled it due to not checking the "Add to Path" box Others have already asked for more details. On the above, though, note that you can fix many aspects of the install

Re: String to Float, without introducing errors

2022-12-17 Thread Mats Wichmann
On 12/17/22 07:15, Thomas Passin wrote: You have strings, and you want to end up with numbers.  The numbers are not integers.  Other responders have gone directly to whether you should use float or decimal as the conversion, but that is a secondary matter. If you have integers, convert with i

Re: Subject: problem activating python

2022-12-17 Thread Mats Wichmann
On 12/17/22 15:45, Anne wrote: I tried several times to install and use python for youtube views with Tor using Youtube tutorials but I keep getting error after error. Please help me. regards Dimpho Folks around here tend to be pretty helpful. But only if you describe the prob

Re: Fwd: Installation hell

2022-12-18 Thread Mats Wichmann
On 12/18/22 04:50, Jim Lewis wrote: I'm an occasional user of Python and have a degree in computer science. Almost every freaking time I use Python, I go through PSH (Python Setup Hell). Sometimes a wrong version is installed. Sometimes it's a path issue. Or exe naming confusion: python, python3,

Re: pip/setuptools: Entry points not visible from pkexec-root-environment

2022-12-18 Thread Mats Wichmann
On 12/18/22 14:07, c.bu...@posteo.jp wrote: Dear Chris, thank you for your reply. Am 18.12.2022 20:27 schrieb Chris Angelico: Does it have to be in path? Can't you say /usr/local/bin/entrypointname? Not sure what constitutes an elegant solution here. I asked that myself. My current solution

Re: Fwd: Installation hell

2022-12-19 Thread Mats Wichmann
On 12/19/22 13:34, j via Python-list wrote: I was unclear. I use the full path to the folder with the unzipped python-embedded. I shouldn't have said 'set'. I have complained on here before about broken installs but got indifference. An installer should install stuff correctly (leaving a work

Re: Installation hell

2022-12-19 Thread Mats Wichmann
On 12/19/22 14:47, Eryk Sun wrote: If you search a bit deeper, you'll find a site with unofficial Windows builds of many packages, including pygame for Python 3.11: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame Semi-OT: that's been a superb resource, but apparently it's no longer maintain

Re: Fwd: About the Python

2023-01-02 Thread Mats Wichmann
On 1/2/23 10:32, Thomas Passin wrote: Since you have an immediate need to have working installations, I suggest that you downgrade to an earlier version of Python. V3.11.1 is new and some binary libraries (such as numpy) may not be working correctly yet with the latest version.  Your students w

Re: No module named 'playsound'‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏‏

2023-01-09 Thread Mats Wichmann
On 1/9/23 08:30, Thomas Passin wrote: On 1/9/2023 9:40 AM, om om wrote: I'm installing playsound pip install playsound but it keeps saying No module named playsound and this error occurs on other packages Did the installation by pip succeed? if not, what was the error message? "It keeps sayin

Re: Improvement to imports, what is a better way ?

2023-01-18 Thread Mats Wichmann
On 1/18/23 12:29, Paul Bryan wrote: I would suggest allowing each module to define its own imports, don't import what a module doesn't consume, keep them simple, avoid devising a common namespace for each, and let tools like isort/black work out how to order/express them in source files. Indeed

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-26 Thread Mats Wichmann
On 1/24/23 23:28, Jach Feng wrote: Chris Angelico 在 2023年1月25日 星期三下午1:16:25 [UTC+8] 的信中寫道: On Wed, 25 Jan 2023 at 14:42, Jach Feng wrote: I was happy working with argparse during implement my script. To save the typing, I used a default equation for testing. sample = "-4^2+5.3*abs(-2-1)/2, a

Re: ChatGPT Generated news poster code

2023-02-12 Thread Mats Wichmann
On 2/12/23 07:58, Roland Müller via Python-list wrote: Hello, On 2/11/23 03:31, Greg Ewing via Python-list wrote: For a moment I thought this was going to be a script that uses ChatGPT to generate a random news post and post it to Usenet... Which would also have been kind of cool, as long as i

Re: LRU cache

2023-02-15 Thread Mats Wichmann
On 2/14/23 15:07, Dino wrote: Here's my problem today. I am using a dict() to implement a quick and dirty in-memory cache. I am stopping adding elements when I am reaching 1000 elements (totally arbitrary number), but I would like to have something slightly more sophisticated to free up spa

Re: Precision Tail-off?

2023-02-17 Thread Mats Wichmann
On 2/17/23 11:42, Richard Damon wrote: On 2/17/23 5:27 AM, Stephen Tucker wrote: The key factor here is IEEE floating point is storing numbers in BINARY, not DECIMAL, so a multiply by 1000 will change the representation of the number, and thus the possible resolution errors. Store you numbe

Re: File write, weird behaviour

2023-02-19 Thread Mats Wichmann
On 2/19/23 14:06, Dieter Maurer wrote: Azizbek Khamdamov wrote at 2023-2-19 19:03 +0500: ... Example 2 (weird behaviour) file = open("D:\Programming\Python\working_with_files\cities.txt", 'r+') ## contains list cities # the following code DOES NOT add new record TO THE BEGINNING of the file IF

Re: Python + Vim editor

2023-02-22 Thread Mats Wichmann
On 2/22/23 11:16, Tramiv wrote: On 2023-02-22, Hen Hanna wrote: what editor do you (all) use to write Python code? (i use Vim) For short editin I also use Vim and Pycharm IDE for bigger projects. The community has submitted some answers to that question here (two lists, some entrants d

Re: lxml with python-3.12.0a5

2023-02-23 Thread Mats Wichmann
On 2/23/23 06:03, Robin Becker wrote: I'm trying to test python-3.12.0a5 and need to install lxml. My wheel build for lxml fails with errors like this src/lxml/etree.c: In function ‘__Pyx_PyIndex_AsSsize_t’: src/lxml/etree.c:270404:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no m

Re: lxml with python-3.12.0a5

2023-02-23 Thread Mats Wichmann
On 2/23/23 07:47, Mats Wichmann wrote: On 2/23/23 06:03, Robin Becker wrote: I'm trying to test python-3.12.0a5 and need to install lxml. My wheel build for lxml fails with errors like this src/lxml/etree.c: In function ‘__Pyx_PyIndex_AsSsize_t’: src/lxml/etree.c:270404:45:

Re: putting JUNK at the end of a [.py] file

2023-02-24 Thread Mats Wichmann
On 2/23/23 22:16, Thomas Passin wrote: On 2/23/2023 7:21 PM, Hen Hanna wrote: in a LaTeX file,   after the (1st)   \end{document} line,    i can put any random Junk i want    (afterwards)   until the end of the file. Is there a similar Method  for a    .py file ? Since

Re: putting JUNK at the end of a [.py] file

2023-02-24 Thread Mats Wichmann
On 2/24/23 08:27, Mats Wichmann wrote: Indeed, I work on a project that by convention puts editor instructions at the end of each file (which some might consider junk :-) ), like this: # Local Variables: # tab-width:4 # indent-tabs-mode:nil # End: # vim: set expandtab tabstop=4 shiftwidth

Re: Not receiving posts

2023-02-24 Thread Mats Wichmann
On 2/23/23 13:56, Grant Edwards wrote: On 2023-02-23, Jim Byrnes wrote: I have been reading the python-list for some time now. At first via gemane and since it's demise via a subscription. FWIW, gmane is still there, and still working fine. I read this list by pointing slrn at news.gmane.io

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Mats Wichmann
On 2/26/23 14:07, Hen Hanna wrote: On Monday, August 29, 2022 at 7:18:22 PM UTC-7, Paul Rubin wrote: Just because. from math import gcd def fizz(n: int) -> str: match gcd(n, 15): case 3: return "Fizz" case 5: return "Buzz" case 15: return

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Mats Wichmann
On 2/27/23 16:42, Oscar Benjamin wrote: On Mon, 27 Feb 2023 at 21:06, Ethan Furman wrote: On 2/27/23 12:20, rbowman wrote: > "By using Black, you agree to cede control over minutiae of hand- > formatting. In return, Black gives you speed, determinism, and freedom > from pycodestyle nagg

Re: How to fix this issue

2023-03-01 Thread Mats Wichmann
On 2/27/23 17:51, Arslan Mehmood wrote: How I can remove python terminl, its again and again open during working in python. Please help me to resolve this issue. Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits"

Re: Regular Expression bug?

2023-03-02 Thread Mats Wichmann
On 3/2/23 12:28, Chris Angelico wrote: On Fri, 3 Mar 2023 at 06:24, jose isaias cabrera wrote: Greetings. For the RegExp Gurus, consider the following python3 code: import re s = "pn=align upgrade sd=2023-02-" ro = re.compile(r"pn=(.+) ") r0=ro.match(s) print(r0.group(1)) align upgrade T

Re: Cryptic software announcements (was: ANN: DIPY 1.6.0)

2023-03-05 Thread Mats Wichmann
On 3/1/23 04:57, Rob Cliffe via Python-list wrote: I think it would be a good idea if software announcements would include a single paragraph (or maybe just a single sentence) summarizing what the software is and does. hp +1 Rob Cliffe Excellent adivce - and many of the announceme

Re: Friday finking: IDE 'macro expansions'

2023-03-16 Thread Mats Wichmann
On 3/16/23 16:55, dn via Python-list wrote: It is a long, long, time since I've thrown one of these into the maelstrom of our musings. (have the nightmares receded?) Do you make use of your IDE's expansionist tendencies, and if-so, which ones? NB this is where vi/emacs enthusiasts start ch

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Mats Wichmann
On 3/23/23 09:48, Thomas Passin wrote: I didn't realize that Christoph Gohlke is still maintaining this site. Unless the the last-changed stuff stopped working, it's in a static state: by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC -- https://mail.python.org/mailman/listinfo/pyt

Re: Patrick Sheehan: Major Issues with Python

2023-03-26 Thread Mats Wichmann
On 3/25/23 14:03, Patrick Sheehan wrote: Hello, I have been working with the attached book (See photo) to try to learn Python and so far it has been a complete nightmare trying to get python installed and operating correctly. I have received a plethora of error messages and consulted youtube vid

Re: How does a method of a subclass become a method of the base class?

2023-03-27 Thread Mats Wichmann
On 3/26/23 17:53, Jen Kris via Python-list wrote: I’m asking all these question because I have worked in a procedural style for many years, with class work limited to only simple classes, but now I’m studying classes in more depth. The three answers I have received today, including yours, hav

Re: recent-files

2023-03-28 Thread Mats Wichmann
On 3/28/23 16:39, g...@uol.com.br wrote: In Python 3.11.2,  the recent-files list keeps always increasing because it is impossible to edit the list; the corresponding .txt file has disappeared. Please help! Please explain what you're asking about. What recent-files list? Python

Re: Ole version set as default

2023-03-29 Thread Mats Wichmann
On 3/29/23 10:46, Pranav Bhardwaj wrote: Dear sir, I am Pranav Bhardwaj and I stuck in a problem. My problem is that in my system I have python 3.11.2 but when I type python in my command prompt, my command prompt show that python version 2.7.13 as a default. And I can't be able t

Re: Windows Gui Frontend

2023-04-01 Thread Mats Wichmann
On 4/1/23 11:34, Eryk Sun wrote: On 4/1/23, Jim Schwartz wrote: Are there any ide’s that will let me design the screen and convert it to python? I doubt it because it was mentioned that this is time consuming. Thanks for the responses everyone. I appreciate it. For Qt, the WYSIWYG UI editor

Re: Problem in using libraries

2023-04-04 Thread Mats Wichmann
On 4/3/23 10:43, Pranav Bhardwaj wrote: Why can't I able to use python libraries such as numpy, nudenet, playsound, pandas, etc in my python 3.11.2. It always through the error "import 'numpy' or any other libraries could not be resolved". Will restate what others have said in the hopes it migh

Re: Christoph Gohlke and compiled packages

2023-04-11 Thread Mats Wichmann
On 4/11/23 06:03, Roel Schroeven wrote: Op 11/04/2023 om 12:58 schreef Chris Angelico: Python itself is fine, but a lot of third-party packages are hard to obtain. So if you need numpy, for instance, or psycopg2, you might need to find an alternative source. These days I use pip to install pac

Re: Christoph Gohlke and compiled packages

2023-04-11 Thread Mats Wichmann
On 4/11/23 11:48, Oscar Benjamin wrote: On Tue, 11 Apr 2023 at 14:55, Mats Wichmann wrote: On 4/11/23 06:03, Roel Schroeven wrote: Op 11/04/2023 om 12:58 schreef Chris Angelico: Python itself is fine, but a lot of third-party packages are hard to obtain. So if you need numpy, for instance

Re: Weak Type Ability for Python

2023-04-12 Thread Mats Wichmann
On 4/12/23 11:11, Chris Angelico wrote: On Thu, 13 Apr 2023 at 03:05, Ali Mohseni Roodbari wrote: Hi all, Please make this command for Python (if possible): x=1 y='a' wprint (x+y) 1a In fact make a new type of print command which can print and show strings and integers together. Try: p

Re: PyCharm's strict PEP and not so strict?

2023-04-20 Thread Mats Wichmann
On 4/19/23 17:19, dn via Python-list wrote: The "light bulb" has little to do with "quotes"! This is one of the advantages of utilising a Python-native IDE (cf a more general-purpose alternative, perhaps with some Python add-on). PyCharm attempts to understand the code it is editing, and apply

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Mats Wichmann
On 4/20/23 15:47, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" finds my_local_module.py in the directory of the script. However, when I

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-23 Thread Mats Wichmann
On 4/22/23 16:04, Ralf M. wrote: Am 21.04.2023 um 18:07 schrieb Thomas Passin: On 4/20/2023 5:47 PM, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local

Re: Is npyscreen still alive?

2023-04-24 Thread Mats Wichmann
On 4/24/23 10:32, Grant Edwards wrote: On 2023-04-24, Grant Edwards wrote: The other big advantage of an ncurses program is that since curses support is in the std library, a curses app is simpler to distribute. Right now, the application is a single .py file you just copy to the destination

Re: How to 'ignore' an error in Python?

2023-04-28 Thread Mats Wichmann
On 4/28/23 09:55, Chris Green wrote: I'm sure I'm missing something obvious here but I can't see an elegant way to do this. I want to create a directory, but if it exists it's not an error and the code should just continue. So, I have:- for dirname in listofdirs: try:

Re: How to 'ignore' an error in Python?

2023-04-28 Thread Mats Wichmann
On 4/28/23 11:05, MRAB wrote: On 2023-04-28 16:55, Chris Green wrote: I'm sure I'm missing something obvious here but I can't see an elegant way to do this.  I want to create a directory, but if it exists it's not an error and the code should just continue. So, I have:- for dirname in lis

Re: Disable 'style PEP' messages

2023-05-04 Thread Mats Wichmann
On 5/4/23 10:28, Kevin M. Wilson via Python-list wrote: Hi... How do I set Pycharm to find only syntax errors?!! By configuring PyCharm the way you want. See PyCharm's documentation for how to do that. Hint: Settings -> Editor -> Code Style -> Inspections -- https://mail.python.org/mailm

Re: Do subprocess.PIPE and subprocess.STDOUT sametime

2023-05-09 Thread Mats Wichmann
On 5/9/23 12:13, Horst Koiner wrote: Hi @all, i'm running a program which is still in development with subprocess.run (Python version 3.10), further i need to capture the output of the program in a python variable. The program itself runs about 2 minutes, but it can also freeze in case of new

Re: Black boxes

2023-05-10 Thread Mats Wichmann
On 5/10/23 08:19, Ondřej Jůn wrote: Good day. After installing the Python program from your site and restarting the computer as requested by the program, problems occurred. That's rather suspicious, because the python installer doesn't do that. That's only needed if you replace files in use b

Re: Do subprocess.PIPE and subprocess.STDOUT sametime

2023-05-10 Thread Mats Wichmann
On 5/10/23 12:51, Dieter Maurer wrote: Horst Koiner wrote at 2023-5-9 11:13 -0700: ... For production i run the program with stdout=subprocess.PIPE and i can fetch than the output later. For just testing if the program works, i run with stdout=subprocess.STDOUT and I see all program output on

Re: pip module not found

2023-05-12 Thread Mats Wichmann
On 5/12/23 00:42, David John wrote: Hi, I recently have been experiencing issues with the pip installation module. How? Please be explicit or nobody can answer your question. -- https://mail.python.org/mailman/listinfo/python-list

Re: PythonPath / sys.path

2023-05-14 Thread Mats Wichmann
On 5/14/23 10:43, Barry wrote: I take it you have business reasons to use an obsolete version python. Where did you get your version of python from? In fact, a *nine* year old version of Python that reached end-of-life four years ago. Just sayin' Python version shouldn't have anything to d

Re: PythonPath / sys.path

2023-05-14 Thread Mats Wichmann
On 5/14/23 13:00, Grizzy Adams via Python-list wrote: Sunday, May 14, 2023 at 11:11, Mats Wichmann wrote: Re: PythonPath / sys.path (at least in part) On 5/14/23 10:43, Barry wrote: I take it you have business reasons to use an obsolete version python. Where did you get your version of

Re: What to use instead of nntplib?

2023-05-16 Thread Mats Wichmann
On 5/15/23 20:12, Grant Edwards wrote: On 2023-05-15, Skip Montanaro wrote: I got a nice warning today from the inews utility I use daily: DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13 What should I use in place of nntplib? I'd recommend creatin

Re: Tkinter (related)~

2023-05-18 Thread Mats Wichmann
On 5/18/23 10:06, Jack Dangler wrote: I didn't want to hijack another thread... I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I tried to install the package on to my Ubu laptop

Re: Learning tkinter

2023-05-18 Thread Mats Wichmann
On 5/18/23 08:50, Jim Schwartz wrote: This works for me. Hope it helps. from tkinter import messagebox messagebox.showerror("Hi", f"Hello World") It's probably instructive that IDLE always brings it in this way. Lib/idlelib/config_key.py:from tkinter import messagebox Lib/idlelib/configdial

Re: Error installing packages or upgrading pip

2023-05-20 Thread Mats Wichmann
On 5/18/23 04:30, Test Only wrote: Hi there, I hope you are in a great health I am having a problem with python even though I uninstall and reinstall it again multiple times Ummm... there's usually not a great reason to do that. I know it's the traditional "Windows Way" of the past, but usual

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-22 Thread Mats Wichmann
On 5/20/23 13:53, Chris Green wrote: I'm converting a bash script to python as it has become rather clumsy in bash. However I have hit a problem with converting dates, the bash script has:- dat=$(date --date "$1" +"%Y/%m/%d") and this will accept almost anything reasonably sensible that c

Re: What to use instead of nntplib?

2023-05-30 Thread Mats Wichmann
On 5/22/23 17:59, Grant Edwards wrote: On 2023-05-22, Keith Thompson wrote: My understanding is that nntplib isn't being erased from reality, it's merely being removed from the set of modules that are provided by default. I presume that once it's removed from the core, it will still be possib

Re: Issues with running python in Command prompt

2021-01-16 Thread Mats Wichmann
On 1/16/21 8:30 AM, mohsen shooshtari wrote: hello, Thanks in advance for your consideration. I install python3.8 and then install Pycharm but when I call python in Command prompt, followed by ( 'python' is not recognized as an internal or external command, operable program or batch file. what s

Re: Reinstalling

2021-01-29 Thread Mats Wichmann
On 1/29/21 11:29 AM, Rafael Llera wrote: Good day; I installed Python3.9.1 and PyCharm two days ago and did a basic tutorial and all went well. My laptop got glitchy and I decided to uninstall and reinstall both apps (don't ask). Now I am having problems starting a project with the interpreter

Re: Pyautogui troubles

2021-01-31 Thread Mats Wichmann
On 1/30/21 2:58 PM, Philipp Daher via Python-list wrote: Dear Python-Team, I have just repaired python after running my program which imports pyautogui, closing and reopening it and then getting this: ModuleNotFoundError: No module named „pyautogui“. Repairing didn’t work and I still get that

Re: Fw: Trouble running python 3.6.4

2021-02-03 Thread Mats Wichmann
On 2/2/21 8:40 PM, damien jenman wrote: From: damien jenman Sent: Monday, 1 February 2021 10:29 AM To: python-list@python.org Subject: Trouble running python 3.6.4 Hi After setup being successful, of python 3.6.4 , it comes up online tutorial, documentation

Re: Convert MBOX thunderbird to PST outlook

2021-02-07 Thread Mats Wichmann
On 2/7/21 7:06 AM, Kr4ck ALI wrote: Hello, I have to migrate multiple mailbox (emails, contacts, calendar, tasks) from thunderbird to outlook Office 365. So sorry to hear that. I plan to export all items from thunderbird files (.mbox for email, .sqlite or .sdb for calendar, .mab to contact)

Re: Troubles with Python imports

2021-02-09 Thread Mats Wichmann
On 2/9/21 7:55 AM, Philipp Daher via Python-list wrote: Hello, I’ve just typed „pip install selenium“ into my command prompt on windows 10. Although my computer told me that the requirement was already satisfied, import selenium did not work. So I tried different methods to install it and type

Re: installation issues

2021-02-10 Thread Mats Wichmann
On 2/9/21 4:23 PM, Martin Lopez wrote: Hello, My name is Martin Lopez. I just downloaded Python 3.9.1 (64 bit) Setup. After I install the program then try to run it, with no success. I've uninstalled all previous versions and reinstalled them, but it does not seem to help. Can you please assi

  1   2   3   4   >