Lucas Prado Melo added the comment:
I would like to ask as a feature request that "inf" be almost equal to
"inf".
I wrote a program with a timeline class that had a method to tell the
time of the last event registered into it such that some events would be
positioned at th
Changes by Lucas Prado Melo :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue6567>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Lucas Prado Melo :
--
components: +Tests
___
Python tracker
<http://bugs.python.org/issue6567>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Lucas Prado Melo :
--
versions: +Python 3.2
___
Python tracker
<http://bugs.python.org/issue6567>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Lucas Prado Melo :
When we use TestCase.assertAlmostEqual to compare two float('inf')
objects, the result is that float('inf') is not almost equal to
float('inf').
I believe this is a bug. I tested against r74195 of Python 3.2 and
against Pyth
Lucas Prado Melo added the comment:
-1 on this one.
It is not a portable decision (only *nix OSes do have /dev/null).
Also, why would we want it as a default constant? The subprocess module
would need to open /dev/null every time. Despite that, I can't see how
would someone use the redire
New submission from Lucas Prado Melo :
--
$ cat raw_input_test.py
s = ''
try:
while True:
c = raw_input()
print c
s += c
except EOFError:
pass
$ python raw_input_test.py
test^D^Dtes
^D
$ python --version
Python 2.
New submission from Lucas Prado Melo :
I am pretty sure this patch is alright.
--
nosy: +lucaspmelo
___
Python tracker
<http://bugs.python.org/issue6447>
___
___
Lucas Prado Melo added the comment:
I think this patch is ok.
--
___
Python tracker
<http://bugs.python.org/issue5230>
___
___
Python-bugs-list mailing list
Unsub
Lucas Prado Melo added the comment:
+1 to the py3k diff. :)
Hey, I think this daemon property should be set as a keyword argument of
the Thread constructor.
--
nosy: +conf
___
Python tracker
<http://bugs.python.org/issue6
Lucas Prado Melo added the comment:
Ok
A new patch without read1() changes.
Only one test fails, a read1() test:
==
FAIL: test_read1 (test.test_io.PyBufferedRWPairTest
Lucas Prado Melo added the comment:
Here, it's a patch that passes all the tests (I had to change some of them
though, they were expecting erroneous behaviours IMHO).
The biggest problem was the read1 testing, I've tried to get the maximum
of bytes less than or equal to what the u
Lucas Prado Melo added the comment:
Here is a patch that passes all the tests (I had to change some of them
though, they were expecting erroneous behaviours IMHO).
The biggest problem was the read1 testing, I've tried to get the maximum
of bytes less than or equal to what the user wanted
Lucas Prado Melo added the comment:
We could fill the buffer while moving its start point to 0. I guess this
behavior would require a new function (or a new parameter to
Modules/_io/bufferedio.c:_bufferedreader_fill_buffer() ).
If you are ok with that I could write a patch
Lucas Prado Melo added the comment:
There's a problem with my patch... When the size of the data we want to
peek is too big ( > buffer_len - start ) the cursor will move, thus
there isn't a case where the peek function would work properly (except
when we want to peek() just 1 byte)
Lucas Prado Melo added the comment:
Oops I overlooked I minor flaw.
A second version.
--
Added file: http://bugs.python.org/file14282/peek2.diff
___
Python tracker
<http://bugs.python.org/issue5
Lucas Prado Melo added the comment:
Hey guys, I did a patch about this one.
I didn't do many tests but I guess it is ok (it works like I think it
should).
What do you think?
--
keywords: +patch
nosy: +conf
Added file: http://bugs.python.org/file14281/peek
Changes by Lucas Prado Melo :
Removed file: http://bugs.python.org/file14140/pydocs.diff
___
Python tracker
<http://bugs.python.org/issue5230>
___
___
Python-bugs-list m
Lucas Prado Melo added the comment:
I had lots of stuff to do lately, sorry it took me so long to answer.
Here is the patch as we intended, but there is a bug yet.
What if the non-existent imported module has the same name of the module
itself?
$ cat pydoc_badimport3.py
import
Lucas Prado Melo added the comment:
Take a look at the output:
$ python pydoc.py test.pydoc_badimport2
problem in test.pydoc_badimport2 - : No
module named i_dont_exist.neither_do_i
This is different from what you expected. How do we change this output?
(I was talking about this issue in the
Lucas Prado Melo added the comment:
Thanks :)
It seems that the error message carried by the ImportError object comes
from Python/import.c:1504.
What should we do:
a) Edit Python/import.c
b) Change the ImportError object
c) Anything else
Lucas Prado Melo added the comment:
I didn't understand what you mean: what should be shown when pydoc tries
to generate documentation for a module with the bad import 'import
test.i_dont_exist.neither_do_i'?
I am not a native english speaker, so please excuse me if you d
Lucas Prado Melo added the comment:
by the way, I was not acquainted with this unit test thing... sorry
--
___
Python tracker
<http://bugs.python.org/issue5
Changes by Lucas Prado Melo :
Removed file: http://bugs.python.org/file14138/pydocs.diff
___
Python tracker
<http://bugs.python.org/issue5230>
___
___
Python-bugs-list m
Lucas Prado Melo added the comment:
Ok.
New patch that passes the unit tests and with a new unit test covering
inexistant nested modules.
--
Added file: http://bugs.python.org/file14140/pydocs.diff
___
Python tracker
<http://bugs.python.
Lucas Prado Melo added the comment:
A new patch with an unit test and with whitespaces.
--
Added file: http://bugs.python.org/file14138/pydocs.diff
___
Python tracker
<http://bugs.python.org/issue5
Changes by Lucas Prado Melo :
Removed file: http://bugs.python.org/file14137/pydocs.diff
___
Python tracker
<http://bugs.python.org/issue5230>
___
___
Python-bugs-list m
Changes by Lucas Prado Melo :
Removed file: http://bugs.python.org/file14136/pydocs.diff
___
Python tracker
<http://bugs.python.org/issue5230>
___
___
Python-bugs-list m
Lucas Prado Melo added the comment:
The same patch with whitespaces. Is it ok now?
--
Added file: http://bugs.python.org/file14137/pydocs.diff
___
Python tracker
<http://bugs.python.org/issue5
Lucas Prado Melo added the comment:
I've written a patch.
Hope you like it :)
--
keywords: +patch
nosy: +conf
Added file: http://bugs.python.org/file14136/pydocs.diff
___
Python tracker
<http://bugs.python.org/i
30 matches
Mail list logo