Click here to Skip to main content
15,664,182 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
python3, Should be simple be I'm missing it. I have had a stroke so please be patient. :)
I have a list; my_dir = dir(math).
This list has both dunder and non dunder items, I want to get rid of the dunders and have a list of the non dunders.
Not sure if regular expression is the way to go or some string split or findall

Thanks for your help.
woodturner550

What I have tried:

I have mangled code for a week now.
Posted
Updated 5-Aug-22 8:39am
Comments
Richard MacCutchan 6-Aug-22 4:31am    
What is a "dunder", and why are you trying to get rid of it? Maybe if you showed the actual output and explained what you are trying to achieve ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900