Version History

PyQ 4.0.2

Released on 2017-05-12

Enhancements:

  • !523 - #909: Support installing PyQ on Ubuntu 16.04.
  • !528 - #911: qp and pq: set console size in q when running ptpython scripts.
  • !535 - #910: qp: exit from q) prompt on Ctrl-D.
  • !536 - #912: qp: report error and exit if pre-loading fails.

Documentation:

  • !537 - #909: Added a guide on installing PyQ on Ubuntu.
  • !533 - #914: Use new kx.code.com.

PyQ 4.0.1

Released on 2017-03-15

Enhancements:

  • !509 - #903: Fixed a reference leak in debug build and a gcc 4.8.5 compiler warning.
  • !505 - #901: Provide a fallback for systems that lack CPU_COUNT, e.g. RHEL 5.
  • !502 - #899: Corrected integer types on 32-bit systems and added explicit casts when necessary.

Documentation:

  • !511 - Use locally stored intersphinx inventory.
  • !506 - #902 Updated README.

PyQ 4.0

Released on 2017-03-02

New Features:

  • !365 - #756: Expose okx from k.h in Python.
  • !376 - #806: Hooked basic prompt toolkit functionality into cmdtloop.
  • !384 - #809: Implemented the qp script - like pq but start at the q) prompt.
  • !385 - #806: Add bottom toolbar to q) prompt.
  • !378 - #809: Implemented ipyq and pq scripts.
  • !387 - #813: Implemented the @ operator.
  • !401 - #828: Implemented type-0 list to array conversions.
  • !402 - #775: Implemented getitem for enumerated lists.
  • !404 - #833: Implemented K.___sizeof__() method.
  • !359 - #642: Implement typed constructors and casts
  • !390 - #815: Implemented the data attribute for the K objects in C.
  • !396 - #829: Implemented basic nd > 1 case: C contiguous and simple type.
  • !410 - #840: Implemented shift operators.
  • !420 - #851: Implemented setm() and m9() in _k.
  • !422 - #852: Implemented conversion from arbitrary sequences to K.
  • !428 - #835: Implemented K.__rmatmul__.
  • !432 - #856: Implemented file system path protocol for file handles.
  • !435 - #598: Added support for pathlib2.
  • !437 - #855: Added support for complex numbers.
  • !439 - #791: Implemented _n attribute for K objects.
  • !467 - #873: Implement K.timespan(int) constructor

