Re: Q: argparse.add_argument()

2023-03-18 Thread Thomas Passin
On 3/18/2023 4:05 PM, Chris Angelico wrote: On Sun, 19 Mar 2023 at 06:35, Gisle Vanem via Python-list wrote: Thomas Passin wrote: Are you trying to troll here? You just showed how you got an error with this construction, so why are you asking how to get an error with this construction

Re: Q: argparse.add_argument()

2023-03-18 Thread Thomas Passin
On 3/18/2023 10:52 PM, Gisle Vanem via Python-list wrote: Thomas Passin wrote: So please, try to think out how your questions will seem to the reader, and be clear about what you are asking.  You may not know the terminology that some other people use, but don't let that stop you from

Re: How to get get_body() to work? (about email)

2023-03-19 Thread Thomas Passin
On 3/18/2023 10:49 PM, Peng Yu wrote: Hi, https://docs.python.org/3/library/email.parser.html It says "For MIME messages, the root object will return True from its is_multipart() method, and the subparts can be accessed via the payload manipulation methods, such as get_body(), iter_parts(), and

Re: Debugging reason for python running unreasonably slow when adding numbers

2023-03-20 Thread Thomas Passin
On 3/20/2023 11:21 AM, Edmondo Giovannozzi wrote: def sum1(): s = 0 for i in range(100): s += i return s def sum2(): return sum(range(100)) Here you already have the numbers you want to add. Actually using numpy you'll be much faster in this case: § imp

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

2023-03-22 Thread Thomas Passin
On 3/22/2023 8:09 AM, a a wrote: On Saturday, 18 March 2023 at 20:12:22 UTC+1, Thomas Passin wrote: On 3/17/2023 11:52 AM, a a wrote: On Friday, 17 March 2023 at 16:32:53 UTC+1, a a wrote: On Friday, 17 March 2023 at 16:03:14 UTC+1, Thomas Passin wrote: On 3/16/2023 8:07 PM, a a wrote

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

2023-03-23 Thread Thomas Passin
On 3/18/2023 3:05 PM, Thomas Passin wrote: downloaded and run HWiNFO and AVE not supported, not greened out That's too bad; you may be out of luck. It's possible that someone has compiled the .pyd library in such a way that it does not need the instruction set extensions. I

Python Infrequently Asked Questions

2023-03-23 Thread Thomas Passin
I bookmarked this years ago and just came across it again. An oldie but goodie! http://norvig.com/python-iaq.html -- https://mail.python.org/mailman/listinfo/python-list

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

2023-03-23 Thread Thomas Passin
On 3/23/2023 3:38 PM, Mats Wichmann wrote: 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:

Re: Patrick Sheehan: Major Issues with Python

2023-03-26 Thread Thomas Passin
On 3/25/2023 4:03 PM, Patrick Sheehan wrote: Hello, I have been working with the attached book (See photo) Photos do not come through on this list, so don't bother to attach any. Type or copy-paste any useful text. to try to learn Python and so far it has been a complete nightmare trying to g

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

