Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-11 Thread Dennis Lee Bieber via Python-list
On Sat, 10 Jun 2023 11:32:53 -0500, Eryk Sun declaimed the following: >On 6/10/23, Thomas Passin via Python-list wrote: >> >> We can find pip.exe using good old-fashioned dir (we don't need any >> new-fangled Powershell): >> >> C:\Users\tom>dir AppData\Local\Programs\Python /Aa /S /W /B |find

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-09 Thread Dennis Lee Bieber via Python-list
On Thu, 8 Jun 2023 17:22:22 -0400, Thomas Passin declaimed the following: >On 6/8/2023 3:14 PM, Dennis Lee Bieber via Python-list wrote: > C:\Users\Owner> >> -=-=- >> Windows PowerShell >> Copyright (C) Microsoft Corporation. All rights reserved. >> >>

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-08 Thread Dennis Lee Bieber via Python-list
On Wed, 7 Jun 2023 10:36:22 -0600, Mats Wichmann declaimed the following: >I'm assuming you checked - say, with Explorer - that pip.exe really is >where you think it is? >Anyway, if you ask a Windows shell (cmd) to locate it, and it doesn't, >then your PATH is not set up correctly after all.

Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread Dennis Lee Bieber
On Wed, 31 May 2023 08:34:48 +0100, Mark Bass declaimed the following: >-- Forwarded message - >From: Mark Bass >Date: Wed, 31 May 2023 at 08:09 >Subject: Problems Installing and getting started. >To: > > >Good morning, > >I installed python several hours ago (from python.org),

Re: Weak Type Ability for Python

2023-04-14 Thread Dennis Lee Bieber
{one more entry in the thread drift, and then I think I'll shut up} On Fri, 14 Apr 2023 17:22:47 +1000, Chris Angelico declaimed the following: >Yeah, the "ADDRESS" command has so much potential. Back in the day, I >built a MUD with REXX scripting, and within those scripts, the

Re: Weak Type Ability for Python

2023-04-14 Thread Dennis Lee Bieber
On Fri, 14 Apr 2023 05:35:22 +1000, Chris Angelico declaimed the following: >It was quite the experience back in the day (as OS/2's native >scripting language), and one that I'm truly glad to have had, as it >taught me so much about the differences between languages. > I still miss the

Re: Weak Type Ability for Python

2023-04-14 Thread Dennis Lee Bieber
On Thu, 13 Apr 2023 20:53:21 -0400, Richard Damon declaimed the following: >On 4/13/23 7:25 PM, avi.e.gr...@gmail.com wrote: >> s there any concept in Python of storing information in some way, such as >> text, and implementing various ideas or interfaces so that you can query if >> the contents

Re: for a 'good python'

2023-04-13 Thread Dennis Lee Bieber
On Thu, 13 Apr 2023 00:21:58 +0200, jak declaimed the following: >Thank you too. I had seen this library but I always try not to use >libraries outside the standard ones. Now I don't remember why I was >convinced that this wasn't part of it, perhaps because it was like that >at the time or

Re: Weak Type Ability for Python

2023-04-13 Thread Dennis Lee Bieber
On Thu, 13 Apr 2023 12:21:58 +1000, Cameron Simpson declaimed the following: >On 12Apr2023 22:12, avi.e.gr...@gmail.com wrote: >>I suspect the OP is thinking of languages like PERL or JAVA which guess >>for >>you and make such conversions when it seems to make sense. > >JavaScript guesses.

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

2023-03-30 Thread Dennis Lee Bieber
On Thu, 30 Mar 2023 19:22:53 +0200, Roel Schroeven declaimed the following: >Either import the things you need explicitly: "from math import sin, >cos, exp" (for example). >Or a plain import: "import math" combined with "math.sin", "math.cos". >Or use an abbreviation: "import math as m"

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Dennis Lee Bieber
On Wed, 29 Mar 2023 10:50:49 -0400, Jack Dangler declaimed the following: >Sorry for any injected confusion here, but that line "data = >sorted(data)" appears as though it takes the value of the variable named >_data_, sorts it and returns it to the same variable store, so no copy >would be

Re: Standard class for time *period*?

2023-03-28 Thread Dennis Lee Bieber
On Tue, 28 Mar 2023 08:14:55 +0200, "Loris Bennett" declaimed the following: > >No, it doesn't. I already know about timedelta. I must have explained >the issue badly, because everyone seems to be fixating on the >formatting, which is not a problem and is incidental to what I am really

Re: Look free ID genertion (was: Is there a more efficient threading lock?)

2023-03-02 Thread Dennis Lee Bieber
Granted, that was a "mainframe" system, not a microprocessor. Looks like Intel didn't catch the boat until 1985 and the i386. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://m

Re: Is there a more efficient threading lock?

2023-02-25 Thread Dennis Lee Bieber
U bound, use of the multiprocessing package may be more suited -- though you'll have to device a working IPC system transfer data to/from the separate processes (no shared objects as possible with threads). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@i

Re: Usenet vs. Mailing-list

2023-01-28 Thread Dennis Lee Bieber
revert to comp.lang.python some time back when gmane kept rejecting outgoing posts. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Usenet vs. Mailing-list (was: evaluation question)

2023-01-28 Thread Dennis Lee Bieber
from much spam) and not Usenet (and its open spam problem). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: bool and int

2023-01-25 Thread Dennis Lee Bieber
st-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-requ...@python.org?subject=subscribe> -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

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

2023-01-24 Thread Dennis Lee Bieber
can do. It is not a personal "you post, and only direct replies to you show up". BTW: the mailing list is gatewayed to newsgroup comp.lang.python... -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdivers

Re: To clarify how Python handles two equal objects

2023-01-11 Thread Dennis Lee Bieber
es. > However, it has long had https://docs.python.org/3/library/array.html -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Single line if statement with a continue

2022-12-18 Thread Dennis Lee Bieber
of the loop acts as an implicit "continue" OTOH: if the "if/continue" is buried in four or five layers of conditionals, it could be cleaner than trying to configure the conditionals to have a chained exit. -- Wulfraed Dennis Lee Bieber

Re: FTP without username and password

2022-12-06 Thread Dennis Lee Bieber
protocol. TFTP is simplified to the point it will fit on embedded devices which don't need security (the assumption being that one has the embedded device physically present, FTP assumes distributed networks). https://wiki.python.org/moin/tftp -- Wulfraed Dennis Lee Biebe

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

2022-11-28 Thread Dennis Lee Bieber
wrong thread... -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Python coding

2022-11-27 Thread Dennis Lee Bieber
d\Documents\_Hg-Repositories\Python Progs The idea is to save the .py file in the /current working directory/. That way you only need to type the name of the file, without the long directory path, when invoking the program (which assumes 'python" [python.exe] is on your system path). -

Re: In code, list.clear doesn't throw error - it's just ignored

2022-11-14 Thread Dennis Lee Bieber
26536, "Pie"] >>> clearx = x.clear >>> x [1, 2, 3.145926536, 'Pie'] >>> clearx() >>> x [] >>> -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Need max values in list of tuples, based on position

2022-11-12 Thread Dennis Lee Bieber
On Sat, 12 Nov 2022 13:24:37 -0500, Dennis Lee Bieber declaimed the following: > Granted, this will NOT work with "select *" unless one does the select >*/fetchall first, AND extracts the names from the cursor description -- >then run a loop to create the se

Re: Need max values in list of tuples, based on position

2022-11-12 Thread Dennis Lee Bieber
h(col)), ... statement (which is why I state the fetchall step, as unless one creates a second cursor, the latter select will wipe out any unfetched data from the first). It lets SQLite do the work of determining the max width occupied by each column, rather than some complicated Python loop. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Need max values in list of tuples, based on position

2022-11-11 Thread Dennis Lee Bieber
ength of a string representation of X. """ Note the last sentence for numerics. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Need max values in list of tuples, based on position

2022-11-11 Thread Dennis Lee Bieber
Do they have to be IN THAT ORDER? >>> data = [(0,11), (1,1), (2,1), (0,1) , (1,41), (2,2), (0,9) , (1,3), >>> (2,12)] >>> reshape = list(zip(*data)) >>> result = sorted(reshape[1])[-3:] >>> result [11, 12, 41] -- Wulfraed

Re: Problems with IDLE in Windows 8.1 and installer x86 Version 3.10.8

2022-11-09 Thread Dennis Lee Bieber
em in the Python38 entry. I normally use an old version of PythonWin (fyi: I'm using an old version of the ActiveState Python package). I also have PyCharm installed. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.fre

Re: Are Floating Point Numbers still a Can of Worms?

2022-10-24 Thread Dennis Lee Bieber
0?_encoding=UTF8=134371=8-1 (Wow -- they want a fortune for the original hard-cover, which I own) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: for -- else: what was the motivation?

2022-10-17 Thread Dennis Lee Bieber
Now I've "expired"? -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: How to fix Python error, The term '.../python.exe' is not recognized as the name of a cmdlet, function, script file, or operable program, in VS Code?

2022-10-12 Thread Dennis Lee Bieber
if you change the system to use the "command" shell INSTEAD OF PowerShell? PowerShell may not honor the same environment variables. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https:

Re: Polot severa figures inside a for loopin

2022-10-10 Thread Dennis Lee Bieber
So a nearly different domain of languages... I'd hope the OP is porting IDL constructs (vector/array) to numpy/scipy. But that also opens the question of what plotting package is being used? Matplotlib or something else? -- Wulfraed Dennis Lee Bieber

Re: How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread Dennis Lee Bieber
slog` does let pass all messages by >default. >My point is I do manipulate via `syslog.setlogmask()` the current log >leve. At the end I would like to set it back to its previous value. > >Kind -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: problem downloading python

2022-09-14 Thread Dennis Lee Bieber
RUN the installer program to install Python (and any other stuff the distribution includes) Hide the installer program/icons -- since they do NOT run Python itself. Pure Python is run from a command line/shell interface; it is NOT a graphical IDE. -- Wulfraed

Re: Question about learning Python

2022-09-09 Thread Dennis Lee Bieber
oid ionosphere/troposphere effects. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: any author you find very good has written a book on Python?

2022-09-06 Thread Dennis Lee Bieber
pecialized books from Packt and APress. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: venv questions

2022-08-30 Thread Dennis Lee Bieber
On Mon, 29 Aug 2022 22:57:50 -0400, gene heskett declaimed the following: >Greetings all; > >The command to setup a venv, "python -m venv venv" has no man page that >I have >found. > https://docs.python.org/3/library/venv.html -- Wulfraed

Re: What can I do about this?

2022-08-29 Thread Dennis Lee Bieber
) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... pi@rpi3bplus-1:~$ Or... You wait until somebody builds a Python3.10 ARMHF compatible wheel. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.ne

Re: What can I do about this?

2022-08-28 Thread Dennis Lee Bieber
s have not been updated to be compatible with IT. Maybe install a version of Python3.9 and start over loading all those extra packages. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: python 3.10 vs breakage

2022-08-28 Thread Dennis Lee Bieber
to make your complaints to the Debian devs WRT how they have configured things (or, if using an R-Pi, the R-Pi Foundation, as they customize Debian for their release). . -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity

Re: Problem using cx_Freeze > auto-py-to-exe

2022-08-19 Thread Dennis Lee Bieber
later. First tries ran into PyQt4 to >PyQt5 conversions. Good start at >https://towardsdatascience.com/how-to-easily-convert-a-python-script-to-an-executable-file-exe-4966e253c7e9 > Note that pretty much all such python->executable scheme is just making an archive of the requir

Re: UTF-8 and latin1

2022-08-19 Thread Dennis Lee Bieber
computer/OS (Windows, most likely CP1252, which is a superset of latin-1 as I recall). Whether the browser then re-encodes that to UTF-8 is something I can't answer. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.or

Re: Problem using cx_Freeze

2022-08-17 Thread Dennis Lee Bieber
eed to pass JUST main.py or Maiui.py (based on casing) -- which ever is really the file you'd invoke to start the program running. I'd hope the freeze system then scans (recursively) that file to find anything imported, and include those in the final product. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem using cx_Freeze

2022-08-16 Thread Dennis Lee Bieber
ed is the one where cx_Freeze.Executable is instantiated. https://cx-freeze.readthedocs.io/en/latest/setup_script.html#cx-freeze-executable shows 11 parameters (and "self" would make the 12th). -- Wulfraed Dennis Lee Bieber

Re: Problem using cx_Freeze

2022-08-15 Thread Dennis Lee Bieber
by running the setup script as: python setup.py bdist_msi On Mac OS X, you can use bdist_dmg to build a Mac disk image. """ Note the command syntax and last line... -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfr

Re: Python getting problem of installing pyqt5

2022-08-15 Thread Dennis Lee Bieber
nstalling PyQt5-5.15.1: Successfully uninstalled PyQt5-5.15.1 Successfully installed PyQt5-Qt5-5.15.2 pyqt5-5.15.4 pyqt5-plugins-5.15.4.2.2 pyqt5-tools-5.15.4.3.2 python-dotenv-0.20.0 qt5-applications-5.15.2.2.2 qt5-tools-5.15.2.1.2 C:\Users\Wulfraed> -- Wulfraed

Re: Persistent Error: Python was not found

2022-08-15 Thread Dennis Lee Bieber
o attack. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Parallel(?) programming with python

2022-08-10 Thread Dennis Lee Bieber
, a long running action /will/ delay others -- which could mean the (FFT) process could block collecting new 1-second readings while it is active. It also is "one-shot" on the scheduled actions, meaning those actions still have to reschedule themselves for the next time period. -- Wul

Re: Parallel(?) programming with python

2022-08-09 Thread Dennis Lee Bieber
as a transaction -- and close the transaction fast. Your FFT process would need to select all data in the range to be processed, and load it into memory so you can free that transaction https://www.sqlite.org/lockingv3.html See section 3.0 and section 5.0 -- Wulfraed D

Re: Parallel(?) programming with python

2022-08-08 Thread Dennis Lee Bieber
a, accumulating it as you fetch it, and letting the FFT read from the database for its processing. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: More efficient code, but slower program

2022-07-27 Thread Dennis Lee Bieber
88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99] >>> This option works because the list is sequential integers and the index matches the values in the list (.remove() removes the first MATCHING element, so if the list can have duplicates is may not remove the one AT the index position). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

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

