Tal Einat added the comment:
It seems that the unicodedata module already supplies relevant functions which
can be used for this. For example, we can replace char in
self._id_first_chars with something like:
from unicodedata import normalize, category
norm_char = normalize(char)[0]
Tal Einat added the comment:
Bah, I messed up the code sample in my previous message. It was supposed to be:
from unicodedata import normalize, category
norm_char_first = normalize(char)[0]
is_id_first_char = (
norm_char_first == '_' or
category(norm_char_first) in {Lu, Ll, Lt, Lm, Lo,
Aymeric Augustin added the comment:
Jim, I believe this API decision doesn't affect the patch in a major way.
I'll write the rest of the patch and the committer who reviews it will decide.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
I meant what you said in your last paragraph -- not passing a value for the new
parameter would keep current behavior.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21756
Serhiy Storchaka added the comment:
You can use deflate for Python files and advanced compression methods for large
well-compressable package data.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21751
New submission from Claudiu Popa:
There's no 'o' in test_pydoc.TestDescriptions.test_builtin, but 'name'.
--
components: Tests
files: test_pydoc_nameerror.patch
keywords: patch
messages: 220618
nosy: Claudiu.Popa
priority: normal
severity: normal
status: open
title: Fix a NameError in
New submission from Claudiu Popa:
Hi. Here's a patch which uses `self.fail` in test_descr instead of `raise
TestFailed`.
--
components: Tests
files: test_descr_nameerror.patch
keywords: patch
messages: 220619
nosy: Claudiu.Popa
priority: normal
severity: normal
status: open
title: Fix
STINNER Victor added the comment:
IMO it's fine to support bytes on UNIX, os.fsencode() is well defined. On
Windows, we may use the same decoder.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21758
Terry J. Reedy added the comment:
I checked for usage: _id(_first)_chars is only used in _eat_identifier, which
is used in one place in get_expression. That is called once each in
AutoComplete and CallTips. Both are seldom visible accept as requested (by
waiting, for calltips). Calltips is
New submission from Claudiu Popa:
Using make_zip_pkg from script_helper with compiled=True will lead to the
following failure:
Traceback (most recent call last):
File D:\Projects\cpython\lib\test\test_cmd_line_script.py, line 305, in
test_module_in_subpackage_in_zipfile
zip_name,
Marc-Andre Lemburg added the comment:
On 15.06.2014 01:53, Nick Coghlan wrote:
Can we just drop __file__ and set the origin for frozen modules to
something that includes the original file name?
This wouldn't really help, because too much code out there uses
the __file__ attribute and
Uwe added the comment:
problem is solved
observation
- installer problem only occurred on win7 32 bit with prior python installation
(my working system)
- When repeating the installer problem I noticed that a window was opened very
shortly with python.exe running. An error message from this
Saimadhav Heblikar added the comment:
A small bug in line 185 in keybindingDialog.py. 'F2' appears twice and 'F3' is
missing. Since this is a typo, I did not create a new issue.
--
___
Python tracker rep...@bugs.python.org
Tal Einat added the comment:
AutoComplete isn't doing hidden checks. My concern is that auto-completion
happens automatically and the parsing is done synchronously, so if the parsing
takes a significant amount of time it can cause a delay long enough to be
noticeable by users. We should also
Mark Lawrence added the comment:
Just making sure this hasn't slipped under the radar.
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18507
Mark Lawrence added the comment:
@Nick would you like or even need this in 3.5?
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14017
Mark Lawrence added the comment:
Could we have a review of the latest path from Xavier please.
Aside, msg172160 add Windows project file for _sha3 module. I choose to build
_sha3 as a sparat module as it's rather large (190k for AMD64)., presumably
Christian mistyped an issue number?
Mark Lawrence added the comment:
What's the status of this issue, as we've lived with this really slow
implementation for well over three years?
--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3
___
Python tracker
Mark Lawrence added the comment:
I've guessed at the versions impacted, assuming of course that the change
proposed inline in msg166915 is acceptable. I'm sorry but I don't know who is
best qualified to put on the nosy list for this issue.
--
nosy: +BreamoreBoy
versions: +Python 2.7,
Mark Lawrence added the comment:
I'd like to see this feature as I've been using IDLE quite a lot recently and
I'm so used to seeing it in other IDEs.
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
On 15.06.2014 15:02, Mark Lawrence wrote:
What's the status of this issue, as we've lived with this really slow
implementation for well over three years?
I guess it just needs someone to write a patch.
Note that encoding lookups are cached, so the slowness only
becomes an issue if you
Mark Lawrence added the comment:
Is this still a problem given that we're two years on and up to Python 2.7.7?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14540
___
Mark Lawrence added the comment:
@Serhiy will you follow up on this?
--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15954
Mark Lawrence added the comment:
The OP is happy with the proposed doc patch so can we have this committed
please.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13779
Mark Lawrence added the comment:
@David can we have your comments please.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21095
___
Mark Lawrence added the comment:
Is this still a problem with tcl/tk 8.6?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10118
___
New submission from Uwe Kleine-König:
The name of the 2nd parameter to itertools.groupby() is documented
inconsitently. Sometimes it's key, sometimes keyfunc. The code actually
uses key, so I adapted all occurences I found to key.
from itertools import groupby
groupby.__doc__
Mark Lawrence added the comment:
A simple patch is attached so could someone take a look please, thanks.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16181
___
Mark Lawrence added the comment:
Can someone take a look please as nobody is given against http in the experts
index.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15025
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: - patch review
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16181
___
Mark Lawrence added the comment:
I'll let our Windows gurus fight over who gets this one :)
--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16587
Mark Lawrence added the comment:
Do we have a consensus as to whether or not David's proposed solution is
acceptable?
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14534
Mark Lawrence added the comment:
Can this be closed given msg169859 and msg169861?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15476
___
Mark Lawrence added the comment:
Could somebody review the attached patch please.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15680
___
R. David Murray added the comment:
I have to look at the implementation to remind myself how hard this would be to
implement. The goal was to leave Header a legacy API...if you need that level
of control, you use the old API. But I can see the functionality argument, and
Header *is* a
R. David Murray added the comment:
I don't think that's true, though. file like pretty much means has the file
attributes that I actually use. That is, it is context dependent (duck
typing).
I'm also not sure I see the point in the change. It is inherent in the
definition of what ABCs
R. David Murray added the comment:
It's Michael's solution that is under consideration, and I guess no one has
felt strongly enough about having it to write a patch. So this issue stays in
limbo until someone does.
--
___
Python tracker
Mark Lawrence added the comment:
Can someone review the latest patch please as it's only five additional lines
of C code.
--
nosy: +BreamoreBoy, steve.dower, zach.ware
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker
Mark Lawrence added the comment:
As XP is now out of support here are links
http://legacy.python.org/dev/peps/pep-0011/#microsoft-windows
http://support.microsoft.com/lifecycle/ that I hope come in useful.
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3
Terry J. Reedy added the comment:
I have never actually used this feature, and I do not see it in Notepad++. I
worry that some people, especially beginners with no experience of this
'feature' would hate this, so it would have to be optional.
Do you literally mean 'parentheses' or also square
Mark Lawrence added the comment:
Is the patch acceptable?
--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11717
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
components: -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4918
Tal Einat added the comment:
I like the idea, though it's really just nice to have. This is a very common in
IDEs these days, and whoever finds it annoying will be able to disable it.
If we do this, we should go all the way and close square and curly brackets,
parenthesis, and quotes
New submission from Tor Colvin:
platform.uname() periodically spews EINTR errors on mac - so use
subproces.communicate() which is EINTR safe after
http://bugs.python.org/issue1068268
Calling f.read() on naked os.open() output can produce IOError: [Errno 4]
Interrupted system call. Attached
Vinay Sajip added the comment:
Isn't __code__ implementation-specific?
Further data point: the contents of __code__ might be implementation-specific
(as there are no other Python 3 implementations), but the 2.x equivalent,
func_code, is to be found in CPython, Jython, IronPython and PyPy,
Terry J. Reedy added the comment:
Mark, On Windows, 3.4 comes with tck/tk 8.6. I am guessing that you built not
on windows. In any case, tkinter has had several patches since you last posted,
not all backported to 2.7, so an updated report with 3.4 or 3.5 and 8.6 would
help delineate the
Mark Lawrence added the comment:
Is this ever likely to get applied given the arrival of asyncio?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9693
___
Mark Lawrence added the comment:
Is it worth applying the latest patch given that asynchat is deprecated in
favour of asyncio?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6911
Mark Lawrence added the comment:
Would somebody review the attached patch please.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18959
___
Terry J. Reedy added the comment:
There is no entry for 'code object' (unlike, for instance 'class object').
There is an entry for 'code' and a subentry for 'object' with four links.
The fourth link is to the short definition in the library manual:
Mark Lawrence added the comment:
I think msg160322 and msg160339 are saying this isn't an issue. If I'm correct
it can be closed. If I'm wrong who is best placed to provide the needed patch?
--
nosy: +BreamoreBoy
___
Python tracker
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: -terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1102
___
___
Python-bugs-list
Nikolaus Rath added the comment:
As discussed on python-devel, I'm attaching a new patch that uses
memoryview.cast to ensure that the pure-Python readinto() now works with any
object implementing the buffer protocol.
--
Added file: http://bugs.python.org/file35647/issue20578_r5.diff
Nikolaus Rath added the comment:
On 06/15/2014 08:29 AM, R. David Murray wrote:
I don't think that's true, though. file like pretty much means has the
file attributes that I actually use. That is, it is context dependent (duck
typing).
Well, but when you pass your file-like object to
Tal Einat added the comment:
Well, I was wrong. I can't find anything of the sort in my old IDLE files.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18875
___
Nikolaus Rath added the comment:
(refreshed patch, no changes)
--
Added file: http://bugs.python.org/file35648/issue20578_r6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20578
___
Mark Lawrence added the comment:
@Benjamin could you review the patch please.
--
nosy: +BreamoreBoy
type: - behavior
versions: +Python 2.7, Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8029
Serhiy Storchaka added the comment:
I have no Windows and can't provide relevant test case.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15954
___
Mark Lawrence added the comment:
As codecs.py has changed I've generated a patch file which adds the missing
parameters. I looked at test_codecs.py but could only find one reference to
the StreamReaderWriter class in WithStmtTest. I'm sorry but I'll have to leave
writing tests for
New submission from Claudiu Popa:
There's a bug in test_enum.TestStdLib.test_pydoc, print_diffs is undefined and
using assertEqual seems to be clearer.
--
components: Tests
files: test_enum.patch
keywords: patch
messages: 220669
nosy: Claudiu.Popa, ethan.furman
priority: normal
Changes by Claudiu Popa pcmantic...@gmail.com:
--
stage: test needed - patch review
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19714
___
Mark Lawrence added the comment:
@Senthil Kumaran/orsenthil can you pick this up as implied in msg107919?
--
nosy: +BreamoreBoy
type: - enhancement
versions: +Python 3.5 -Python 3.2
___
Python tracker rep...@bugs.python.org
Claudiu Popa added the comment:
Attached a new version of the patch. The previous one called find_spec twice in
the same test.
--
Added file: http://bugs.python.org/file35651/issue19714_2.patch
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
nosy: +doko
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15506
___
___
Python-bugs-list mailing list
Changes by Ned Deily n...@acm.org:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21771
___
___
Python-bugs-list mailing list
Changes by Ned Deily n...@acm.org:
--
nosy: +lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21772
___
___
Python-bugs-list mailing list
Mark Lawrence added the comment:
@Serhiy you don't need Windows, msg170593 refers to a Linux man page. Reading
your msg170595 I'd guess that you've got confused with a similar function that
is Windows specific.
--
___
Python tracker
New submission from Claudiu Popa:
Hi. This patch fixes a NameError found in xml.dom.minidom. Here's an example
for reproducing it:
from xml.dom import minidom
dom = minidom.parseString(a1/a)
pi = dom.createProcessingInstruction('xml-stylesheet',
Raymond Hettinger added the comment:
There is a bit an inconsistency but it is more helpful than harmful most of the
time. The glossary defines a key-function which is used in a number of places
such such as sorted(), min(), nsmallest() and others. In all those cases, the
parameter for the
Nadeem Vawda added the comment:
Sorry, I just haven't had any free time lately, and may still not be able
to give this the attention it deserves for another couple of weeks.
Serhiy, would you be interested in reviewing Nikolaus' patch?
--
___
Python
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21774
___
New submission from Greg Ward:
When using shutil.copytree() on Linux to copy to a VFAT filesystem, it crashes
like this:
Traceback (most recent call last):
File /data/src/cpython/3.4/Lib/shutil.py, line 336, in copytree
copystat(src, dst)
File /data/src/cpython/3.4/Lib/shutil.py, line
Greg Ward added the comment:
In 3.3 and earlier, copytree() crashes roughly as described in issue1545, with
shutil.Error that wraps the underlying Operation not permitted error from
trying to chmod() something in a VFAT filesystem. Since this appears to
accurately reflect what's coming from
Mark Lawrence added the comment:
Given the rise of the 64 bit machine I'd guess that this needs completing
sooner rather than later. I'd volunteer myself but I've never heard of the '#'
format codes, let alone know anything about them :-(
--
nosy: +BreamoreBoy
Greg Ward added the comment:
Bad news: because reproducing this requires sudo (to mount an arbitrary
filesystem), I'm not sure it's possible/desirable to add test code for it.
Good news: the fix is trivial, and it passes my manual test. Here's a patch:
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
Nick Coghlan added the comment:
Asking the question Does it quack and walk *enough* like a duck for my
code to work and my tests to pass? is part of the nature of ducktyping.
ABCs are definitely a useful guide to expectations, but even there it's
possible to lie to the interpreter and have
Roundup Robot added the comment:
New changeset ca33faa214ab by Raymond Hettinger in branch '3.4':
Issue #21774: Fix incorrect variable in xml.dom.minidom
http://hg.python.org/cpython/rev/ca33faa214ab
--
nosy: +python-dev
___
Python tracker
Raymond Hettinger added the comment:
Thanks for the patch.
I'm curious how did you notice this?
--
resolution: - fixed
status: open - closed
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21774
Claudiu Popa added the comment:
My pleasure. I run Pylint from time to time over stdlib in order to find false
positives for Pylint and in the process I stumble across these type of bugs.
--
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
I'm guessing that a patch to ceval.c that's this old wouldn't apply cleanly
now. I'll rework it but only if the changes are highly likely to be accepted.
Given the mixed results previously reported this is not guaranteed. Opinions
please.
--
nosy:
Nikolaus Rath added the comment:
Maybe I'm missing some important point here, but I think that the documentation
ought to tell me how I have to design a file-like object such that it fulfills
all expectations of the standard library.
Yes, you can get away with less than that in many
Changes by William Ehlhardt williamehlha...@gmail.com:
--
nosy: +Orborde
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15795
___
___
R. David Murray added the comment:
Thanks Caelyn. This patch also needs a doc patch and a whatsnew entry in order
to be complete. It's not obvious to me where the relevant documentation is,
though, so perhaps we instead have missing documentation that should be
addressed in a separate
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9008
___
___
Python-bugs-list
Raymond Hettinger added the comment:
[R David Murray]
I don't think that's true, though. file like pretty much means
has the file attributes that I actually use.
That is, it is context dependent (duck typing).
That is pretty much on-target.
Also, the phrase file-like has been used very
Raymond Hettinger added the comment:
Perhaps a time-elapsed context manager would be a better fit in the contextlib
module (which contains more general purpose
macro-level tools usable for many different tasks)
rather than the timeit module (which is more
narrowly tailored to high-quality
Raymond Hettinger added the comment:
FWIW, we often do whatsnew entries later in the development cycle. I think
this can go forward without whatsnew.
The doc entry could be as simple as a ..versionchanged 2.5 include() now
supports recursive Xincludes or somesuch.
--
nosy:
Raymond Hettinger added the comment:
Before evaluating this further, the timings should be updated for the current
3.5 code and using the various compilers for the difference OSes. Also, it
would be nice to run Antoine's suite of benchmarks.
--
nosy: +haypo, rhettinger
priority:
Steven D'Aprano added the comment:
On Mon, Jun 16, 2014 at 02:09:22AM +, Raymond Hettinger wrote:
Perhaps a time-elapsed context manager would be a better fit in the
contextlib module (which contains more general purpose macro-level
tools usable for many different tasks) rather than
Guido van Rossum added the comment:
I agree with Raymond -- this is a common pattern but there are many variations
that are hard to catch in a single implementation. E.g. at Dropbox we have a
decorator like this that lets you specify an identifier for the block you name,
and which logs the
Guido van Rossum added the comment:
FWIW, I definitely don't think this belongs in the timeit module, unless you
are going to treat that module as a namespace package, which I don't like
much (though in Java I think it's a pretty common pattern). If we have to have
it, contextlib sounds fine
Roundup Robot added the comment:
New changeset 351c1422848f by Benjamin Peterson in branch '2.7':
clarify when the list of subdirectories is read (closes #13779)
http://hg.python.org/cpython/rev/351c1422848f
New changeset b10322b5ef0f by Benjamin Peterson in branch '3.4':
clarify when the list
Raymond Hettinger added the comment:
There are a couple things I really like about this idea:
* In the past, we've had cases of TestXXX classes being omitted, so chunks of
the test suite weren't being run. You patch will fix that and let test
discovery just work.
* The code is shorter, more
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5207
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21767
___
___
Python-bugs-list
Martin Panter added the comment:
For RFC 2822, perhaps email.utils.parsedate() is good enough?
For RFC 3339, Issue 15873 has been opened for the datetime module. It has
more discussion and code, so perhaps this bug can be closed as a duplicate?
--
96 matches
Mail list logo