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: 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: 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: 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: 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: 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: Why does datetime.timedelta only have the attributes 'days' and 'seconds'?

2022-04-16 Thread Dennis Lee Bieber
ost noticeable about UTC is the incorporation of leap-seconds. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: code confusion

2022-04-15 Thread Dennis Lee Bieber
ge(ls.count(maximum)): ls.remove(maximum) where _ is a "junk/temp" value that we don't care about -- we only want to loop once for EACH maximum value Or... while maximum in ls: del ls[ls.index(maximum)] -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: No shortcut Icon on Desktop

2022-04-13 Thread Dennis Lee Bieber
n junk.py Let me out of here! C:\Users\Wulfraed>rem direct invocation of script file, .py linked to Python by OS C:\Users\Wulfraed>junk.py Let me out of here! C:\Users\Wulfraed>rem direct invocation -- with .py defined as an "executable" extension on my system C:\Users\Wulfraed&g

Re: What to do to correct the error written below:

2022-04-11 Thread Dennis Lee Bieber
;for l in books: Inner-loop control variable is "l" -- and does not seem to be used for anything following... > > t=(students[i].user,students[i].user_id,books[i].name,books[i].isbn,issuedBooks[0].issued_date,issuedBooks[0].expiry_date,fine) >

Re: What to do to correct the error written below:

2022-04-11 Thread Dennis Lee Bieber
have been dropped (at least, the code shown appears to be something like SQLAlchemy), but the OP really should spend a few weeks studying database normalization and use of foreign keys -- concepts which, properly applied, means there is no need for these confusing hand-tracked indices. --

Re: pyinstaller is not a internal or external command

2022-04-05 Thread Dennis Lee Bieber
; A second possibility is that your environment is not configured to recognize .PY files as executables. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: 'äÄöÖüÜ' in Unicode (utf-8)

2022-03-31 Thread Dennis Lee Bieber
regretted it. > Ah yes... Unfortunately, when gmane made the mirror read-only, I had to revert to comp.lang.python... and all the junk that gets in via that and Google Groups... -- Wulfraed Dennis Lee Bieber AF6VN

Re: Exchange OWA using Python?

2022-03-31 Thread Dennis Lee Bieber
called "Outlook for the Web"). That would explain why there is no documentation of an "API"... I get the impression that any so-called API programs have had to reverse engineer (maybe using things like WireShark) the HTTP communication. -- Wulfraed

Re: 'äÄöÖüÜ' in Unicode (utf-8)

2022-03-31 Thread Dennis Lee Bieber
;> >>>> ? Is there a question in there somewhere? Crystal ball is hazy... However... Note that once you encode the Unicode literal, you have a BYTE string. There are 12 bytes in that binary -- it is NOT considered Unicode at that point (only when you decode it with th

Re: Python Qualification?

2022-03-29 Thread Dennis Lee Bieber
time delays, and plotting the timing of the packets intended to pass through and verifying that "classified" contents were blocked or sanitized). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freed

Re: Feature Request

2022-03-23 Thread Dennis Lee Bieber
, math.trunc -3, math.floor -4, math.ceil -3 >>> int() and .trunc() move toward 0, .floor() moves to less positive, .ceil() moves to more positive. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Difficulty in installing Python

2022-03-23 Thread Dennis Lee Bieber
y" defaulted to running. Most versions of Python also install a Tkinter script called IDLE which provides a rudimentary IDE capability. > >Kind Regards, >Reuel R. Lewis -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Pycharm IDE: seeking an assist!

2022-03-21 Thread Dennis Lee Bieber
at created the environment variable -- since deleting the variable might affect how that application operates. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Reportlab / platypus bug?

2022-03-14 Thread Dennis Lee Bieber
self.build(tempStory, **buildKwds) #self.notify('debug',None) """ -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Reportlab / platypus bug?