2023-03-27 Thread Thomas Passin
On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to social media, web sites for Python, chat and more (about 50 web pages live opened 😉 This sounds l

Re: Standard class for time *period*?

2023-03-27 Thread Thomas Passin
On 3/27/2023 11:34 AM, rbowman wrote: On Mon, 27 Mar 2023 15:00:52 +0200, Loris Bennett wrote: I need to deal with what I call a 'period', which is a span of time limited by two dates, start and end. The period has a 'duration', which is the elapsed time between start and end. The d

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

2023-03-27 Thread Thomas Passin
On 3/27/2023 3:07 PM, a a wrote: On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to

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

2023-03-27 Thread Thomas Passin
On 3/27/2023 4:02 PM, Thomas Passin wrote: On 3/27/2023 3:07 PM, a a wrote: On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every

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

2023-03-27 Thread Thomas Passin
On 3/27/2023 8:37 PM, a a wrote: To save the tabs, right click any one of them and select the "Select All Tabs" item. They will all highlight. Right click on one of them and select the "Bookmark Tabs" item. A dialog box will open with an entry lone for the Name to use (like "Tabset1") and a locat

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

2023-03-27 Thread Thomas Passin
On 3/27/2023 8:37 PM, a a wrote: I can select All Opened Tabs (as from the given link) and get 1,000+ Opened Tabs ( I am afraid, this is s number of all saved bookmarks in the past) I go to menu, Bookmarks, Manage Boomarks and copy Tabs and https://www.textfixer.com/html/convert-url-to-html-lin

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

2023-03-28 Thread Thomas Passin
On 3/28/2023 8:47 AM, a a wrote: Ok, I can export bookmarks to html file and open it in Firefox to get a long list of clickable urls but icon of the bookmarked web page is missing. When I open Bookmarks as right a side-bar I can view and identify an individual Boomarks by icon, so I would like

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-03-28 Thread Thomas Passin
On 3/28/2023 12:56 AM, Yogesh Tirthkar wrote: Hi Team, Could you please advise on the scenario in windows 10 machine : Where we need to uninstall/remove python from user profile A (installed by user A in its own profile folder) - via an admin user or system account. Currently when we try to u

Re: Standard class for time *period*?

2023-03-28 Thread Thomas Passin
On 3/28/2023 12:13 PM, Grant Edwards wrote: On 2023-03-28, Dennis Lee Bieber wrote: So far, you seem to be the only person who has ever asked for a single entity incorporating an EPOCH (datetime.datetime) + a DURATION (datetime.timedelta). It seems to me that tuple of two timdate objects (st

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

2023-03-28 Thread Thomas Passin
On 3/28/2023 1:50 PM, a a wrote: On Tuesday, 28 March 2023 at 18:12:40 UTC+2, Thomas Passin wrote: On 3/28/2023 8:47 AM, a a wrote: Ok, I can export bookmarks to html file and open it in Firefox to get a long list of clickable urls but icon of the bookmarked web page is missing. When I open

Re: Standard class for time *period*?

2023-03-29 Thread Thomas Passin
On 3/29/2023 2:17 AM, Loris Bennett wrote: I am glad to hear that I am not alone :-) However, my use-case is fairly trivial, indeed less complicated than yours. So, in truth I don't really need a Period class. I just thought it might be a sufficiently generic itch that someone else with a more

Re: Ole version set as default

2023-03-29 Thread Thomas Passin
On 3/29/2023 12:46 PM, 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 a

Re: built-in pow() vs. math.pow()

2023-03-30 Thread Thomas Passin
On 3/30/2023 5:15 AM, Andreas Eisele wrote: I sometimes make use of the fact that the built-in pow() function has an optional third argument for modulo calculation, which is handy when dealing with tasks from number theory, very large numbers, problems from Project Euler, etc. I was unpleasantl

Re: Python not showing correct version

2023-03-30 Thread Thomas Passin
On 3/30/2023 10:17 AM, Sumeet Firodia wrote: Hi Team, I have installed Python 3.8 for Snowpark but when I check the version in command prompt it shows me Python 3.10.10. C:\Users\admin>python --version Python 3.10.10 Also when I try to uninstall 3.10 it says no such version is installed. C:\

Re: Python not showing correct version

2023-03-31 Thread Thomas Passin
On 3/31/2023 8:27 AM, Sumeet Firodia wrote: Hi Barry, This is getting more complicated. As per the command you shared, below is the output C:\Users\admin>py -3.8 -m pip --version pip 19.2.3 from C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\pip (python 3.8) For pip --

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Thomas Passin
On 3/31/2023 10:14 AM, jkn wrote: On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote: On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: I want a windows installer to install my application that's written in python, but I don't want the end user to have access to my source cod

Re: Python not showing correct version

2023-03-31 Thread Thomas Passin
On 3/31/2023 2:18 PM, Eryk Sun wrote: On 3/31/23, Sumeet Firodia wrote: One more thing is that pip --version also refers to python 3.10 C:\Users\admin>pip --version pip 23.0.1 from C:\Users\admin\AppData\Local\Packages \PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0 \LocalCache\local-pack

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Thomas Passin
On 3/31/2023 5:16 PM, Jim Schwartz wrote: What license do I have to choose so people can't use my code? I don't know this stuff. It would help if you would explain what you want to accomplish and why. Do you expect to make money off your software? If not, why do want so badly to protect it?

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Thomas Passin
On 4/1/2023 5:24 AM, Jim Schwartz wrote: I am writing an app but I’m not sure I’ll sell it yet. I have it in a private GitHub location and GitHub prompts me for a license. I don’t really understand licenses so I just picked Apache 2.0. Maybe I’m going too far with my worry about which license

Re: Windows Gui Frontend

2023-04-01 Thread Thomas Passin
On 4/1/2023 7:59 AM, Jim Schwartz wrote: I have another question. I have an app written in python, but I want to add a windows GUI front end to it. Can this be done in python? What packages would allow me to do that? WxWindows, Tk, and PyQt are some of the common ones. Be aware that GUI pro

Re: Windows Gui Frontend

2023-04-01 Thread Thomas Passin
On 4/1/2023 1:21 PM, 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. Depends on what you mean by "let me design the screen", but Pyside (which I think is now called Pyside2)

Re: Windows Gui Frontend

2023-04-01 Thread Thomas Passin
On 4/1/2023 1:28 PM, Thomas Passin wrote: On 4/1/2023 1:21 PM, 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. Depends on what you mean by "let me design the screen&

Re: Windows Gui Frontend

2023-04-01 Thread Thomas Passin
On 4/1/2023 5:11 PM, Barry Scott wrote: On 1 Apr 2023, at 18:47, Igor Korot wrote: I suggest going with wxPython/wxGlade. I ported all my wxPython code to PyQt and have not regretted it. wxPython was (its been a while so may not be an issue now) far to hard to make consistent across OS, m

Re: Problem in using libraries

2023-04-03 Thread Thomas Passin
On 4/3/2023 12:43 PM, 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". You need to realize that no one can help you witho

Re: problems in using libraries

2023-04-03 Thread Thomas Passin
On 4/3/2023 1:25 PM, pranavbhardwaj...@gmail.com wrote: Sent from [1]Mail for Windows Why can't I able to use python libraries in my python 3.11.2. It always throw an error such as and and many more. I installed python from python official website and I i

[RELEASE] Python 3.11.3, 3.10.11 and 3.12.0 alpha 7 released

2023-04-05 Thread Thomas Wouters
n Software Foundation. https://www.python.org/psf/ From the release team, Thomas Wouters @thomas Pablo Galindo Salgado @pablogsal Łukasz Langa @ambv Ned Deily @nad Steve Dower @steve.dower -- https://mail.python.org/mailman/listinfo/python-list

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-09 Thread Thomas Passin
ower, Singapore 068912 -Original Message- From: Python-list On Behalf Of Thomas Passin Sent: Wednesday, March 29, 2023 12:19 AM To: python-list@python.org Subject: Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10) [[External Mail] Do not cl

Re: Need help please

2023-04-10 Thread Thomas Passin
On 4/10/2023 9:59 AM, Jack Gilbert wrote: I D/L 3.11.3, I can see it in CMD running W10 64bit I have IDL on my desktop, HOW do I get 3.11.3 on my desktop? If you mean "How can I create a shortcut to Python 3.11.3 on my desktop that opens an interactive Python session", here is one way: 1.

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Thomas Passin
On 4/10/2023 2:19 AM, Yogesh Tirthkar wrote: Hello, Thank you for your response. May I know how to uninstall it from user A profile – if user A is no longer available. Is there any means - where I can use local admin account to uninstall the app (installed in User A profile, without user A’s

Re: Christoph Gohlke and compiled packages

2023-04-11 Thread Thomas Passin
On 4/11/2023 6:58 AM, Chris Angelico wrote: On Tue, 11 Apr 2023 at 20:15, Jim Schwartz wrote: What’s the problem now? Is it with python on windows? I use python on windows so I’d like to know. Thanks Python itself is fine, but a lot of third-party packages are hard to obtain. So if you n

Re: Dataclasses, immutability(?), and ChatGPT

2023-04-12 Thread Thomas Passin
On 4/12/2023 12:58 AM, dn via Python-list wrote: Are dataclasses (or instances thereof) mutable or immutable? - and in what sense? Have been experimenting with ChatGPT. In particular: its possibilities as a trainer, good ideas for methods of introducing new topics, its capability for drawing-

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Thomas Passin
On 4/12/2023 8:59 AM, Mike Dewhirst wrote: Sadly Windows is still in the dock. The jury is still out. Turns out the "without a hitch" was based on cached wheels. I'm going to start from scratch with new projects using Pythons 3.8, 3.10 and 3.11 and report back. Sorry for the length to come,

Re: Weak Type Ability for Python

2023-04-12 Thread Thomas Passin
On 4/12/2023 1:11 PM, 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

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
On 4/13/2023 1:38 AM, avi.e.gr...@gmail.com wrote: In Python, "+" does not mean plus at all. It means whatever the programmer wanted it to mean. An infix line of code that includes "obj1 + obj2" is supposed to investigate how to do it. I am not sure if some built-in objects may be different, but

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
On 4/13/2023 2:36 PM, avi.e.gr...@gmail.com wrote: But having precedence rules and also allowing the other methods, should work fine for a good segment of people except perhaps the ones who like Reverse Polish Notation and insist on 5 4 3 + * instead. For *reading*, I prefer the usual 5 * (4 +

Re: Problem with Matplotlib example

2023-04-13 Thread Thomas Passin
On 4/13/2023 2:41 PM, Martin Schöön wrote: Anyone had success running this example? https://tinyurl.com/yhhyc9r When I try I get this error: "TypeError: __init__() got an unexpected keyword argument 'transform'" This is for the line "m = MarkerStyle(SUCESS_SYMBOLS[mood], transform=t)" Yes,

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
On 4/13/2023 10:14 PM, avi.e.gr...@gmail.com wrote: Alan, Your guess is not quite what I intended. Something like a C union is just a piece of memory large enough to hold one of several kinds of content and some way to figure out which is currently in place. I am looking at a data structure t

Re: tksheet - Copy and Paste with headers

2023-04-16 Thread Thomas Passin
On 4/16/2023 9:01 AM, Alan Gauld wrote: 在 2023/4/15 2:33, angela vales 写道: I have recently created a tkinter app and need the ability to copy and paste data from tksheet table into an Excel file. First thanks for drawing my attention to tksheet. I've long been desiring a decent table widget

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Thomas Passin
On 4/16/2023 4:42 PM, Rich Shepard wrote: Python3-3.9.10 installed on this Slackware64-14.2 desktop. Trying to run meson to build an application I'm told it's missing pkg_resources, which is part of setuptools. The command fails: # pip install setuptools bash: /usr/bin/pip: /usr/bin/python3.7: ba

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Thomas Passin
On 4/16/2023 6:27 PM, Rich Shepard wrote: On Sun, 16 Apr 2023, Thomas Passin wrote: [snip] It should have been installed with the upgrade to 3.9.10 In my experience, on Windows pip is always included but on Linux hardly ever. I have always needed to install the system installer pip

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Thomas Passin
On 4/16/2023 6:34 PM, Rich Shepard wrote: On Sun, 16 Apr 2023, Rich Shepard wrote: I'll download the installer from there. But, I still cannot install the pkg_resources module that meson wants to start the build of pulseaudio-equalizer: # pip install pkg_resources ERROR: Could not find a vers

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Thomas Passin
On 4/16/2023 6:27 PM, Rich Shepard wrote: If pip has not been installed (very possible on Linux), then you will need to get it.  If python3.9 is not the system-upgraded version, then do an internet search for "linux python install pip". There's a pip website that has an installer for it. I neve

Re: Fwd: pip is not installed

2023-04-16 Thread Thomas Passin
On 4/16/2023 10:09 PM, MRAB wrote: On 2023-04-16 21:54, Khoinguyen Nguyen wrote: To whom it may concern, I have tried to reinstall, repair, and run in command prompt, but it seems as though pip won't install. I am using Windows 10 and Python 3.11.3. Are there any other suggestions for troubles

Re: Pycharm IDE

2023-04-18 Thread Thomas Passin
On 4/18/2023 7:18 PM, Kevin M. Wilson via Python-list wrote: Greetings... Kevin here:I need help, as you have guessed!I have this line: The Print Statement... Why complain about a 'comma', or a ')'???def play_game(): number = random.randint(1, LIMIT) print (f'"I am thinking of a number

Re: Pycharm IDE

2023-04-19 Thread Thomas Passin
On 4/19/2023 1:27 AM, Kevin M. Wilson via Python-list wrote: Ok, I got rid of the "print (f'"I am thinking of a number between 1 to {LIMIT}\n")"print ("I am thinking of a number between 1 to {LIMIT}\n"), I think you misunderstand several things at the same time here. 1. These errors originate

Re: Pycharm IDE

2023-04-19 Thread Thomas Passin
On 4/19/2023 4:06 PM, Mark Bourne wrote: print(f'{LIMIT}) ^ I think this one should be: print(f'{LIMIT}') with the closing quote ;o) Yup a typo! Where's pylint when I need it? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python-pickle error

2023-04-19 Thread Thomas Passin
On 4/19/2023 12:14 PM, charles wiewiora wrote: Hello, I am experincing problems with the pickle moducle the folowing code was working before, import pickle number=2 my_pickeld_object=pickle.dumps(number) print("this is my pickled object",{my_pickeld_object},) with open('file.pkl', 'rb') as file:

Re: Pycharm IDE

2023-04-20 Thread Thomas Passin
On 4/19/2023 7:48 PM, dn via Python-list wrote: On 20/04/2023 08.59, Thomas Passin wrote: On 4/19/2023 4:06 PM, Mark Bourne wrote: print(f'{LIMIT}) ^ I think this one should be: print(f'{LIMIT}') with the closing quote ;o) Yup a typo!  Where's pylint when I nee

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

2023-04-20 Thread Thomas Passin
On 4/19/2023 7:19 PM, dn via Python-list wrote: *PyCharm enables a range of Python-linters. Some by add-in. Some by "External tools"* I was not 'up' on "linters", Thanks for the heads up! Attempted finding a "linter" on jetbrains... I take it that finding a 'linter' for Build #PC-222.4554.11

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

2023-04-21 Thread 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_module" finds my_local_module.py in the directory of the script. However, whe

Re: Is npyscreen still alive?

2023-04-21 Thread Thomas Passin
On 4/21/2023 5:57 PM, Barry wrote: On 21 Apr 2023, at 22:00, Grant Edwards wrote: I recently googled across the ncurses application framework npyscreen, and was thinking about giving it a try for a small but real project (something that would be distributed to customers), but I'm a bit conc

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

2023-04-22 Thread Thomas Passin
On 4/22/2023 5:45 PM, Ralf M. wrote: Am 22.04.2023 um 03:27 schrieb Greg Ewing via Python-list: How are you invoking your script? Presumably you have some code in your embedding application that takes a script path and runs it. Instead of putting the code to update sys.path into every script, th

Re: Editing PEP-8, in particular "expected 2 blanks, found 1

2023-05-02 Thread Thomas Passin
On 5/2/2023 4:39 PM, Kevin M. Wilson via Python-list wrote: Folks, help please! What the @#$! are these doing popping up. Code styles are personal, and not subject to debate.Where can I edit these out of my IDE? Kevin "When you pass through the waters, I will be with you: and when you pass throu

Re: An "adapter", superset of an iterator

2023-05-03 Thread Thomas Passin
On 5/3/2023 5:45 AM, fedor tryfanau wrote: I've been using python as a tool to solve competitive programming problems for a while now and I've noticed a feature, python would benefit from having. Consider "reversed(enumerate(a))". This is a perfectly readable code, except it's wrong in the curren

Re: An "adapter", superset of an iterator

2023-05-03 Thread Thomas Passin
On 5/3/2023 3:46 PM, Oscar Benjamin wrote: On Wed, 3 May 2023 at 18:52, Thomas Passin wrote: On 5/3/2023 5:45 AM, fedor tryfanau wrote: I've been using python as a tool to solve competitive programming problems for a while now and I've noticed a feature, python would benefit f

Re: Do subprocess.PIPE and subprocess.STDOUT sametime

2023-05-09 Thread Thomas Passin
On 5/9/2023 2:13 PM, 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

Re: pip module not found

2023-05-12 Thread Thomas Passin
On 5/12/2023 11:18 AM, Thomas Passin wrote: On 5/12/2023 2:42 AM, David John wrote: Hi, I recently have been experiencing issues with the pip installation module. I have python version 3.11 installed. I've checked the directory installed in the systems variables window and nothing is

Re: pip module not found

2023-05-12 Thread Thomas Passin
On 5/12/2023 1:45 PM, Barry wrote: On 12 May 2023, at 18:31, Thomas Passin wrote: On 5/12/2023 11:18 AM, Thomas Passin wrote: On 5/12/2023 2:42 AM, David John wrote: Hi, I recently have been experiencing issues with the pip installation module. I have python version 3.11 installed. I&#x

Re: pip module not found

2023-05-12 Thread Thomas Passin
On 5/12/2023 2:42 AM, David John wrote: Hi, I recently have been experiencing issues with the pip installation module. I have python version 3.11 installed. I've checked the directory installed in the systems variables window and nothing is amiss. Kindly assist. It would be useful if you told u

Re: PythonPath / sys.path

2023-05-14 Thread Thomas Passin
On 5/14/2023 3:00 PM, Grizzy Adams via Python-list wrote: Sunday, May 14, 2023 at 11:11, Mats Wichmann wrote: Re: PythonPath / sys.path (at least in part) [snip] I have since moved up (a little) so only ~4 years old, I then updated pip from 9.x to 19.1 reason its an old version is it's an old

Re: PythonPath / sys.path

2023-05-14 Thread Thomas Passin
On 5/14/2023 7:28 PM, Chris Angelico wrote: On Mon, 15 May 2023 at 09:22, Thomas Passin wrote: You made a little slam against Windows, but you will find it harder to get things working on Linux. Ubuntu, like many other Linux distros, does not come with pip and Tk (needed for Idle) installed

Re: PythonPath / sys.path

2023-05-14 Thread Thomas Passin
On 5/14/2023 11:08 PM, Chris Angelico wrote: On Mon, 15 May 2023 at 12:07, Thomas Passin wrote: Well, no, why would you assume that? I started to use Linux - in VMs - because I had to make sure that my cross-platform java/jython Tomcat program would work right on Linux. Why, for example

Re: PythonPath / sys.path

2023-05-15 Thread Thomas Passin
On 5/15/2023 3:26 AM, Barry wrote: On 15 May 2023, at 05:39, Thomas Passin wrote: On 5/14/2023 11:08 PM, Chris Angelico wrote: On Mon, 15 May 2023 at 12:07, Thomas Passin wrote: Well, no, why would you assume that? I started to use Linux - in VMs - because I had to make sure that my

Re: Pip Error

2023-05-17 Thread Thomas Passin
On 5/17/2023 10:54 AM, Aysu Mammadli wrote: I encountered an error while attempting to install pip using the terminal. The exact error message I received is: "An error occurred during configuration: option use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-b

Re: Learning tkinter

2023-05-18 Thread Thomas Passin
On 5/18/2023 9:13 AM, Grant Edwards wrote: On 2023-05-12, Rob Cliffe via Python-list wrote: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. import tkinter tkinter.messagebox

[RELEASE] Python 3.12.0 beta 1 released.

2023-05-22 Thread Thomas Wouters
nhancements. (This should not affect most users as it is an internal detail, but it may cause problems for Cython-generated code.) - (Hey, fellow core developer, if a feature you find important is missing from this list, let Thomas know .) For more details on the changes to Python 3

Re: Module error

2023-05-27 Thread Thomas Passin
On 5/26/2023 8:30 PM, giuseppacef...@gmail.com wrote: I have reinstalled python which reinstalls pip. I have added the path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.Pytho n.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts and still get the error below. Coul

Re: Best practice for database connection

2023-05-31 Thread Thomas Passin
On 5/31/2023 2:10 PM, Jason Friedman wrote: I'm trying to reconcile two best practices which seem to conflict. 1) Use a _with_ clause when connecting to a database so the connection is closed in case of premature exit. class_name = 'oracle.jdbc.OracleDriver' url = f"jdbc:oracle:thin:@//{host_na

Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread Thomas Passin
On 5/31/2023 3:52 PM, Dennis Lee Bieber wrote: Python does not provide, normally, a "click me" icon to run Python. Python is a command line language INTERPRETER/COMPILER. If file associations are set up, clicking on a script (.py) file/will/ run it -- but the window it opens goes away as soon as

Re: IDE tools to debug in Python?

2021-02-04 Thread Thomas Jollans
opular in the scientific Python ecosystem. I think there are VSCode plugins for Python debugging. And there is even an experimental debugger for Jupyter now! Just to give you some pointers as to where to look. -- Thomas -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7 and 3.9

2021-02-17 Thread Thomas Jollans
//docs.python.org/3/using/windows.html#python-launcher-for-windows PEP: https://www.python.org/dev/peps/pep-0397 -- Thomas -- https://mail.python.org/mailman/listinfo/python-list

Re: python 2.6: Need some advise for installing modules on a legacy system

2021-02-26 Thread Thomas Jollans
, why can't you install a newer Python interpreter? Are you running Windows 2000? Have fun I guess Thomas -- Dr. Thomas Jollans ✉ t...@tjol.eu -- https://mail.python.org/mailman/listinfo/python-list

Re: editor recommendations?

2021-02-26 Thread Thomas Jollans
s obsessed with (usually dark) colour schemes. And they both have loads of plugins which can slow your editor down and give you smart completion and tooltips with docstrings if you like that sort of thing. Atom is in the same general category as VS Code. Spacemacs sounds like it could be

Re: Choosable dependency

2021-03-08 Thread Thomas Jollans
n_api.html#matplotlib.use there the user imports matplotlib and then optionally calls a function to select a backend. Then every function within matplotlib that uses the backend has to defer to some wrapper (not sure where or how) Hope that helps Thomas -- Dr. Thomas Jollans e ✉ t...@tjol.eu

Re: Best practices regarding PYTHONPATH

2021-03-10 Thread Thomas Jollans
On 09/03/2021 22:52, Cameron Simpson wrote: On 09Mar2021 05:00, Larry Martell wrote: Which is considered better? Having a long import path or setting PYTHONPATH? For example, in a project where 50% of the imports come from the same top level directory is it better to add that dir to the path o

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Thomas Jollans
on a system that can't use the C part, you could just declare your extension modules optional, with the "optional" argument to setuptools.Extension. see (https://docs.python.org/3/distutils/apiref.html#distutils.core.Extension) - Thomas -- https://mail.python.org/mailman/listinfo/python-list

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Thomas Jollans
On 10/03/2021 18:42, Marco Sulla wrote: On Wed, 10 Mar 2021 at 16:45, Thomas Jollans wrote: Why are you doing this? If all you want is for it to be possible to install the package from source on a system that can't use the C part, you could just declare your extension modules opt

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Thomas Jollans
On 10/03/2021 20:57, Mats Wichmann wrote: On 3/10/21 11:56 AM, Thomas Jollans wrote: On 10/03/2021 18:42, Marco Sulla wrote: On Wed, 10 Mar 2021 at 16:45, Thomas Jollans wrote: Why are you doing this? If all you want is for it to be possible to install the package from source on a system

Re: Application problems

2021-03-10 Thread Thomas Jollans
On 10/03/2021 21:50, Mats Wichmann wrote: For the first one, don't feel too bad, this ("opening the normal python") seems to be biting a lot of people recently I wonder why. Python's installation process isn't any different from most other Windows software released the past 25-ish years. Is

Re: Application problems

2021-03-11 Thread Thomas Jollans
On 11/03/2021 15:06, Anssi Saari wrote: Thomas Jollans writes: On 10/03/2021 21:50, Mats Wichmann wrote: For the first one, don't feel too bad, this ("opening the normal python") seems to be biting a lot of people recently I wonder why. Python's installation process

Re: yield from () Was: Re: weirdness with list()

2021-03-12 Thread Thomas Jollans
On 03/03/2021 01:01, Cameron Simpson wrote: On 02Mar2021 15:06, Larry Martell wrote: I discovered something new (to me) yesterday. Was writing a unit test for generator function and I found that none of the function got executed at all until I iterated on the return value. Aye. Generators are

Re: .title() - annoying mistake

2021-03-19 Thread Thomas Jollans
On 19/03/2021 20:33, dn via Python-list wrote: On 20/03/2021 07.49, Grant Edwards wrote: On 2021-03-19, MRAB wrote: You want English "man's" to become "Man's", but French "l'homme" to become "L'Homme". It's language-dependant. In English, certain words are not capitalized in titles unless the

Re: python documentation

2021-03-27 Thread Thomas Jollans
hon 2 and probably still does, but all of these package have had perfectly good Python 3 support for many, many years. - Thomas -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib scale

2021-04-05 Thread Thomas Jollans
should *never* use it. It distorts your data, making people see patterns that aren't there, and is all but useless in black & white printouts or to the colour-blind. This seminal talk from 2015 explains why the default Matplotlib colour maps are what they are: https://www.youtube.com/wa

Re: pandas/jupyther notebook?

2021-04-09 Thread Thomas Jollans
employees.csv. If I type: df.h type head, but if I type: df['Gender'] = df['Gender'].ast  it will not complete astype. I wonder if someone can tell me why this is happening and maybe how to fix it. Thanks,  Jim -- Dr. Thomas Jollans m ☎ +49 6201 8759879 e ✉ t...@tjol.eu -- htt

Re: The split() function of Python's built-in module has changed in a puzzling way - is this a bug?

2021-04-23 Thread Thomas Jollans
g note in the docs for re.split: Changed in version 3.7: Added support of splitting on a pattern that could match an empty string. (your pattern can match an empty string, so I suppose it wasn't technically supported in 3.6?) -- Thomas I feel that this is clearly not in line with the

Re: matplotlib graph white space

2021-10-06 Thread Thomas Jollans
On 04/10/2021 10:39, Steve wrote: I am using the first bar graph listed at this site: https://matplotlib.org/stable/gallery/index.html The problem I have is that there is too much white space around the graph. My data would be better displayed if I could widen the graph into the space to the rig

Re: Confusing error message: lambda walruses

2021-10-06 Thread Thomas Jollans
On 03/10/2021 01:39, Chris Angelico wrote: Using assignment expressions in lambda functions sometimes works, but sometimes doesn't. Does this commit by a certain Chris Angelico help clear things up? https://github.com/python/peps/commit/f906b988b20c9a8e7e13a2262f5381bd2b1399e2 -- https://mail.

Re: Confusing error message: lambda walruses

2021-10-06 Thread Thomas Jollans
On 06/10/2021 23:53, Chris Angelico wrote: On Thu, Oct 7, 2021 at 8:51 AM Thomas Jollans wrote: On 03/10/2021 01:39, Chris Angelico wrote: Using assignment expressions in lambda functions sometimes works, but sometimes doesn't. Does this commit by a certain Chris Angelico help clear t

Re: Using astype(int) for strings with thousand separator

2021-11-14 Thread Thomas Jollans
On 14.11.21 16:41, Mahmood Naderan via Python-list wrote: Hi While reading a csv file, some cells have values like '1,024' which I mean they contains thousand separator ','. Therefore, when I want to process them with   row = df.iloc[0].astype(int) If you are reading a CSV with pandas.read

Re: multiprocess passing arguments double asterisks

2016-10-23 Thread Thomas Nyberg
/questions/10212445/python-map-list-item-to-function-with-arguments http://stackoverflow.com/questions/16874244/python-map-and-arguments-unpacking Maybe those (especially the last one) are helpful. Cheers, Thomas -- https://mail.python.org/mailman/listinfo/python-list

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