summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/compat.py
Commit message (Collapse)AuthorAgeFilesLines
* - break up the <authors> copyright comment as part of a passMike Bayer2014-07-091-1/+2
| | | | to get all flake8 passing
* - Liberalized the contract for :class:`.Index` a bit in that you canMike Bayer2014-04-191-0/+4
| | | | | | | specify a :func:`.text` expression as the target; the index no longer needs to have a table-bound column present if the index is to be manually added to the table, either via inline declaration or via :meth:`.Table.append_constraint`. fixes #3028
* - happy new yearMike Bayer2014-01-051-1/+1
|
* - adjustment, the spec says: "Within the user and password field, any ":",Mike Bayer2013-11-251-2/+2
| | | | | | | "@", or "/" must be encoded." - so re-apply encoding to both password and username, don't encode spaces as plus signs, don't encode any chars outside of :, @, / on stringification - but we still parse for any %XX character (is that right?)
* and we don't need weaksetMike Bayer2013-08-181-23/+0
|
* - create a new system where we can decorate an event methodMike Bayer2013-07-081-1/+9
| | | | | | | | | | | | | | | | with @_legacy_signature, will inspect incoming listener functions to see if they match an older signature, will wrap into a newer sig - add an event listen argument named=True, will send all args as kw args so that event listeners can be written with **kw, any combination of names - add a doc system to events that writes out the various calling styles for a given event, produces deprecation messages automatically. a little concerned that it's a bit verbose but will look at it up on RTD for awhile to get a feel. - change the calling signature for bulk update/delete events - we have the BulkUD object right there, and there's at least six or seven things people might want to see, so just send the whole BulkUD in [ticket:2775]
* - replace most explicitly-named test objects called "Mock..." withMike Bayer2013-06-301-0/+1
| | | | | | | | | | | | actual mock objects from the mock library. I'd like to use mock for new tests so we might as well use it in obvious places. - use unittest.mock in py3.3 - changelog - add a note to README.unittests - add tests_require in setup.py - have tests import from sqlalchemy.testing.mock - apply usage of mock to one of the event tests. we can be using this approach all over the place.
* - implement armin's awesome metaclass adaptor, can drop the refs to MetaBase.Mike Bayer2013-05-301-2/+17
|
* Merge branch 'rel_0_9'Mike Bayer2013-05-291-71/+117
|\ | | | | | | | | | | | | Conflicts: lib/sqlalchemy/dialects/postgresql/hstore.py lib/sqlalchemy/util/__init__.py lib/sqlalchemy/util/compat.py
| * do a sweep of some obvious 3kismsMike Bayer2013-05-261-0/+2
| |
| * fix serializer tests. something is wrong with non-C pickle but for some ↵Mike Bayer2013-05-261-1/+16
| | | | | | | | | | | | reason py3k's pickle seems to be OK? not sure why that is, as this is all related to http://bugs.python.org/issue998998
| * most of ORM passing...Mike Bayer2013-05-041-2/+5
| |
| * that's all of engineMike Bayer2013-05-041-0/+6
| |
| * - unicode literals need to just be handled differently if they have utf-8Mike Bayer2013-05-041-0/+10
| | | | | | | | | | encoded in them vs. unicode escaping. not worth figuring out how to combine these right now
| * - endless isinstance(x, str)s....Mike Bayer2013-04-281-0/+40
| |
| * cleanupMike Bayer2013-04-271-45/+21
| |
| * plugging awayMike Bayer2013-04-271-23/+18
| |
| * work through dialectsMike Bayer2013-04-271-17/+16
| |
| * - the raw 2to3 runMike Bayer2013-04-271-7/+8
| | | | | | | | - went through examples/ and cleaned out excess list() calls
* | add the py2k symbol from the 0.9 branch to support the hstore changeMike Bayer2013-05-291-0/+1
|/
* python2.5 fixMike Bayer2013-04-181-3/+2
|
* Reworked internal exception raises that emitMike Bayer2013-04-181-0/+26
| | | | | | | | | a rollback() before re-raising, so that the stack trace is preserved from sys.exc_info() before entering the rollback. This so that the traceback is preserved when using coroutine frameworks which may have switched contexts before the rollback function returns. [ticket:2703]
* Make MonkeyPatchedBinaryTest not fail on Python 2.5 (which doesn't haveMarc Abramowitz2013-03-201-0/+8
| | | | the `b` notation for byte string literals)
* - remove all compat items that are pre-2.5 (hooray)Mike Bayer2013-03-091-153/+0
| | | | | | - other cleanup - don't need compat.decimal, that approach never panned out. hopefully outside libs aren't pulling it in, they shouldn't be
* happy new year (see #2645)Diana Clarke2013-01-011-1/+1
|
* just a pep8 pass of lib/sqlalchemy/util/Diana Clarke2012-11-191-2/+13
|
* - move most/all operator specific tests into test_operator, convert fully to TOTMike Bayer2012-10-241-0/+1
|
* - rework the test exclusions system to work on a consistent themeMike Bayer2012-09-031-0/+1
|
* more import cleanupsMike Bayer2012-08-071-1/+0
|
* adjust the compat namedtuple to handle subclassingMike Bayer2012-07-171-3/+3
|
* - [feature] *Very limited* support forMike Bayer2012-07-141-0/+21
| | | | | | | | | | | | | | inheriting mappers to be GC'ed when the class itself is deferenced. The mapper must not have its own table (i.e. single table inh only) without polymorphic attributes in place. This allows for the use case of creating a temporary subclass of a declarative mapped class, with no table or mapping directives of its own, to be garbage collected when dereferenced by a unit test. [ticket:2526]
* add 2.5 compat for next()Mike Bayer2012-06-251-0/+5
|
* - [feature] The of_type() construct on attributesMike Bayer2012-06-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | now accepts aliased() class constructs as well as with_polymorphic constructs, and works with query.join(), any(), has(), and also eager loaders subqueryload(), joinedload(), contains_eager() [ticket:2438] [ticket:1106] - a rewrite of the query path system to use an object based approach for more succinct usage. the system has been designed carefully to not add an excessive method overhead. - [feature] select() features a correlate_except() method, auto correlates all selectables except those passed. Is needed here for the updated any()/has() functionality. - remove some old cruft from LoaderStrategy, init(),debug_callable() - use a namedtuple for _extended_entity_info. This method should become standard within the orm internals - some tweaks to the memory profile tests, number of runs can be customized to work around pysqlite's very annoying behavior - try to simplify PropertyOption._get_paths(), rename to _process_paths(), returns a single list now. overall works more completely as was needed for of_type() functionality
* - [feature] Added "no_autoflush" contextMike Bayer2012-02-251-0/+6
| | | | | manager to Session, used with with: will temporarily disable autoflush.
* don't need to use __builtin__ for these things, doesn't work in py3kMike Bayer2012-01-231-8/+5
|
* 2.4 doesn't have any()Mike Bayer2012-01-221-0/+10
|
* happy new yearMike Bayer2012-01-041-1/+1
|
* - [bug] Fixed inappropriate usage of util.py3kMike Bayer2011-12-151-8/+9
| | | | | | | flag and renamed it to util.py3k_warning, since this flag is intended to detect the -3 flag series of import restrictions only. [ticket:2348]
* - Enhanced the instrumentation in the ORM to supportMike Bayer2011-09-281-0/+5
| | | | | | | | Py3K's new argument style of "required kw arguments", i.e. fn(a, b, *, c, d), fn(a, b, *args, c, d). Argument signatures of mapped object's __init__ method will be preserved, including required kw rules. [ticket:2237]
* - Use urllib.parse_qsl() in Python 2.6 and above,Mike Bayer2011-06-211-0/+8
| | | | | no deprecation warning about cgi.parse_qsl() [ticket:1682]
* take out a little cruft. Spend two hours trying to make things simpler,Mike Bayer2011-06-011-1/+0
| | | | | maybe we dont need state.callables (nope we do), maybe we can move populate_state out (nope we lose speed that way), things are the way they are...
* Fix 3 errors in py32, from patch from lsblakk. There are still 8 failures. ↵Taavi Burns2011-03-161-0/+1
| | | | See #2088.
* Modifications for PyPy support from Alex Gaynor.Michael Trier2011-03-081-0/+1
|
* - whitespace removal bonanzaMike Bayer2011-01-021-2/+2
|
* - clean up copyright, update for 2011, stamp every file withMike Bayer2011-01-021-0/+6
| | | | | a consistent tag - AUTHORS file
* - inlinings and callcount reductionsMike Bayer2010-12-121-0/+10
| | | | - add test coverage for the rare case of noload->lazyload + pickle
* - support for cdecimalMike Bayer2010-12-111-1/+4
| | | | | | | | | | | | | | | | | | - add --with-cdecimal flag to tests, monkeypatches cdecimal in - fix mssql/pyodbc.py to not use private '_int' accessor in decimal conversion routines - pyodbc version 2.1.8 is needed for cdecimal in any case as previous versions also called '_int', 2.1.8 adds the same string logic as our own dialect, so that logic is skipped for modern pyodbc version - make the imports for "Decimal" consistent across the whole lib. not sure yet how we should be importing "Decimal" or what the best way forward is that would allow a clean user-invoked swap of cdecimal; for now, added docs suggesting a global monkeypatch - the two decimal libs are not compatible with each other so any chance of mixing produces serious issues. adding adapters to DBAPIs tedious and adds in-python overhead. suggestions welcome on how we should be doing Decimal/cdecimal.
* squash sets warningMike Bayer2010-12-051-0/+1
|
* have a 'buffer' symbol present in util in py3k as wellMike Bayer2010-12-051-1/+1
|
* - move topological, queue into utilMike Bayer2010-12-051-0/+1
| | | | | - move function_named into test.lib.util - use @decorator for all decorators in test/