Terry J. Reedy added the comment:
This issue is about name completion and not path completion. I have re-reviewed
the patch, current code, current behavior, and the fetch_completions doctstring
that more or less explains why name completion cannot reliably work given how
Idle now works.
I
Serhiy Storchaka added the comment:
This is a duplicate of issue11471.
Explicit check for NULL is not needed because the asdl_seq_LEN() macro checks
its argument for NULL.
--
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - If without else generates
Serhiy Storchaka added the comment:
LGTM.
Attila Fazekas just has provided almost the same patch in issue22358.
--
stage: patch review - commit review
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
Michael Foord added the comment:
The patch looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21112
___
___
Python-bugs-list
Changes by Ned Deily n...@acm.org:
--
nosy: +dstufft, ncoghlan, ned.deily
versions: +Python 2.7, Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20071
___
Changes by Ned Deily n...@acm.org:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20417
___
___
Python-bugs-list mailing list
New submission from Jonas Wagner:
The attached patch fixes issues with Python's Makefile, which manifest when
doing parallel builds. The Makefile invoked make recursively for some
targets. This caused some files (which were depended upon by multiple targets)
to be built by both the original
New submission from Christoph Wruck:
Currently we have a split function which splits a str/bytestr into
chunks of their underlying data. This works great for the most tivial jobs.
But there is no possibility to pass an offset parameter into the split
function which indicates the next
Nick Coghlan added the comment:
No change for 3.x (unless something changed on the pip side that I'm not
aware of).
For 2.7, the Makefile changes, at least for the install and altinstall
targets, were deliberately excluded from the backport PEP.
--
Nick Coghlan added the comment:
As Donald notes, this was explicitly covered in the PEP: the onus is on the
distros to make ensurepip and pyvenv work in a way that complies with their
debundling requirements (e.g. by using rewheel, or redirecting to the system
installer).
The
Mateusz Dobrowolny added the comment:
The official help
https://docs.python.org/3/library/re.html?highlight=findall#re.findall
in fact contains more information, especially the one mentioned in
http://bugs.python.org/issue3384.
Regarding my issue - I am afraid it was my misunderstanding,
New submission from Luca Falavigna:
I have a program which waits for external events (mostly pyinotify events), and
when events occur a new worker is created using
concurrent.futures.ThreadPoolExecutor. The following snippet represents shortly
what my program does:
from time import sleep
Steven D'Aprano added the comment:
I'm afraid I don't understand the purpose of this feature request, or what the
behaviour is.
You show a simple example:
s = 'abc;;def;hij'
s.split(';', offset=1)
['abc', ';def', 'hij']
but I don't understand why you want to keep the second semi-colon. I
New submission from Serhiy Storchaka:
Currently the re module accepts octal escapes from \400 to \777, but ignore
highest bit.
re.search(r'\542', 'abc')
_sre.SRE_Match object; span=(1, 2), match='b'
This behavior looks surprising and is inconsistent with the regex module which
preserve
Serhiy Storchaka added the comment:
Such problems are solved by using regular expressions.
re.findall('(?:^|(?=;)).?[^;]*', 'abc;;def;hij')
['abc', ';def', 'hij']
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22355
___
___
New submission from Zacrath:
Executing the attached script causes an AssertionError.
Traceback (most recent call last):
File bug.py, line 18, in module
parser.format_usage()
File /usr/lib/python3.4/argparse.py, line 2318, in format_usage
return formatter.format_help()
File
Nick Coghlan added the comment:
The whole sys.path initialisation scheme is pretty broken when running from a
source checkout, so the short answer is it won't work, and it isn't really
fixable in a maintenance release.
System Python 3:
sys.path = [
'/home/ncoghlan/devel/py3k',
Nick Coghlan added the comment:
Note that if I find time to implement the startup sequence redesign for PEP
432/issue #22257 (which is finally starting to look like it may actually happen
some time in the next few months), a proper fix may end up being possible for
3.5.
We shouldn't bet on
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +doko
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22359
___
___
Python-bugs-list
New submission from Serhiy Storchaka:
In some cases standard re module and third-party regex modules raise exceptions
with different error messages.
1. re.match(re.compile('.'), 'A', re.I)
re:Cannot process flags argument with a compiled pattern
regex: can't process flags argument
Serhiy Storchaka added the comment:
18. re.compile(r'.???')
re:multiple repeat
regex: nothing to repeat at position 3
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22364
___
Changes by Philippe Devalkeneer phil.le.bienheur...@gmail.com:
--
nosy: +flupke
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22327
___
___
Christoph Wruck added the comment:
Hi Steven
exactly - you're right with this.
'spam--eggs--cheesetoast'.split('-', offset=1)
-- ['spam', '-eggs', '-cheese', '-', '-toast']
'spam--eggs--cheese--toast'.split('-', offset=8)
-- ['spam', '-eggs--cheese', '-toast']
Okay - the name offset
Changes by Philippe Devalkeneer phil.le.bienheur...@gmail.com:
--
nosy: +flupke
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14076
___
___
Miki Tebeka added the comment:
Anything else I need to solve to get this patch accepted?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
___
R. David Murray added the comment:
If you want to do complex splitting, the supported way to do so is re.split.
Feel free to take this to python-ideas if you think there is sufficient reason
for baking a particular additional splitting functionality into str.split.
--
nosy:
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
___
___
Christoph Wruck added the comment:
Serhiy, you will be right if you've to split a complex string such spliting
strings with more than one separator. In this case I would prefer a regex bases
solution too. Otherwise we could actually use the re-lib for every of those
jobs without using the
Robert added the comment:
I'm not sure if this is related or not, but on 3.4.1 I get the following:
print(round(float(3/2)))
2 (as expected)
print(round(float(5/2)))
2 (expected 3, as float should round .5 up)
--
nosy: +fenofonts
___
Python
Changes by Barry A. Warsaw ba...@python.org:
--
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16662
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22359
___
___
Python-bugs-list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11471
___
___
Python-bugs-list mailing list
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: michael.foord - barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16662
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
versions: -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16662
___
___
New submission from Ralph Broenink:
Issue #18138 added support for the cadata argument in
SSLContext.load_verify_locations. However, this argument does not support
certificate revocation lists (CRLs) to be added (at least not in PEM format):
ssl.SSLError: [PEM: NO_START_LINE] no start
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22365
___
Geoffrey Spear added the comment:
Robert:
That is not related. Python 3's round() function, as documented, rounds halves
to the even choice; what you describe is the expected behavior.
--
nosy: +geoffreyspear
___
Python tracker
Kiss György added the comment:
Thanks for the tip! That looks much better.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22339
___
___
Barry A. Warsaw added the comment:
One thing I really do not like about Rob's last patch is that it exacerbates
the documentation discrepancy for loadTestsFromModule(). As previously
mentioned, use_load_tests arg was already not documented, and now the patch
adds another undocumented pattern
Steve Dower added the comment:
Right, what the prefix actually means is treat this path as a blob and don't
do any processing. Some of the things that 'processing' includes are:
* CWD
* invalid names ('foo.' - 'foo')
* adjacent backslashes ('a\\b' - 'a\b')
* forward slashes ('a/b' - 'a\b')
*
Guido van Rossum added the comment:
It looks like this feature request tries to change an existing (ancient) module
into something it isn't. At the very least can you point to a spec for the
syntax of POSIX config files? I always thought they were essentially shell
scripts, which suggests
Andres Riancho added the comment:
Well, closing this as wont-fix is far from ideal. +4 years have past from the
last activity in this issue but people are still being hit by this issue.
In my case I'm not creating any special sub-class, I just use one of Python's
built-in libs:
```python
Barry A. Warsaw added the comment:
pattern will have to be documented and accepted as official API
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16662
___
Barry A. Warsaw added the comment:
So, I think what I'm going to do is change the sig of the method to:
def loadTestsFromModule(self, module, *args, pattern=None, **kws):
I.e. the new `pattern` arg will be keyword-only. *args and **kws will be parsed
for use_load_tests usage and a
Andres Riancho added the comment:
Django's issue [0] shows the ugly code people write to work around this python
bug.
[0] https://code.djangoproject.com/ticket/15863
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue826897
Guido van Rossum added the comment:
Then let's close this issue.
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22353
___
Changes by Andres Riancho andres.rian...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue826897
___
___
Changes by Andres Riancho andres.rian...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue826897
___
___
Paul Moore added the comment:
It's not unreasonable as a new feature, but the default behaviour shouldn't
change. It matches ini files (like it or not, ConfigParser parses ini-style
files - the docs even say so), and sectionless values are not standard ini
format.
I'd suggest a new __init__
New submission from Alex Gaynor:
Instead of the ca* arguments it currently takes, these can all be encapsulated
into an SSLContext argument, which the underlying http.client already supports.
--
components: Library (Lib)
messages: 226594
nosy: alex, christian.heimes, dstufft,
Alex Gaynor added the comment:
Attached patch against the default branch adds support for this.
--
keywords: +needs review, patch
Added file: http://bugs.python.org/file36573/urlopen-context.diff
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset d0ff527c53da by Barry Warsaw in branch 'default':
- Issue #16662: load_tests() is now unconditionally run when it is present in
http://hg.python.org/cpython/rev/d0ff527c53da
--
nosy: +python-dev
___
Changes by Barry A. Warsaw ba...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16662
___
Jeffrey Armstrong added the comment:
Is this patch going to be accepted? It fixes actual incorrect code in msilib,
and it seems to have stagnated
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21931
Jeffrey Armstrong added the comment:
Was this ever accepted?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20597
___
___
Python-bugs-list
Steven D'Aprano added the comment:
I'm dubious about this issue. It suggests that the wording of the exceptions is
part of the API of the two modules.
If the idea is just to copy the best error messages from one module to the
other, then I guess there is no harm. But if the idea is to
Robert Collins added the comment:
Thanks for landing this barry, there's a couple quirks with your improvements -
loadTestsFromModule(mod, foo, bar) will raise a TypeError but not warn about
foo the way loadTestsFromModule(mod, foo) will.
Secondly, the TypeError has an off-by-one error in its
Robert Collins added the comment:
OH! One more thing I just spotted, which is that this change causes
non-'discover' unittest test loading to invoke load_tests.
IMO this is the Right Thing - its what I intended when I described the protocol
a few years back, but we should document it, no?
Terry J. Reedy added the comment:
Alexandre or Antoine, do either of you want to either reopen or verify that
this dict subclass pickle issue was properly closed as won't fix?
--
nosy: +alexandre.vassalotti, pitrou
___
Python tracker
Robert Collins added the comment:
Its more than just a docs issue - AFAICT it isn't possible to tell if closefd
is set after the object is created.
The presence of the parameter in the signature is there, but it isn't
documented *where the bulk of the FileIO parameters are* - there are docs
Michael Foord added the comment:
I agree, load_tests should be honoured even when not invoked through discovery.
If that wasn't the case it was an unfortunate oversight on my part!
--
___
Python tracker rep...@bugs.python.org
Andres Riancho added the comment:
FYI, I'm using Python 2.7.6
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue826897
___
___
Python-bugs-list
paul j3 added the comment:
When I apply `prog3.diff` to my 3.5.0dev, and run
python3 -m unittest Lib/test/test_argparse.py
I get 2 failures, both over 'usage: python3 -m [unit]test'.
It also fails with
python3 test_argparse.py
I suspect it would also fail if I ran the tests with
Robert Collins added the comment:
Oh - the the 'open' function docs are fine - they are just a pointer. I was
specifically referring to the class docs around line 513 of Doc/library/io.rst.
Attached is a patch that changes repr to show this attribute and extends the
docs to document this as
Serhiy Storchaka added the comment:
No, issue12728 is more complicate case.
Here is a patch which fixes this issue and issue3511.
--
assignee: - serhiy.storchaka
keywords: +patch
stage: - patch review
versions: +Python 3.4, Python 3.5 -Python 3.3
Added file:
Alex Gaynor added the comment:
Added a versionchanged directive to the docs.
--
Added file: http://bugs.python.org/file36576/urlopen-context.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22366
New submission from Andrew Lutomirski:
Linux 3.15 and newer support a vastly superior API for file locking, in which
locks are owned by open file descriptions instead of by processes. This is how
everyone seems to expect POSIX locks to work, but now they can finally work
that way.
Please
Robert Collins added the comment:
@michael - ah I think I inverted the sense of the old parameter. It was
defaulting True. So - no need to document anything extra:)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16662
Robert Collins added the comment:
Here is an implementation. I'm probably missing some finesse in the docs.
--
keywords: +patch
Added file: http://bugs.python.org/file36577/issue19746.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 92b292d68104 by Barry Warsaw in branch 'default':
A few tweaks for issue16662 based on feedback from Robert Collins.
http://hg.python.org/cpython/rev/92b292d68104
--
___
Python tracker
Robert Collins added the comment:
I've just put a patch up for the related issue http://bugs.python.org/issue19746
I'll poke at this one briefly now, since I'm across the related code.
--
___
Python tracker rep...@bugs.python.org
Josh Rosenberg added the comment:
Can you explain what benefit this would provide? Forcing the thread to exit
gets you relatively little benefit. If it's an infrequently used executor, I
suppose you avoid the cost of leaving worker threads blocked waiting for work,
but that cost is tiny, and
Robert Collins added the comment:
Ok, here is an implementation that I believe covers everything Michael wanted.
I examined the other patches, and can rearrange my implementation to be more
like them if desired - but at the heart of this this bug really has two
requested changes:
- deferred
Robert Collins added the comment:
@Terry in principle you're right, there are an arbitrary number of things that
can go wrong, but in practice what we see is either catastrophic failure where
nothing is loaded at all *and* no error is returned or localised failure where
the deferred reporting
Changes by Ned Deily n...@acm.org:
--
nosy: +bquinlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22361
___
___
Python-bugs-list mailing list
Zacrath added the comment:
This assert statement is only reached when the usage line is long enough that
it needs to be wrapped. Which is why the assertion does not happen when an
argument is removed.
opt_usage is being compared to this string:
[-h] [--arg2 ARG2] [--arg3 ARG3] [--arg4 ARG4]
Alex Gaynor added the comment:
New patch switches to a ValueError and includes a test case that it's raised.
--
Added file: http://bugs.python.org/file36580/urlopen-context.diff
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
You missed my point, which is that tools consuming subunit streams are already
able to consider 'no tests found' to be an error. Conversely, when I run the
suite on my Windows box, I usually consider only 1 or 2 errors to be success.
After unittest reports
Terry J. Reedy added the comment:
The MS function GetPrivateProfileString appears to require sections.
http://msdn.microsoft.com/en-us/library/ms724353.aspx
On the other hand, it does not appear to do interpolation, so we have already
not restricted ourselves to the MS function.
In looking
Christoph Wruck added the comment:
David, I'll reflect on it. @ALL - Thank's for all answers.
Should I close this ticket?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22360
___
paul j3 added the comment:
In argparse.py, I would put a utility function like `_prog_name` near the start
in the 'Utility functions and classes' block.
In test_argparse.py, I don't see the purpose of the `progname` changes in the
TestParentParsers class. That class wasn't producing an
82 matches
Mail list logo