Enhancements:

  • !297 - #752: More datetime64 to q conversions
  • !314 - #672: Improve calling Python functions from q
  • !315 - #766: Defined the __dir__ method for class _Q.
  • !316 - #767: Make “exec” method callable without trailing _ in PY3K
  • !330 - #779: Reimplemented new and call in C
  • !352 - #792: Restore support for KXVER=2.
  • !354 - #796: Conversion of “small” kdb+ longs will now produce Python ints under Python 2.x.
  • !355 - #769: Restore array struct
  • !358 - #798: Revisit array to k conversions.
  • !375 - #791: K object attributes
  • !377 - #807: Clean up and reuse the list of q functions between K and q
  • !379 - #808: Clean up pyq namespace
  • !380 - #791: Replaced .inspect(b’t’) with ._t.
  • !381 - #806: Return to Python prompt when Control-D or Control-C is pressed.
  • !382 - #659: Get rid of KXVER in the C module name.
  • !383 - #810: Clean up q namespace
  • !388 - #779, #798: Removed unused variables.
  • !389 - #818: Use fully qualified name for the internal K base class.
  • !391 - #816: temporal data lists to array conversion
  • !394 - #823: Preload kdb+ database if provided on pyq command line.
  • !397 - #830: Make sure strings obtained from q symbols are interned.
  • !398 - #806: Added a simple word completer.
  • !399 - #819: Make K.string accept unicode in Python 2.x and bytes in Python 3.x.
  • !400 - #806: Clean python exit on \
  • !405 - #836: Reimplemented K.__bool__ in C.
  • !406 - #837: Reimplemented K.__get__ in C.
  • !408 - #838: Install sphinxcontrib-spelling package in the deploy stage.
  • !413 - #842: K to bytes conversion
  • !423 - #852: Added special treatment of symbols in _from_sequence(); allow mixed lists in conversions.
  • !424 - #852: Fixed the case of empty sequence. Use K._from_sequence as a tuple converter.
  • !425 - #852: Remove dict workaround
  • !426 - #853: Make dict[i] consistent with list[i]
  • !429 - #854: Walk up the mro to discover converters
  • !430 - #608: Return K from mixed K - numpy array operations.
  • !431 - #679: Fixed conversion of enumeration scalars into strings.
  • !442 - #808: pyq globals clean-up
  • !443 - #858: The “nil” object does not crash show() anymore.
  • !444 - #817: Clip int(q(‘0N’)) to -0W when building K.long lists.
  • !445 - #857: Adverbs revisited
  • !446 - #861: Allow unary and binary ops and projections to be called with keywords.
  • !447 - #857: Use vs (sv) instead of each_left(right).
  • !449 - #864: Corrected the date bounds and added a comprehensive test.
  • !450 - #865: Fixed x.char cast
  • !455 - #863: Allow out-of-range scalar dates to be converted to ±0Wd.
  • !460 - #870: K.timestamp bug
  • !470 - #874: K.boolean redesign
  • !477 - #875: Make sure bool(enum scalar) works in various exotic scenarios.
  • !481 - #881: K._ja bug
  • !483 - #850: Use py2x converters in atom constructors.
  • !485 - #882: Return 0w on overflow
  • !486 - #883: Make boolean constructor stricter : Allow only integer-like values in K._kb().
  • !487 - #884: Detect mappings in typed constructors.
  • !490 - #841: Fixed mv_release.
  • !492 - #886: Fix two bugs in pyq executable; improve setup tests
  • !494 - #891: Fix crash in K._kc()

CI and tests improvements:

  • !349, !456, !456, !471, !457, !459, !464 - #695, #793, #867: Improvements in code coverage reporting.
  • !350 - #794: Run pycodestyle in tox.
  • !411 - #827: Use Python 3.6 and 2.7.13 in CI.
  • !415, !451 - #845: Use Docker for CI
  • !433 - #679: Fixed test on kdb+ 2.x.
  • !436 - Add numpy 1.12 to the CI tests.
  • !440 - #803: keywords and descriptions from code.kx.com.
  • !452 - Add kdb+ 3.5t to the CI tests.
  • !461 - #866: Added tests and fixed timestamp range.
  • !475 - Use random CPU and limit one CPU core per job in CI.
  • !489 - #885: Reformatted code in test files.
  • !318, !351, !474, !478, !479, !480, !484, !488, !491 - #768: Improve C code test coverage.

Documentation:

  • !341 - #789: Updated README: Test section.
  • !353 - #764: simpler docstrings
  • !360 - #764: Reorganized documentation. Minor fixes.
  • !361 - #764: More docs improvements
  • !362 - #764: docs improvements
  • !366 - #764: test docs build in tox
  • !371 - #803: Updated 32-bit Python/PyQ guide to use Python 3.6.
  • !374 - #804: doc style improvements
  • !373 - #764 and #777 table to array and sphinx doctest
  • !392 - #820: What’s New in 4.0
  • !403 - #832: spellcheck docs
  • !407 - #838: Add doc path to sys.path in conf.py.
  • !409 - #803 Docs additions
  • !412 - #803: Make documentation testing a separate stage.
  • !427 - #803: more docs
  • !448 - #803: More docs
  • !469 - #871: More docs
  • !438 - #854 (#820): Added a what’s new entry about named tuples conversion.
  • !472 - #803: Added adverbs documentation
  • !493 - #803: Document calling Python from q
  • !462, !463, !465, !468, !473 - Logo improvements

