Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Static type checking with PyPy
Post: Static type checking with PyPy

I am using type hints as an experiment to see the pros and cons. I am also using PyPy a an experiment with static type checking. Here's an inconvenient situation. Say variable x can be None | list...
pitosalas General Coding Help 1 459 Dec-14-2023, 08:39 PM
    Thread: Why am I getting this TypeError?
Post: RE: Why am I getting this TypeError?

(Oct-14-2023, 12:28 PM)menator01 Wrote: Please post the code and errors using the bbtags. Can't tell much from images. Can’t find how to do it. Tried but doesn’t seem to do the trick…
pitosalas General Coding Help 5 723 Oct-14-2023, 01:46 PM
    Thread: Why am I getting this TypeError?
Post: Why am I getting this TypeError?

Maybe it's early morning brain...The line called out is: self.new_queue = Queue("New", sim)and the error says: Error:TypeError: Queue.__init__() takes from 1 to 2 positional arguments but 3 were given...
pitosalas General Coding Help 5 723 Oct-14-2023, 12:22 PM
    Thread: Analyzing a code base
Post: Analyzing a code base

i have a python code base. I want to learn about it. What are some tools that do some automated analysis of a code base for style, architecture, documetation or anything like that? I am familiar wit...
pitosalas News and Discussions 0 555 Jul-20-2023, 03:59 PM
    Thread: Small python development shop
Post: RE: Small python development shop

(Jul-19-2023, 08:27 AM)Gribouillis Wrote: Should I move this thread to the Jobs forum? I’m new here. If it doesn’t belong here then sure. But I am not necessarily offering a job just asking if someo...
pitosalas News and Discussions 2 810 Jul-19-2023, 10:17 AM
    Thread: Small python development shop
Post: Small python development shop

I'm looking for a small "boutique" Python development shop for a project at Brandeis University. This is a small-medium size project, funded by grants, which has been going for 1.5 years. There's a wo...
pitosalas News and Discussions 2 810 Jul-19-2023, 12:20 AM
    Thread: Idiomatic Python compared
Post: RE: Idiomatic Python compared

Yes, I guess obviously it doesn't force you. But is it a strongly held sense of the pythonic community that long methods or functions are a *code smell* ?
pitosalas News and Discussions 3 1,864 Sep-28-2021, 02:00 PM
    Thread: Idiomatic Python compared
Post: Idiomatic Python compared

I've been using python a lot after many years on Ruby. I've been indoctrinated on Ruby community opinions about code smells and idiomatic programing. I bring that perspective to writing pythonic code....
pitosalas News and Discussions 3 1,864 Sep-27-2021, 05:17 PM
    Thread: Designing a "game" loop api
Post: RE: Designing a "game" loop api

Let me clarify. mygamelib is a package I am writing, to make it easy to write simple games. It is built on top of pygame. It will be much more limited than pygame. My goal is that the "game designer" ...
pitosalas General Coding Help 2 2,487 Jun-07-2020, 03:20 PM
    Thread: Designing a "game" loop api
Post: Designing a "game" loop api

I would like to create a structure sort of like "Processing" in Java, where someone writes a short python script with the following structure: import mygamelib def setup(): ... do stuff that happe...
pitosalas General Coding Help 2 2,487 Jun-07-2020, 02:47 PM
    Thread: Whats the right way to refactor this Big if/elif/elif ?
Post: Whats the right way to refactor this Big if/elif/e...

This code is ugly and not pythonic. I am new to python not new to programming. Instead of guessing on one of many possible refectorings, could you tell me the pythonic way to do this? As you can see ...
pitosalas General Coding Help 1 2,251 Jul-28-2019, 05:26 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020