Discussion regarding rules on the use of AI

Yesterday I wanted to continue the discussion on the pipeline operator (in the Ideas section) implemented using PEP638. This is where we dropped the thread a year ago and many back then seemed to agree that it would be the right direction to explore. I kicked it off with a link to a PEP638 playground with a disclosure that it was implemented using Claude. This was deleted by the moderation team without comment. At first I thought it was because of restarting an old topic, so I reposted a longer message to the PEP section, explaining that the aim would be to restart the discussion on PEP638 with a playground now available and some interesting discoveries regarding syntax (e.g. the dbg!(x) trap). This was deleted without a comment too. As I contacted the moderator, I was informed that this was because of the usage of LLM for generating the code and the paragraph about not using LLM-generated code or text to answer to the help requests was cited on me. The fact that OPs could use the LLM tools themselves if they wanted to was used as further justification. I was wondering if the community truly understands the rules this way? Nobody was asking me anything, I just wanted to bring back the topic of PEP638 and shared a playground so that everybody can experience first hand how nice it works. I am aptly capable of writing this code myself but since the PEP has stalled for 6 years I don’t think this is the best allocation of my time if we don’t even know if there is still a wish to have syntactic macros in Python (I think that the idea is awesome). So focusing on the question of the rules - what does everyone think? To have a playground for a PEP of uncertain popularity - is it required to write it by hand?

7 Likes

Then write it yourself. Don’t toss slop at us and expect us to pay attention to it.

If you don’t like that rule, you are of course welcome to get an LLM to write the code, and then discuss it on your own GitHub issue tracker or elsewhere.

2 Likes

Thank you for your prompt reply, Chris. This addressed part of the question but how about the part about time allocation? When the goal is to have a quick peek at the functionality itself and not to make a contribution to CPython, it it still justified to invest days/weeks as opposed to <1 hour? The goal was never for anyone to look at the code, just to play with the new syntax in the playground and discuss whether it is desirable to have that syntax integrated into the core language. Does it explain my thinking a bit better?

9 Likes

I’m also unsure why a playground for a PEP would need to be written by hand.

Maybe people want to examine the code to see proof that it can be implemented in a ‘nice’ manner?
But then, that isn’t your intention :confused:

5 Likes

Think about it this way: Is it reasonable for you to save a bit of your time while wasting all of ours? How many people’s time are you wasting with generated code that might not be correct? It is fundamentally selfish to factor in only your own time and not others’.

Remember, you’re asking people to spend their time unpaid looking at your proposal. Why should we do that? The most obvious reason is “because this may improve the language”, but in order to determine that, we need to know how good the proposal is. Different people have different thresholds for how much time they’re willing to spend on an untested proposal, but if you want a decent number of people to engage with your proposal, you’ll want to reduce the cost as much as you can.

Again, you are always welcome to write the trashiest code you like; nobody’s stopping you. It’s just, we’re not interested in discussing that code here. So you can consider LLM-generated code to be above everyone’s threshold here, and it’ll drastically reduce the number of people who discuss it.

(Another reason to engage is “because this may improve the person that we’re discussing this with”, which is why I’m putting some effort into this post. And there are other reasons too. But the one I gave above is the most common.)

4 Likes

I know this isn’t what you’re asking about, but I would personally like to see such a playground. The fact that people could use the LLM tools themselves does not mean everyone will have time to (or want to) make a PEP experiment. It can be LLM-assisted but still time-consuming. It might add burden on Python contributors nevertheless, even if it’s just a playground, and I think that’s arguable. But I think “OPs could use the LLM tools themselves if they wanted to” does not make much sense here: combined with OP posting discoveries like dbg!() gotcha, it’s very different from spam-like “copy-paste from an LLM” which I think that reason meant to be about.

2 Likes

