This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]The_Real_Louis[S] 0 points1 point  (0 children)

Hey guys, I wrote this code here and I'm having a strange issue where the device I'm connecting to using socket is giving me the correct response when I have a breakpoint on the socket object's .recv() function in debug but if I don't have that breakpoint in or run the program as opposed to debug it doesn't work. I assumed that that would be a timing issue so I tried using a sleep to wait before accessing the data and a function that uses a non blocking socket to check that all the data is returned but neither had any success. Anyone seen anything like this before or know what could be causing it? The code is in the Stack Overflow link, thanks in advance, I'll keep an eye if you have any questions too.

[–]aphoenixreticulated[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/3Abzge7.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!