driscollis Profile Banner
Mike Driscoll Profile
Mike Driscoll

@driscollis

Followers
128K
Following
66K
Media
5K
Statuses
41K

$PYTHAI | Lead Developer @ThePSF #Python

Iowa
Joined January 2009
Don't wanna be here? Send us removal request.
@driscollis
Mike Driscoll
1 year
The Python Show is back with its 25th episode!. Learn about Python and Robots with @kevsmac.
6
13
80
@driscollis
Mike Driscoll
34 minutes
#Python Pop Quiz πŸβ“. What is the output of the following code?. A) ['p', 'y', 't', 'h', 'o', 'n', '!'].B) SyntaxError.C) IndexError.D) ['!', 'p', 'y', 't', 'h', 'o', 'n']
Tweet media one
2
0
4
@driscollis
Mike Driscoll
10 hours
RT @willmcgugan: Why, yes. I did forget to call super().__init__(). Thanks, Textual!
Tweet media one
0
1
0
@driscollis
Mike Driscoll
16 hours
RT @greglim81: Never imagined I would one day see myself on the @gumroad website. 🎊
Tweet media one
0
1
0
@driscollis
Mike Driscoll
18 hours
#Python Pro Tip 🐍🎩. Classes allow you to modify the representation of an object by editing its `__repr__()` method. When you print an object without the __repr__() being modified, you will get the memory address of the object back. Override __repr__ if you want more info!
Tweet media one
Tweet media two
2
0
15
@driscollis
Mike Driscoll
1 day
#Python Pop Quiz πŸβ“. What is the output of the following code?. A) Python.B) Python rocks!.C) Python rocks! Python.D) Pythonrocks! Python
Tweet media one
8
1
17
@driscollis
Mike Driscoll
2 days
RT @incredicoders: We're launching the IncrediCoders Community on June 30!. πŸ’¬ Join us: Daily posts, behind-the-sce….
0
2
0
@driscollis
Mike Driscoll
2 days
#Python Pop Quiz πŸβ“. What is the output of this assert?. A) True.B) False.C) SyntaxWarning.D) SyntaxError
Tweet media one
3
0
12
@driscollis
Mike Driscoll
3 days
#Python Pop Quiz πŸβ“. What is the output of the following code?. A) [3].B) [3, 3].C) [3, 3] [3, 3].D) [3, 3, 3, 3]
Tweet media one
7
0
10
@driscollis
Mike Driscoll
4 days
RT @akshay_pachaar: I decided to put together all my MCP posts in a single PDF. It covers:. - The fundamentals of MCP.- Explanations with….
0
182
0
@driscollis
Mike Driscoll
7 days
What are you waiting for? Will makes cool stuff for the #Python community.
@willmcgugan
Will McGugan
7 days
Hey @googleaidevs @AnthropicAI . I have spent the last 5+ years making things look awesome in the terminal. You could have access to all the expertise for the price of a sponsorship, and help fund open source. #worthashot.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
1
0
5
@driscollis
Mike Driscoll
7 days
RT @_workchronicles: (comic) Temporary fix
Tweet media one
0
119
0
@driscollis
Mike Driscoll
7 days
RT @willmcgugan: I've been working on the Textual docs today. I (and others) have put a lot of work in to these docs. Quite proud of them.….
0
4
0
@driscollis
Mike Driscoll
7 days
I do want to point out that in most cases, you won't use the __new__()` method in your code. In fact, that method is used almost exclusively for metaprogramming, factories, and API work from what I have seen. So keep on using the trusty `__init__()` method. It's still great!.
1
0
4
@driscollis
Mike Driscoll
7 days
Now let's add the `__new__()` method and see whether `__init__()` gets called BEFORE or AFTER the `__new__()` method. If you run this code, you'll see that the `__new__()` method is called first! 🐍🀯
Tweet media one
1
0
9
@driscollis
Mike Driscoll
7 days
Let's add some print statements to the `__init__()` method to get some more information about what is going on when you create an instance of this class:
Tweet media one
1
0
2
@driscollis
Mike Driscoll
7 days
Many #Python developers think of the __init__() method as Python's constructor, but it's really not. Instead, the `__new__()` method is the real constructor. Let's take a look at how you can prove that in this mini-thread. πŸπŸ§΅πŸ‘‡
Tweet media one
2
5
26
@driscollis
Mike Driscoll
8 days
Want to learn more about Qodo Gen CLI and its agents? Check out their quick-start guide here:.
0
0
2
@driscollis
Mike Driscoll
8 days
You can also use Qodo Gen CLI with pre-commit:
1
0
3
@driscollis
Mike Driscoll
8 days
Here's an example of using Qodo Gen CLI to run a test suite:
1
1
1
@driscollis
Mike Driscoll
8 days
Features and capabilities of Qodo Gen CLI include:. πŸ€– Built-in agents for test coverage, code review, and release notes.πŸ€– Custom agent configuration.πŸ€– Turn your agents into MCP.πŸ€– Web-based interfaces for agents.πŸ€– Integrate with your tools/MCPs.πŸ€– and more!.
1
1
3