[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-05-13 Thread Josh Cogliati
Josh Cogliati added the comment: Other than in the source code in Modules/main.c, is -b documented anywhere? (For 2.7.6, The html docs, man page, and --help all failed to mention it) -- nosy: +jrincayc ___ Python tracker <http://bugs.python.

[issue7028] Add int.hex for symmetry with float.hex

2009-10-02 Thread Josh Cogliati
Josh Cogliati added the comment: Well, I think think I would at least like the sections in the Library reference documentation should mention the other functions. I.e. the following should have cross references: A. 2. Built-in Functions hex() should cross reference float.hex() B. 2. Built-in

[issue7028] hex function should work with floats

2009-10-01 Thread Josh Cogliati
Josh Cogliati added the comment: Okay. Thank you. I looked at the issue 3008 discussion. I see why hex() was not changed. Can int.hex() and int.fromhex() be added for symmetry? I am willing to work on the patch, it just might be a bit. As well, either way, it might be useful for the

[issue7028] hex function should work with floats

2009-10-01 Thread Josh Cogliati
Josh Cogliati added the comment: Thank you for telling me about that function. I read the documentation on hex() and never realized that there was a second instance method float.hex(). I am curious why the proper way to turn a number into hex is the following: import types def to_hex(a

[issue7028] hex function should work with floats

2009-09-30 Thread Josh Cogliati
Changes by Josh Cogliati : -- type: -> feature request ___ Python tracker <http://bugs.python.org/issue7028> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7028] hex function should work with floats

2009-09-30 Thread Josh Cogliati
New submission from Josh Cogliati : The hex() builtin function only takes integers. Also there is no way to create a floating point number from a hexadecimal string. However it would often be useful to be able to see the hexadecimal version of an float since this is an exact representation as

[issue2475] Popen.poll always returns None

2008-04-03 Thread Josh Cogliati
Josh Cogliati <[EMAIL PROTECTED]> added the comment: Hm. Well, after filing the bug, I created a thread for each subprocess, and had that thread do an wait on the process, and that worked fine. So, I guess at minimum it sounds like the documentation for poll could be improved to mentio

[issue2475] Popen.poll always returns None

2008-03-24 Thread Josh Cogliati
New submission from Josh Cogliati <[EMAIL PROTECTED]>: I was trying to use subprocess to run multiple processes, and then wait until one was finished. I was using poll() to do this and created the following test case: #BEGIN import subprocess,os procs = [subprocess.Popen(["sleep&qu