Skip to content

Sample code for: Cursor vs Windsurf: Which AI Code Editor Is Best for Python?#766

Merged
stephengruppetta merged 5 commits intomasterfrom
cursor-vs-windsurf-python
May 8, 2026
Merged

Sample code for: Cursor vs Windsurf: Which AI Code Editor Is Best for Python?#766
stephengruppetta merged 5 commits intomasterfrom
cursor-vs-windsurf-python

Conversation

@stephengruppetta
Copy link
Copy Markdown
Contributor

Code examples for the Cursor vs Windsurf: Which AI Code Editor Is Best for Python? tutorial.

The tutorial is mostly a tool comparison driven by prompts, so the runnable artifacts are limited. This folder ships:

  • cursor/http-client-conventions.mdc — the Cursor rules file shown in the tutorial
  • windsurf/http-client-conventions.md — the Windsurf rules file shown in the tutorial
  • prompts.md — every prompt the tutorial asks the reader to send, in order, for easy copy-paste

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the documentation artifacts referenced by the Real Python tutorial “Cursor vs Windsurf: Which AI Code Editor Is Best for Python?” so readers can copy/paste prompts and editor rule files directly from the repo.

Changes:

  • Added a Windsurf rules file for Python HTTP client conventions.
  • Added a Cursor rules file for the same conventions.
  • Added a prompts compendium plus a short README for the tutorial folder.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
cursor-vs-windsurf-python/windsurf/http-client-conventions.md Windsurf rules file (YAML front matter + instruction list) targeting **/*.py.
cursor-vs-windsurf-python/cursor/http-client-conventions.mdc Cursor rules file defining HTTP client and style conventions for Python files.
cursor-vs-windsurf-python/prompts.md Copy-paste prompt sequence used throughout the tutorial.
cursor-vs-windsurf-python/README.md Top-level pointer to the tutorial and purpose of the folder.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cursor-vs-windsurf-python/README.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread cursor-vs-windsurf-python/prompts.md Outdated
Comment thread cursor-vs-windsurf-python/prompts.md Outdated
@stephengruppetta
Copy link
Copy Markdown
Contributor Author

@copilot apply changes based on the comments in this thread

stephengruppetta and others added 2 commits May 8, 2026 21:45
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented May 8, 2026

@copilot apply changes based on the comments in this thread

Both changes from that review thread have been applied:

  • data (dict)data (dict[str, Any]) for a properly parameterized type hint (commit 43f73a3)
  • attempts_made:attempts_made: int for valid Python syntax in the autocomplete snippet (commit 51850ff)

@stephengruppetta stephengruppetta merged commit aa2173d into master May 8, 2026
1 check passed
@stephengruppetta stephengruppetta deleted the cursor-vs-windsurf-python branch May 8, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants