Formatting Method, Function and f-string Compared

There is an old rule in Python that there should be only one way to do something but over the last few years the process of formatting has spawned several. The oldest is “Interpolation”. It is buggy, obsolete, being deprecated, and using it is just asking for trouble. In the next version of Big Daddy’s […]

An Anonymous List Works in “”.join()

All the docs and error messages seem to indicate that you need a tuple as the object in “”.join but it seems an anonymous list works as well – and format works inside the process also. Results in: The value of pi, 3.14159265359, can be estimated to 5 decimal places as 3.14159. (Yes, I am […]

JSON – 1 Page Toolbox

Maybe they are right, maybe they are wrong, but a group in the local Atlanta area (I live in a small town called Peachtree City south of Atlanta) wanted json to get a mention in the 2021 release A of Big Daddy’s Toolbox #1, General Python. TB1 was already packed beyond the bounds of human […]

Columns of Dollars and Cents

…so I’m working on a data base of “Examples, Tricks and Tips” to be mounted using a WordPress plug-in called WP Data Access.  I really hope it works out like it seems it will.  In the process I’ve tackled an f-string problem that has too much utility to bury it in a database – how […]

Using a tertiary if and in for a Pythonic search on the fly

This doesn’t need a lot of explanation, but just one line below combining an inline if with the in operator packs an amazing amount of power in such a simple, short, easy to understand statement.  Its beautiful really. results will be: zebra: animal carrot: vegetable

Changing 3.5+ to 3.6+ on Wikipython’s Header

Don’t get me wrong – everything new I do now is coded in 3.9 –  this is a hobby site and we move with the tide for fun.  But if money is involved, 3.5 was just a version early and so, 3.6 has replaced it on the header Here is my reasoning: After a couple […]

Stop it Immediately!

All software development for Python must stop immediately. No kidding, I can’t keep up. I can’t take it anymore. If you have been working on anything that might end up in PyPi I need you to change jobs, wives, religions – whatever it takes. JUST STOP! Here’s the thing. We’re on the cusp of publishing […]

What’s in your environment?

…your os.environ() that is. Its just a big dictionary but its a little tricky to tease out what you want from a LOT of stuff it regurgitates. Here are a few lines to easy access: https://wp.me/P8cRX9-FP

Glob and Pretty Print – a demo too good to waste

A major new version of TB1 – The Python General Toolbox – is under construction. It expands to six pages and includes revisions to information and examples on iterators, class construction, data containers and more. It will add concise pages of selected functions – hopefully ones important to beginners – from the Python Standard Library […]

C Course Finished, Reevaluated, Toolbox on the way

A couple of days ago I completed the Udemy course on Basic C taught by Jason Fedin. I may (or may not) have been too hard on Jason in earlier monologues. Suffice it to say with all the things I can see that need improvement he is still about 1000 times better than the yahoo […]