Setup:

  • !337 - #782: Use install extras to install requirements.
  • !339 - #782: Use extras instead of deps in tox.ini.
  • !340 - #788: Add ipython extras.

PyQ 3.8.4

Released on 2017-01-13

  • !414 - #843: Setup should not fail if VIRTUAL_ENV is undefined
  • !395 - #825: Fixed uninitialized “readonly” field in getbuffer

PyQ 3.8.3

Released on 2016-12-15

  • !357 - #799: Several documentation fixes.
  • !368 - #802: Setup should not fail if $VIRTUAL_ENV/q does not exist.

PyQ 3.8.2

Released on 2016-12-01

Documentation improvements:

  • !306 - #763: Update README.md - fixed INSTALL link.
  • !312 - Fix formatting; ?? -> date of the release in the CHANGELOG.
  • !322 - Fixed formatting error in the documentation.
  • !324 - #744: use pip to install from the source.
  • !338 - #785: Virtual environment setup guide.
  • !346 - #764: docs improvements
  • !342 - #787: Added links to rtd documentation.

PyQ executable improvements:

  • !310 - #761: Allow PyQ executable to be compiled as 32-bit on 64-bit platform.
  • !329 - #646: Print PyQ, KDB+ and Python versions if –versions option is given to pyq.
  • !332 - #646: Print full PyQ version.
  • !333 - #781: Find QHOME when q is installed next to bin/pyq but no venv is set.
  • !336 - #783: Fixed a bug in CPUS processing
  • !345 - #646: Added NumPy version to –versions output.

Other improvements and bug fixes:

  • !308 - #759: Return an empty slice when (stop - start) // stride < 0.
  • !320 - #771: Workaround for OrderedDict bug in Python 3.5
  • !323 - #773: Renamed ipython into jupyter; added starting notebook command.
  • !326 - #720: Simplified the test demonstrating the difference in Python 2 and 3 behaviors.
  • !327 - #720: Finalize embedded Python interpreter on exit from q.
  • !331, !343 - #768: Improve C coverage

Improvement in the (internal) CI:

  • !305, !309, !311, !321, !335, !347 - Multiple improvements in the CI.
  • !319 - #770: Run doctests in tox.

PyQ 3.8.1

Released on 2016-06-21

  • !292 - #744: Print guessed path of q executable when exec fails.
  • !293, !294 - #748 Use VIRTUAL_ENV environment variable to guess QHOME.
  • !301, !295 - #751: Update documentation.
  • !296 - #750: Fall back on 32-bit version of q if 64-bit version does not run.
  • !298, !299, !300, !303 - #753: CI Improvements.
  • !302 - #755: Use preserveEnumerations=1 option to b9 instead of -1.

PyQ 3.8

Released on 2016-04-26.

  • !256 - #670: Enable 32-bit CI
  • !258 - #717 Expose sd0 and sd1 in python.
  • !259 - #718 Added a test running “q test.p”.
  • !261 - Use Python 3.4.3 in CI
  • !272, !273 - #731 Added Python 3.5.0 test environment and other CI improvements.
  • !263 - #718 More p) tests
  • !264 - #709 Redirect stderr and stdout to notebook
  • !271 - #729 Conversion of lists of long integers to q.
  • !274 - #728 Don’t corrupt existing QHOME while running tox.
  • !275 - #733 Don’t add second soabi for Python 3.5.
  • !276 - #734: Added support for enums in memoryview.
  • !277 - #736: Implemented format() for more scalar types.
  • !278 - #737 Misleading error message from the list of floats conversion.
  • !279, !280 - #738 CI improvements
  • !281 - #611: Updated k.h as of 2016.02.18
  • !286, !288, !289, !290 - #742 PyQ Documentation
  • !287 - #745: Automatically generate version.py for PyQ during setup.

PyQ 3.7.2

