Outdated Python Info on www.unicode.org

2006-03-03 Thread Dennis Benzinger
ort in Python update this information? Thanks, Dennis Benzinger -- http://mail.python.org/mailman/listinfo/python-list

Re: Self-modifying Code

2005-05-19 Thread Dennis Benzinger
from newModule import * > [...] You don't even need a file for this. Try: exec("print 123; print 456; print 789") Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

add new modules?

2005-06-17 Thread Dennis Clark
e stuff at the console. thanks for any help, DLC -- ==== * Dennis Clark [EMAIL PROTECTED]www.techtoystoday.com * * "Programming and Customizing the

Re: add new modules?

2005-06-17 Thread Dennis Clark
Thanks all, My problem came when I set PYTHONHOME, apparently that is a bad thing (in this case). I know that I set it to the directory that python was in, but something about that was "bad". now everything works. DLC Robert Kern <[EMAIL PROTECTED]> wrote: : Dennis Clark wr

Update Demo/ and Tools/ directories

2006-04-24 Thread Dennis Benzinger
updated to use the newest applicable Python features (e.g. the new any/all functions)? Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: File encoding strategy question

2006-05-21 Thread Dennis Benzinger
ill maintaining the ability to transmit binary data. > > Does anyone know of an encoding format that would make this possible? > [...] Yes. You could use the Quoted-Printable encoding. See RFC 2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies <f

Re: escapes in regular expressions

2006-05-21 Thread Dennis Benzinger
therefore it is left unchanged <http://docs.python.org/ref/strings.html> in the string which is passed to re.match. > >>>>re.match('\\d', '7').group() > > '7' > [...] This is the correct version. The first backslash escapes

Re: Class probkem - getting msg that self not defined

2006-05-22 Thread Dennis Benzinger
they are not protected. Or, you could add access > methods in the class like def GetVersion(self): return self.version > If you want to protect version, call it self.__version which mangles > the name from outside. > wes Or use the property function to define properties <http://docs.python.org/lib/built-in-funcs.html>. Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: How to access object attributes given a string

2008-02-12 Thread Dennis Kempin
ipting language.. why not use python directly? You can pass commands from the game console via the exec statement, and have the complete power of python in your game scripts greetings, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Dynamic method parameter access?

2008-02-12 Thread Dennis Kempin
: method(a=value) except TypeError: try: method(b=value) except TypeError: method(a=value, b=value) This is getting really complex the more optional parameters I want to provide. Is there any other way to access the method parameter? Thanks in advance, Dennis -- http

Re: Dynamic method parameter access?

2008-02-14 Thread Dennis Kempin
Chris schrieb: > On Feb 12, 9:38 pm, Dennis Kempin <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I have a set of some objects. With these objects I want to call a Python >> method. But the writer of the method shall have the option to select >> from these ob

Re: Best Python packages?

2008-07-16 Thread Dennis Cote
Ben Sizer wrote: I'd love to have some way of finding out what hidden gems are out there in the Python world If they were easy to find, they wouldn't be "hidden gems". :-) Dennis Cote -- http://mail.python.org/mailman/listinfo/python-list

Re: How to determine if a Python script is being run right after startup on Windows

2010-09-07 Thread Dennis Verdonschot
ability to your program you can verify it has been run and you can still use commandline arguments by changing the shortcut. -- Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does datetime.timedelta only have the attributes 'days' and 'seconds'?

2022-04-19 Thread Dennis Lee Bieber
tilizes the time zone and DST bias of the locale (equivalent to Clock). -- Due to this simplified behavior, the implementation does not require -- expensive system calls on targets such as Windows. -- WARNING: Split_At_Locale is no longer aware of historic events and may -- produce inaccu

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

2022-04-23 Thread Dennis Lee Bieber
of changes would be required? https://docs.python.org/3/library/2to3.html -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: tail

2022-04-24 Thread Dennis Lee Bieber
AGERETURN). Other languages on the OS had different default file structures, but RMS would handle all of them transparently. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Verifying I installed Python correctly

2022-04-25 Thread Dennis Lee Bieber
could show anything) prompt> python C:\google-python-exercises\hello.py INDIRECT prompt> cd C:\google-python-exercises C:\google-python-exercises> python hello.py (note that the prompt has changed to reflect the CD of the first line) In neither of t

