Re: To clarify how Python handles two equal objects

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

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

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

Re: bool and int

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

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

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

Re: Usenet vs. Mailing-list

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

Re: Is there a more efficient threading lock?

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

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

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

Re: Standard class for time *period*?

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

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

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

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

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

Re: Weak Type Ability for Python

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

Re: for a 'good python'

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

Re: Weak Type Ability for Python

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

Re: Weak Type Ability for Python

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

Re: Weak Type Ability for Python

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

Re: Fwd: Problems Installing and getting started.

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

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-29 Thread Dennis Lee Bieber
On Thu, 29 Jul 2021 15:45:26 +0200, Peter Otten <__pete...@web.de> declaimed the following: >On 28/07/2021 18:40, Dennis Lee Bieber wrote: >> On Wed, 28 Jul 2021 09:04:40 +0200, Peter Otten <__pete...@web.de> >> declaimed the following: >> >>> >&g

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-30 Thread Dennis Lee Bieber
nsus implementation of an "X-Expire-After: " would have been friendlier (Google Groups USED to expire X-No-Archive posts after a week, instead of the current practice of: post says no-archive, delete immediately). -- Wulfraed Dennis Lee Bieber AF6VN

Re: 'Pygame Module' not working

2021-07-31 Thread Dennis Lee Bieber
here I was going wrong. First attempt: use a full pathname. Second: determine what the "current working directory" is in which your program is running, then use a pathname relative to that directory. -- Wulfraed Dennis Lee Bieber AF6VN

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-11 Thread Dennis Lee Bieber
27; '.' | test | [test] ':' [test] [sliceop] sliceop: ':' [test] test: or_test ['if' or_test 'else' test] | lambdef or_test: and_test ('or' and_test)* and_test: not_test ('and' not_test)* not_test: 'not' not_test | comparison -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: some problems for an introductory python test

2021-08-11 Thread Dennis Lee Bieber
me, that maps to one of 64 entries in the root directory block; each entry points the start of a linked list, follow the list until you reach the block with the component name; if it is a directory block, hash the next component and repeat; if it is a file block, the "entries" point

Re: some problems for an introductory python test

2021-08-11 Thread Dennis Lee Bieber
;ve not seen anything equivalent in my light perusal of the Win32 API (the various guide books aren't layed out in any way to be a reference), and Linux seems to use UNIX sockets for IPC... No way to search for a connection point by name... But I've harangue

Re: Is there a better way to create a list of None objects?

2021-08-12 Thread Dennis Lee Bieber
ture. You "working" example is actually creating a TUPLE stored (as the only element) inside a LIST. >>> [None] * 8 [None, None, None, None, None, None, None, None] >>> Creates a LIST of 8 elements, each being None. -- Wulfraed

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-12 Thread Dennis Lee Bieber
urther). If it was >available, or available within other, older languages, then might this >explain Python's adoption? > As part of the DO loop, FORTRAN did allow decrementing -- but one also had then to put the start-end in correct order... DO 10 I = 32, 0, -1 --

Re: some problems for an introductory python test

2021-08-12 Thread Dennis Lee Bieber
ly very attractive. I never liked to deal with floating-point. > Unfortunately, the most commonly available is Regina REXX, and to my knowledge it did not implement the arbitrary precision feature. Softrware emulation of multprecision floating point is slooo! --

Re: some problems for an introductory python test

2021-08-12 Thread Dennis Lee Bieber
of the OS... The floppy mess then brought up a display with approximately "we created Amiga, CBM messed it up"]) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: pip doesn't work

2021-08-13 Thread Dennis Lee Bieber
ll also make everything else in /Scripts available to the command line. Alternatively, you invoke Python passing it a "-m pip " (without the ") -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.free

Re: Can't get rid of old version of python

2021-08-13 Thread Dennis Lee Bieber
ght click "uninstall" -- but make sure it is not YOUR Python... The simplest method would be to ensure YOUR Python is at the top of the PATH environment variable so it is found first when searching for applications. -- Wulfraed Dennis Lee Bieber

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-16 Thread Dennis Lee Bieber
On Sun, 15 Aug 2021 00:05:29 -0300, Jack Brandom declaimed the following: >Dennis Lee Bieber writes: > >> subscript: '.' '.' '.' | test | [test] ':' [test] [sliceop] >> sliceop: ':' [test] > >This is looking less read

Re: please help

2021-08-16 Thread Dennis Lee Bieber
BLE as the program to be run by Python, rather than a pip .py file. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: some problems for an introductory python test

2021-08-16 Thread Dennis Lee Bieber
On Sun, 15 Aug 2021 00:15:58 -0300, Hope Rouselle declaimed the following: Giganews seems to have just vomited up three days worth of traffic... >Dennis Lee Bieber writes: > >> >> Granted, the fact that the Amiga used a shared common address space for >>

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-17 Thread Dennis Lee Bieber
on the sound card? > Possibly there is a section of code that determines if a sound card is available, and if not, routes to the basic internal speaker. The rest of the wave form logic is probably still of use for that. -- Wulfraed Dennis Lee Bieber AF6VN w

Re: question on trax

2021-08-18 Thread Dennis Lee Bieber
the `Layer` class docstring. n_out: Number of outputs promised by the layer; default value 1. Returns: Layer executing the function `f`. """ -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdive

Re: on perhaps unloading modules?

2021-08-22 Thread Dennis Lee Bieber
That just "dealt" four poker hands (needs logic to translate integer 1..52 into suit/rank). -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: on perhaps unloading modules?

2021-08-23 Thread Dennis Lee Bieber
one-liner for Conway's Game of Life. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

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

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

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

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

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

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

<    1   2   3   4   >