2022-03-13 Thread Dennis Lee Bieber
original. """ My hypothesis is that rendering the "story" results in changes to the contained objects (possibly they are even "consumed" as they are rendered -- so you first attempt ends up passing an empty "story" for the second PDF).

Non sequitur: Changing subject line... WAS: Behavior of the for-else construct

2022-03-07 Thread Dennis Lee Bieber
;1mc72hll06itd6jnbgdherqb3thf1fk...@4ax.com> <20220306163951.2ozmrhfbtsktb...@hjp.at> it will still appear under the parent message; it will only thread differently if one's client merely sorts on subject and date/time. -- Wulfraed Dennis Lee B

Re: Behavior of the for-else construct

2022-03-06 Thread Dennis Lee Bieber
l, and PDP-11 assembly were run on a pair of LSI-11 systems. Assembly used for the operating system principles course. I didn't encounter "real" C until getting a TRS-80 (first as integer LC, then Pro-MC), along with Supersoft LISP (on cassette tape!). (I had books for C and

Re: Behavior of the for-else construct

2022-03-05 Thread Dennis Lee Bieber
es to the FORTRAN run-time library to get advanced math functions (I believe later versions incorporated the FORTRAN math natively). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Behavior of the for-else construct

2022-03-05 Thread Dennis Lee Bieber
(* isn't quite as clumsy (RH ring finger to top-row followed by RH middle finger to top-row ). More fun is had when doing APL without a dedicated APL keyboard (Though Xerox Sigma APL also had plain text alternatives: $RHO for example) -- Wulfraed

Re: How to solve the given problem?

2022-03-04 Thread Dennis Lee Bieber
**- **. **. **. **. **. ***. + (Not very visible as each * is 10 units, and using . for 2.5, - for 5, + for 7.5) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Behavior of the for-else construct

2022-03-04 Thread Dennis Lee Bieber
rectory listing. {Though the BASIC interpreter gave it away -- doing a directory from within the interpreter resulted in a hex representation of names with non-graphic characters... In EBCDIC of course} -- Wulfraed Dennis Lee Bieber AF6VN

Re: How to solve the given problem?

2022-03-01 Thread Dennis Lee Bieber
Documents\_Hg-Repositories\REXX> -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Dennis Lee Bieber
On Sun, 27 Feb 2022 14:17:39 -0500, Dennis Lee Bieber declaimed the following: APOLOGIES -- I thought I KILLED the draft message, not sent it... -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Dennis Lee Bieber
>ASL configuration, which is loaded according to syslog -config: >> /var/log/appName/appName.log mode=0640 compress format=std rotate=seq >file_max=50M all_max=500M >? [CA= Sender appName] file /var/log/appName/appName.log > >My end goal is really to get just a working python loggi

Re: How to solve the given problem?

2022-02-26 Thread Dennis Lee Bieber
second feed, but not discovered until after the third feed. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: C is it always faster than nump?

2022-02-26 Thread Dennis Lee Bieber
were %ref() and %descr() -- descriptor being a small structure with the address reference along with, say, upper/lower bounds; often used for strings). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.f

Re: C is it always faster than nump?

2022-02-25 Thread Dennis Lee Bieber
cannot be made part of python >such as a vector/array that holds exactly one kind of data structure and not >force use of things like a list when that is more than is needed? > https://docs.python.org/3/library/array.html seems to fit the criteria... -- Wulfraed

Re: Best way to check if there is internet?

2022-02-22 Thread Dennis Lee Bieber
sted in the desired operation -- and if that succeeds you've basically performed the shorter tree. > >> -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Long running process - how to speed up?

2022-02-20 Thread Dennis Lee Bieber
inux Type "help", "copyright", "credits" or "license" for more information. >>> import multiprocessing as mp >>> mp.cpu_count() 4 >>> exit() md_admin@microdiversity:~$ -=-=- -- Wulfraed Dennis Lee Bieb

Re: Long running process - how to speed up?

2022-02-19 Thread Dennis Lee Bieber
eep() inside that loop... definitely remove the .sleep(). That loop is already I/O bound, the fastest you can obtain is determined by how rapidly the OS can transfer records from the file system to your program. -- Wulfraed Dennis Lee Bieber AF6VN

Re: How to solve the given problem?

2022-02-17 Thread Dennis Lee Bieber
in the other direction and get 6 1.333 .333v 6 1.333 .666v 13 2.666 1.333^ .333 25 5.333 .666v 26 5.333 .999^ (again, 3 decimal places) 0.0 38 8.0 0

Re: How to solve the given problem?

2022-02-16 Thread Dennis Lee Bieber
t it for grading (unless proven otherwise, these have the appearance of homework assignments and, to reiterate, we do not provide solutions to homework). OR ask the person who gave you the assignment if your understanding is correct. -- Wulfraed Dennis Lee Bi

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

2022-02-11 Thread Dennis Lee Bieber
e possible using the win32py (or whatever the current name is) extension... Or with more difficulty, ctypes! -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

2022-02-10 Thread Dennis Lee Bieber
local Tkinter GUI (and apparently has actually written some code finally, as they produced a traceback message sequence -- however, the code-first_then-come-here lesson isn't sticking if you look at their second thread of the week). -- Wulfraed Dennis Lee Bieber

Re: How to solve the given problem?

2022-02-10 Thread Dennis Lee Bieber
then apply those percentages to the left-over from the mis-feed. NONE of this has anything to do with Python itself -- it is purely algorithm development that applies with any programming language -- or even none. -- Wulfraed Dennis Lee Bieber AF6VN

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

2022-02-10 Thread Dennis Lee Bieber
empts the open/write/close cycle} -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

2022-02-09 Thread Dennis Lee Bieber
alid, and reapplying the update. Multiple record updates within a transaction are possible. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Best way to check if there is internet?

2022-02-07 Thread Dennis Lee Bieber
On Mon, 07 Feb 2022 11:40:24 -0800 (PST), Grant Edwards declaimed the following: >On 2022-02-07, Dennis Lee Bieber wrote: > >> Also, for a machine freshly booted, with no cache, even pinging >> Google first requires making contact with a DNS server to ask for >> Goog

Re: Best way to check if there is internet?

2022-02-07 Thread Dennis Lee Bieber
eive ACK/NAK packets for each one it sends out. If it doesn't receive either it will, after some time-out period, declare a broken connection. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Openning Python program

2022-02-06 Thread Dennis Lee Bieber
I have Windows configured to accept .py as an executable file, with the Python interpreter as the "runner", which is how the lines without "python" function -- but if you explicitly invoke python with a file name you must provide the full name. C:\Users\Wulfraed>assoc .py .p

Re: Data unchanged when passing data to Python in multiprocessing shared memory

2022-02-02 Thread Dennis Lee Bieber
network byte order. On big-endian machines, no code is inserted since none is needed; the functions are defined as null. """ -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Data unchanged when passing data to Python in multiprocessing shared memory

