B t `‚ã@s dd„ZdS)cCsˆt|ƒ}| ¡t|ƒdkr&tdƒ‚n>t|ƒdkr:|dStt|ƒdƒddkrd|t|ƒddSt|ƒd}||d||dS)z, Returns the median value of a list éz6Attempting to compute the median of a zero-length listéég@)ÚlistÚsortÚlenÚArithmeticErrorÚdivmod)ZmylistZndx©r ú9/tmp/pip-unpacked-wheel-cqckmaqz/pyutilib/math/median3.pyÚmedian s   r N)r r r r r Ú ó