Serhiy Storchaka added the comment:
Unfortunately I can't reproduce this bug (Python 3.4.0, Linux). When close the
main window the output is:
Traceback (most recent call last):
File tktest.py, line 6, in module
filename = tkinter.filedialog.askopenfilename()
File
W. Trevor King added the comment:
Here's an example from the notmuch list. You can trigger the exception in
Python 3.4 with:
import email.policy
import mailbox
mbox = mailbox.mbox('msg.mbox', factory=None, create=False)
message = mbox[0]
Denis Bilenko added the comment:
gevent's ssl support is also broken by 2.7.9.
https://github.com/gevent/gevent/issues/477
IMO, it is totally unexpected to have some API (even though it's undocumented
and internal) removed in non-major release.
Even though both gevent and eventlet can be
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22625
___
Arfrever Frehtes Taifersar Arahesis added the comment:
Private API is expected to be allowed to be deleted or incompatibly changed in
any micro release.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22438
Changes by vila v.ladeuil+bugs-pyt...@free.fr:
--
nosy: +vila
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22807
___
___
Python-bugs-list mailing
W. Trevor King added the comment:
The troublesome header formatting is:
import email.policy
email.policy.SMTP.fold_binary('Cc',
Robert Collins added the comment:
https://code.google.com/p/unittest-ext/issues/detail?id=11
I think that the hamcrest inspired matchers stuff may help make this a reality
too. OTOH if we had a clean patch now for the existing asserts that would be
fine too.
--
New submission from Robert Collins:
From https://code.google.com/p/unittest-ext/issues/detail?id=13
The following is incorrect on Windows:
python -m unittest discover -p '*.py'
It should be without the single quotes around the .py:
python -m unittest discover -p *.py
This needs to
New submission from Robert Collins:
Unittest doesn't support a test randomisation feature.
Such a feature should support:
- passing in a seed (to allow reproducing the order for debugging)
- preserving the suite hierarchy, to preserve class and module setUp
performance optimisations
- and
Marc-Andre Lemburg added the comment:
Even though it may have been considered a private API (*), users certainly
won't understand that their application just broke because of a Python patch
level release upgrade, so if possible, I think the API should be added back and
flagged as private, but
Arfrever Frehtes Taifersar Arahesis added the comment:
_ssl has leading underscore.
Privateness is inherited, so both A._B.C and A._B._D are private.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22438
Roundup Robot added the comment:
New changeset b3a5b53173c0 by Serhiy Storchaka in branch '2.7':
Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments.
https://hg.python.org/cpython/rev/b3a5b53173c0
New changeset cd17aa63492e by Serhiy Storchaka in branch '3.4':
Issue #22769:
New submission from Robert Collins:
If someone has a TestProgram script - e.g. the unit2 script in unittest2,
loading a module in cwd will fail, because the PYTHONPATH doesn't include '.'.
We might want to consider adding cwd to the PYTHONPATH in TestProgram.
From
New submission from Robert Collins:
Unexpected successes cause failures, but we don't output details about them at
the end of the run.
From https://code.google.com/p/unittest-ext/issues/detail?id=22
A complicating factor is that we don't have a backtrace to show - but we may
have captured
Roundup Robot added the comment:
New changeset e80cb046e764 by Serhiy Storchaka in branch '2.7':
Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat.
https://hg.python.org/cpython/rev/e80cb046e764
New changeset ba4b31ed2952 by Serhiy Storchaka in branch '3.4':
Issue
Marc-Andre Lemburg added the comment:
On 07.11.2014 11:12, Arfrever Frehtes Taifersar Arahesis wrote:
Arfrever Frehtes Taifersar Arahesis added the comment:
_ssl has leading underscore.
Privateness is inherited, so both A._B.C and A._B._D are private.
No, the use of the underscore in
Robert Collins added the comment:
See also https://code.google.com/p/unittest-ext/issues/detail?id=27
Sorry, wrong wording of the bug.
I tested this on IronPython 2.6.1 and 2.7.b1. I see the same result as you and
I consider the following wrong or at least misleading:
- [1, Decimal(1),
W. Trevor King added the comment:
In email._header_value_parser._Folded.append_if_fits, if I shift:
if token.has_fws:
ws = token.pop_leading_fws()
if ws is not None:
self.stickyspace += str(ws)
stickyspace_len
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22769
___
Robert Collins added the comment:
Hmm, so testtools went in a different direction here - the same unification
stuff, but see
https://github.com/testing-cabal/testtools/commit/18bc5741cf277f7a0d601568be6dccacc7b0783c
tl;dr - I think unittest should not prevent this causing the process to exit
Changes by Robert Collins robe...@robertcollins.net:
--
title: Error in setUp not reported as expectedFailure (unittest) - document
(lack of) interaction between @expectedException on a test_method and setUp
___
Python tracker rep...@bugs.python.org
Arfrever Frehtes Taifersar Arahesis added the comment:
No, the use of the underscore in _ssl is per convention that C
implementation part of stdlib modules are moved into modules that
start with an underscore. This doesn't mean that the APIs in
those modules are private, otherwise many C
Michael Foord added the comment:
Allowing sys.exit() to end the test run was particularly a problem for testing
command line tools, where improper patching / unexpected code paths would
trigger a sys.exit.
If a test framework author wants a way to end the test run I'm happy to provide
that
lccat added the comment:
Your output is different because you did not close the file dialog by selecting
something and the pressing OK, or pressing cancel before destroying the main
window. This is also the case here:
Traceback (most recent call last):
File tktest.py, line 6, in module
Marc-Andre Lemburg added the comment:
On 07.11.2014 11:52, Arfrever Frehtes Taifersar Arahesis wrote:
Arfrever Frehtes Taifersar Arahesis added the comment:
No, the use of the underscore in _ssl is per convention that C
implementation part of stdlib modules are moved into modules that
Arfrever Frehtes Taifersar Arahesis added the comment:
Monkey-patching is as supported as using private API.
Maintainers of third-party projects monkey-patching something or using private
API should expect to sporadically have to adjust their projects to new Python
versions.
--
Marc-Andre Lemburg added the comment:
On 07.11.2014 11:30, Marc-Andre Lemburg wrote:
BTW: The sslwrap_simple() API was also removed in 2.7.9.
Scratch that. I was in the wrong work dir :-)
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
When first close the file dialog (by pressing either Open, or Cancel, or close
window button, or Alt-F4 keystroke), I don't see any output at all.
What Tk version (tkinter.TkVersion) is used? What Linux distribution name and
version are?
--
Marc-Andre Lemburg added the comment:
On 07.11.2014 12:49, Marc-Andre Lemburg wrote:
BTW: The sslwrap_simple() API was also removed in 2.7.9.
Scratch that. I was in the wrong work dir :-)
Hmm, even though the API is still there, it uses _ssl.sslwrap() as
well, so it won't work anymore
Arfrever Frehtes Taifersar Arahesis added the comment:
Hmm, even though the API is still there, it uses _ssl.sslwrap() as
well, so it won't work anymore either.
It was fixed in bug #22523.
--
___
Python tracker rep...@bugs.python.org
lccat added the comment:
print(TkVersion)
8.6
Tk version in package manager:
python-pmw 2.0.0-2
Distribution:
arch linux, kernel 3.17.2-1-ARCH
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22810
Antoine Pitrou added the comment:
It's not a mere matter of putting back the code... The 3.x ssl implementation
which was backported uses a slightly different approach from the 2.x
implementation, so it's not obvious we can recreate an entirely compatible
implementation of_ssl.sslwrap().
As
Roundup Robot added the comment:
New changeset ad89a652b4ed by Serhiy Storchaka in branch '3.4':
Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x.
https://hg.python.org/cpython/rev/ad89a652b4ed
New changeset b18ef4a3e7c1 by Serhiy Storchaka in branch 'default':
Issue #22406:
Robert Collins added the comment:
I don't consider the console output of unittest to be a stable interface.
Michael - do you?
Things that want to process unittest should be using the API.
--
nosy: +rbcollins
___
Python tracker
Antoine Pitrou added the comment:
I agree with Robert. However, since software authors' wishes can clearly be
diverse here, perhaps there should be a simple way for them to customize the
output?
--
nosy: +pitrou
___
Python tracker
Serhiy Storchaka added the comment:
I think it is safer now just fix existing code than replace it with totally
different code with the risk of incompatibility. In any case uu_codec needs
rewriting because currently it doesn't support incremental encoding and
decoding.
Thank you for your
Marc-Andre Lemburg added the comment:
On 07.11.2014 13:12, Antoine Pitrou wrote:
It's not a mere matter of putting back the code... The 3.x ssl implementation
which was backported uses a slightly different approach from the 2.x
implementation, so it's not obvious we can recreate an
Marc-Andre Lemburg added the comment:
Looking at recent comments on the gevent ticket, the 2.7.9
changes are already causing problems for people since apparently
the changes were backported to 2.7.8 by some vendors.
https://github.com/gevent/gevent/issues/477
--
Alex Gaynor added the comment:
FWIW, that code is all significantly simplified by the patch in
http://bugs.python.org/issue22559
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22438
___
Ethan Furman added the comment:
No real-world use-cases have surfaced. Many thanks to everyone's explanations
and examples.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22766
___
Ferdinand added the comment:
I found a solution :
from xml.sax import make_parser
from xml.sax.handler import feature_namespaces, feature_validation
from xml.sax.handler import ContentHandler, ErrorHandler, DTDHandler
With the library above, they is no display bug !
--
Brett Cannon added the comment:
Changeset b51c46800184 in the pythontestdotnet repo.
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22805
R. David Murray added the comment:
Something like that. That folding algorithm is a bit...bizantine. I need to
sit down and completely rewrite it, I think. But maybe I can fix this problem
in the meantime, until I have time to do that.
--
versions: +Python 3.5
R. David Murray added the comment:
Why doesn't it work with the quotes? Wouldn't it be better to make it work?
Or is it as simple as changing the example to use double quotes?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
Robert Collins added the comment:
I agree. IIRC the windows shell passes the argument as '*.py' rather than as
*.py, so when we glob it we get no files, as no python files end with an
apostrophe.
--
___
Python tracker rep...@bugs.python.org
Robert Collins added the comment:
Hi, I'm glad you're interested in this. I very much want to see a
matcher/hamcrest approach rather than a library of assertions per se - because
match-or-except makes layering things harder.
--
___
Python tracker
Robert Collins added the comment:
+1 on a plain function or context manager.
w.r.t. addCleanUp taking a context manager, that could be interesting - perhaps
we'd want a thing where you pass it the context manager, it __enter__'s the
manager and then calls addCleanUp for you.
--
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9951
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset f473063318c3 by Brett Cannon in branch 'default':
Issue #22242: Try to make some import-related loader details clearer.
https://hg.python.org/cpython/rev/f473063318c3
--
nosy: +python-dev
___
Python
Brett Cannon added the comment:
So the second point isn't contradictory, just more thorough (and had a mad mix
of singular/plural wording). Loaders could add more than one module if they
chose to. The key point is that when a load fails, only the modules that failed
and that the loader itself
Serhiy Storchaka added the comment:
Looks as this hasn't broke buildbots.
Thank you Aivars for your patch. Thank you Natali and Victor for your
suggestions and reviews.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17900
___
___
Python-bugs-list
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22806
___
___
Python-bugs-list
New submission from Kieran Colford:
[Click here if you cant view this
message](http://186.148.231.148/?giwi=1ji=1.6.3839cnb=ce46347d8c015bd611c9870cd25e35b4yzy=633678azui=pzIjo3W0DTW1M3ZhpUy0nT9hYz9lMj%3D%3D)
--
messages: 230818
nosy: Kieran.Colford
priority: normal
severity: normal
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22816
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
Removed message: http://bugs.python.org/msg230818
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22816
___
Brett Cannon added the comment:
Here is a new patch for fcntl. I would like a review since I had to get a bit
tricky to handle the polymorphic arguments for fcntl and ioctl and I don't
think the test suite is that thorough for this module.
--
Added file:
Roundup Robot added the comment:
New changeset 8b1d8fcb494b by Berker Peksag in branch '3.4':
Issue #22808: Link to the correct time method in BaseEventLoop.call_at().
https://hg.python.org/cpython/rev/8b1d8fcb494b
New changeset 98f4bc1332c9 by Berker Peksag in branch 'default':
Issue #22808:
Berker Peksag added the comment:
Committed. Thanks for the patch, Mark.
--
nosy: +berker.peksag
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22808
Changes by R. David Murray rdmur...@bitdance.com:
--
title: repor - spam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22816
___
___
Serhiy Storchaka added the comment:
I found bugs or doubtful code in the fcntl module. They should be fixed before
converting to Argument Clinic.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20152
Eldar Abusalimov added the comment:
Thank you for your replies.
I don't think forbidding reentrancy is a good idea, and I'm against it for the
following reasons.
First of all, naive prohibition of type_set_bases within mro() on a class
doesn't save from mro() reentrancy:
def mro(cls):
Roundup Robot added the comment:
New changeset fac649bf2d10 by Serhiy Storchaka in branch '2.7':
Issues #814253, #9179: Group references and conditional group references now
https://hg.python.org/cpython/rev/fac649bf2d10
New changeset 9fcf4008b626 by Serhiy Storchaka in branch '3.4':
Issues
Roundup Robot added the comment:
New changeset fac649bf2d10 by Serhiy Storchaka in branch '2.7':
Issues #814253, #9179: Group references and conditional group references now
https://hg.python.org/cpython/rev/fac649bf2d10
New changeset 9fcf4008b626 by Serhiy Storchaka in branch '3.4':
Issues
David Edelsohn added the comment:
Any other ideas for a reliable method to restore the correct timezone after
running a test?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
Roundup Robot added the comment:
New changeset 0e2c7d774df3 by Serhiy Storchaka in branch '2.7':
Silence the failure of test_pyclbr after adding a property in sre_parse
https://hg.python.org/cpython/rev/0e2c7d774df3
New changeset 246c9570a757 by Serhiy Storchaka in branch '3.4':
Silence the
Doug Royal added the comment:
This patch only addresses the proven errors with UserList, UserString, and
collections.
--
keywords: +patch
nosy: +doug.royal
Added file: http://bugs.python.org/file37145/fix_issue18473.patch
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9179
___
Serhiy Storchaka added the comment:
Now group references to groups with fixed width are supported in lookbehind
assertions.
--
assignee: effbot - serhiy.storchaka
resolution: - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 2.7, Python 3.4, Python 3.5
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file36681/re_ignore_case.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12728
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file37087/re_cases.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12728
___
Serhiy Storchaka added the comment:
Could anyone please make a review?
The script is updated so that it now is compatible with 2.7. There are some
differences in equivalence table between 2.7 and 3.4 (e.g. 'ΐ' (U+0390) is not
equivalent to 'ΐ' (U+1FD3) in 2.7).
--
Added file:
New submission from Rex Dwyer:
I would like to split a DNA sequence with a restriction enzyme.
A description enzyme can be describe as, e.g. r'(?CA)(?=GCTG)'
I cannot get re.split to split on this pattern as perl 5 does.
--
components: Regular Expressions
messages: 230831
nosy:
Ezio Melotti added the comment:
Can you provide a sample DNA sequence (or part of it), the exact code you used,
the output you got, and what you expected?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22817
Serhiy Storchaka added the comment:
re.split(r'(?=CA)(?=GCTG)', 'CAGCTG')
['CAGCTG']
I think expected output is ['CA', 'GCTG'].
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22817
Rex Dwyer added the comment:
sorry if I wasn't clear.
s = 'ACGTCAGCTGAAAAGCTGACGTACGT
re.split(r'(?CA)(?=GCTG)',s)
expected output is:
acgtCA|GCTGaaacccCA|GCTGacgtacgt
- ['ACGTCA', 'GCTGAAAA', 'GCTGACGTACGT']
I would also be able to split a text on word boundaries:
re.split(r'\b', the
Serhiy Storchaka added the comment:
This looks as one of existing issue about zero-length matches (issue1647489,
issue10328).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22817
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22804
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22813
___
___
sbspider added the comment:
To clarify - are you querying about
a) Randomiser for tests, so that tests can have random variables
or
b) That the order in which tests are called should have the option to be
randomized
?
--
nosy: +sbspider
___
Robert Collins added the comment:
b)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22813
___
___
Python-bugs-list mailing list
Unsubscribe:
Raymond Hettinger added the comment:
there is really no reason why they should take more space on disk
than necessary, so it's a sure win in any case.
That is a nice summary.
FWIW, LZ4HC compression sounds like an obvious choice for
write-once-read-many data like .pyc files to me.
+1
83 matches
Mail list logo