BGE Object List within a specified distance
You can do it this way.


Add near sensor.





Get the list of hit objects.


Script if near sensor look for specific property name

from bge import logic

nearSen = logic.getCurrentController().sensors['Near']
list = nearSen.hitObjectList 


or if near sensor not look for specific property name

list = [obj for obj in nearSen.hitObjectList if nearSen.positive and 'property' in obj.getPropertyNames()]


Edit

The objects need to be set to actor so the sensor can detect them.



Download the blend to see how it works.


KX_NearSensor

KX_TouchSensor