# Is .param.\_cls\_parameters a good replacement for the method .param.params()?

**URL:** <https://discourse.holoviz.org/t/is-param-cls-parameters-a-good-replacement-for-the-method-param-params/9037>\
**Category:** Param\
**Created:** [December 7, 2025, 8:20am UTC](https://discourse.holoviz.org/t/is-param-cls-parameters-a-good-replacement-for-the-method-param-params/9037 "2025-12-07T08:20:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuckyYue](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/luckyyue/32/7392_2.png) [@LuckyYue](https://discourse.holoviz.org/u/LuckyYue)\
**Post date:** [December 7, 2025, 8:20am UTC](https://discourse.holoviz.org/t/is-param-cls-parameters-a-good-replacement-for-the-method-param-params/9037/1 "2025-12-07T08:20:09Z")

</div>

Hello,

I recently updated param to the **version 2.3.1** and noticed that the method `.param.params()` is removed. In the version **2.2.1** , the method still exists (although deprecated), and the documentation recommended using `.param.values()` (see [link](https://github.com/holoviz/param/blob/19755222e1fff763d5ceb111f50cb0be0d62012e/param/parameterized.py#L2320-L2336)).

However, these 2 methods return different things:

- `params()` → `{name: Parameter}` (parameter object)
- `values()` → `{name: value}` (parameter values)

I need access to the Parameter objects, because I need attributes like `allow_None`.

I notice that there is a property `_cls_parameters` that also returns `{name: Parameter}`. Is this property equivalent to the old `.params()` method? Or is there another recommended way to access the full Parameter objects in param 2.3+?

Thanks!

---

<div class="post-metadata">

**Author:** ![maximlt](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/maximlt/32/2487_2.png) [@maximlt](https://discourse.holoviz.org/u/maximlt)\
**Post date:** [December 8, 2025, 8:01am UTC](https://discourse.holoviz.org/t/is-param-cls-parameters-a-good-replacement-for-the-method-param-params/9037/2 "2025-12-08T08:01:52Z")

</div>

Hi @LuckyYue,

The recommendation to use `.param.values()` to replace the deprecated `.param.params()` was a copy/paste error. Instead you should use [`.param.objects()`](https://param.holoviz.org/en/docs/latest/reference/param/generated/param.parameterized.Parameters.objects.html#param.parameterized.Parameters.objects).

I recommend against using any private members (like `_cls_parameters`) as they can be changed in any release, while public members must go through a deprecation cycle.