2022-07-27 Thread Dennis Lee Bieber
ian/Ubuntu: apt install xxx, where xxx is not the native OS Python) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

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

2022-07-26 Thread Dennis Lee Bieber
ething wrong?) What happens with system_randint = SystemRandom().randint #no parens index = system_randint(...) which may remove the method lookup from the repetition. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.mi

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

2022-07-26 Thread Dennis Lee Bieber
(1, len(to_try)) - 1 -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: My first attempt at a package.

2022-07-25 Thread Dennis Lee Bieber
lled-package-with-python provide any hints? -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: spyder v5: invalid file name when selecting interpreter in preferences

2022-07-25 Thread Dennis Lee Bieber
S C:\Users\Wulfraed> That's from a stale ActiveState build... Anaconda may drop the "." in the version (I'd expect it is python3.10.5) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: spyder v5: invalid file name when selecting interpreter in preferences

2022-07-25 Thread Dennis Lee Bieber
ontext. If that is something being passed to a Windows command shell, the shell does not handle / (that's a command OPTION), only \ for paths. Have you navigated and proved you have such a file? -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.com

Re: Information about updating my python notebook

2022-07-25 Thread Dennis Lee Bieber
On Sat, 23 Jul 2022 18:16:20 +0200, nhlanhlah198506 declaimed the following: >Can I update my python account Sent from my Galaxy WHAT Python account? -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comh

Re: Object in List : how?

2022-07-25 Thread Dennis Lee Bieber
nodelist, making a new list if the element attribute matches the criteria. Python treats 0 as "false" and if no element matched, the list created is empty, so len() is 0. Anything else implies a match was found. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: [Neuroimaging] what's the problem??????

2022-07-15 Thread Dennis Lee Bieber
can guess -- given the lack of example input data, example /desired/ output... etc. There are too many apparent errors in that code sample to even attempt to think what a result could be. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: [Neuroimaging] what's the problem??????

2022-07-14 Thread Dennis Lee Bieber
our really want the data to look like. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Job vacancies

2022-07-14 Thread Dennis Lee Bieber
n this forum. Plain text may make it through (since you could just include it as the message itself). But... since no hiring manager is reading here, there is no reason to include it. You need to investigate sites that manage job postings. -- Wulfraed Den

Re: Python installation

2022-07-04 Thread Dennis Lee Bieber
ings like Visual Studio -- my machine, however, is not logged in using the M$ account, just my local username. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: why function throws an error?

2022-06-28 Thread Dennis Lee Bieber
mal code listing that someone could attempt to run to perform debugging. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Dennis Lee Bieber
ated once and then compiles with all major C/C++ compilers in CPython 2.6, 2.7 (2.4+ with Cython 0.20.x) as well as 3.3 and all later versions. """ -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Dennis Lee Bieber
-- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: argparse modify

2022-06-24 Thread Dennis Lee Bieber
amed int", I'd expect value to the integer value of this "constant" (and there should probably be a generic setter that... bars changing value or name later). If a "name" keyword argument is not supplied, using the str() of the value for the name might be valid. -- Wulf

Re: argparse modify

2022-06-23 Thread Dennis Lee Bieber
nstant, cls).__init__(cls, value) >> self.name = name >> return self There does not appear to be any provision for keyword arguments at all. The only use of "name" is to an undefined object. -- Wulfraed

Re: Python installation

2022-06-21 Thread Dennis Lee Bieber
n it will open a console window, and that window will close when the program exits -- so that option is often useless). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: "CPython"

2022-06-21 Thread Dennis Lee Bieber
have historically been outside of a user’s control, such as target platform, memory and threading models, garbage collection strategies, and optimizations applied, including whether or not to have a JIT in the first place. """ -- Wulfraed Den

Re: "CPython"

2022-06-21 Thread Dennis Lee Bieber
hole purpose for that was to differentiate from Python /language/ implemented in OTHER languages. IronPython is a M$ .NET/C# implementation, Jython is a JVM/Java implementation. When you just say "Python" you are referring to ALL of those implementations. -- Wulfraed

Re: "CPython"

2022-06-21 Thread Dennis Lee Bieber
tOn Tue, 21 Jun 2022 02:52:28 + (UTC), Avi Gross declaimed the following: > >I don't even want to think fo what sound a C# Python would make. A musical hiss on a frequency of 277.183Hz (for the C# above middle-C) -- Wulfraed Dennis Lee Bieber

Re: Tkinter - cannot import tklib

2022-06-20 Thread Dennis Lee Bieber
a label will be combined with a button or entry widget. """ https://tk-tutorial.readthedocs.io/en/latest/check/check.html#a-better-checkbutton-class etc. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiver

Re: "CPython"

2022-06-20 Thread Dennis Lee Bieber
in C vs Java (Jython), C# (IronPython -- which M$ may be deprecating these days, based on some stuff in my last Visual Studio update), or other -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What's up with modern Python programmers rewriting everything in Rust?

2022-06-20 Thread Dennis Lee Bieber
f Python, which was written in C... In contrast to things like Jython -- Python implemented using Java. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter module test: widget class not inserted in application frame

2022-06-17 Thread Dennis Lee Bieber
Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: fill out bulletins

2022-06-15 Thread Dennis Lee Bieber
On Tue, 14 Jun 2022 11:15:47 -0400, Dennis Lee Bieber declaimed the following: >On Tue, 14 Jun 2022 00:41:07 +0200, jak declaimed the >following: > >> >>https://www.guardiacostiera.gov.it/venezia/Documents/Bollettino%20MOD.%20TD123.pdf > > In

Re: fill out bulletins

2022-06-14 Thread Dennis Lee Bieber
g out the "form" in any decent word processor, and developing the suitable mail-merge definitions and database. Or even a decent report-writer with a relational database. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://w

Re: How to replace characters in a string?

2022-06-08 Thread Dennis Lee Bieber
.. I'm on v3.8 and .removeprefix() and .removesuffix() (from v3.9) simplify my previous post... Instead of if myString.lower().endswith(".mp3"): #lower() is a precaution for case myString = myString[:-4] just use myString = myString.lower().removesuffix(".mp3

Re: How to test characters of a string

2022-06-08 Thread Dennis Lee Bieber
CHED -- done * IF NOT MATCHED * Format ID3 track number as shown above * Compare filename to (formatted track number + track title) * IF MATCHED -- done * IF NOT MATCHED

Re: Filtering XArray Datasets?

2022-06-06 Thread Dennis Lee Bieber
DBMs even have extensions for spatial data handling. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Automatic Gain Control in Python?

2022-06-06 Thread Dennis Lee Bieber
ow attack/release settings acting as a limited AGC in that it responds when transitions above and below threshold occur). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with Python/Eyed3 MusicCDIdFrame method

2022-06-06 Thread Dennis Lee Bieber
""" self.tag = id3.Tag() self.tag.version = version self.tag.file_info = id3.FileInfo(self.path) return self.tag ... you probably need to be looking at myID3.tag. ... try dir(myID3.tag) and see what all may ap

Re: min, max with position

2022-06-04 Thread Dennis Lee Bieber
max, l) (1, 3.1415923536) >>> (properly, I should either reverse the order of the return value, or change the name to atWhat() ) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: help, please, with 3.10.4 install

