[Bf-taskforce25] Proposal to follow PEP8 for all python scripting for Blender 2.5

Dalai Felinto dfelinto at gmail.com
Sat May 30 09:37:16 CEST 2009


"please make the tab key behaviour optional.
"
+1

But I don't think any feature will raelly be dropped. Specially because the
text editor is also used for other stuff (e.g. GLSL custom shaders, 2D
Filters and Dome warp mesh data).

Dalai

2009/5/29 Campbell Barton <ideasman42 at gmail.com>

> Don't think its that bad. just checked and there are ~8 or so scripts
> that use spaces out of  ~180+ scripts
>
> Agree to disagree on 79 width limit, not really interested in
> following this for scripts I maintain.
>
> Looks like we all agree on tab-> spaces though, not a hard change to
> make for 2.5 then update in the editor.
>
> On Fri, May 29, 2009 at 8:40 AM, Chris Want <cwant at ualberta.ca> wrote:
> > +1, and I would say stick to all style conventions (spaces,
> > 79 characters per line, etc). Having said that, even if we
> > do adopt this I doubt anybody will police it, so we'll
> > just wind up in a similar situation to what we are in now
> > where everybody just does whatever they want to.
> >
> > I like the quote from the proposal: "A Foolish Consistency
> > is the Hobgoblin of Little Minds".
> >
> > Chris
> >
> > Stani wrote:
> >> I think Blender 2.5 is a good occasion to adopt the PEP8 Style Guide
> >> for Python Code, which is widely spread in the Python community. This
> >> will enhance the chance to make code more readable, make it more easy
> >> to share code and to collaborate. The PEP8 is the result of many years
> >> of very experienced Python coders (Guido et alii.) and I can garantuee
> >> it is hard to compete with them ;-)
> >>
> >> This intention was already formulated in "Style and PEP-8" on
> >> http://wiki.blender.org/index.php/BlenderDev/Blender2.5/PythonAPI
> >>
> >> What I like to do is, make it official and even to encourage it for
> >> anyone writing scripts in Blender. One of the important details of the
> >> PEP8 is: "For new projects, spaces-only are strongly recommended over
> >> tabs." (I think now both spaces and tabs are used, which will create
> >> confusion in the end.) It might seem some trouble now to adopt to
> >> this, but it will save much more trouble later.
> >>
> >> Can we vote on this issue and depending on the outcome make the switch?
> >>
> >> Stani
> >>
> > _______________________________________________
> > Bf-taskforce25 mailing list
> > Bf-taskforce25 at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-taskforce25
> >
>
>
>
> --
> - Campbell
> _______________________________________________
> Bf-taskforce25 mailing list
> Bf-taskforce25 at blender.org
> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-taskforce25/attachments/20090530/29c400b3/attachment-0001.htm 


More information about the Bf-taskforce25 mailing list