Lucas Cimon added the comment:
The GitHub PR is ready for reviewing.
--
___
Python tracker
<https://bugs.python.org/issue46101>
___
___
Python-bugs-list mailin
Lucas Cimon added the comment:
This was resolved by https://github.com/python/cpython/pull/28050
--
message_count: 4.0 -> 5.0
pull_requests: +28366
status: open -> closed
pull_request: https://github.com/python/cpython/pull/28050
___
Python t
Change by Lucas Cimon :
--
keywords: +patch
pull_requests: +28364
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30146
___
Python tracker
<https://bugs.python.org/issu
New submission from Lucas Cimon :
Hi!
Here is some minimal code reproducing the issue:
import argparse
common_opts_parser = argparse.ArgumentParser(add_help=False)
common_opts_parser.add_argument("--endpoint", choices=("prod", "dev"
Lucas Cimon added the comment:
Sorry, the fix was by Mathias Ettinger:
elif isinstance(argument, _SubParsersAction):
return '{%s}' % ','.join(map(str, argument.choices))
I submitted a PR with this patch and a corresponding unit test:
https://github.com/pytho
Change by Lucas Cimon :
--
nosy: +Lucas Cimon
nosy_count: 7.0 -> 8.0
pull_requests: +24884
pull_request: https://github.com/python/cpython/pull/26278
___
Python tracker
<https://bugs.python.org/issu
Lucas Cimon added the comment:
Reporting a duplicate / superseder with the following bug:
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(required=True)
subparsers.add_parser('foo')
parser.parse_args()
Raising:
TypeError: sequence item 0: expected st
Lucas added the comment:
The problem was that I didn't close the 1st connection to the database and then
made another request, which had to wait for the 1st to close, to be exact.
--
___
Python tracker
<https://bugs.python.org/is
Lucas added the comment:
While trying to simplify my program for you, I found that the problem was
caused by a very specific interaction of one of the functions that was being
tested with the restore command, which did not happen when I tried to rule this
problem out in other ways.
Anyways
New submission from Lucas :
environment: win10 cmd, python 3.8 32-bit, mysql, unittest
description: When restoring a database through mysql in a unittest function,
the command prompt freezes before giving the result of the test, and I am
forced to close it to quit.
steps to replicate: Have
Lucas Cimon added the comment:
Thanks for the feedbacks paul.j3 !
I totally agree it would be best to test all formatter classes.
I modified the new test to do so.
I think I should probably place this test somewhere else in test_argparse.py,
but I'm having trouble figuring out where ex
Change by Lucas Cimon :
--
keywords: +patch
pull_requests: +16450
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16918
___
Python tracker
<https://bugs.python.org/issu
New submission from Lucas Cimon :
The logging.Handler .name property is not set when the logging configuration is
loaded with logging.fileConfig
--
components: Library (Lib)
messages: 355338
nosy: Lucas Cimon
priority: normal
severity: normal
status: open
title: logging: handlers
Change by Lucas Cimon :
--
keywords: +patch
pull_requests: +16448
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16917
___
Python tracker
<https://bugs.python.org/issu
New submission from Lucas Cimon :
The test I am going to add to test_argparse.py:
def test_whitespace_help(self):
parser = self._get_parser()
parser.add_argument(
'--foo2', action='store_true', help=' ')
parser.add_argu
New submission from José Luis Segura Lucas :
When using "buffer = True" in a TextTestRunner, the test result behaviour
doesn't change at all.
This is because TextTestRunner.stream is initialised using a decorator
(_WritelnDecorator). When "buffer" is passed, the T
New submission from Lucas Cimon :
Hi.
I think I have found a minor memory leak in
Modules/main.c:pymain_parse_cmdline_impl.
When the loop in the pymain_read_conf function in this same file
calls pymain_init_cmdline_argv a 2nd time, the pymain->command
buffer of wchar_t is overriden and
Lucas Sampaio added the comment:
ok, I got it
lista4 = input().split()
print(lista4)
lista4.sort()
print(lista4)
print(type(lista4[2]))
6 8 10['6', '8', '10']
['10', '6', '8']
ok, I got it
2018-07-01 18:05 GMT-03:00 Tim Pet
Lucas Sampaio added the comment:
same code with another input
type is list
lista4 = input().split()
print(lista4)
lista4.sort()
print(lista4)
6 8 9
['6', '8', '9']
['6', '8', '9']
lista4 = input().split()
print(lista4)
lista4.sor
New submission from Lucas Sampaio :
lista4 = input().split()
print(lista4)
lista4.sort()
print(lista4)
Input = 6 8 10
Output:
6 8 10
['6', '8', '10']
['10', '6', '8']
a bug occurs when setting the 10
--
messages: 320843
no
Change by Lucas Bertoldo :
--
versions: +Python 2.7, Python 3.5
___
Python tracker
<https://bugs.python.org/issue31952>
___
___
Python-bugs-list mailing list
Unsub
New submission from Lucas Bertoldo :
Basically, I typed:
>>> m = (list(), list())
then I got, this, as expected:
>>> m[0] += [1]
Traceback (most recent call last):
File "", line 1, in
m[0] += [1]
TypeError: 'tuple' object does not support item assign
New submission from Lucas Moeskops:
The ZipFile documentation shows a link to the PKZip Application Node. This
link, with address
"https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT"; goes to a "Page
Not Found" document.
--
messages: 286847
nosy: lucas
Lucas Wiman added the comment:
It is quite thrifty with memory compared to the size of the search space O(n*k)
memory for a search space of size O(n**k).
I think a reasonable expectation for itertools.product is that it should
_eventually_ reach any element in the search space. The only way
Changes by Lucas Hoffmann :
--
nosy: +luc
___
Python tracker
<https://bugs.python.org/issue14376>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Casey Lucas:
I'm not sure if this a Python issue or a FreeBSD issue but the return value
from os.waitpid is not reliably (0,0) on FreeBSD when the WNOHANG is used and
the child process has not yet exited. Python docs say that the return value
will be (0,0) but this i
Lucas Morales added the comment:
This is actually a problem in Objects/longobject.c, in the _PyLong_AsByteArray
function. It should have given an overflow error, because -1 cannot be encoded
in 0 bytes.
--
nosy: +lucasem
___
Python tracker
<h
Lucas Wiman added the comment:
I realize this is an old (and closed!) thread, but here are a few notes from
running into this issue recently, working on a search problem with infinite
iterators.
First, note that yegle's recursive solution is not correct, since it exhausts
the iter
Lucas Hoffmann added the comment:
What is the status of this issue?
On version 3.3 I still can not get more than one entry per host. The stopping
issue #12009 seems to be closed.
(Sorry, if I violate some etiquette by bumping this, just tell me.)
--
nosy: +luc
New submission from Lucas Clemente Vella:
As stated in RFC 3548:
Base encoding of data is used in many situations to store or transfer
data in environments that, perhaps for legacy reasons, are restricted
to only US-ASCII [9] data.
thus, I was surprised to see, when I used base64 for
Lucas Maystre added the comment:
Sorry for the little glitches you had to fix, I wonder why I didn't catch them.
Anyways, thanks Petri!
--
___
Python tracker
<http://bugs.python.org/is
Lucas Maystre added the comment:
As per Ezio's comment, changed "l1" to "utf-8" in the example of the doc.
--
Added file: http://bugs.python.org/file28195/filetype11175.patch
___
Python tracker
<http:
Lucas Maystre added the comment:
Added some documentation for the patch. Let me know what you think.
--
Added file: http://bugs.python.org/file28139/filetype11175.patch
___
Python tracker
<http://bugs.python.org/issue11
Lucas Maystre added the comment:
OK, I'll give it a try.
--
___
Python tracker
<http://bugs.python.org/issue11175>
___
___
Python-bugs-list mailing list
Lucas Maystre added the comment:
Is there something I can do something to move this forward?
--
___
Python tracker
<http://bugs.python.org/issue11175>
___
___
Lucas Maystre added the comment:
Alright, here's a version with more tests (unittest.mock is awesome!). I think
it tests exactly what it should (and no more), i.e. that the arguments are
correctly passed to `open`.
--
Added file: http://bugs.python.org/file27729/filetype11175.
Lucas Maystre added the comment:
OK, as discussed offline with Petri I'll put some tests to ensure that open()
is called the right way (using unittest.mock.patch).
--
___
Python tracker
<http://bugs.python.org/is
Lucas Maystre added the comment:
Here's an attempt at implementing this (my first contribution). Some notes:
- I tried to keep `__repr__()` backwards compatible. It would have been easier
to inherit from `_AttributeHolder`, but maybe this might break some things...
- I added some test
Lucas Sinclair added the comment:
I agree to close the issue. I tried following the steps proposed here:
http://docs.python.org/devguide/
And typed these two commands on a OS X 10.8.1 with XCode and command line tools
installed.
$ hg clone http://hg.python.org/cpython.
$ run ./configure
New submission from Lucas Sinclair :
When using the sqlite3.Row object as a row factory, one can access the
resulting rows by index (such as row[1]) or by name (such as row['b']).
However, the slice functionality is lost, as doing row[0:2] raises the error:
"slices not implemen
Lucas Sinclair added the comment:
My patch contains two new dump tests which originally fail, and the fixes to
the code that makes them pass.
--
Added file: http://bugs.python.org/file23629/issue9750.patch
___
Python tracker
<h
Lucas Sinclair added the comment:
Well the configure parameters suggested by Michael Foord worked. I was able to
build cpython on a mac. But I could not have guessed how to make it work.
Shouldn't these instructions be added here http://docs.python.org/devguide/ ?
Shouldn't
Lucas Sinclair added the comment:
I just cloned cpython today. The output of "hg summary" is:
parent: 73351:2bec7c452b39 tip
Fix C89 incompatibility.
branch: default
commit: (clean)
update: (current)
--
___
Python tracker
<http://bu
Lucas Sinclair added the comment:
I'm on 10.7.2, with XCode is 4.2 and the problem is still present. The command
"ggc -v" produces the following output:
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
The command "./configure --with-pydebug &am
Lucas Sinclair added the comment:
Sure, I can have a try at it and address the issues you pointed out.
The URL to the guidelines you provided gives a 404. In what form exactly would
you like the patch to be ?
I wouldn't mind either adding to the test suite, but I'm not sure how t
Lucas Sinclair added the comment:
I just encountered this issue today.
So, it's been several months, will the patch be merged into the master branch ?
Or will this never be fixed ?
--
nosy: +xapple
___
Python tracker
<http://bugs.py
Kelly Lucas added the comment:
This is easy enough to implement by subclassing the Queue class and overriding
join(), so it's not a big deal. Just seems like it would be a nice thing to
have.
--
___
Python tracker
<http://bugs.py
Kelly Lucas added the comment:
Here are a few that I saw:
http://stackoverflow.com/questions/1564501/add-timeout-argument-to-pythons-queue-join
http://www.eggheadcafe.com/software/aspnet/36145181/max-time-threads.aspx
http://efreedom.com/Question/1-1564501/Add-timeout-argument-to-python-s
Changes by Kelly Lucas :
--
versions: +Python 3.1 -Python 2.7
___
Python tracker
<http://bugs.python.org/issue9634>
___
___
Python-bugs-list mailing list
Unsub
New submission from Kelly Lucas :
I've seen quite a few people requesting to add a timeout value to the
Queue.join() method, as it seems like a nice feature to have when waiting for
queue's to finish.
Please add a feature so that Queue.join() will issue a
self.all_tasks_done.rele
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
80 matches
Mail list logo