2022-05-30 Thread Dennis Lee Bieber
soft Windows [Version 10.0.19044.1706] (c) Microsoft Corporation. All rights reserved. C:\Users\Wulfraed>python Python ActivePython 3.8.2 (ActiveState Software Inc.) based on on win32 Type "help", "copyright", "credits" or "license" for more information. >

Re: bug in python 3.10.4

2022-05-26 Thread Dennis Lee Bieber
lifoperations.lower() == "x": Is that REALLY what the code has? I'd expect "elifoperations" to produce a syntax error of some sort since there is no apparent space between the "elif" and "operations". {stylistic

Re: Convert the decimal numbers expressed in a `numpy.ndarray` into a matrix representing elements in fractional form

2022-05-18 Thread Dennis Lee Bieber
ata type methods -- and using the overhead of re with just simple text [ie; nothing that might be called an "expression" designed to match /varying/ content) seems really inefficient. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhtt

Re: Convert the decimal numbers expressed in a `numpy.ndarray` into a matrix representing elements in fractional form

2022-05-16 Thread Dennis Lee Bieber
-readable str() you will need to write your own output loop to do the formatting of the structure, and explicitly print each item of the structure. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.o

Re: Convert the decimal numbers expressed in a `numpy.ndarray` into a matrix representing elements in fractional form

