views:

201

answers:

5

I'm testing a Python parser. I have Python 2.6/2.7 firmly under control, and some good (large) code samples on which I've tested it.

I'm interested in testing my Python3 variant. I've been to various Python open source web sites (e.g., http://pythonsource.com/), which list lots of packages, but they are pretty unclear as whether these are Python 2.x vs 3.x source files. The several samples that I downloaded all turned out to be Python 2.x.

Where can I find a number of large Python 3 software source codes? I don't really want 1000 little separate Python3 applications as single files; I prefer big applications.

+7  A: 

Try the source for Python itself, specifically the standard library.

Hank Gay
Hadn't condsidered that. Most "XYZ version N" compilers are built using only features from "XYZ version N-1". Is the Python3 "compiler" (dev system? libraries) coded using the Python 3 constructs heavily? Another good possibility along this line would be the Python feature regression test if it exists. I'll go look; and obvious hints as to where?
Ira Baxter
... fishing at python.org, I assume you mean the "standard library" as referenced in this phrase? "Tip: even if you download a ready-made binary for your platform, it makes sense to also download the source. This lets you browse the standard library (the subdirectory Lib) ..."
Ira Baxter
Yes. I edited my answer to be more specific and linked directly to the trunk version of the standard library.
Hank Gay
Ummm ... I thought "trunk" was 2.X; has it been switched around?
John Machin
Gah. You are right @John. I could have sworn that trunk was 3 now, but browsing around, I was wrong. I have updated the link accordingly.
Hank Gay
+12  A: 

Have you considered the Python 3 standard library? It's a pretty big chunk of code, especially if you also download all of the unit tests. The unit tests exercise all of Python's features, which sounds like it would be especially useful for your purposes.

Also, you can browse PyPi for Python 3 packages.

Daniel Stutzbach
+1  A: 

from the top of my head SQLAlchemy 0.6 is one of the bigger 3rd party py3k libraries.

Felix Schwarz
+1  A: 

Try python package index (PyPI). The link is for the section of packages working in python 3.

At this moment there are near 160 packages, some big, some small, and all kind of applications. You can chose

joaquin
A: 

Feel free to test your program against this Bible Verse Quiz program written in Python 3.1.

Noctis Skytower