Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
pykd pykd
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pykd
  • pykdpykd
  • Issues
  • #58

Closed
Open
Created Oct 16, 2019 by ussrhero@ussrheroMaintainer

typeInfo in logical expression

typeInfo class inherits numVariant so has __nonzero__ method. It can be non obviously, especially in logical expressions:

type_info = getTypeInfoOrReturnNone()
if type_info:
   print('type found')

In fact we will see 'type found' if type_info != None and type_info.__nonzero__() == True

typeInfo inherits numVariant for working with constants. I think, const value can be got through special method, for example getValue().

Edited Oct 16, 2019 by ussrhero
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking