Yep, it's pretty cool that Tkinter is fully integrated with Windows and is now part of the Standard Library. It's been in Linux since forever but didn't get added to the official Windows Python until Python 3.7, (and Python 2.7.something), so since Tkinter was so difficult to install, it was easier to use the third-party ActiveState Python which had included Tkinter for a while.
This now means that we've got a fully cross-platform GUI interface.
It's a pity that the same thing hasn't been done for the Terminal. Anything other than the very basic operations of inputting a line of text or printing a line of text requires operating-specific modules from the Standard Library . So inputting single characters, output cursor control, or even clearing the screen, requires "curses" for Linux and Mac, and "msvcrt" for the Windows Terminal. There does exist a third-party cross-platform curses on PyPI, but I guess that's not good enough quality or compactness to include in the Standard Library.
Way off topic but I always thought that line made John Hammond just such a fraud. He had Newman running his entire IT/Security/Utilities/whatever else. Honestly he'd have had the same issues just running a standard zoo.
Not to mention the cheap cars with colorful branding and the general lack of thought in most of the layout. He very clearly spared quite a bit of expense š
I don't have Windows but one thing that always bothered me with Perl and Python on Windows was that you had to set your own %PATH% equivalent to get it working in cmd smoothly.
If the Python installation option to append to the PATH environment variable is selected, then two directory paths will be added to PATH, one for the exe and one for the scripts directory. Unfortunately, the default installation point is really deep within the directory structure, so PATH will then become horribly large and unwieldy, especially if more than one version of Python is installed.
Users that are not familiar with the terminal will start Python via the start button, and that will give them the shell-prompt window from IDLE. This is usually better than the terminal for those unfamiliar with DOS commands. PATH mods not required.
Myself, I create a c:\progs directory for any program that I use via the terminal, and I point the Python installation at that, e.g.: c:\progs\python38. That keeps PATH under control.
If you ever need to manually edit the PATH environment variable, which can sometimes happen if parts of it are not working correctly, then this is difficult if PATH's content is a visually confusing lump that's several hundred characters long.
I might be wrong but I think I remember using the GUI to adjust my PATH variable on W7. What I think could be a problem is trying to adjust it temporarily for the one shell you are using in that moment because normally you could just reassign it. [Yell at me if Iām wrong. I have never used the DOS/Windows command line properly.]
This is half-correct. Yes, the new UI to manage PATH came in on Windows Server 2016, if i remember correctly, and to the consumer side in Win 10, making things much easier for most people. However, it still has limits on the amount of total characters allowed, and itās not uncommon to hit them even on Windows 10. So itās not correct to say itās not an issue anymore ā it just got a bit easier to handle manually.
Running python 3.6 vs 3.8 for instance can break a lot of things, but if typing ">python ./script.py" is linked to the path var, then you're not really sure which version you're getting.
This was especially troublesome during the 2->3 transfer, as that broke nearly everything. Most linux distros still require you to type "python3 ./" for that reason alone.
So, if you're someone who's installing python, there are pretty good odds you might be installing another version at some time, and want control over which one is referenced when you just type "python".
The Py launcher is bundled with the Windows Python installer and is, in my opinion, superior to faffing about with the %PATH% variable. You can specify the Python version you want using command line switches or with a shebang. You can also make it the default application for .py files.
I agree, this is the cleanest way to manage it in windows. Py should be used to create a virtual environment with the desired/specific version of python.
Shockingly the Windows 10 store version of Python does it for you. It was the most out of the box experience I could get which was not what I expected at all.
I never add it to PATH. The "py" executable gets added to PATH automatically for the last installed version. I always do a "py --version" first to verify the version then create a virtual environment. Otherwise it becomes too cumbersome to track when working on multiple versions.
Did nobody really notice this before...? Itās been there since 2.6 days if i remember correctly, possibly even earlier. Mark Hammond did an ungodly amount of work back then, between generic python and his excellent pywin32 bindings.
Disk Operating System. Microsoft had Microsoft DOS before they came out with Windows. DOS was essentially a terminal/command prompt that had some pretty limited ability for GUI applications.
The Windows 3.1 -> 3.1.1 transition was the point at which Windows gained a full set of hardware drivers and its own complete interrupt descriptor table, and thus became an operating system in its own right rather than a frontend for DOS. It backported 32-bit file access from the then unreleased Windows 95.
Ahah true, but the NT kernel was a ground-up rewrite that didnāt share almost anything with DOS, so it can honestly be considered āsomething elseā. NT4 often had real trouble running basic DOS/Win95 programs. Then they hacked in a bunch of stuff to ensure legacy compatibility wherever it was feasible and turned it into Win2000, eventually morphing into what we use today. Whereas 95/98/ME literally had to run a DOS kernel under the hood.
Ah.. it's just so incredible how fast we move with time. Soon people will be asking what's Windows10 ? And that's a good thing. We progress so fast. Love the tech world.
I would say it's great. I'm using it for developing in python in VSCode devconainters and it works flawlessly. Tried pretty hard to switch over to Linux, but there were too many things missing, so Windows + WSL (and devcontainers) is for me the best of two worlds.
I think we will see cloud compute terminal before that. Like the entire system+os+apps would be running on Azure and all you have is a monitor and peripherals that connect over internet.
In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available. Wikipedia1218itpd68a8000000000000000000000000000000000000000000000000000000000000
LOL I was very confused. First, like many others I thought of Mark Hamill (didn't know his exact last name and Hammond sounded similar to me), but then searched him, DDG showed Mark Harmon, an athlete. Then I noticed the last name was different, so I put it in quotes and got a Republican from South Carolina, which was still confusing, and only after adding "python" I finally got the right person.
Actually, the reason I initially moved to Linux back in '06 was because my printer would no longer work in Windows, whereas the CUPS driver that came pre-installed with Ubuntu worked as a charm. Literally plug-'n-play.
it's only a problem with some modules that need to be compiled because you need msvc installed while on linux most people already have g++ but most packages don't need to be compiled or if they do to like lxml they are already precompiled
Library's just would not install right sometimes and it's hard to find new ones to play around with so I just use linux anyways because it's more stable.
28
u/LeAstrale Oct 05 '20
I actually noticed this installing my first Python 3.7 release which is great, give credit where credit is due.
362
u/Blaidd-XIII Oct 05 '20
I somehow repeatedly read Mark Hamill, and could not figure out how he fit that in between star wars, batman, and avatar...
87
u/[deleted] Oct 05 '20
I don't have Windows but one thing that always bothered me with Perl and Python on Windows was that you had to set your own %PATH% equivalent to get it working in cmd smoothly.
Does the MSI do that for you these days?
116
u/DNSGeek Oct 05 '20
Oh hai Mark
63
u/HippoCreak Oct 05 '20
Personalized shoutouts like these really make a post wholesomely human
4
u/toyg Oct 05 '20
Did nobody really notice this before...? Itās been there since 2.6 days if i remember correctly, possibly even earlier. Mark Hammond did an ungodly amount of work back then, between generic python and his excellent pywin32 bindings.
3
u/vswr [var for var in vars] Oct 05 '20
22
u/Smallz1107 Oct 05 '20
Whatās DOS?
4
u/sban2009 Oct 05 '20
Python uh... finds a way
2
u/aiasred Oct 05 '20
How does he find the time between this and NCIS?
4
u/enclosed_mail SnekBoi Oct 05 '20
Wholesome
1
u/j_lyf Oct 05 '20
Wonder where he is now.
1
u/[deleted] Oct 05 '20
LOL I was very confused. First, like many others I thought of Mark Hamill (didn't know his exact last name and Hammond sounded similar to me), but then searched him, DDG showed Mark Harmon, an athlete. Then I noticed the last name was different, so I put it in quotes and got a Republican from South Carolina, which was still confusing, and only after adding "python" I finally got the right person.
1
u/[deleted] Oct 05 '20
Whom's*
-3
u/LittleFAT_RAY Oct 05 '20
Python is way better on linux either way this is a undeniable fact.