2022-02-02 Thread Dennis Lee Bieber
e lines not writing through to RAM? Can't find anything on Google to force a cache flush Can you test on a different OS? (Windows vs Linux) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-31 Thread Dennis Lee Bieber
ents only handled local mailboxes, and did not send/receive messages -- one had to invoke scripts to queue outgoing messages for sending, and others to fetch from POP3 servers. I'll admit I couldn't do that now -- the need for SSL/TLS protocols complicates things.} -- Wulfraed

Re: Problem upgrading pip and installing pygame

2022-01-31 Thread Dennis Lee Bieber
EXACT operations you are performing and the results... [NOT SCREEN CAPTURES -- this forum strips non-text attachments; select the TEXT and cut&paste that] -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.o

Re: What to write or search on github to get the code for what is written below:

2022-01-29 Thread Dennis Lee Bieber
On Fri, 28 Jan 2022 14:31:20 -0700, Cousin Stanley declaimed the following: >Dennis Lee Bieber wrote: > >> Ignoring the code spam I presume >> > > I'm an sqlite user myself and was glad to see > the code you posted and have a couple of tiny example &

Re: What to write or search on github to get the code for what is written below:

2022-01-28 Thread Dennis Lee Bieber
UIs (no master event loop invoking call-backs, rather an explicit loop with comparison for event/widget and dispatch to handler functions) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://

Re: What to write or search on github to get the code for what is written below:

