Jim Jewett added the comment:
If I read that patch right, it ignores (and does not even reraise) SystemExit
(unchanged), but other Exceptions currently block the dump (and your patch
causes them to still dump).
(1) Why is SystemExit ignored?
(2) There should be tests to show that there
Changes by Jim Jewett :
--
assignee: docs@python
components: Documentation
nosy: Jim.Jewett, docs@python
priority: normal
severity: normal
status: open
title: clarify http://docs.python.org/dev/library/time.html#time.steady
type: enhancement
versions: Python 3.3
New submission from Jim Jewett :
http://docs.python.org/dev/library/time.html#time.steady
Current:
"""Return the current time as a floating point number expressed in seconds.
This clock advances at a steady rate relative to real time and it may not be
adjusted. The referen
Jim Fulton added the comment:
Note that "ala a directory of files" wasn't meant to imply local files.
It could be a directory of files served via a HTTP (or sftp) server.
--
___
Python tracker
<http://bugs.pyt
Jim Fulton added the comment:
I just clarified that 14279 doesn't imply local files.
I'd be fine with a warning about lack of checksums for downloads.
--
___
Python tracker
<http://bugs.python.o
Jim Jewett added the comment:
msvcrt.getwch has a similar failure, returning (2**16)-1.
Because of this, getpass.win_getpass (used as getpass.getpass on windows)
echoes the password when using Idle (even without a subprocess), but does not
echo passwords when from a command-line python
Jim Jewett added the comment:
Looking at http://sourceforge.net/projects/expat/files/expat/2.1.0/, so long as
XML_ATTR_INFO isn't defined at compile time, the changes are all considered
bugfixes, and the XML_SetHashSalt is the only other changed API.
Is a potential Denial of Service r
Jim Jewett added the comment:
gccallback4a.patch is a few changes to gccallback4.patch. Most are just
spelling or grammar in comments, but I did modify the test case so that the
Uncollectable loop had *multiple* objects with __del__ methods.
--
nosy: +Jim.Jewett
Added file: http
Jim Jewett added the comment:
> The problem is to reject sequence in dictproxy constructor.
Why? Just because you can't delegate in quite the same way? A sequence *does*
meet the (immutable) Mapping interface; it just won't happen to have any
non-integer keys.
Or are you
Jim Jewett added the comment:
(1) How does the user control (or even find out) which clock is used by
time.steady()?
If the answer is time.steady(clock=QueryPerformanceCounter) then there is no
need for strict=?, but then I'm not sure what the point of time.steady itself
is.
I had
New submission from Jim Jewett :
http://www.python.org/~gbrandl/build/html2/whatsnew/3.3.html#pep-393-flexible-string-representation
"The packaging module replaces the distutils module"
All other deprecation messages list the deprecated object first, such as
"platform.p
Jim Jewett added the comment:
Patch is doc-only, and looks good to me.
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue14410>
___
___
Pytho
New submission from Jim Jewett :
Per the 3.3 WhatsNew:
"""issue 14205: A dict lookup now raises a RuntimeError if the dict is modified
during the lookup. If you implement your own comparison function for objects
used as dict keys and the dict is shared by multiple threads, acce
Jim Jewett added the comment:
It is now a useful function, as PyUnicode_AsUnicode defers to it.
It is still born-deprecated, but that may be unavoidable, as all use of the
wstr format is deprecated.
--
___
Python tracker
<http://bugs.python.
Jim Jewett added the comment:
See http://bugs.python.org/issue14417
--
___
Python tracker
<http://bugs.python.org/issue14205>
___
___
Python-bugs-list mailin
Jim Jewett added the comment:
>> A counter can be added to dictobject.c.patch to avoid
>> an infinite loop.
> But why bother?
Without a termination condition, how is this different from just reverting the
original change? Is it just the slightly improvemen
Jim Jewett added the comment:
I think the second patch is a fairly straightforward enhancement to the
existing situation. It still feels a bit like an awkward half-measure, though.
(1) If a class does have a finalizer, instances should still be able to say
"Go ahead and collect me, I
Jim Jewett added the comment:
At least put the information inside some disclaimers about "normally"; even the
stdlib has some fake locks that let you release a lock someone else holds. (I
think I found them in in workarounds for threading not being available, such as
the dummy
Jim Jewett added the comment:
On Thu, Apr 5, 2012 at 5:38 PM, Antoine Pitrou wrote:
> Antoine Pitrou added the comment:
> Not sure what you're talking about. The doc patch is about unacquired
> locks, not locks that someone else (another thread) holds.
Isn't one common r
Jim Jewett added the comment:
On Fri, Apr 6, 2012 at 5:57 AM, Antoine Pitrou wrote:
> Antoine Pitrou added the comment:
>> > Not sure what you're talking about. The doc patch is about unacquired
>> > locks, not locks that someone else (another thread) holds.
>
Jim Jewett added the comment:
> I don't think 2 is important. Does the context of the call matter?
> It is merely a question of whether a finalizer will or will not do
> something trivial.
It would affect how I would write such functions. If I knew that it wouldn't
Jim Jewett added the comment:
@Jimbofbx: You are correct that a value has to be reserved to indicate that
the hash hasn't been (or can't be) computed, but python uses -1 instead of zero.
An integer can't return itself because a hash is an unboxed integer; that said,
there is
Jim Jewett added the comment:
> I have a lock that may or may not be currently held when I release it,
> and now I know I can just catch RuntimeError in that case.
Only if you're willing to make assumptions about the threading model and the
source of locks. And I fear the cur
Jim Jewett added the comment:
(1) Why did you change the name of the parameter from index to element? If
the underlying engine also accepts indices (e.g., self.activate(4) ) then the
name should stay. If it really is only meaningful to use the name of an
element -- maybe it should still
Jim Jewett added the comment:
On Fri, Apr 6, 2012 at 4:03 PM,
Daniel Stutzbach added the comment:
>> __del__ methods do run, even if an object was collected by the cycle
>> detector. And they can't do any harm that couldn't also be done by a C
>> finalizer
Jim Jewett added the comment:
On Fri, Apr 6, 2012 at 10:32 PM, R. David Murray wrote:
> R. David Murray added the comment:
> I, on the other hand, would prefer if it were made part of the API contract
> that an
> error is raised, and to fix any stdlib implementations *of th
Jim Jewett added the comment:
Vinay,
The current question is what contract locks should follow, and whether
all locks should follow it. Would it be acceptable for
logging._releaseLock to raise a RuntimeError if the lock hadn't
previously been acquired? In other words, would it be accep
Jim Jewett added the comment:
@Brian -- to clarify,
(1) Does issue3561.diff completely supersede prependpath_in-progress.diff?
(And should that be the one currently subject to review?)
(2) What happens with multiple installations? Do users have to manually unset
the path to avoid
Jim Jewett added the comment:
What do you think it should do?
My thought is that meta tags may or may not be void, but certainly should not
be nested. As XML, I would parse that as
*missing closing tag
But for html, there is more cleanup. The catch is that this module
Jim Jewett added the comment:
FWIW, doing a linear probe only within a cache line (changing the 1's bit)
before applying perturb might also be useful -- and the results may change if
the size of a dictentry were reduced. (Mark Shannon's now-integrated patch
doesn't actually
Jim Jewett added the comment:
Stefan Krah has a good point.
Since the only cost is an extra slot, and this is for users who have already
chosen to use Decimal instead of a more efficient (but possibly less accurate)
representation, even without the native speedups to Decimal ... I guess
Jim Jewett added the comment:
-1 on that particular patch.
(with only whitespace between "/" and ">") strikes me as obviously intending to
close the tag, and a reasonably common error.
I can't think of any reason to support nested meta tags while not supporti
Jim Jewett added the comment:
This issue is also marked for (bugfix-only) 2.7 and 3.2.
Unless there is a specification somewhere (or at least an editor's draft), I
can't really see any particular parse as a bugfix. Was the goal just to make
the parse finish, as opposed to sto
New submission from Jim Jewett :
The C linkage is guarded by WITH_THREAD. The 'extern "C" {' and '}'
declarations should be in effect regardless of threading.
Note that the bug can only be triggered by compiling without threads, but with
a C++ compiler; this
Jim Jewett added the comment:
http://hg.python.org/cpython/file/0f114b855824/Python/pystate.c#l25
#ifdef WITH_THREAD
#include "pythread.h"
static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */
#define HEAD_INIT() (void)(head_mutex |
Jim Jewett added the comment:
On Thu, Apr 12, 2012 at 7:26 PM, Ezio Melotti wrote:
> If HTMLParser doesn't parse as the HTML5 specs say,
> then it's considered a bug.
I had thought that was the goal of the html5lib, and that HTMLParser
was explicitly aiming at a much reduced m
Jim Jewett added the comment:
It sounds like this is a case where the docs should mention an external
library; perhaps something like changing the intro of
http://docs.python.org/dev/library/html.parser.html from:
"""
19.2. html.parser — Simple HTML and XHTML parser
Source
Jim Jewett added the comment:
It would be helpful to have a testcase, so that it will stay fixed.
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue14
Changes by Jim Jewett :
--
title: urllib2 maybe blocks too long -> urllib2 maybe blocks too long with
small chunks
___
Python tracker
<http://bugs.python.org/issu
Jim Jewett added the comment:
Any particular reason not to add those?
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue14555>
___
___
Pytho
Jim Jewett added the comment:
I can't speak for GSoC or Gerhard, but it strikes me as a reasonable first
step. An alternatives woube be writing it with fallbacks (so older sqlite can
still be used, though less efficiently). It would also be nice to clean up at
least one call
Jim Jewett added the comment:
On Fri, Apr 13, 2012 at 6:19 AM,
Antoine Pitrou added the comment:
> I don't think you need anyone's permission to commit such a fix :)
Well, *I* would, since I don't have commit privs, and don't currently
have a C dev environment wit
Changes by Jim Jewett :
--
title: http.server query string handling incorrect and inefficient ->
http.server query string handling is incorrect and inefficient
___
Python tracker
<http://bugs.python.org/issu
Jim Jewett added the comment:
(Note that the two patches are not cumulative; both would need to be applied.)
--
nosy: +Jim.Jewett
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issu
New submission from Jim Jewett :
PEP 12 states:
"""
To get the source this (or any) PEP, look at the top of the HTML page and click
on the date & time on the "Last-Modified" line. It is a link to the source text
in the Python repository.
"""
New submission from Jim Li :
In Python 2, `__path__` used to be a list, so all of the operations available
to list are available, e.g., `insert`; you can also do indexing; e.g.,
`__path__[0]`.
However, I believe that starting from Python 3, it seems to be a , and a lot of operations that
New submission from Jim Li :
I encountered this issue when I was running 2to3 on a package, Python version
3.7.2, CentOS 7.
To reproduce this bug, create a file called test.py and paste the following
code into it
def testSomeRequest(self):
request = {"someRequest"
Jim Li added the comment:
Thanks Eric. That does make sense. The code wasn't really Python 3, it was
migrated from 2.7, which uses some Python 3 syntax.
As a side note, if you run 2to3 on this instead of the previous
`print(response.next_page_token)`
print(response)
Then 2to3 woul
Jim Li added the comment:
Hi Eric,
Sorry for the late reply. I think I did not accurately describe the issue at
all. As a minimal example, set up two virtual environments, one from 2.7.x, one
from 3.7.2.
When you are in the virtual environment, do
- pip install protobuf==3.3.0
- python (to
Jim Li added the comment:
Ah, that started to make sense. To be honest I didn't really pay much attention
to the _namespace's documentation, I only looked at that of __path__ and
somehow expected it to mention that certain namespace won't be a type
anymore.
I will re-read yo
Jim Crigler added the comment:
I'm having the same problem with gcc 6.2.
Is there any update?
--
nosy: +Jim Crigler
___
Python tracker
<http://bugs.python.org/is
New submission from Jim Jewett:
https://github.com/python/cpython/blob/master/Modules/xxlimited.c#L28
#define XxoObject_Check(v) (Py_TYPE(v) == Xxo_Type)
assumes that the type cannot be subclassed, but does not say so. Since this is
demo code, it would be better to use something like
Changes by Jim Ferrara :
--
pull_requests: +2917
___
Python tracker
<http://bugs.python.org/issue25910>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jim Dennis:
Code such as mydict.setdefault('eggs', []) will needlessly incur the cost of
instantiating a list even when 'eggs' is already a valid key in mydict.
collections.defaultdict will not do this. detecting and automatically calling
"cal
New submission from Jim Fulton:
I'm having an issue importing from namespaces packages whose directories are
added to sys.path and have other packages from the same namespace in
site-packages.
To reproduce:
- Create a virtualenv and install zc.buildout in it (``envdir/bin/pip in
Jim Fulton added the comment:
No, but I managed to unattach it, because "Choose File" always feels like a
submit button to me.
Sorry.
Attached.
--
Added file: http://bugs.python.org/file47101/z.py
___
Python tracker
<http://bu
Jim Fulton added the comment:
Wow, OK. It didn't occur to me to look for .pth files. (Buildout doesn't use
them.) I guess this is a pip bug or misfeature. I'll head over to pypa.
Thanks!
--
stage: -> resolved
status: open -> closed
_
Jim Fulton added the comment:
See: https://github.com/pypa/pip/issues/4695
--
___
Python tracker
<http://bugs.python.org/issue31280>
___
___
Python-bugs-list m
New submission from Jim Jewett:
Per
https://docs.python.org/3/c-api/init.html#initializing-and-finalizing-the-interpreter
Py_Initialize() "should be called before using any other Python/C API
functions; with the exception of Py_SetProgramName(), Py_SetPythonHome() and
Py_SetPath()."
Jim Fulton added the comment:
OMG, >1year. :)
This was always a minor issue. I still think the current asyncio behavior is
dumb, but whatever.
FWIW, I tripped on this when adding SSL support to ZEO, which is a
client-server *database* protocol used by ZODB, having nothing to do with
New submission from Jim Carroll :
There is a typo in the unittest.mock documentation found at
https://docs.python.org/3/library/unittest.mock.html.
There are seven(7) instances of the word assret, where the author clearly
intended assert.
--
assignee: docs@python
components
Jim Carroll added the comment:
Never mindi see this issue has been reported previously and the typo is
considered intentional.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Jim DeLaHunt added the comment:
Bump. Could I get a few more eyes looking at the current state of
https://github.com/python/cpython/pull/45/ ?
* @bitdancer made some suggestions. I accepted some, and replied to others
where I think we should keep looking for common ground. I'd like t
New submission from Jim Wright:
We discovered this issue whilst using h5py (HDF5 python library) under python
3.5.2 on Ubuntu 16.04.2 x86_64. The construct used is very dubious, and I will
separately be raising an issue with the h5py team. However I thought you might
like to know there is a
Jim Wright added the comment:
Hi Jelle,
I think you're right about master; it looks like this very recent change:
https://github.com/python/cpython/pull/1657
could have fixed the issue, but I didn't find it whilst doing my original
investigation of the issue o
Jim Fulton added the comment:
Zope Corporation no longer exists. Any references to it should be in the past
tense and without a link.
(The http://www.zope.org is for the Zope Foundation, which is a different
thing.)
--
___
Python tracker
<h
Jim Fulton added the comment:
+1
--
___
Python tracker
<http://bugs.python.org/issue25910>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Jim Jewett added the comment:
Do you have a test case that could be used to verify a patch?
(Or even a full patch?)
--
nosy: +Jim.Jewett
stage: -> needs patch
type: -> behavior
___
Python tracker
<http://bugs.python.org/i
Jim Jewett added the comment:
Serhiy -- do your last two messages mean that this is now resolved?
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue30
Jim Jewett added the comment:
Then why not just call join as part of the default close method?
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue30
Jim Jewett added the comment:
Could join be called in a background thread, or even asynchronously? That
seems like mixing paradigms, but ...
On Jun 12, 2017 3:15 AM, "Antoine Pitrou" wrote:
>
> Antoine Pitrou added the comment:
>
> That's a good question. close
Jim Maloy added the comment:
This issue persists as of today (March 2019), in Python 3.7.2 (64 bit) running
on Windows 10. I gather from the comments that fixing it is no trivial matter,
although I don't fully understand why. The hang of "several seconds" that was
original
New submission from Minion Jim :
When using Python version 3.6.4, Tkinter shows a blank icon on the taskbar.
This means any Tkinter window including IDLE and a blank one. Unfortunately, I
don't have a screenshot to show this as I reinstalled version 3.6.3 which works
perf
Minion Jim added the comment:
Hi, thanks for your email. I hope to get round to sending you a screenshot by
the end of today but I am quite busy right now.
Many thanks,
Elisha
Elisha Paine
Ranelagh School
Confidentiality and Disclaimer: This email and its
Minion Jim added the comment:
Please see the attached gif for a demonstration (I am using Windows 10 Home)
--
Added file: https://bugs.python.org/file47413/tkinter glitch.gif
___
Python tracker
<https://bugs.python.org/issue32
Minion Jim added the comment:
This isn't just IDLE. On the GIF, I also demonstrate other Tkinter windows
which is why have been led to believe it is an underlying Tkinter problem
rather than IDLE.
--
___
Python tracker
<https://bugs.py
Minion Jim added the comment:
Sorry for posting this as a bug :-( When I reupdated (again) it sorted itself
out (for whatever reason). So once again sorry for wasting your time.
--
___
Python tracker
<https://bugs.python.org/issue32
Jim Jewett added the comment:
Ideally, use .startswith('.') Instead if find, but this is a clear UI fix.
First pull request fixes doc, second fixes code. OK to apply both.
--
nosy: +Jim.Jewett
stage: -> commit review
___
Python tr
Change by Jim Fulton :
--
nosy: -j1m
___
Python tracker
<https://bugs.python.org/issue25910>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Jim DeLaHunt added the comment:
I'm a developer using Python in my application. I just spent the last couple of
weeks learning about asyncio with the present documentation. I am very happy to
see that work is underway for improved documentation.
I would be glad to take on writing tas
New submission from Jim Jewett :
binhex defines a module-wide constant of
REASONABLY_LARGE = 32768 # Minimal amount we pass the rle-coder
Later on, in 5 locations it does either ifp.read(128000) or
ifp.read_rsrc(128000)
It isn't clear why a different constant is used, let alone
New submission from Jim DeLaHunt :
In Python 3.6.5, Task.__repr__() with raise an AssertionError for
certain, arguably incorrect, coroutines which the instantiation of Task()
accepts. repr(task) thus fails with an AssertionError, instead of
returning a string which describes the task object
Jim DeLaHunt added the comment:
This is what I observe when I run my original program with Python 3.7.0. Notice
that the Task object instantiation fails with a clear error message:
% python -c 'import sys; print(sys.version)'
3.7.0 (default, Jun 28 2018, 06:01:52)
[Clang 8.
New submission from Jim DeLaHunt :
Asyncio's StreamReaderProtocol[1] often returns True from
Protocol.eof_received(). This tells the Transport that "closing the transport
is up to the protocol" [2]. However, StreamReaderProtocol does not call
Transport.close().
Jimbo Jim added the comment:
first post in bugs.python.org... are people normally scary around here?
Another usecase of keyword-only arguments is that I can mix default and
non-default fields in any order. This could be achieved by either marking all
fields as read-only, or by implicitly
Jim Jewett added the comment:
(Note: I am talking only about the disclosure issue; file corruption would
ideally be fixed as far back as possible, though I would be somewhat
sympathetic to a "nah, that ain't security, too late" argument.)
My current UI shows this as re
Jim Jewett added the comment:
My current UI shows this as relevant *only* to 3.4 and 3.5. If it really has
been fixed in 3.6, and the fix can't be backported, I think the risk of
breaking backup programs is enough to argue for doing nothing more than a doc
change. Anyone still usin
New submission from Jim Carroll:
We were looking to squeak maximum performance out of zlib.compress. We noticed
in py3k, zlib.compress already accepts Py_buffer’s, but in 2.x, compress
required strings.
We’ve modified the compress (and decompress for orthogonal completeness), see
the
Jim Jewett added the comment:
On Mon, Jul 8, 2013 at 3:30 AM, Nick Coghlan wrote:
> The key difference between them relates to the following different approaches
> to handling unknown types in __eq__:
> @functools.total_ordering
> class TotallyOrderedEqualsReturnsFalse:
...
>
Jim Jewett added the comment:
> Since this is such an incredibly niche edge case
> (the ordered comparison has to return NotImplemented
> while __eq__ returns True),
*and* the types are explicitly supposed to ordered,
based on what is being tested
> I remaining consistent with
Jim Jewett added the comment:
When does the performance hit occur?
If it is only when an exception has been raised, and its own class is not
listed by the except clause, then I personally wouldn't worry about it; tracing
the MRO *could* get arbitrarily long already; it just doesn
Jim Jewett added the comment:
Chris Lambacher
On Wed, Apr 25, 2012 at 10:50 AM, Martin v. Löwis added the comment:
> lambacck: I'm -1, but I'm willing to yield ...
> regular users won't have to deal with negative
> consequences that enabling this by default may have.
Jim Jewett added the comment:
On Thu, May 24, 2012 at 8:11 PM, Brian Curtin
added the comment:
> does anyone think something like this dialog http://i.imgur.com/18zPD.png be
> helpful?
yes.
> After choosing the directory to install to and before choosing
> the features, i
Jim Jewett added the comment:
Just saw this on the checkins list; where are the other options documented?
"""
PyDoc_STRVAR(compressobj__doc__,
-"compressobj([level]) -- Return a compressor object.\n"
+"compressobj([level[, method[, wbits[, memlevel[, strategy[
Jim Jewett added the comment:
Is this really only 3.4? Since it is security-related, it seems like it should
be at least considered for older versions as well.
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue15
Jim Jewett added the comment:
I'm putting it back to release blocker, because 3.3 should decide whether to
fix it/call it security/remove itself from the list.
The patch contains several small changes. I like the spelling fix (gsip ->
gzip) in a test method, but otherwise, I pr
Jim Jewett added the comment:
What is the status here?
As best I can tell from a skim,
(a) It should be broken into at least three separate issues. (Though maybe
some can just be closed instead of separated?)
(b) None of them are security holes, so we missed 2.5 and 2.6, and should now
Jim Jewett added the comment:
I am changing this from "High" to "Release blocker", because I think 3.3 should
make an explicit decision about whether to remove itself from the Affected
Versions list.
3.4 probably should too, since it is now in bug-fix mode.
Then this
Jim Jewett added the comment:
This is an enhancement, so I am changing the affected version from 3.3 to 3.5.
It is python-only, which works well with the cheeseshop.
That said, the patch is truly short; if that is really sufficient, it could
almost go into the documentation as a recipe
Jim Jewett added the comment:
What is the status of this?
Have any of the changes been applied?
Are any of the other patches still appropriate?
Is this now dependent on any other issues/any non-doc updates?
--
nosy: +Jim.Jewett
___
Python tracker
201 - 300 of 742 matches
Mail list logo