posting code snippets
malaclypse2 at gmail.com
Thu Feb 27 16:01:50 CET 2014
On Thu, Feb 27, 2014 at 7:13 AM, Mark H. Harris <harrismh777 at gmail.com> wrote:
> hi folks,
> Its been too long... can't remember... are there rules here about posting code snippets, or length considerations, and so forth?
Chris' advice about just posting your code inline with your message is
good. If the problem is that you think your code is too long to post
inline, you're probably right. That means it's probably also too long
for people to give it much attention. If you really want people to
help figure out what is going on with code you don't understand, the
best thing to do is to post a Short, Self Contained, Correct Example
(http://www.sscce.org/). That means cutting the code down to the bare
minimum required to demonstrate your issue. Many times, the very act
of cutting the code down to a digestible chunk will show you the
problem without posting. And if you still don't understand what's
going on, you're much more likely to get help when you present a
problem that can be read in a single screenful or so of code.
> A related question, is there a python repository for uploading py files, patches, suggestions, etc?
Assuming this goes beyond posting code for people on the list to look
at, yes, there are lots of places to post python code.
For short bits, Activestate has a repository of python recipes:
For publishing full modules and packages, there's the python package
Patches, bugs and feature requests for the python language itself
belong here: http://bugs.python.org/ attached to an appropriate
tracker issue. Feature requests should probably be raised on the
python-ideas mailing list
(https://mail.python.org/mailman/listinfo/python-ideas) before opening
an issue on the bug tracker.
More information about the Python-list