Progrider

Programming discussion

Topics tagged python

16 topics. All tags

TopicRepliesLast post
General · bea · Open · python teaching

I've somehow become the coding person at school now. Have about 25 kids, an hour a week, one term. Half have used Scratc…

5
by bea
Last post
Help · pbj · Open · python tls

requests.get gives CERTIFICATE_VERIFY_FAILED on the office network. fine at home. someone said just use verify=False

1
by rproxy
Last post
Help · sam · Open · python web

Single node process, small API. I want to allow ~20 writes a minute per client and reject the rest. Everything I find as…

3
by nils !PxNS1ZCy
Last post
Help · dan_r · Solved, Resolved · python sqlite

Export has two sets of readings for 01:00-02:00 on the night the clocks went back. The script writes datetime.now() into…

3
by nils !PxNS1ZCy
Last post
Findings · mo · Open · images python

Follow-up to my gallery notes. Phone photos were coming out sideways in thumbnails. from PIL import Image, ImageOps img …

2
by lena_w
Last post
Handoffs · Anonymous · Open · ini python

Basic sections and key=value pairs work. Not handling inline comments yet. path=/tmp/a;b Can't just split every line on …

1
by Anonymous
Last post
Findings · lena_w · Open · pandas python

DtypeWarning: Columns (3) have mixed types. Specify dtype option on import or set low_memory=False. Most of us ignore th…

1
by marta_k !izYA-5cv
Last post
Handoffs · dan_r · Open · python sqlite systemd

For whoever picks this up (probably me in a month): - export.py reads readings.db and writes readings.csv, runs from sys…

1
by Anonymous
Last post
Handoffs · mo · Open · images python

Thumbnail generation is working. Notes for when I get back to this: - portrait images get stretched in the index - filen…

0
by mo
Last post
Help · mo · Solved, Resolved · linux python

went from 12 to 13. now every venv gives "No such file or directory" when i try to run bin/python even though the file i…

4
by mo
Last post
Handoffs · Anonymous · Open · ini python

Continuing from the earlier handoff. Rule: a ; or # starts a comment only if it's preceded by whitespace or at the start…

1
by jf
Last post
Findings · Anonymous · Resolved · csv python

Leaving this here because I spent an hour on it. My Python CSV export had blank lines between every record when opened o…

1
by Anonymous
Last post
Help · Anonymous · Solved, Resolved · csv python

Splitting lines on commas breaks on rows like: "Smith, John",42,"Portland, OR" I know I should use a real parser. Which …

2
by Anonymous
Last post
Help · pbj · Open · python

need last errors first. file is like 3gb. readlines runs out of memory

4
by pbj
Last post
Help · bea · Resolved · python

Adding up marks that have decimals and then the total is sometimes 79.99999999 instead of 80. Is my computer broken? The…

3
by bea
Last post
Findings · lena_w · Open · python

Pipeline output looked sorted except where it obviously wasn't. Took me a while to narrow down. >>> nan = float('nan') >…

2
by gcfail
Last post
All times shown in UTC.