Released on 2015-07-28.

  • !270 - #726 Reuse dict converter for OrderedDict.
  • !267 - #724 and #723 numpy <> q conversion fixes.
  • !266 - #725 Use 001..002 to bracket ANSI escapes.
  • !265 - #721 Made slicing work properly with associations (dictionaries) and keyed tables.
  • !260 - #719 Backport python 3 bug fixes.
  • CI Improvements (!257, !262, !269, !268).

PyQ 3.7.1

Released on 2015-02-12.

  • !244 - #701 Fixed using q datetime (z) objects in format().
  • !246 - Removed pytest-pyq code. pytest-pyq is now separate package.
  • !247 - #709 IPython q-magic improvements
  • !248 - #673 Implemented unicode to q symbol conversion in python 2.x.
  • !249, !252 - #691 Improved test coverage
  • !250, !251 - #695 Use Tox as test-runner
  • !253 - #715 Fixed table size computation in getitem.
  • !255 - #691 Remove redundant code in slice implementation

PyQ 3.7

Released on 2015-01-15.

  • !222 - #581 Implements conversion of record arrays.
  • !223 - #680 Fixed int32 conversion bug.
  • !224 - #681 Fixed datetime bug - freed memory access.
  • !225 - Added support for numpy.int8 conversion.
  • !226 - #644 Fixed descriptor protocol.
  • !227 - #663 Fixed nil repr (again).
  • !228, !233, !237, !239 - #687 Updates to documentation in preparation to public release.
  • !229 - #690 Use only major kx version in _k module name.
  • !230 - #691 Added tests, fixed date/time list conversion.
  • !232 - #693 Implement pyq.magic.
  • !234 - #694 Use single source for python 2 and 3. (No 2to3.)
  • !235 - #674 Added support for nested lists.
  • !236 - #678 Fixed compiler warnings.
  • !238 - #657 Make numpy optional.
  • !240 - #674 Added support for nested tuples.
  • !241 - #696 Implemented slicing of K objects.
  • !242 - #699 int and float of non-scalar will raise TypeError.
  • !243 - #697 Fixed a datetime bug.

PyQ 3.6.2

Released on 2014-12-23.

  • !198 - #654 Restore python 3 compatibility
  • !211 - #667 Added pyq.c into MANIFEST
  • !213 - #669 Fixed a crash on Mac
  • !214 - #590 Implemented numpy date (M8) to q conversion
  • !215, !216 - #590 Implemented support for Y, M, W, and D date units
  • !217, !218, !220, !221 - #666 Multiple CI improvements
  • !219 - #676 Implemented numpy.timedelta64 to q conversion

PyQ 3.6.1

Released on 2014-11-06.

  • !206 - #663 Fixed nil repr
  • !207 - CI should use cached version of packages
  • !208 - #665 Allow K objects to be written into ipython zmq.iostream
  • !209 - Show python code coverage in CI
  • !210 - #666: Extract C and Python coverage to print in the bottom of the CI run
  • !212 - Bump version to 3.6.1b1

PyQ 3.6.0

Released on 2014-10-23.

  • !189 - #647 Fix pyq.q() prompt
  • !190 - CI should use Python 2.7.8
  • !191 - #648 Boolean from empty symbol should be False
  • !192 - #634: Moved time converter to C and removed unused converters
  • !193 - #652 Added __long__ method to K type.
  • !194 - #653 Allow K integer scalars to be used as indices
  • !195, !197 - #651 Format for scalar types D, M, T, U, and V.
  • !196 - #611 Updated k.h to 2014.09.11
  • !199 - #656 Iteration over K scalars will now raise TypeError.
  • !200 - #655 Added support for Python 3 in CI
  • !202 - #571 Added support for uninstalling Q components
  • !203 - #633 Improve test coverage
  • !204 - #633 Added boundary and None checks in ja

PyQ 3.5.2

