pythonengineer
13011278af
PythonUtil: Fix usage of reduce() for Python 3
2020-08-04 11:05:29 +02:00
rdb
d799a09002
cleanup: Remove support for EOL versions of Python
...
Fixes #905
2020-04-26 20:07:56 +02:00
rdb
39988e4787
general: update a few outdated links in API documentation
2019-11-02 19:41:56 +01:00
rdb
f149fb4ab0
direct: big formatting changes for the benefit of API reference
...
Part of the effort to move the API reference to Sphinx, see panda3d/panda3d-docs#21
2019-10-29 20:43:41 +01:00
pythonengineer
46a3a72029
PythonUtil: weightedChoice should throw IndexError on empty list
...
Also includes a unit test.
Closes #682
2019-07-15 19:39:31 +02:00
rdb
d89da168bb
PythonUtil: fix use of types.InstanceType in Python 3 in itype()
...
Really, though, don't use this function. It does not consider new-style classes, is not consistent in its return values and it seems to do nothing that repr(type(x)) doesn't do.
2019-04-09 12:53:13 +02:00
rdb
3024e6daeb
direct: fix various syntax warnings in Python 3.8
2019-02-11 23:35:56 +01:00
rdb
f986f8de1b
showbase: add back clampScalar and PriorityCallbacks to PythonUtil
...
These were removed by 88dbb31daa02779405ef5326677eefb5cf93f3c8 under the assumption that they were not used, but it has recently come to my attention that there is still code out there that uses these.
PriorityCallbacks has been updated to be compatible with Python 3 by only comparing the priority, rather than the (priority, callback) tuple. This also has the side-effect of ditching the bisect dependency.
Also moves testing code from the source to the unit tests.
2018-04-21 11:43:46 +02:00
rdb
83507e413f
Fix Mac OS X Snow Leopard build
2016-12-05 16:30:44 -05:00
rdb
516e88c8fc
Fix to unbreak travis test script
2016-03-28 23:20:26 +02:00
rdb
23bf9ea5c7
The direct tree is now valid Python 2 *and* 3
2016-03-28 22:33:30 +02:00
rdb
54fa31ba17
StandardError -> Exception, other 2to3 changes, threaded 2to3
2016-03-25 17:13:09 +01:00
rdb
0d03207d1b
Dramatically reduce size of frozen/compiled code by pruning/masking unnecessary imports/code
2016-02-12 22:20:27 +01:00
rdb
03c8d4c009
Fix use of many builtins
2016-02-02 13:41:20 +01:00
rdb
32367fcbdc
Fix various import issues in the direct tree
2015-12-06 22:36:05 +01:00
rdb
50d2e8324e
Merge branch 'release/1.9.x'
...
Conflicts:
.travis.yml
direct/src/directtools/DirectLights.py
panda/src/nativenet/buffered_datagramconnection.h
2015-12-06 22:32:12 +01:00
rdb
287c44ce53
Various fixes for Python 3 versions before Python 3.3
2015-12-06 22:05:44 +01:00
rdb
0a9f9887f9
Merge branch 'release/1.9.x'
...
Conflicts:
direct/src/p3d/Packager.py
direct/src/p3d/ppackage.py
makepanda/makepandacore.py
2015-11-21 03:17:33 +01:00
rdb
2d6c2c5c6d
Remove dependency on tkpanels and tkwidgets modules when building .p3d package
2015-11-20 17:42:18 +01:00
rdb
db3ab953e4
Remove ppremake, genPyCode, and all hacks created to support them
2015-11-09 19:06:49 +01:00
rdb
0ae2df7e02
Merge branch 'release/1.9.x'
2015-11-01 15:54:58 +01:00
rdb
b1c7086cbc
Fix Rope, fix some unnecessary reliances on base.config
2015-11-01 15:53:02 +01:00
rdb
d9342043b0
Deprecate pandac.PandaModules and genPyCode, move extensions to panda3d/, clean up imports and deprecated behaviour
2015-06-28 13:55:31 +02:00
rdb
f87785d2c0
Allow using Panda without 'signal' module in platforms that do not have one (eg. JavaScript)
2015-06-21 17:37:50 +02:00
rdb
500da29013
Fix obscure error caused by bug in _getDtoolSuperBase
2015-04-09 13:15:25 +02:00
rdb
88dbb31daa
Delete old cruft that appears unused. Feel free to add it back if you need them.
2015-01-12 15:00:16 +01:00
rdb
33ef39b7db
Remove modules that seem obsolete from direct tree
2015-01-03 16:33:19 +01:00
rdb
fbc3564bf9
More work on Android port
2014-10-08 15:09:25 +00:00
rdb
51dffd0f5a
Commit patch by cfsworks to clean up use of exec() and eval()
2014-04-16 13:09:12 +00:00
rdb
e6c8957d27
Fix DTOOL_SUPER_BASE111 assertion error with the new building style
2014-03-07 19:35:41 +00:00
rdb
5f2c0a6e04
Big commit aiding in separation of Python bindings:
...
* Most extension functions have been moved to C++.
* In makepanda, Python bindings are compiled into panda3d/<module>.pyd.
2014-02-20 13:33:26 +00:00
rdb
2275784525
More Python 3 support, and a bit of work toward being able to compile as panda3d/core.pyd, etc.
2013-12-23 18:57:48 +00:00
rdb
c729775265
The 'new' module has been deprecated since 2.6 and removed in Python 3, let's not use it (use 'types' module instead)
2013-12-23 15:08:00 +00:00
David Rose
5bd9eaf7fc
fix import error
2013-12-19 18:56:45 +00:00
rdb
088df4a3d2
A few modernisation fixes, mostly for Python 3 support
2013-12-17 22:51:28 +00:00
rdb
66f4964c8b
Oops, checked in the wrong file
2013-12-17 20:04:59 +00:00
rdb
88048bf3da
Fix use of has_key and map()
2013-12-17 19:49:09 +00:00
rdb
192d10b937
Experimental Python 3 support to the C++ code including interrogate. Also adds support for rich comparison in interrogate.
2013-02-16 19:22:26 +00:00
Darren Ranalli
73eca34e0d
added PriorityCallbacks
2010-09-09 23:40:06 +00:00
Josh Wilson
55955862aa
adding ability to find all non-cyclic reference paths for a given object
2010-07-31 00:33:04 +00:00
Darren Ranalli
3d0a7ab83b
unicode support for http responses
2010-07-14 22:35:37 +00:00
Darren Ranalli
e3b3ab1bbe
default functor creation stack recording off, it's slow
2010-06-12 10:16:28 +00:00
Darren Ranalli
5da54c6164
u2ascii: handle unicode and non-unicode strings
2010-06-05 01:34:04 +00:00
Darren Ranalli
b539af35b7
utf-8 support for TT code redemption
2010-06-05 01:17:24 +00:00
Ken Patel
5c7c8e70be
bpdb - fix several bugs introduced with code restructure; add call=1 parameter
2010-05-20 23:29:38 +00:00
Ken Patel
9586ccc1f6
bpdb 1.2 - Moved to BpDb.py; restructured code; added toggle/reset config; no longer strip AI/UD/OV from automatic cfg name; renamed bpGroup->bpPreset;
2010-05-11 19:59:40 +00:00
Ken Patel
64083938fa
bpdb - handle exception caused when placing bp in a __init__ function
2010-05-05 17:39:55 +00:00
Ken Patel
ff599cf9ab
bpdb - fix bpgroup static=1 behavior for when bpdb is disabled
2010-04-28 21:16:25 +00:00
Ken Patel
2b855884a0
bpdb - fix argument overrides for bpGroup
2010-04-28 17:54:22 +00:00
Ken Patel
259b3396a6
bpdb - bpGroup takes optional static parameter which will return a staticmethod rather than a normal function
2010-04-22 01:27:37 +00:00