Has anyone had a go at the PCPP Python exam? I’ve done the beginner and associate exam and have completed the 5 courses on edube. I was wondering if anyone could share some go...
does anyone know how I can find what docker image comes with GCC 12?
crmpicco/tests/subtasks/test_delete_redis.py::test_redis_keys_are_deleted[c0] PASSED [ 7%] crmpicco/tests...
is Python 3.11 still not supported by Ubuntu 22.04 LTS? https://packages.ubuntu.com/jammy/python/
I am a Python beginner and I am very much hoping someone can help me out setting up pytest. This is my attempt at writing a test for my super-basic class: test_message.py: fr...
are there any large pitfalls I should watch out for when upgrading from Python 3.10 to 3.11?
has anyone here taken the PCEP Entry-Level cert? I'm curious to know how difficult you found it and how long you worked with Python before sitting it?
can anyone point me in the direction of what i'm doing wrong here? def query(self, query: str, params: Tuple): self.cursor.execute(query % params) that is my function. I...
if am am writing stdout and stderr to a file is there a way I can capture that in the code and assign it to a variable? upgradeproc = subprocess.Popen(upgradecmd, shell=True,...
I am connecting to an S3 bucket using boto3 in my Python 3 code: s3 = boto3.resource('s3') s3bucket = s3.Bucket("cloud-orphans") i'd like to test this code, which deletes fro...
I am having trouble accessing modules in my code. I have added __init__.py to my application in a handful of directories but I still can't load the package for some reason. Wh...
does anyone use any security scanners on their Python projects? If so, which do you recommend?
I'm confused why I am getting the following error: get_client() missing 1 required positional argument: 'self' I think I am missing some understanding in Python. I am calli...
should I have any concerns about the following code? stdout_handle = open(stdout_file, "w+") stderr_handle = open(stderr_file, "w+") cron_process = subprocess.Popen(cron_com...
i'm trying to work out what the hashbang line should be in my script. Currently I have: #!/usr/bin/python3 However, i'm wondering if this should really be: #!/usr/bin/en...
def get_config(self): config = configparser.ConfigParser() config.read(self.__path) return config[self.__profile] When I print out the return value from this get_...
How should I be escaping the database name when using psycopg2 here? I've tried a backtick, and multiple double quotes. cur.execute(f"CREATE DATABASE `{dbname}` TEMPLATE temp...
from typing import List, Tuple def process(self, query: str, params: Tuple): self.execute(query % params) Is there a way I can default params to an empty Tuple so that th...
is there a way I can elegantly exit a running Python program when hitting Ctrl + C? I'm trying this sort of thing, but it barfing out a lot of errors to the screen if __name...
has anyone used edube.org for study and not received the 50% PCAP discount code at the end of the course? The course material states that I should have a discount code but I d...