Released on 2014-07-03.

  • !184, !186 - #639 taskset support. Use CPUS variable to assign CPU affinity.
  • !187 - #641 color prompt
  • !185 - #640 Restore minimal support for old buffer protocol

PyQ 3.5.1

Released on 2014-06-27.

  • !177, !178 – #631 pyq is binary executable, not script and can be used in hashbang.
  • !179 – #633 Added memoryview tests.
  • !181 – #636 Moved extension module into pyq package.
  • !182 – #633 Removed old buffer protocol support.
  • !183 - #638 Calling q() with no arguments produces an emulation of q) prompt

PyQ 3.5.0

Released on 2014-06-20.

  • !164 – #611 Updated k.h
  • !165 – #614 Expose jv
  • !166 – #580 Show with output=str will return string
  • !167 – #627 Fixed p language
  • !168 – Fix for pip, PyCharm and OS X
  • !169 – #629 python.py script was renamed to pyq
  • !170 – #632 jv reference leak
  • !171 – #633 C code review
  • !172 – #634 k new
  • !173 – #612 Generate C code coverage for CI
  • !174, !175 – #633 test coverage
  • !176 – #635 Disable strict aliasing

PyQ 3.4.5

Released on 2014-05-27.

  • 614: Expose dj and ktj
  • 620: Empty table should be falsy
  • 622: Convert datetime to “p”, not “z”

PyQ 3.4.4

Released on 2014-05-23.

  • python.q returns correct exit code

PyQ 3.4.3

Released on 2014-04-11.

  • 617: Dict Conversion
  • 619: Len Keyed Table

PyQ 3.4.2

Released on 2014-04-11.

  • 589: Symbol array roundtripping
  • 592: Properly register py.path.local
  • 594: Support passing additional values to select/update/exec methods.
  • 595: Implement pytest_pyq plugin
  • 596: Implement python dict converter
  • 601: Add support for ^ (fill) operator
  • 602: Fix r-ops for non-commutative operations.
  • 603: Fix unary + and implement unary ~
  • 604: Make all q methods accessible from pyq as attributes
  • 609: Updated k.h to the latest kx version
  • NUC: Only true division is supported. Use “from __future__ import division” in python 2.x.

PyQ 3.4.1

Released on 2014-03-14.

  • Add support for char arrays #588
  • PyQ can now be properly installed with pip -r requirements.txt #572

PyQ 3.4

Released on 2014-03-07.

  • Issues fixed: #582, #583, #584, #586
  • Support dictionary/namespace access by .key
  • Support ma.array(x) explicit conversion
  • Add support for comparison of q scalars

PyQ 3.3

Released on 2014-02-05.

  • Issues fixed: #574, #575, #576, #577, #578

PyQ 3.2

Released on 2013-12-24.

  • Issues fixed: #556, #559, #560, #561, #562, #564, #565, #566, #569, #570, #573
  • NEW: wrapper for python.q to use it under PyCharm
    Note: You will need to create symlink from python to python.py in order for this to work, i.e.: ln -s bin/python.py bin/python
  • Support to use 32-bit Q under 64-bit OS X

PyQ 3.2.0 beta

  • Convert int to KI if KXVER < 3, KJ otherwise
  • In Python 2.x convert long to KJ for any KXVER

PyQ 3.1.0

Released on 2012-08-25.

  • support Python 3.2
  • release pyq-3.1.0 as a source archive

2012-08-10

  • basic guid support

PyQ 3.0.1

Released on 2012-08-09.

  • support both q 2.x and 3.x
  • better setup.py
  • release pyq-3.0.1 as a source archive

2009-10-23

  • NUC: k3i
  • K(None) => k(”::”)
  • K(timedelta) => timespan

2009-01-02

  • Use k(0, ..) instead of dot() and aN() to improve compatibility
  • Default to python 2.6
  • Improvements to q script.p
  • NUC: extra info on q errors

2007-03-30

implemented K._ja

0.3

  • Added support for arrays of strings

0.2

  • Implemented iterator protocol.