This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def foo(): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from blogofile import __version__ | |
| assert __version__ == '0.7.1', \ | |
| "blogodev currently only tested against Blogofile 0.7.1 exactly" | |
| import logging | |
| import os | |
| import sys | |
| import stat | |
| import shutil | |
| import tempfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Entry(Base): | |
| # ... | |
| @property | |
| def public_children(self): | |
| return set(c for c in self.children if c.public) | |
| class Child(Base): | |
| # ... | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -r 7c960a5fe1c0 -r 36d51cb2171d _controllers/blog/post.py | |
| --- a/_controllers/blog/post.py Mon Jun 18 11:53:28 2012 -0400 | |
| +++ b/_controllers/blog/post.py Tue Jun 19 11:59:17 2012 -0400 | |
| @@ -93,6 +93,9 @@ | |
| self.slug = None | |
| self.draft = False | |
| self.filters = None | |
| + | |
| + self.hn_link = None | |
| + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -r 9acf39d6f6e7 lib/sqlalchemy/sql/compiler.py | |
| --- a/lib/sqlalchemy/sql/compiler.py Tue Jan 08 11:05:13 2013 -0500 | |
| +++ b/lib/sqlalchemy/sql/compiler.py Wed Jan 09 11:27:50 2013 -0500 | |
| @@ -1438,6 +1438,11 @@ | |
| text += ' SET ' | |
| include_table = extra_froms and \ | |
| self.render_table_with_column_in_update_from | |
| + import pdb | |
| + pdb.set_trace() | |
| + # now print "extra_froms" - should be empty, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## NOTE: "inspect", "ashint", and calling select([SomeClass]) are | |
| ## all SQLAlchemy 0.8 features. To do this in 0.7 would require more | |
| ## internally-dependent code. | |
| from sqlalchemy import * | |
| from sqlalchemy.orm import * | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy.ext.compiler import compiles | |
| from sqlalchemy.ext.hybrid import hybrid_property | |
| from sqlalchemy.sql.expression import ColumnElement |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) | |
| [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> from __future__ import division | |
| >>> 1 / 2 | |
| 0.5 | |
| >>> import pdb | |
| >>> pdb.set_trace() | |
| --Return-- | |
| > <stdin>(1)<module>()->None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| classics-MacBook-Pro:alembic classic$ ../.venv/bin/python -V | |
| Python 3.2.2 | |
| classics-MacBook-Pro:alembic classic$ ../.venv/bin/nosetests -v | |
| test_alt_schema_included_downgrade (tests.test_autogenerate.AutogenCrossSchemaTest) ... ok | |
| test_alt_schema_included_upgrade (tests.test_autogenerate.AutogenCrossSchemaTest) ... ok | |
| test_default_schema_omitted_downgrade (tests.test_autogenerate.AutogenCrossSchemaTest) ... ok | |
| test_default_schema_omitted_upgrade (tests.test_autogenerate.AutogenCrossSchemaTest) ... ok | |
| test_autogen (tests.test_autogenerate.AutogenKeyTest) ... ok | |
| test_render_add_column (tests.test_autogenerate.AutogenRenderTest) ... ok | |
| test_render_add_column_w_schema (tests.test_autogenerate.AutogenRenderTest) ... ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| classics-MacBook-Pro:alembic classic$ python3.2 setup.py test | |
| running test | |
| Checking .pth file support in . | |
| /Library/Frameworks/Python.framework/Versions/3.2/Resources/Python.app/Contents/MacOS/Python -E -c pass | |
| Searching for SQLAlchemy>=0.6.0 | |
| Reading http://pypi.python.org/simple/SQLAlchemy/ | |
| Reading http://www.sqlalchemy.org | |
| Best match: SQLAlchemy 0.8.0b2 | |
| Downloading http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.8.0b2.tar.gz#md5=09537c7b425d0be433f7aceabbf23d68 | |
| Processing SQLAlchemy-0.8.0b2.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from argparse import ArgumentParser | |
| parser = ArgumentParser(prog='test') | |
| subparsers = parser.add_subparsers() | |
| subparser = subparsers.add_parser("foo", help="run foo") | |
| parser.parse_args() |
OlderNewer