Math Notations, Computer Languages, and the “Form ” in Formalism

2009-08-31 Thread Xah Lee
• Math Notations, Computer Languages, and the “Form” in Formalism http://xahlee.org/cmaci/notation/index.html plain text version follows. (lacks links) - Math Notations, Computer Languages, and the “Form” in Formalism Xah Lee, 2009-08-31 This page is a collection

Re: Math Notations, Computer Languages, and the “F orm” in Formalism

2009-09-07 Thread Xah Lee
2009-09-07 On Sep 5, 7:41 am, slawekk wrote: > > Theorem provers > > such as OCaml (HOL, Coq), Mizar does math formalism as a foundation, > > also function as a generic computer language, but lacks abilities as a > > computer algebra system or math notation representation. > > Isabelle's presenta

[ANNC] pybotwar-0.6

2009-09-08 Thread Lee Harr
pybotwar is a fun and educational game where players create computer programs to control simulated robots to compete in a battle arena. http://pybotwar.googlecode.com/ pybotwar uses pybox2d for the physical simulation, and uses either pygame and pygsear or PyQt4 for the visualization. pybotwar

HTML6 proposal (Re: sexp xml syntax transformation)

2010-09-22 Thread Xah Lee
cleaned up the previous post. • 〈HTML6, Your HTML/XML Simplified〉 http://xahlee.org/comp/html6.html plain text version follows -- HTML6, Your HTML/XML Simplified Xah Lee, 2010-09-21 Tired of the standard bodies telling us what to do and change

Re: HTML6 proposal (Re: sexp xml syntax transformation)

2010-09-23 Thread Xah Lee
On Sep 23, 1:18 am, smh wrote: > The following is not exactly what you are looking for, but you might > find it interesting. > > http://www.franz.com/support/tech_corner/xml-generator-blurb.html > > This blurb is an example of a self-embedding document. > I've used this XML generator in many appli

pyqt on portable python?

2010-09-23 Thread Lee Harr
Is it possible / easy to use PyQt with portable python? I've done some googling and found one message that said this is coming in the next version, but I can't find anything on portablepython.com that mentions it. Has anyone done this before? Have any better information on how to set it up, or

toy list processing problem: collect similar terms

2010-09-25 Thread Xah Lee
here's a interesting toy list processing problem. I have a list of lists, where each sublist is labelled by a number. I need to collect together the contents of all sublists sharing the same label. So if I have the list ((0 a b) (1 c d) (2 e f) (3 g h) (1 i j) (2 k l) (4 m n) (2 o p) (4 q r) (5 s

Re: toy list processing problem: collect similar terms

2010-09-26 Thread Xah Lee
2010-09-26 On Sep 25, 11:17 pm, Paul Rubin wrote: > Python solution follows (earlier one with an error cancelled).  All > crossposting removed since crossposting is a standard trolling tactic. > >     from collections import defaultdict > >     def collect(xss): >         d = defaultdict(list) >

Re: toy list processing problem: collect similar terms

2010-09-26 Thread Xah Lee
On Sep 26, 7:56 am, Sherm Pendley wrote: > Jürgen Exner writes: > > Alexander Burger wrote: > >>In PicoLisp: > > > What the f does PicoLisp have to with Perl? > > It's Xah. He cross-posts in an attempt to start a language feud. > > Please don't feed the troll. sorry i disagree. And please d

Re: Unicode usenet posting. This is a test.