2022-05-16 Thread Dennis Lee Bieber
t;' >>> (Note that the interactive console displays results using repr(), and hence escapes ' that are internal to avoid conflict with the ones wrapping the output) >>> repr('''"'"''') '\'"\\\'"\'' >>> str('''"'"''') '"\'"' >>> print(

Re: tail

2022-05-12 Thread Dennis Lee Bieber
Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: tail

2022-05-11 Thread Dennis Lee Bieber
rceforge.net/ -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: tail

2022-05-09 Thread Dennis Lee Bieber
/O). Interpretation of encoding appears to fall to the console driver configuration when displaying the bytes output by tail. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: usb tv stick and python

2022-05-09 Thread Dennis Lee Bieber
protocol... You might need to locate the source code for w_scan. Perhaps https://github.com/tbsdtv/w_scan -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: usb tv stick and python

2022-05-09 Thread Dennis Lee Bieber
scan/oldstable 20170107-2 amd64 Channel scanning tool for DVB and ATSC channels wulfraed@ElusiveUnicorn:~$ -=-=- Install and test. Windows partitions are accessible as /mnt/ -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfra

Re: tail

2022-05-09 Thread Dennis Lee Bieber
Since your code does not specify BINARY mode in the open statement, Python should be using TEXT mode. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: tail