2022-01-24 Thread Dennis Lee Bieber
Book_ID INTEGER NOT NULL REFERENCES Book(ID) ON DELETE CASCADE ON UPDATE CASCADE, Author_ID INTEGER NOT NULL REFERENCES Author(ID) ON DELETE RESTRICT ON UPDATE CASCADE, UNIQUE (Book_ID, Author_ID) ); """ # TABLES lists the individual SQL statements for each # database table. They are ordered such that # referenced tables are before the referencing # table TABLES = [ USERLOGIN, PUBLISHER, AUTHOR, BOOK, COPY, CHECKOUT, BOOK_AUTHOR ] -=-=-=- Good thing this is a text only forum, or I'd toss in an Entity-Relationship diagram for the database. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Pandas or Numpy

2022-01-23 Thread Dennis Lee Bieber
ining a separate list (though sorting will require some tricks to keep the numpy array in sync with the character list). Note that the comparison warns that /indexing/ in pandas can be slow. If your manipulation is always "apply operationX to columnY" it should be okay -- but &qu

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Dennis Lee Bieber
justable target (but not top-end match) trigger and, if really ambitious, install an improved trigger in my Ruger MK-II pistol (I have the parts for both -- just need to set up space and time to do the work). -- Wulfraed Dennis Lee Bieber AF6VN wlfr.

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Dennis Lee Bieber
tokens [cookies] to let the logic know what was done previously) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Dennis Lee Bieber
fastest thing out there to begin with [Ugh -- Hope it's the weather -- my downlink is down to 10Mbps, when nominal is closer to 14Mbps]). Someday I may try creating a Flask application for it, just for learning. -- Wulfraed Dennis Lee Bieber AF6VN w

Re: empty stdout (subprocess.run)

2022-01-19 Thread Dennis Lee Bieber
usr/bin/transmission-remote --torrent %s --info', >'1'), returncode=0, stdout='', stderr='') -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Trouble downloading Python

2022-01-18 Thread Dennis Lee Bieber
include a Tkinter-based program called IDLE which can be run if one really needs an IDE -- though there are many third-party IDEs for Python which may be better. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread Dennis Lee Bieber
o/~ talking to myself in public o/~ On Mon, 17 Jan 2022 15:39:25 -0500, Dennis Lee Bieber declaimed the following: > In one respect, given the limited functionality stated, one gets the >impression of a class GROUP assignment, in which the individual fun

Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread Dennis Lee Bieber
the day with all content removed and ad hoc comments inserted. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-17 Thread Dennis Lee Bieber
app again, a new "dyno" is spun up and loaded from scratch. One is supposed to use one of the client server databases provided by Heroku for persist ant storage (since those are not inside "dyno" container -- the app makes a network connection to the database server. --

Re: Why There Is No Python Compressed Archive or Binaries ?

2022-01-17 Thread Dennis Lee Bieber
ed (library) computers that may not have it installed, and for which users have no ability to install applications. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-17 Thread Dennis Lee Bieber
ve the O'Reilly text for that, and find it still makes no sense to me... I can code direct SQL queries faster than trying to figure out the equivalent functionality in SQLAlchemy... And if the OP has a fixation on spreadsheet views of the data, SQLAlchemy will really be a mystery. }

Re: What to write or search on github to get the code for what is written below:

2022-01-16 Thread Dennis Lee Bieber
columns; exported as a CSV file (binary attachments get stripped from this forum, but a CSV is text and can be pasted in -- 5x5 should be small enough that those trying to assist can then extract it from the post, clean up any line wrappings, and import into a blank spreadsheet. -- Wulfra

Re: What to write or search on github to get the code for what is written below:

2022-01-14 Thread Dennis Lee Bieber
cation is merely recording information of who has physically received a book (in which case the overhead of tracking availability seems superfluous, as the staff would see that the table(s) of books does not have the title, so it is unavailable for handing over). -- Wulfraed D

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
On Fri, 14 Jan 2022 08:24:43 +1100, Chris Angelico declaimed the following: >On Fri, Jan 14, 2022 at 7:56 AM Dennis Lee Bieber >wrote: >> >> On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber >> declaimed the following: >> >> Talking to myself in

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber declaimed the following: Talking to myself in public again... Bad habit... > As you've described this system, the only thing your application will >do is record "check-outs" by tracking available copies of

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
uot;I need the 'copies_left' column -- is that column 5 or 6?") you'd use, say, column_dict["COPIES_LEFT"] where the dictionary has something like { ..., "COPIES_LEFT" : 5, ... } -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-12 Thread Dennis Lee Bieber
7;ve defined in the most recent message. Import into some supported database and normalize the data to make updates easier. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-12 Thread Dennis Lee Bieber
2-bit drivers). Obviously you'll need to translate the PowerShell syntax into Python's ODBC DB-API interface (which is a bit archaic as I recall -- does not match current DP-API specifications). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.com

Re: XML Considered Harmful

2021-09-22 Thread Dennis Lee Bieber
.append(currentPoint) class Fuel(): def __init__(self, name, ..., price): self.name = name ... self.price = price class Generator(): def __init__(self, name): self.name = name self.fuel = None

Re: XML Considered Harmful

2021-09-22 Thread Dennis Lee Bieber
resented by relations (terminology from relational theory -- a "table" to most) linked by foreign keys. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Polymorphic imports

2021-09-22 Thread Dennis Lee Bieber
t do what you want -- as long as the module name itself remains fixed. The other alternative may be https://docs.python.org/3/library/functions.html#__import__ -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiver

Re: The code version of python -i

2021-09-15 Thread Dennis Lee Bieber
y/code.html > >and thus do not know what the limitations might be. Well, offhand, I'd say you need to provide a function to be used for raw_input (which will have to provide prompts, etc.). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.n

Re: Friday Finking: Contorted loops

2021-09-09 Thread Dennis Lee Bieber
On Thu, 09 Sep 2021 19:07:49 -0400, Dennis Lee Bieber declaimed the following: >On Fri, 10 Sep 2021 09:36:36 +1200, dn via Python-list > declaimed the following: Someone, please shoot me now... >>This is a perennial question (one contributor calling it "immemorial&qu

Re: Friday Finking: Contorted loops

2021-09-09 Thread Dennis Lee Bieber
>Dijkstra "Notes on Structured Programming" >https://dl.acm.org/doi/pdf/10./1243380 >Single-Entry, Single-Exit >https://web.archive.org/web/20121114195652/http://msmvps.com/blogs/peterritchie/archive/2008/03/07/single-entry-single-exit-should-it-still-be-applicable-in-object-oriented-languages.aspx >https://en.wikipedia.org/wiki/Cyclomatic_complexity >Ned Batchelder's McCabe plug-in https://pypi.org/project/mccabe/ >The Walrus and the Carpenter by Lewis Carroll >https://poets.org/poem/walrus-and-carpenter >Python's Parser https://www.python.org/dev/peps/pep-0617/ >PEP 315 https://www.python.org/dev/peps/pep-0315/ >BDFL Rejection >https://mail.python.org/pipermail/python-ideas/2013-June/021610.html >Later discussion >https://mail.python.org/pipermail/python-ideas/2009-April/004306.html >and >https://mail.python.org/archives/list/python-id...@python.org/thread/2VUZ3J6C4GSHGBZJW62AY4HPEEBMXAT6/#2VUZ3J6C4GSHGBZJW62AY4HPEEBMXAT6 >PEP 548 https://www.python.org/dev/peps/pep-0548/ >BDFL Rejection >https://mail.python.org/pipermail/python-dev/2017-September/149232.html >Python-Ideas post >https://mail.python.org/archives/list/python-id...@python.org/thread/EDNARFL2RGOE53SLWPTD5ZLJQOYSVDCR/#EDNARFL2RGOE53SLWPTD5ZLJQOYSVDCR >Duke Paper >https://users.cs.duke.edu/~ola/patterns/plopd/loops.html#loop-and-a-half >RegEx in Python https://docs.python.org/3/library/re.html >and https://docs.python.org/3/howto/regex.html >"bastardise" (meaning 1) https://www.dictionary.com/browse/bastardize >https://stackoverflow.com/questions/743164/how-to-emulate-a-do-while-loop >DRY >https://code.tutsplus.com/tutorials/3-key-software-principles-you-must-understand--net-25161 > >-- >Regards, >=dn -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Problems with running Python in Npp

2021-09-09 Thread Dennis Lee Bieber
g "Python some-script-file-name" (though newer Python's include a so-called "launcher" invoked as just "py"). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: on writing a while loop for rolling two dice

2021-09-08 Thread Dennis Lee Bieber
On Wed, 8 Sep 2021 16:32:45 - (UTC), Grant Edwards declaimed the following: >On 2021-09-08, Dennis Lee Bieber wrote: > >> I spent close to 20 years (80s-90s) maintaining the /output/ of such >> a preprocessor. > >Ouch. I hope it paid well. ;) Only if one ig

Re: on writing a while loop for rolling two dice

2021-09-08 Thread Dennis Lee Bieber
ed as re-entrant, allowing multiple compiles to share one in-core image; the preprocessor no doubt ran as one image per compile, triggering lots of page swapping to disk) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: combine multiple xlsx files which include dropdown columns in them.

2021-09-08 Thread Dennis Lee Bieber
lost from existing files if they are opened and saved with the same name. """ It does, however, grant access to the formulas in cells, rather than just last value; along with style information... -- Wulfraed Dennis Lee Bieber AF6VN wlfr..

