Mahmoud Hashemi
f481e6a437
add bucketize link
2017-02-10 13:50:22 -08:00
Mahmoud Hashemi
d71ea38187
add a couple links, get rid of a bit of cruft in the CHANGELOG
2017-01-24 23:14:20 -08:00
Mahmoud Hashemi
d811696a7c
bump version for 17.0.1dev
2017-01-24 23:10:15 -08:00
Mahmoud Hashemi
ea4cef8395
add CHANGELOG for 17.0.0
2017-01-24 23:09:57 -08:00
Mahmoud Hashemi
83fcee4f2c
update docs version
2017-01-24 22:54:45 -08:00
Mahmoud Hashemi
61b7b40732
bump version for 17.0.0 release
2017-01-24 22:53:55 -08:00
Mahmoud Hashemi
3a0ca88dca
bend another test for 3.3 support, though this time it's just pypy3.3
2017-01-22 19:52:53 -08:00
Mahmoud Hashemi
8b92881489
Merge branch 'travis-targets' of https://github.com/kdeldycke/boltons into kdeldycke-travis-targets
2017-01-22 19:47:03 -08:00
Mahmoud Hashemi
0b5ed904a9
add a __wrapped__ attribute to functions wrapped with funcutils.wraps, fixing #115 .
2017-01-22 18:45:47 -08:00
Mahmoud Hashemi
4539602812
Merge branch 'master' of github.com:mahmoud/boltons
2017-01-22 18:23:14 -08:00
Mahmoud Hashemi
cc1441521e
Merge pull request #108 from coady/master
...
Simplified same.
2017-01-21 21:52:29 -08:00
Mahmoud Hashemi
f749174abe
Merge pull request #114 from induane/json_to_dict
...
Make Callpoint.to_dict result JSON serializable
2017-01-21 21:33:49 -08:00
Mahmoud Hashemi
14b4f962a1
Merge pull request #116 from induane/hex_codec
...
Use 'hex_code' instead of alias 'hex' (python3.3 fix)
2017-01-21 20:51:37 -08:00
Mahmoud Hashemi
d99678d844
ecoutils docs tweak
2017-01-20 11:29:20 -08:00
Brant Watson
c068fc34c9
Use 'hex_code' instead of alias 'hex' (python3.3 fix)
...
The reseed function in iterutils GUIDerator uses codecs
to get hexbytes in a python2/3 compatible way. It was
relying on the 'hex' codec which an alias for 'hex_codec'.
The 'hex' to 'hex_codec' alias is missing for some reason
in Python3.3.
This patch uses the direct name of the codec instead of the
alias so that GUIDerator will work on all versions of Python,
regardless of the presence of the 'hex' alias.
2017-01-20 09:12:43 -06:00
Brant Watson
2775011910
Make Callpoint.to_dict result JSON serializable
...
Converts all instances of _DeferredLine into string
objects when returning the dictionary. This has the
effect of making the resulting dictionary instance
JSON serializable.
2017-01-16 11:01:53 -06:00
Kevin Deldycke
ec44476883
Test against Python 2.6.
2017-01-16 01:15:27 +01:00
Kevin Deldycke
7f8608cb4f
Test boltons against all Python-related Travis CI targets.
2017-01-16 01:09:25 +01:00
Mahmoud Hashemi
4d3cc6e600
Merge pull request #110 from induane/cached_prop_docstr
...
Preserve original docstring in cachedproperty
2017-01-14 14:27:10 -08:00
Brant Watson
4abe46233f
Preserve original docstring in cachedproperty
...
Set the __doc__ attribute on the original
docstring so that the docstring is preserved
and visible to tooling like sphinx and epydoc.
Slightly simply __get__ and remove a line of code
2017-01-13 09:36:23 -06:00
Aric Coady
03c8a66187
Simplified same.
2016-12-28 16:50:22 -08:00
Mahmoud Hashemi
faf11c08fb
expose docs for wrap_trace object wrapper in debugutils
2016-12-04 00:52:18 -08:00
Mahmoud Hashemi
bdea15df05
Merge branch 'guyarad-master'
2016-12-03 23:40:46 -08:00
Mahmoud Hashemi
6f2974ebf5
merging bucketize options under consistent argument names, with tweaked docs, thanks @guyarad!
2016-12-03 23:40:31 -08:00
Guy Arad
5372c9fda7
Enhance `bucketize` by adding filter_by_key and value_transform
2016-11-29 05:46:00 +02:00
Mahmoud Hashemi
75a7571207
Merge pull request #106 from coady/master
...
Simplified and optimized iterutils.one.
2016-11-19 18:01:49 -08:00
Aric Coady
f723f17454
Simplified and optimized iterutils.one.
2016-11-19 17:31:34 -08:00
Mahmoud Hashemi
ee6f4649cd
Merge pull request #104 from induane/nonzero
...
Implement __nonzero__ for SpooledBytesIO, SpooledStringIO
2016-11-14 22:01:51 -08:00
Brant Watson
17717d101f
Don't be so pedantic about nonzero being a function
2016-11-14 16:06:38 -06:00
Brant Watson
7843356c17
Implment __bool__ for python 3.x
2016-11-14 16:00:01 -06:00
Brant Watson
8ef0ef772b
Implement __nonzero__ for SpooledBytesIO, SpooledStringIO
...
An empty StringIO instance still has a "truthy" value. In
order to user SpooledBytesIO with the ZipFile library, the
object instance needs to be considered truthy. This patch
implements __nonzero__ so that the truthyness does not fall
back on the underlying __len__ implementation.
Added a test that verifies a SpooledBytesIO is compatible
with the ZipFile library.
2016-11-14 15:55:01 -06:00
Mahmoud Hashemi
dbf8e92b19
Merge pull request #103 from induane/docfixy
...
Fix ioutils documentation missing from index.rst
2016-11-08 13:43:26 -08:00
Brant Watson
7ef8e9f4d4
Fix ioutils documentation missing from index.rst
2016-11-08 15:00:50 -06:00
Mahmoud Hashemi
87ac574fa4
a little release checklist right in setup.py
2016-11-06 00:31:06 -07:00
Mahmoud Hashemi
9f61b1b0e0
expose mathutils.clamp in docs
2016-11-06 00:18:44 -07:00
Mahmoud Hashemi
7b03fbfa00
bump version for 16.5.2dev
2016-11-06 00:16:12 -07:00
Mahmoud Hashemi
f2b8f5eee2
adding 16.5.1 changelog
2016-11-06 00:15:54 -07:00
Mahmoud Hashemi
edf5705e32
bump version for 16.5.1 release
2016-11-05 23:55:55 -07:00
Mahmoud Hashemi
c4f17de2a5
Merge pull request #102 from ecesena/patch-1
...
Fix typo in docs index
2016-11-04 15:36:00 -07:00
Emanuele Cesena
6d3d2f375e
Fix typo in docs index
2016-11-04 13:00:04 -07:00
Mahmoud Hashemi
4c71a1a280
iterutils: complete GUIDerator and SequentialGUIDerator. had to take a hammer to python3 support because the string APIs got uglified post-2, but at least python2 performance is preserved.
2016-11-04 00:28:54 -07:00
Mahmoud Hashemi
09fc0fa8b8
Merge pull request #101 from induane/rollover_fast
...
Rollover to file before writing overflow value
2016-10-28 17:05:12 -07:00
Mahmoud Hashemi
d66e62477f
Merge pull request #98 from aericson/patch-1
...
Typo in setutils docstring
2016-10-28 17:02:03 -07:00
Brant Watson
78aff59188
Rollover to file before writing overflow value
...
If the write operation is going to push a
SpooledBytesIO instance beyond it's max size, dispatch
a rollover to disk before performing the write. This
prevents duplicating a giant slug of data into memory
if a write of lots of data is attempted.
2016-10-28 09:50:17 -05:00
Mahmoud Hashemi
869c27885b
Merge pull request #99 from induane/master
...
Add ioutils module
2016-10-26 21:09:25 -07:00
Brant Watson
dfc19867ff
Add another test for good measure
2016-10-26 16:17:02 -05:00
Brant Watson
3f6a020c7f
Handle odd codepoints in EncodedFile
...
Use the underlying StreamReader implementaiton for
retrieving data from the flo. When doing so, we pass
a value for the number of bytes to read & the number
of characters to read.
2016-10-26 16:10:44 -05:00
Brant Watson
fd77cb81a7
Reduce tell complexity by tracking position
...
Instead of calculating the position for tell by
sequentially accessing the file, track the position
on read, write, and seek operations.
2016-10-26 14:29:10 -05:00
Brant Watson
0b37b865af
Improve test coverage of seek
2016-10-25 15:27:50 -05:00
Brant Watson
d724d8c374
Reduce memory usage in seek
...
- read in chunks to avoid seek memory
usage spike on large files
- Add more tests
2016-10-25 15:14:53 -05:00