2010-09-26 Thread Xah Lee
On Sep 26, 5:40 am, Spiros Bousbouras wrote: > > And just for good measure, some «European style quotes» and “balanced smart > > quotes” which I intend some day to try to convince people to start using > > to eliminate the scourge of backslash escapes.  But that's a topic for > > another day. > >

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread Xah Lee
2010-09-27 > For instance, this is far more convenient: > [x+1 for x in [1,2,3,4,5] if x%2==0] > than this: > map(lambda x:x+1,filter(lambda x:x%2==0,[1,2,3,4,5])) How about this: LC(func, inputList, P) compared to [func for myVar in inputList if P] the functional form is: • shorter • n

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread Xah Lee
On Sep 27, 12:11 pm, namekuseijin wrote: > On 27 set, 16:06, Xah Lee wrote:> 2010-09-27 > > > > For instance, this is far more convenient: > > > [x+1 for x in [1,2,3,4,5] if x%2==0] > > > than this: > > > map(lambda x:x+1,filter(lambda x:x%2==0,

Re: toy list processing problem: collect similar terms

2010-09-28 Thread Xah Lee
On Sep 27, 9:34 pm, John Bokma wrote: > Seebs writes: > > fup set to poster > > > On 2010-09-28, John Bokma wrote: > >> Seebs writes: > >>> On 2010-09-26, J?rgen Exner wrote: > It was livibetter who without any motivation or reasoning posted Python > code in CLPM. > > >>> Not exactly

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-28 Thread Xah Lee
xah wrote: > in anycase, how's “do” not imperative? On Sep 28, 6:27 am, namekuseijin wrote: > > how's “do” a “named let”? can you show example or reference of that > > proposal? (is it worthwhile?) > > I'll post it again in the hope you'll read this time: > > " > (do ((i 0 (+ 1 i))  ; i initially

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-28 Thread Xah Lee
2010-09-28 On Sep 28, 12:07 pm, namekuseijin wrote: > On 28 set, 14:56, Xah Lee wrote: > > > ultimately, all lang gets transformed at the compiler level to become > > machine instructions, which is imperative programing in the ultimate > > sense. > > > You

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-29 Thread Xah Lee
On Sep 29, 11:02 am, namekuseijin wrote: > On 28 set, 19:38, Xah Lee wrote: > > > • “list comprehension” is a very bad jargon; thus harmful to > > functional programing or programing in general. Being a bad jargon, it > > encourage mis-communication, mis-understanding.

Unicode Support in Ruby, Perl, Python, Emacs Lisp

2010-10-08 Thread Xah Lee
here's my experiences dealing with unicode in various langs. Unicode Support in Ruby, Perl, Python, Emacs Lisp Xah Lee, 2010-10-07 I looked at Ruby 2 years ago. One problem i found is that it does not support Unicode well. I just checked today, it still doesn't. Just do a web search o

Re: Unicode Support in Ruby, Perl, Python, Emacs Lisp

2010-10-09 Thread Xah Lee
2010-10-09 On Oct 9, 3:45 pm, Sean McAfee wrote: > Xah Lee writes: > > Perl's exceedingly lousy unicode support hack is well known. In fact > > it is the primary reason i “switched” to python for my scripting needs > > in 2005. (See: Unicode in Perl and Python) >

Re: toy list processing problem: collect similar terms

2010-10-14 Thread Xah Lee
On Sep 25, 9:05 pm, Xah Lee wrote: > here's a interesting toy list processing problem. > > I have a list of lists, where each sublist is labelled by > a number. I need to collect together the contents of all sublists > sharing > the same label. So if I have the list >

[ANNC] TZMud 0.9 : A Python MUD server

2010-10-17 Thread Lee Harr
TZMud is a Python MUD server. http://tzmud.googlecode.com/ A MUD is a text-based virtual environment accessed via telnet, or with a specialised MUD client. TZMud development is still in early stages, focusing on API and server stability. TZMud uses several high-quality Python libraries to facil

how to name a function in a comp lang (design)

2010-10-20 Thread Xah Lee
A great piece about terminology in computer languages. * 〈The Poetry of Function Naming〉 (2010-10-18) By Stephen Wolfram. At: http://blog.stephenwolfram.com/2010/10/the-poetry-of-function-naming/ See also: • 〈The Importance of Terminology's Quality In Computer Languages〉 http://xahlee.org/Un

Re: how to name a function in a comp lang (design)

2010-10-20 Thread Xah Lee
On Oct 20, 4:52 am, Marc Mientki wrote: > Am 20.10.2010 13:14, schrieb Xah Lee: > > > See also: > > > • 〈The Importance of Terminology's Quality In Computer Languages〉 > >http://xahlee.org/UnixResource_dir/writ/naming_functions.html > > > where i gave some

is list comprehension necessary?

2010-10-26 Thread Xah Lee
pure functional lang (e.g. haskell), i think lc is pretty bad. here's the plain text version of my essay What's List Comprehension and Why is it Harmful? Xah Lee, 2010-10-14 This page explains what is List Comprehension, with examples from several lang

Re: Land Of Lisp is out

2010-10-28 Thread Xah Lee
On Oct 28, 12:59 am, Lawrence D'Oliveiro wrote: > In message > <3fe80ac4-b595-4bcb-96b9-9138b1ec5...@l17g2000yqe.googlegroups.com>, > > TheFlyingDutchman wrote: > > On Oct 27, 4:55 pm, Lawrence D'Oliveiro > > wrote: > > >> Would it be right to say that the only Lisp still in common use is the >

Re: Land Of Lisp is out

2010-10-28 Thread Xah Lee
On Oct 28, 1:42 am, p...@informatimago.com (Pascal J. Bourguignon) wrote: > sthueb...@googlemail.com (Stefan Hübner) writes: > >> Would it be right to say that the only Lisp still in common use is the > >> Elisp > >> built into Emacs? > > > Clojure (http://clojure.org) is a Lisp on the JVM. It's g

Re: is list comprehension necessary?

2010-10-28 Thread Xah Lee
On Oct 27, 5:46 pm, rantingrick wrote: > On Oct 26, 4:31 am, Xah Lee wrote: > > > recently wrote a article based on a debate here. (can't find the > > original thread on Google at the moment) > > Hey all you numbskulls who are contributing the annoying off-topic &g

How to Write a Winning Dissertation

2010-11-08 Thread Karis Lee
Writing a Dissertation requires mastery of research methods for valid and reliable data collection, availability of all the resources and perfection of dissertation format, structure and citation styles. This article offers some guiltiness about how to write a winning dissertation. Dissertation Wr

Re: List of WindowsError error codes and meanings

2011-05-21 Thread John J Lee
Andrew Berg writes: > This is probably somewhat off-topic, but where would I find a list of > what each error code in WindowsError means? WindowsError is so broad > that it could be difficult to decide what to do in an except clause. > Fortunately, sys.exc_info()[1][0] holds the specific error co

Re: application level monitoring for python

2011-05-21 Thread John J Lee
Walter Chang writes: > Hi > > is there any open source library for python that can allow application > level monitoring ? For example,application can send per request level/ > aggregated monitoring events and some remote server dump it and show > in the monitoring graph in real time ? What's be

Re: Parsing a graph image

2011-05-21 Thread John J Lee
Bastian Ballmann writes: > Hi, > > the project sounds like the exact tool that i need but regarding the > user manual one has to mark the points on the graph manually. Therefore > it's more work to get the data out than doing it without a tool. Or may > I miss something here? > Greets Read the d

Re: checking if a list is empty

2011-05-21 Thread John J Lee
Gregory Ewing writes: > Hans Georg Schaathun wrote: >> 0 is a number as real and existent as any other, >> one would think that the empty list is also as real and existent as >> any other list. > > 0 does have some special properties, though, such as > being the additive identity and not having

Abandoning Python

2011-05-21 Thread John J Lee
I still like Python after using it for over a decade, but there are things I don't like. What are your favourite up-and-coming languages of the moment? Here's my wishlist (not really in any order): * A widely used standard for (optional) interface declaration -- or something better. I wan

Re: Abandoning Python

2011-05-22 Thread John J Lee
Daniel Kluev writes: > On Sun, May 22, 2011 at 2:49 AM, John J Lee wrote: >> Here's my wishlist (not really in any order): > > How come pony is not listed there? Language cannot be better than > python without pony! Pony, absolutely. I took that as read. >>

why it append one more letter after decode?

2017-10-29 Thread Ho Yeung Lee
def leftrotate(l, n): return l[n:] + l[:n] def rightrotate(l, n): return l[-n:] + l[:-n] def encode(s, k, kk): l = [ord(i) for i in s] return leftrotate(''.join([chr(i + k) for i in l]), kk) def decode(s, k, kk): l = [ord(i) for i in rightrotate(s, kk)] return ''.join([ch

Re: why it append one more letter after decode?

2017-10-29 Thread Ho Yeung Lee
if run these function to decode in python interactive console, it can decode correct, but when run with a big project, it append a letter Y On Monday, October 30, 2017 at 9:48:36 AM UTC+8, Ho Yeung Lee wrote: > def leftrotate(l, n): > return l[n:] + l[:n] > > def righ

ValueError: Error 3 while encrypting in ECB mode

2017-10-29 Thread Ho Yeung Lee
>>> from Crypto.Cipher import AES >>> >>> key = 'mysecretpassword' >>> plaintext = 'Secret Message A' >>> encobj = AES.new(key, AES.MODE_ECB) >>> ciphertext = encobj.encrypt("hello") Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\site-packages\Crypto\Cipher\_mode_

Re: why it append one more letter after decode?

2017-10-29 Thread Ho Yeung Lee
i discover when it decode("\\",1,2) in interactive console is [ but decode in big project it see as decode(r"\\",1,2) [[ it double On Monday, October 30, 2017 at 9:51:01 AM UTC+8, Ho Yeung Lee wrote: > if run these function to decode in python interactive console,

Re: why it append one more letter after decode?

2017-10-29 Thread Ho Yeung Lee
it seems that it read csv file from "\\" to "" On Monday, October 30, 2017 at 11:03:57 AM UTC+8, Ho Yeung Lee wrote: > i discover when > it > decode("\\",1,2) > in interactive console > is [ > > but decode in big project > it see as

Re: why it append one more letter after decode?

2017-10-29 Thread Ho Yeung Lee
i fixed by replace("","\\") On Monday, October 30, 2017 at 11:16:02 AM UTC+8, Igor Korot wrote: > Hi, > > On Sun, Oct 29, 2017 at 10:03 PM, Ho Yeung Lee wrote: > > i discover when > > it > > decode("\\",1,2) > > in interactiv

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
as I 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: 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

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