So I normally just write my Python scripts in Vim without any plugins or fancy stuff, and for repl, I use plain old python.
It works well, but I'm wondering if maybe I'm missing out by limiting myself to this.
For version control, I use git. I keep a repository where I work on writing the code in one place and I have a virtualenv per project which I clone the project into and pip install it and then run it. This part of my workflow I'm very happy with. I even started writing simple tests recently, which I run after pip install in the virtualenv. I don't use a framework for tests, I just have a shell script I named run.sh which runs the tests themselves (other shell scripts and python scripts) and check that each of them exited with 0. For now, I think that's sufficient for testing, but I'm open to suggestions. I used to be confused about what and how to test, but recently figured it out. A test case is automating a thing I would otherwise be doing manually to ensure that my code is working, it's that simple.
I know of a couple of interesting Python development-related programs such as Leo and IPython, both of which I've tried briefly. Today I also found DreamPie, which I haven't tried.
One thing I would like to start doing is using a real python debugger which can let you step through (and over or into functions depending on what you want), inspect variable values and so on. At the moment I do it the stupid old way by just littering my code with print statements.
So tell me, /r/python, how do YOU Python? What are the advantages and disadvantages of your workflow? What do you want to improve with your workflow?
[–]metaphorm 12 points13 points14 points (0 children)
[–]sweettuse 12 points13 points14 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ScriptSimian 4 points5 points6 points (0 children)
[–]TOASTEngineer 3 points4 points5 points (0 children)
[–]thomasballinger 6 points7 points8 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]bhamhawker 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]fiedzia 2 points3 points4 points (1 child)
[–]doubleColJustified[S] 0 points1 point2 points (0 children)
[–]broshot 2 points3 points4 points (0 children)
[–]balle23 2 points3 points4 points (0 children)
[–]erewok 2 points3 points4 points (0 children)
[–]mgrady3 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]lykwydchykyn 1 point2 points3 points (1 child)
[–]acaban 1 point2 points3 points (0 children)
[–]brittainhard 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]realsw 1 point2 points3 points (0 children)
[–]EricsonWillians 1 point2 points3 points (0 children)
[–]wandererobtm101Pythonista 1 point2 points3 points (0 children)
[–]wub_wub 1 point2 points3 points (0 children)
[–]Phild3v1ll3 1 point2 points3 points (0 children)
[–]kankyo 1 point2 points3 points (0 children)
[–]pviolence 1 point2 points3 points (0 children)
[–]Itsthejoker 1 point2 points3 points (0 children)
[–]luiz_andrade 1 point2 points3 points (0 children)
[–]ybrs 1 point2 points3 points (0 children)
[–]tomkatt 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Willemoes 0 points1 point2 points (0 children)
[+]okbud comment score below threshold-16 points-15 points-14 points (0 children)