New submission from Jean-Paul Calderone :
According to a recent thread on python-dev, Python APIs with the same
name as native APIs can be trusted to just pass through to the platform
API call
(<http://mail.python.org/pipermail/python-dev/2009-January/084899.html>).
This isn't the c
New submission from Jean-Paul Calderone :
The attached program demonstrates that the ContentHandler.skippedEntity
callback is not invoked for all skipped entities. Specifically, it is
not invoked for those in attribute values. Additionally, it
demonstrates that when parsing a document with no
Jean-Paul Calderone added the comment:
After further investigation, I've learned a bit more. External entities
are forbidden in attribute values. Their presence constitutes a "fatal
error" according to <http://www.w3.org/TR/REC-xml/#forbidden>. This
means that dr
Changes by Jean-Paul Calderone :
--
title: inconsistent, perhaps incorrect, behavior with respect to entities
parsed by xml.sax -> xml.sax.expatreader.ExpatParser incorrectly silently skips
external character entities in attribute values
___
Pyt
Jean-Paul Calderone added the comment:
> My first impression was that the '1' in 'kq.control(None, 4, 1)'
already did this; i.e., that it meant that the kq.control function
would wait up to 1 second for a response, but that doesn't seem to be true.
Since there a
Jean-Paul Calderone added the comment:
Jesse, can you explain the cause of the bug? Maybe that will inspire
someone to come up with an idea for a fix.
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue4
Jean-Paul Calderone added the comment:
You also need to add unit tests for the new behavior you've implemented.
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/i
New submission from Jean-Paul Calderone :
Sometimes a syntax error in source passed to `compiler.parse´ causes a
`SyntaxError´ with lots of nice information to be raised:
>>> from compiler import parse
>>> try:
... parse("def f(")
... except SyntaxErro
Jean-Paul Calderone added the comment:
This isn't accurate. distutils *will* create the directory if it does
not exist. Perhaps you have setuptools installed? setuptools disables
this behavior of distutils and forces you to create the directory manually.
--
nosy: +ex
Jean-Paul Calderone added the comment:
See my comment on issue5070.
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue5071>
___
___
Python-bug
Jean-Paul Calderone added the comment:
Yea. setuptools is often discussed on distutils-sig:
http://www.python.org/community/sigs/current/distutils-sig/
And has an issue tracker of its own:
http://bugs.python.org/setuptools/
http://bugs.python.org/setuptools/issue54 sounds like this
Jean-Paul Calderone added the comment:
Not being able to figure out where a name came from easily is worse than
having to type out the import statement. This feature would negatively
impact readability of Python source significantly.
--
nosy: +exarkun
Jean-Paul Calderone added the comment:
As far as Twisted is concerned, the two cases Tarek mentioned aren't
really relevant. In order for Zooko's use case to be handled ("install
Twisted on an OLPC"), what would be ideal is if there were a way to tell
distutils about a
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue4631>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jean-Paul Calderone added the comment:
The backslash escaping has nothing to do with os.environ. It's the way
any string with a backslash in it is displayed in the interactive
interpreter (it's the way str.__repr__ works). Performing any escaping
on a string to make it usable in
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue3823>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jean-Paul Calderone added the comment:
Some comments on tmp_dev_shelver.py...
Regarding SQLhash.__init__, it would be better to avoid relying on the
"sqlite_master" table by using the CREATE TABLE IF NOT EXISTS form of
table creation.
Setting the isolation_level in __init__
Changes by Jean-Paul Calderone :
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue2124>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jean-Paul Calderone added the comment:
Though it's inconvenient to do so, you can arrange to have the locator
available from the entity resolver. The content handler's
setDocumentLocator method will be called early on with the locator
object. So you can give your entity resolver a
Jean-Paul Calderone added the comment:
> It's indeed possible to provide that as a third-party module; one
> would have to implement an EntityResolver, and applications would
> have to use it. If there was a need for such a thing, somebody would
> have done it years ago.
I do
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue3959>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue3783>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jean-Paul Calderone :
The weekly tracker summary emails sent to python-dev contain incorrect
information. The value for the "median duration of open issues" it
reports has recently wrapped around to 0 and started growing from there.
Looking at older reports, it
New submission from Jean-Paul Calderone :
If pydoc is used to try to look up the documentation for a module which
does not exist, this is reported reasonably:
exar...@charm:~$ pydoc foobarbaz
no Python documentation found for 'foobarbaz'
exar...@charm:~$
However, if
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue805194>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue1053365>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue1043706>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jean-Paul Calderone added the comment:
This is still/again broken, probably because the "fixed" version still
hard-codes all of the geometry values and these will certainly not be correct
for all combinations of display dpi, font configuration, etc.
Instead, `TreeNode
New submission from Stephen Paul Chappell :
In the latest Python 3.8.0 installation when running IDLE on Windows, pressing
"Alt + T" generates the following error:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Pytho
Stephen Paul Chappell added the comment:
When I start IDLE and the shell window appears, my first task is to press "Alt
+ T" to change from using tabs to spaces and then "Alt + U" to change from
using 8 spaces to 4. This allows code pasted from the shell into an editor
Stephen Paul Chappell added the comment:
The documentation for sys.ps1 and sys.ps2 states that they "are only defined if
the interpreter is in interactive mode." Since the IDLE shell is meant to be
interactive (and to reduce the differences between the shell and running Python
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue7676>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue31476>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue18558>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue31848>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue21537>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue21402>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue18601>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue24185>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue21957>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue6188>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Paul Chappell added the comment:
Maybe my impression has been false this whole time, but the Python interactive
interpreter seems to be very similar to the IDLE shell window. My question is,
"Why not make them even more so?" Having IDLE react to sys.ps1 and sys.ps2
op
Stephen Paul Chappell added the comment:
Zero: "not to have them added as text as is usual in a terminal window"
taleinat: "removing prompts from the shell window's text widget"
Zero: "print the values of ps1 and ps2 in the proposed ShellIO subclas
Stephen Paul Chappell added the comment:
@rhettinger: The turtle demo is easily accessible through the menus via Help >
Turtle Demo.
It is nice to see there are others interested in IDLE's improvement. :-)
--
___
Python tracker
New submission from Paul Anton Letnes :
Python 3.7 and 3.8 installed from the Windows Store do not start under git
bash. Rather, they give some variation of this error message:
bash: /c/Users/pa/AppData/Local/Microsoft/WindowsApps/python: Permission denied
However, the permissions are rwxr
Paul Du Bois added the comment:
For what it's worth, I also see proportional-width fonts when looking at the
docs in Android Chrome. For example, the binary tree in
https://docs.python.org/3/library/heapq.html is mangled.
--
nosy: +paul.d
Change by Paul Du Bois :
--
title: Proportional Width Font on Generated Python Docs PDFs -> Proportional
Width Font on Generated Python Docs PDFs and in mobile browser
___
Python tracker
<https://bugs.python.org/issu
Change by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<https://bugs.python.org/issue35228>
___
___
Python-bugs-list mailing list
Unsubscribe:
Paul "TBBle" Hampson added the comment:
I just bounced off this issue and proposed a work-around for it in Black
(https://github.com/psf/black/pull/1897).
Since it wasn't mentioned here earlier, the `\` marker _is_ documented in the
GNU Diffutils documentation, under &q
Paul Anton Letnes added the comment:
I've encountered an issue on anaconda python on windows 10 v1909 which I
suspect is related. It looks like no dates in 1970 can be converted to
datetime.timestamp():
Python 3.8.2 (default, Apr 14 2020, 19:01:40) [MSC v.1916 64 bit (AMD64)]
Jean-Paul Calderone added the comment:
> May somebody check for this? Otherwise the bug could be considered invalid.
This is not the proper workflow for bug tracking. "No one is working on this
right now" is not the same as "This bug is invalid". No one worked on thi
New submission from Jean-Paul Calderone :
Allocating a Python list and a bunch of Capsules for each PyArg_ParseTuple call
is expensive and unnecessarily complicated.
The freelist never escapes getargs.c (if it ever did, it would be a bug). The
same job can be accomplished with a normal C
Changes by Jean-Paul Calderone :
--
keywords: +patch
Added file: http://bugs.python.org/file24873/getargs.patch
___
Python tracker
<http://bugs.python.org/issue14
Changes by Jean-Paul Calderone :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue14325>
___
___
Python-bugs-
Jean-Paul Calderone added the comment:
If it's a bit faster, that'd be a nice win, but I didn't benchmark. I'm
primarily interested in correctness in the PyPy case (PyPy re-uses this code),
and I think CPython benefits from the slightly simplified code as well.
If you do
New submission from Paul Traina (discontent):
Hopefully I'm not being obtuse, but I seem to be getting incorrect/unexpected
help output when using mutually_exclusive_group under an add_argument_group if
this layering is happening in a parent parser.
Here's an example of the trigge
New submission from Stephen Paul Chappell:
Ever since Python 3.6.1, trying to open a Python-source library module in IDLE
on Windows (10) has not worked properly since the installer has only been
providing *.pyc files. Learning how to use Python has always been easy since it
(1) has a great
Stephen Paul Chappell added the comment:
The URL for the installer that was used last is:
https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64-webinstall.exe
--
___
Python tracker
<https://bugs.python.org/issue31
New submission from Paul "TBBle" Hampson:
As noted in https://github.com/python/cpython/tree/master/Tools/msi
===
When installed for all users, the following files are installed to
either "%SystemRoot%\System32" or "%SystemRoot%\SysWOW64" as
appropriate. For the cu
Changes by Paul "TBBle" Hampson :
--
components: +Installation
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue29844>
___
___
Pytho
Paul "TBBle" Hampson added the comment:
If this is just a documentation fix, then there's two places that need it:
* https://github.com/python/cpython/blob/master/Tools/msi/README.txt contains
the text I quoted in the original report.
* Some kind of release note (https://do
New submission from Stephen Paul Chappell :
When Aifc_read runs initfp, it conditionally sets self._ssnd_chunk and is not
guaranteed to do so. At the bottom of the method, a check is made to see if the
attribute has a false value; and if so, an error is supposed to be raised. If a
SSND chunk
Jesse Paul Ogle added the comment:
Greetings, I came across this issue while looking into XDG Base Directory
Specification. This issue is only tagged with version 3.4, but the underlying
issue (not being able to change the history file / size through environment
variables) appears to still
Paul Goins (work) added the comment:
I'm just going to ping on this issue. It looks like this has just slipped off
the radar. I've seen the last diff and the code review, but it seems that this
just needs some final follow-up on the code review comments, no?
I could easily do
New submission from Paul "TBBle" Hampson:
Noticed in Python 2.7 but a quick look in the repository suggests this is also
true in Python 3 releases.
The Makefile rule for Makefile.pre in Makefile.pre.in is:
# Build the toplevel Makefile
Makefile.pre: Makefile.pre.in con
Changes by Paul "TBBle" Hampson :
--
type: -> compile error
___
Python tracker
<http://bugs.python.org/issue18125>
___
___
Python-bugs-list maili
Paul "TBBle" Hampson added the comment:
Forgot to mention, this is the only occurrence of a *.in file in
Makefile.pre.in that isn't prefixed with $(srcdir)/
--
___
Python tracker
<http://bugs.pyt
Jean-Paul Calderone added the comment:
> Sounds promising. Do you think this should be hooked into
> SSLContext.set_default_verify_paths, or be exposed as a separate method?
If there were an API which exposed the certificate material, then this would be
more useful to libraries trying
New submission from Stephen Paul Chappell:
The following interactive session shows that iterables are not detected
properly by the `collections.abc.Iterable` class.
>>> class IsIterable:
def __init__(self, data):
self.data = data
def __getitem__(
New submission from Stephen Paul Chappell:
The example at the bottom is good but has a line with a bad variable it is
name. It says:
with open(fromlines) as fromf, open(tofile) as tof:
fromlines, tolines = list(fromf), list(tof)
In the first line, fromlines does no even exist yet
Stephen Paul Chappell added the comment:
If my program needed to know if an object is iterable, it would be tempting to
define and call the following function instead of using
collections.abc.Iterable:
def iterable(obj):
try:
iter(obj)
except TypeError
Stephen Paul Chappell added the comment:
Maybe this would have been more appropriate as a question on StackOverflow:
What is the proper way of asking if an object is iterable if it does not
support the iterator protocol but does support the old getitem protocol? One
might argue that it is
New submission from Jean-Paul Calderone:
datetime.timedelta instances are divisible by integers on Python 2.7, but not
when __future__.division has been turned on:
exarkun@top:~$ ~/Projects/cpython/2.7/python -c '
from datetime import timedelta
print timedelta(seconds=3) / 2
'
0:00
Jean-Paul Calderone added the comment:
Hm. Maybe I am. Yet isn't true division implemented for this pair of types in
Python 3? I'm not sure why it shouldn't be implemented for them in Python 2.
Also that raises another question. Does a result of one and one half seconds
ma
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue11798>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jean-Paul Calderone added the comment:
> I think that's a very obscure interpretation of floor division for
timedeltas :-)
Note - I don't care about this. I just want `timedelta / int` to do the same
thing in Python 2.7 with __future__.division as `timedelta / int` does in
Pyth
New submission from Jean-Paul Calderone:
Debugging problems involving the frozen importlib._bootstrap is difficult,
because the source for importlib._bootstrap is not available to pdb. The
bootstrap code can be stepped through, but with only function names and line
numbers available, not
New submission from Jean-Paul Calderone:
The attached unit test fails with an ImportError... sometimes. Here's a little
blob of shell that seems to make the failure come up more quickly:
while ~/Projects/cpython/3.3/python -m unittest -v test_broken_import; do
rm -rf test_broken_i
New submission from Jean-Paul Calderone:
Python 3.3.0rc2+ (default:9def2209a839, Sep 10 2012, 08:44:51)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> memoryview(b'foo') + b'bar'
Jean-Paul Calderone added the comment:
> What is the expected outcome? memoryviews can't be resized, so
this scenario isn't possible:
The same as `view.tobytes() + bytes`, but without the extra copy implied by
`view.tobytes()`.
> Just prepend the empty bytestring if you want
Jean-Paul Calderone added the comment:
Since Benjamin originally requested this feature, and then decided that he
could accomplish his desired goal (ftplib porting, as far as I can tell)
without it, I think that the "rejected" status is actually incorrect. I think
that Benjamin j
Jean-Paul Calderone added the comment:
> The price of maintaining exceeds the potential very limited benefits from the
> use.
The "very limited benefits" of being able to write I/O code without roughly 3
times code bloat? Perhaps for people who don't write code that
Jean-Paul Calderone added the comment:
> The development cost and maintenance cost is surely part of the evaluation
> when deciding whether to implement a feature, no?
Sure, but in an open source project where almost all contributions are done by
volunteers (ie, donated), what
New submission from Jean-Paul Calderone:
There appears to be very little, if any, documentation about how to handle the
list at tp_weaklistoffset for types supporting being weak referenced,
particularly with respect to garbage collection.
Who owns the list? Who owns the objects in the list
New submission from Stephen Paul Chappell:
If a call is made to tkinter.NoDefaultRoot, then calls to
tkinter.ttk._val_or_dict may fail. NoDefaultRoot ends with "del _default_root"
(line 174) and removes the variable from the module's namespace. _val_or_dict
can try to access th
Stephen Paul Chappell added the comment:
I discovered the problem when trying to run the program listed at
http://code.activestate.com/recipes/577633/ (Directory Pruner 2).
--
___
Python tracker
<http://bugs.python.org/issue21
New submission from Jean-Paul Calderone:
$ ~/Projects/cpython/3.4/python -c '
class Foo(object):
def __ne__(self, other):
return "yup"
def __eq__(self, other):
return "nope"
class Bar(object):
pass
print(object() != Foo(), obj
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue1218234>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Paul Chappell added the comment:
It seems that most functions and methods do not bother checking if
_default_root exists before trying to access it. However, upon seeing line 366
in ttk (if tkinter._support_default_root:), my recommendation would be to
change line 319 to "if tk
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue4999>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue4928>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Paul Chappell added the comment:
There is discussion of removing wantobjects in issue3015. If it gets removed, a
better patch might be created for future versions of tkinter. However,
accessing self.tk would probably be a good replacement for anywhere
tkinter._default_root can be
Stephen Paul Chappell added the comment:
>Because there are explicit tests for these private functions.
Does that not mean that both the functions and their explicit tests should be
changed?
--
___
Python tracker
<http://bugs.python.org/issu
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue2506>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Stephen Paul Chappell:
While examining the implementation for lru_cache, it came to my attention that
the wrappers ignore the possibility of exceptions. Is this on purpose? If the
cache is designed to reduce the overhead of running certain functions, it seems
like
Changes by Jean-Paul Calderone :
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue21652>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Stephen Paul Chappell :
--
nosy: +Zero
versions: +Python 3.4, Python 3.5
___
Python tracker
<http://bugs.python.org/issue7676>
___
___
Python-bug
Jean-Paul Calderone added the comment:
Please see http://bugs.python.org/issue21652 for a regression introduced by
this change.
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue9
Jean-Paul Calderone added the comment:
> That commit was fixing an existing problem; perhaps not your problem, but
> someone's. To revert it would simply move the pain around.
Doesn't the very same logic apply to the original commit?
> I hope to be able to work on this f
Jean-Paul Calderone added the comment:
What are the chances a future Python 2.x release will include any fix developed
for this issue?
--
___
Python tracker
<http://bugs.python.org/issue4
2901 - 3000 of 3213 matches
Mail list logo