Re: on writing a while loop for rolling two dice

2021-09-08 Thread Dennis Lee Bieber
ht-justify the F-IV output, so easy to locate... -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: on writing a while loop for rolling two dice

2021-09-07 Thread Dennis Lee Bieber
ll_frozen_over(): > return False > >while not hell_frozen_over(): > Hell typically freezes every January (scroll down to monthly average): https://www.worldweatheronline.com/hell-weather-averages/michigan/us.aspx -- Wulfraed Dennis Lee Bieber

Non sequitur: on writing a while loop for rolling two dice

2021-09-06 Thread Dennis Lee Bieber
y mind immediately flash on "The Man Who Never Returned"? (AKA: "M.T.A.", Kingston Trio song) (Especially as you describe just the opposite -- many returns ) -- Wulfraed Dennis Lee Bieber AF6VN wlf

Non sequitur: on writing a while loop for rolling two dice

2021-09-06 Thread Dennis Lee Bieber
The Man Who Never Returned"? (Especially as you describe just the opposite -- many returns ) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: on floating-point numbers

2021-09-06 Thread Dennis Lee Bieber
SQLite3 which will store anything in any field, but uses some slightly obscure logic to determine what conversion is done) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: on writing a while loop for rolling two dice

2021-09-06 Thread Dennis Lee Bieber
ent for repetitions ... end AND worse! You can combine them... do idx = start for repetitions while condition1 until condition2 ... end {I need to check if both while and until can be in the same statement} -- Wulfraed

