None gets linked as if it were a function.

Bug #1138975 reported by Tom Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pydoctor
Fix Released
Undecided
Unassigned

Bug Description

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Hah yes. All non-exception builtins get linked like that -- I wonder how many there are, perhaps they can all be special cased? Or perhaps I can put an "if callable" in somewhere.

Is there a good thing for L{None} to actually link to?

Revision history for this message
Thijs Triemstra (collab) wrote :

Sometimes in Twisted it's linked to the NoneType instead: http://docs.python.org/2/library/types.html#types.NoneType

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Ah, there is http://docs.python.org/2/library/constants.html#None. Special case coming up!

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Actually a check for callable neatly weeds out the constants

Changed in pydoctor:
status: New → Fix Committed
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

So, fixed. I still think writing L{None} is silly :)

Changed in pydoctor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.