Re: Verifying I installed Python correctly

2022-04-25 Thread Dennis Lee Bieber
587,776 Removepywin32.exe 08/25/2020 06:55 PM 123,848 update_check.exe 9 File(s) 3,143,672 bytes 0 Dir(s) 650,737,926,144 bytes free C:\Users\Wulfraed> Yes, it is an older version of the ActiveState release, but they did install with the vari

Re: windows 11 what is wrong?

2022-04-27 Thread Dennis Lee Bieber
e same. The most likely guess would be that these items are not defined in your PATH environment variable. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/

Re: Python Question re Executing a Script

2022-04-30 Thread Dennis Lee Bieber
IFCCEQqwIyCAghEBYQHRAeOgUIABCABDoOCC4QgAQQsQMQgwEQ1AI6CAgAEIAEELEDOhEILhCABBCxAxCDARDHARDRAzoICC4QgAQQsQM6CwgAEIAEELEDEIMBOggILhCxAxCDAToFCC4QgAQ6EQguEIAEELEDEIMBEMcBEKMCOgsILhCABBDHARCjAjoICC4QgAQQ1AI6CwguEIAEELEDEIMBOgsILhCABBCxAxDUAjoOCC4QsQMQgwEQxwEQowI6DgguEIAEELEDEMcBENEDOg4ILhCABBCxAxCDARDJAzoICAAQsQMQgwE6BwgAEIAEEAo6CAgAEIAEEMkDOgYIABAWEB46BQgAEIYDUL0NWNRZYO9caAFwAHgBgAHYAYgBpx6SAQcyNC4xMi4xmAEAoAEBsAEA&sclient=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

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

2022-05-02 Thread Dennis Lee Bieber
up, you have to make sure that the script and shortcut 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 pa

Re: tail

2022-05-06 Thread Dennis Lee Bieber
s behind-the-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

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-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: usb tv stick and python

2022-05-09 Thread Dennis Lee Bieber
arch... Done w-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.com

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: tail

2022-05-09 Thread Dennis Lee Bieber
bsequent I/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: tail

2022-05-11 Thread Dennis Lee Bieber
2.sourceforge.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-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: Convert the decimal numbers expressed in a `numpy.ndarray` into a matrix representing elements in fractional form

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

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-18 Thread Dennis Lee Bieber
me up with something using native data 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 AF6

Re: bug in python 3.10.4

2022-05-26 Thread Dennis Lee Bieber
elifoperations.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". {s

Re: help, please, with 3.10.4 install

2022-05-30 Thread Dennis Lee Bieber
=-=- Microsoft 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 informa

Re: min, max with position

