473,416 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

PEP for new modules (I read PEP 2)

Hello,

recently there was a lot discussion about a new Path-class. So Gerrit
Holl started to write a pre-PEP
http://people.nl.linux.org/~gerrit/c.../pep-xxxx.html

We tried to summarize the good ideas and suggestions. Some are still
missing and concepts of already existing modules have to be
added/thought over. Furthermore it turns out that not a new class is
needed but a module. The pre-PEP is already quite big --- Gerrit Holl
figured out that are bigger ones [1] but I think (and Gerrit Holl
agrees) that we should write the PEP a bit different.

In PEP 002 about adding a module to the standard library it isn't clear
(at least I didn't get it) what exactly should be in the pre-PEP for a
new module.
There's another difference because the Path module does not exist right
now. However I think it's not wrong first to figure out how a good
Path-module should look like and then start implementing and continue
discussion.

I think it would be a good idea to start with a dummy implementation
that has docstrings. Then we could build the documentation for the
module automatically and it wouldn't be neccessary to put everything
into the pre-PEP.
I'd like to keep in the prePEP: Abstract, Motivation, a shortened
Specification (mostly global structure, definitions, ...), Rationale
(especially this one seems important to me), BDFL Pronouncement,
References, Copyright.

So basically I want to relocate the real Specification, because the more
specific it gets the more it looks like a documentation and the prePEP
grows and grows ...
Is this a valid option for a PEP?
Better suggestions?
Thank You,
Christoph Becker-Freyseng
[1]

Some statistics about number of words in different peps:
$ wc -w *.txt | sort -rn | head -20 | nl
1 6356 pep-0253.txt # subtyping built-in types
2 5273 pep-0100.txt # python unicode integration
3 4985 pep-0307.txt # extension to pickle protocol
4 4985 pep-0249.txt # python database api spec
5 4694 pep-0258.txt # docutils design spec
6 4604 pep-0252.txt # types/classes
7 4551 pep-0101.txt # python releases
8 4457 pep-0287.txt # reST
9 4144 pep-0209.txt # multidim. arrays
10 3968 pep-0225.txt # elementwise operators
11 3916 pep-0302.txt # new import hooks
12 3882 pep-xxxx.txt

Jul 18 '05 #1
3 1479
Christoph Becker-Freyseng wrote:
So basically I want to relocate the real Specification, because the more
specific it gets the more it looks like a documentation and the prePEP
grows and grows ...
Is this a valid option for a PEP?


If you are asking: "Can we have an implementation before we write the
PEP?", the answer is "Certainly, yes".

The PEP procedure is designed to avoid wasting efforts in implementing
ideas that have no chance to ever get accepted to the Python core.
If this is no concern for you (i.e. you are willing to accept the risk
of wasting efforts), you can certainly implement the thing, wait for
user feedback, and then write the PEP.

Regards,
Martin

Jul 18 '05 #2
Martin v. Löwis wrote:
Christoph Becker-Freyseng wrote:
So basically I want to relocate the real Specification, because the
more specific it gets the more it looks like a documentation and the
prePEP grows and grows ...
Is this a valid option for a PEP?

If you are asking: "Can we have an implementation before we write the
PEP?", the answer is "Certainly, yes".

The PEP procedure is designed to avoid wasting efforts in implementing
ideas that have no chance to ever get accepted to the Python core.
If this is no concern for you (i.e. you are willing to accept the risk
of wasting efforts), you can certainly implement the thing, wait for
user feedback, and then write the PEP.


So if I do it this way, the PEP will not have to contain all the
features of such a module but just a link to the documentation, which
will describe all the classes, functions etc.?

Thank You,
Christoph Becker-Freyseng


Jul 18 '05 #3
"Martin v. Löwis" wrote:
Christoph Becker-Freyseng wrote:
So basically I want to relocate the real Specification, because the more
specific it gets the more it looks like a documentation and the prePEP
grows and grows ...
Is this a valid option for a PEP?
If you are asking: "Can we have an implementation before we write the
PEP?", the answer is "Certainly, yes".


I don't think that's what we're asking. The question is: what level of
detail should the "Specification" part of the PEP have? The highest
level of detail is the full documentation - but that would mean the PEP
would be to large. Is it allowed to link the documentation - even if it
is docuemntation for a not-yet-existing module - as the specification?
The PEP procedure is designed to avoid wasting efforts in implementing
ideas that have no chance to ever get accepted to the Python core.
If this is no concern for you (i.e. you are willing to accept the risk
of wasting efforts), you can certainly implement the thing, wait for
user feedback, and then write the PEP.


Hmm, the earlier discussion did show there certainly is a chance it will
ever get accepted, so that's not really the problem. But there are a lot
of ways to do a Path class, and we don't want to spend too much effort
into way A if way B has a lot more chance to be accepted.

yours,
Gerrit.

P.S.
Even a rejected PEP is not a waste of time: one can learn a lot from
writing a PEP, and gets one name on the PEP-list ;-)

--
124. If any one deliver silver, gold, or anything else to another for
safe keeping, before a witness, but he deny it, he shall be brought before
a judge, and all that he has denied he shall pay in full.
-- 1780 BC, Hammurabi, Code of Law
--
PrePEP: Builtin path type
http://people.nl.linux.org/~gerrit/c.../pep-xxxx.html
Asperger's Syndrome - a personal approach:
http://people.nl.linux.org/~gerrit/english/

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: saidev | last post by:
A quick question, I'm about to recompile PHP, last time I compiled it with alot of modules, thinking that this time I should not need that many. Is there any tool(s) that could run under the...
36
by: Tim Churches | last post by:
If a compiled Python extension module B includes code from some other software A which is licensed only under the GPL, do other Python programmes, C, which import module B also need to be licensed...
2
by: Robin Becker | last post by:
We had some legacy applications that used import to get parts of documents in. When run separately these worked fine, but failed when run as a single process because they both imported ch1 (after...
6
by: Hung ho | last post by:
Hi. I just finished reading an introductory Python book called "Python Programming for the absolute beginner" by Michael Dawson. I found it very interesting, and easy to follow. Python does really...
7
by: Jorgen Grahn | last post by:
I have a set of tests in different modules: test_foo.py, test_bar.py and so on. All of these use the simplest possible internal layout: a number of classes containing test*() methods, and the good...
8
by: Steven T. Hatton | last post by:
This looks very important, and potentially consequential. If it were added to C++ it would certainly have a significant impact on the language. If done right, it would be a boon. If done wrong...
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
4
by: Christoph Zwerschke | last post by:
I'm currently investigating a problem that can hit you in TurboGears when Kid template modules are reloaded in the background, because in certain situations, global variables suddenly are set to...
4
by: Tom Jones | last post by:
I have an application that was originally built using Visual Studio 2003 that I upgraded to Visual Studio 2005. When I attempt to build the *.msi file in the deployment project, I am getting a...
2
by: marion | last post by:
I am working on a client/server, computer role-play game using Python. I want to gradually expand the game world by creating maps as individual py files in a map directory. I am a little foggy of...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.