2022-05-07 Thread Dennis Lee Bieber
ft.com/en-us/cpp/text/support-for-unicode?view=msvc-170 ) For EBCDIC is still x0D, but is x25 (and there is a separate [new line] at x15) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freedd

Re: tail

2022-05-06 Thread Dennis Lee Bieber
-scenes modification to file data is fine for text files, but will corrupt binary data like that in JPEG or EXE files. Be very careful to use binary mode when reading and writing such files. """ -- Wulfraed Dennis Lee Bieber

Re: Fwd: Python Question re Executing a Script (dn)

2022-05-02 Thread Dennis Lee Bieber
rtcut themselves are not in protected (single user) locations. Using the task scheduler, you'd have similar constraints on directories, but shouldn't need to create a shortcut file. Instead, you'd specify the path to the interpreter and the path to the script as the task ACT

Re: Python Question re Executing a Script

2022-04-30 Thread Dennis Lee Bieber
QxwEQowI6DgguEIAEELEDEMcBENEDOg4ILhCABBCxAxCDARDJAzoICAAQsQMQgwE6BwgAEIAEEAo6CAgAEIAEEMkDOgYIABAWEB46BQgAEIYDUL0NWNRZYO9caAFwAHgBgAHYAYgBpx6SAQcyNC4xMi4xmAEAoAEBsAEA=gws-wiz > >Thank you! > >Brent Hunter -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   >