2022-06-04 Thread Dennis Lee Bieber
t; whatAt(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 with Python/Eyed3 MusicCDIdFrame method

2022-06-06 Thread Dennis Lee Bieber
ile (removing any existing tag if one exists). """ 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

Re: Automatic Gain Control in Python?

2022-06-06 Thread Dennis Lee Bieber
cuments show 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: Filtering XArray Datasets?

2022-06-06 Thread Dennis Lee Bieber
ome RDBMs 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: How to test characters of a string

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

Re: How to replace characters in a string?

2022-06-08 Thread Dennis Lee Bieber
, I'm out-of-date... 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 = myStr

Re: fill out bulletins

2022-06-14 Thread Dennis Lee Bieber
some time laying 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.

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: Tkinter module test: widget class not inserted in application frame

2022-06-17 Thread Dennis Lee Bieber
ticky=('EWNS')) ... please compare the spelling! -- 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
ion of 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: "CPython"

2022-06-20 Thread Dennis Lee Bieber
itten 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: Tkinter - cannot import tklib

2022-06-20 Thread Dennis Lee Bieber
ense, 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.micro

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: "CPython"

2022-06-21 Thread Dennis Lee Bieber
ose 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
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: Python installation

2022-06-21 Thread Dennis Lee Bieber
ing on 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: argparse modify

2022-06-23 Thread Dennis Lee Bieber
NamedIntConstant, 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. -- Wulf

Re: argparse modify

2022-06-24 Thread Dennis Lee Bieber
"named 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

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Dennis Lee Bieber
es. -- 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
d 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: 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: Python installation

2022-07-04 Thread Dennis Lee Bieber
t for their "app store" and things 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: Job vacancies

2022-07-14 Thread Dennis Lee Bieber
binary attachments on 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

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

2022-07-14 Thread Dennis Lee Bieber
hat your 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: [Neuroimaging] what's the problem??????

2022-07-15 Thread Dennis Lee Bieber
On Thu, 14 Jul 2022 17:20:55 -0400, declaimed the following: >Dennis, > >I see Nati sent some more code without explaining again what he wants. Yes, >somewhere in this stack of messages he may have said things (that we generally >failed to understand) but it would be helpful t

Re: Object in List : how?

2022-07-25 Thread Dennis Lee Bieber
st, 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: 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: spyder v5: invalid file name when selecting interpreter in preferences

2022-07-25 Thread Dennis Lee Bieber
f 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.

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

2022-07-25 Thread Dennis Lee Bieber
honw.exe PS 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: My first attempt at a package.

2022-07-25 Thread Dennis Lee Bieber
installed-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: random.SystemRandom().randint() inefficient

2022-07-26 Thread Dennis Lee Bieber
g 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
ndint(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: 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: More efficient code, but slower program

2022-07-27 Thread Dennis Lee Bieber
, 81, 82, 83, 84, 85, 86, 87, 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: Parallel(?) programming with python

2022-08-08 Thread Dennis Lee Bieber
list; use some RDBM to keep the long-term data, 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: Parallel(?) programming with python

2022-08-09 Thread Dennis Lee Bieber
our network fetches 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 -- Wulfra

Re: Parallel(?) programming with python

2022-08-10 Thread Dennis Lee Bieber
ectly, 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. --

Re: Persistent Error: Python was not found

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

Re: Python getting problem of installing pyqt5

2022-08-15 Thread Dennis Lee Bieber
Uninstalling 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> -- Wulfra

Re: Problem using cx_Freeze

2022-08-15 Thread Dennis Lee Bieber
ation, 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.comh

Re: Problem using cx_Freeze

2022-08-16 Thread Dennis Lee Bieber
most likely __init__() involved 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

Re: Problem using cx_Freeze

2022-08-17 Thread Dennis Lee Bieber
I suspect you need 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 > auto-py-to-exe

2022-08-19 Thread Dennis Lee Bieber
t explore 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

Re: UTF-8 and latin1

2022-08-19 Thread Dennis Lee Bieber
ter/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.freedd

Re: python 3.10 vs breakage

2022-08-28 Thread Dennis Lee Bieber
o 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.microdive

Re: What can I do about this?

2022-08-28 Thread Dennis Lee Bieber
d various third-party libraries 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: 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: 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: any author you find very good has written a book on Python?

2022-09-06 Thread Dennis Lee Bieber
ns, with specialized 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: Question about learning Python

2022-09-09 Thread Dennis Lee Bieber
ims signals down to earth. We had to catch side-lobes as GPS birds were high enough to avoid 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: 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: How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread Dennis Lee Bieber
t `syslog` 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: Polot severa figures inside a for loopin

2022-10-09 Thread Dennis Lee Bieber
gt; 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 Bieb

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
What happens 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.free

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

2022-10-17 Thread Dennis Lee Bieber
nfuse me.  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: Are Floating Point Numbers still a Can of Worms?

2022-10-24 Thread Dennis Lee Bieber
ding=UTF8&qid=134371&sr=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: Problems with IDLE in Windows 8.1 and installer x86 Version 3.10.8

2022-11-09 Thread Dennis Lee Bieber
as the primary item 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://w

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

2022-11-11 Thread Dennis Lee Bieber
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: Need max values in list of tuples, based on position

2022-11-11 Thread Dennis Lee Bieber
c then length(X) returns the length 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-12 Thread Dennis Lee Bieber
ts the names from the cursor description -- then run a loop to create the select max(length(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-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: In code, list.clear doesn't throw error - it's just ignored

2022-11-14 Thread Dennis Lee Bieber
2, 3.145926536, "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: Python coding

2022-11-27 Thread Dennis Lee Bieber
lfraed\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

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: FTP without username and password

2022-12-06 Thread Dennis Lee Bieber
le different 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

Re: Single line if statement with a continue

2022-12-18 Thread Dennis Lee Bieber
end 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 Bi

<    1   2   3   4   >