Re: Problem with python

2021-09-04 Thread Dennis Lee Bieber
thon2 compatibility). > Given the nature of the error reported by the OP... It may be closer to state "whose maintainers may or may not care about" /Python3/ "compatibility"; the code appears to already be Python2 compatible -- Wulfraed Dennis Lee Bieber

Re: Connecting python to DB2 database

2021-09-03 Thread Dennis Lee Bieber
db-api adapter. The semi-colon is, in my experience, only required by basic interactive query utilities -- to tell the utility that the statement is fully entered, and can be sent to the server. -- Wulfraed Dennis Lee Bieber AF6VN wlfr.

Re: on floating-point numbers

2021-09-02 Thread Dennis Lee Bieber
rounding and is, I believe, >independent of data order. > Most likely it sorts the data so the smallest values get summed first, and works its way up to the larger values. That way it minimizes the losses that occur when denormalizing a value (to set the exponent equal to that of th

Re: on floating-point numbers

2021-09-02 Thread Dennis Lee Bieber
he exponent was in the low byte) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: on floating-point numbers

2021-09-02 Thread Dennis Lee Bieber
> >All I did was to take the first number, 7.23, and move it to the last >position in the list. (So we have a violation of the commutativity of >addition.) > https://www.amazon.com/Real-Computing-Made-Engineering-Calculations-dp-B01K0Q03AA/dp/B01K0Q03AA/ref=mt_other?_encodin

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-02 Thread Dennis Lee Bieber
pon. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-02 Thread Dennis Lee Bieber
ed /n/-hours after the prior milking. I think the DST was meant for industrialization -- factories wouldn't have to run expensive artificial lighting for part of the day-shift; there would be more natural light falling in through the south facing windows on the roof of the building. --

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-09-02 Thread Dennis Lee Bieber
t a "New Brunswick" in the PRCa) Though https://roadsidethoughts.com/nb/lower-california-profile.htm doesn't help in deconfusion -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- h

Re: Create a real-time interactive TUI using Python.

2021-08-31 Thread Dennis Lee Bieber
certain Python may be a bit slower unless you can take advantage of compiled C libraries (regex, perhaps). Based upon the animated GIF, you'll have to master the curses library from Python. -- Wulfraed Dennis Lee Bieber AF6VN

Re: Struggling to understand timedelta rpesentation when applying an offset for an hour earlier - why is days = -1?

2021-08-31 Thread Dennis Lee Bieber
100 0 <= seconds < 3600*24 (the number of seconds in one day) -9 <= days <= 9 """ Note that microseconds and seconds are ALWAYS normalized to be a positive integer. So your input on -3600 is normalized to +82800 from the previous day. --

Re: The sqlite3 timestamp conversion between unixepoch and localtime can't be done according to the timezone setting on the machine automatically.

2021-08-30 Thread Dennis Lee Bieber
ADME appears to be incorrect -- the utility logs unix epoch [UTC seconds since 1970] AS ISO UTC string). sqlite> select datetime(1092941466, 'unixepoch'); 2004-08-19 18:51:06 sqlite> select datetime(1092941466, 'unixepoch', 'localtime'); 2004-08-19 14:51:06 sqlite> sq

Re: software installation problems

2021-08-30 Thread Dennis Lee Bieber
ch package differs -- many may include a Tkinter script called IDLE as a basic IDE (I don't use it, and hated it the few times I had to start it at work; ActiveState Windows installs included PythonWin as an IDE -- but in the last few years ActiveState has required one to register with them

Re: code to initialize a sequence

2021-08-30 Thread Dennis Lee Bieber
rn X Same -- nothing about UNIQUE values. Prefilling a list with None, just to immediate replace all the values feels "unPythonic". -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   >