Thank you everyone for the time you have already dedicated to this thread. I can understand Chris’ point of view. Would it be worthwhile to consider an exception for PEP playgrounds in particular, for the reasons stated by myself and others, as long as:

  1. it’s not the LLM-generated code itself under discussion but the PEP, as (admittedly - with some degree of unreliability due to the LLM origin of the testing environment) tried out in the output artefact (i.e. the playground web app itself)

  2. the modification has been human reviewed (I did review it)

  3. the modification passes the Python test suite (it does)

  4. the modification passes its own tests (it does)

  5. maybe we could agree to mandate only the tests to be hand-written?

Wouldn’t this bar be high enough for something that doesn’t require looking at the code and is only supposed to carry the discussion on something else than the implementation (e.g. everything else in the proposal BUT the implementation)?

3 Likes

There needs to be a very VERY good reason for any sort of exception to this sort of policy. I would say it’s better to just keep the rule simple. The benefit of the exception does not outweigh the costs.

2 Likes

I understand and acknowledge the argument for simplicity.

On my end, the benefit I see is that an exception would let us resume the discussion on PEP638 having seen it in action, in an environment which at least superficially looks correct. We could then agree to discard the environment forever and never mention it again, just focus on the impressions the new syntax made on us in a live environment and take it from there (e.g. I would be happy to write it meticulously by hand if there is interest in that).

3 Likes

I don’t want to resume the discussion on PEP 638 on the basis of LLM-generated code, and I suspect I’m not the only one to feel that way. If you got such an exemption and restarted the discussion on that basis, I would just ignore the thread and get on with my life.

1 Like

Maybe this discussion should be in Discourse Feedback.


I empathize with:

This was deleted by the moderation team without comment.

This was deleted without a comment too.


You might have seen it as well now, but for interlinking purposes and for whoever might stumble onto this thread at a later date:

2 Likes

One more benefit of an exception would be to encourage keeping the information about provenance of such playgrounds open. Otherwise one could just share a playground without even making the code open source (not to mention specifying its pedigree), correct? I wonder if linking to generic web apps / non open source apps / educational materials is forbidden by current rules?

1 Like

I agree, and I think that this is very poor moderation practice. Nothing should ever be deleted without comment except possibly blatant spam (like people posting links to scam websites). People who violate a rule deserve at least to be treated civilly and pointed to the rule that they broke.

7 Likes

I think one possible concern is: since the playground is generated by LLM, it might contain latent errors that could mislead people trying to understand PEP 638.

correctness of behavior is testable. doubts and proofs would be present for a hand written implementation as well. Tests should be formalized and automated anyway. if anything they would improve the PEP. and only the final behavior would need to be tested as far as the objective of the playground was.

Only when there is a perfect specification. When you’re making a playground, part of the point is for people to find out what behaviour is correct. How can we do that if the playground is itself incorrect?

review and unit testing offer some assurance for a <2500 line change. I’m asking to consider this bar for a “feeling out” aid as opposed to an actual implementation proposal. Would keeping it closed source be any better?

It’d be pretty much identical from my point of view. I wouldn’t trust either of them to be meaningful contributions to a discussion.

My current understanding is that it would not be bringing anything meaningful to the discussion for some but as long as its AI origin is not proven (or is it guilty until proven innocent in this case?) it would be tolerated as a link?

https://discuss.python.org/guidelines

Users are looking for curated and personal discussion from real people. Do not use AI or LLM (large language model) tools to generate posts or code. Only post work that is significantly your own, regardless of what tools you use to create it. Write your posts in your own words and verify any information yourself that you share with others.

Content that is generated by AI tools will be removed.

If you post stuff that you know is AI generated, you are not following the guidelines. Stop trying to find the edge of the “rule,” that’s not how to interpret the guidelines or successfully participate here. If someone accidentally posts something that’s AI generated, and someone flags it, it will be removed, the user will be notified, and now they’ll know the guidelines. If they keep doing it, or do it deliberately, that’s not in the spirit of successful participation within the guidelines, and there will be further moderation consequences.

You posted, weren’t aware of the rule, and the post was removed but there were not further consequences. I was late messaging you because I kept getting distracted by family on a weekend. By the time you messaged us, I had an unsent draft that I moved over to your message. Sorry for the delay, that’s what happens sometimes with humans doing moderation.

6 Likes