Python pros and cons

Author: Dave
Date: 11.08.17 - 6:49am

So I have started using python more. I know people love it. Its ok. Here is my pro and con list which i will add to over time.

  • the cross platform aspect is a very powerful feature and strong draw
  • tons of skilled people use it and there is lots of sample code and libraries
  • it does make allot of things easy and has high level wrappers.
  • thank god for pip, getting packages with compiled dependencies setup used to suck. (i still worry about how trustworthy, audited, and where they came from though looks like ActiveState is addressing this)
  • writing a debugger for it is piss easy
  • interacts well with C and has loads of documentation/examples
  • python scripts are their own ecosystem. Leveraging python code in another language requires embedding the interpreter and making sure whatever libs they had installed are replicated, you cant just compile it all into one dll.
  • python is slow as hell. a py imphash routine on mshtml.dll took 25 seconds. In vb6 it was .3 sec
  • console apps have their use but most everything I want is GUI for efficiency.
  • py GUI apps are slow and ugly. The GUI code is also super ugly.
  • the forced indenting is annoying and tab/space problems suck. What if I want to disable some try I have to unindent everything.
  • essentially every variable is a variant in python. IDE intellisense is left guessing or broken allot. Variants are fine for small scripts, but static typing is way better and makes the IDE experience way better.
  • I hate that allot of errors that should be caught on compilation only show up at runtime when that particular code path is hit! thats insane for large projects.
  • I dislike the None type, it adds one more type to test for and blows things up left and right if you arent expecting it. (And it can easily appear magically)
  • debugging in Wingware or VS2017 is ok, usable..but not as great as VB6. No intellisense in the immediate window, no edit and continue.
  • python is fragmented like linux, especially with IDEs and GUI toolkits
  • some elements of the language feel a bit hacked together like ctypes and COM support
  • # for comments is much crappier than // or ' to type
  • if you want to disable an if or try, you have to block unindent which sucks
  • the enforced white space thing is stupid, we are adults give us {}
  • import seems to have some nuances still beyond me.
  • vb6 can seamlessly translate "str" & 1 without str() wrapper everywhere, just saying..
My conclusions are:
  • it does make many small tasks quick and easy
  • its useful and necessary and can not be denied
  • I need ways to leverage python code in other languages easily
  • python is the new vb6, immediately accessible to the masses
  • for windows its still not my go to
  • its good for glue, automation, and quick scripts
  • building large projects in it does not seem wise
  • overall its useful but I do not love it

Comments: (0)

Leave Comment:
Email: (not shown)
Message: (Required)
Math Question: 69 + 38 = ? followed by the letter: R 

About Me
More Blogs
Main Site
Posts: (year)
2024 (2)
     ffmpeg voodoo
     RegJump Vb
2023 (9)
     VB6 Virtual Files
     File handles across dlls
     python abort / script timeout
     VB6 Python embed w/debugger
     python embedding
     VB6 IDE Enhancements
     No Sleep
     A2W no ATL
2022 (4)
     More VB6 - C data passing
     Vb6 Asm listing
     Byte Array C to VB6
     Planet Source Code DVDs
2021 (2)
     Obscure VB
     VB6 IDE SP6
2020 (4)
     BSTR from C Dll to VB
     Cpp Memory Manipulation
     ActiveX Binary Compatability
2019 (5)
     Console tricks
     FireFox temp dir
     OCX License
     Extract substring
     VB6 Console Apps
2018 (6)
     VB6 UDTs
     VB6 Debugger View As Hex tooltips
     VB6 - C Share registry data
     VB6 Addin Missing Menus
     VB6 Class Init Params
     VB6 isIn function
2017 (6)
     Python and VB6
     Python pros and cons
     download web Dir
     vc rand in python
     VB6 Language Enhancement
     Register .NET as COM
2016 (22)
     VB6 CDECL
     UDT Tricks pt2
     Remote Data Extraction
     Collection Extender
     VB6 FindResource
     DirList Single Click
     Reset CheckPoint VPN Policy
     VB6 BSTR Oddities Explained
     SafeArrays in C
     BSTR and Variant in C++
     Property let optional args
     Misc Libs
     Enum Named Pipes
     Vb6 Collection in C++
     VB6 Overloaded Methods
     VB6 Syncronous Socket
     Simple IPC
     VB6 Auto Resize Form Elements
     Mach3 Automation
     Exit For in While
2015 (15)
     C# self register ocx
     VB6 Class Method Pointers
     Duktape Debug Protocol
     QtScript 4 VB
     Vb6 Named Args
     vb6 Addin Part 2
     VB6 Addin vrs Toolbars
     OpenFile Dialog MultiSelect
     Duktape Example
     DukTape JS
     VB6 Unsigned
     .Net version
     TitleBar Height
     .NET again
     VB6 Self Register OCXs
2014 (25)
     Query Last 12 Mos
     Progid from Interface ID
     VB6 to C Array Examples
     Human Readable Variant Type
     ScriptBasic COM Integration
     CodeView Addin
     ScriptBasic - Part 2
     Script Env
     MSCOMCTL Win7 Error
     printf override
     History Combo
     Disable IE
     API Hooking in VB6
     Addin Hook Events
     FastBuild Addin
     VB6 MemoryWindow
     Link C Obj Files into VB6
     Vb6 Standard Dlls
     CStr for Pascal
     Lazarus Review
     asprintf for VS
     VB6 GlobalMultiUse
     Scintilla in VB6
     Dynamic Highlight
     WinVerifyTrust, CryptMsgGetParam VB6
2013 (4)
     MS GLEE Graphing
     printf for VB6
     C# App Config
     Tero DES C# Test
2012 (10)
     VC 2008 Bit Fields
     Speed trap
     C# Db Class Generator
     VB6 vrs .NET (again)
     FireFox Whois Extension
     git and vb6
     Code Additions
     Compiled date to string
     C# ListView Sorter
     VB6 Wish List
2011 (7)
     C# Process Injection
     CAPTCHA Bots
     C# PE Offset Calculator
     VB6 Async Download
     Show Desktop
     coding philosophy
     Code release
2010 (11)
     Dll Not Found in IDE
     Advanced MSScript Control
     random tip
     Clipart / Vector Art
     VB6 Callback from C#
     Binary data from VB6 to C#
     CSharp and MsScriptControl
     HexDumper functions
     Js Beautify From VB6 or C#
     vb6 FormPos
     Inline Asm w VB6
2009 (3)
     The .NET Fiasco
     One rub on computers
     Universal extractor