New submission from Jeremy :
At some point in 3.9 Python appears to have stopped accepting source that
starts with an indent, then a '\', then the indented statement. From the
lexical analysis [1] "Indentation cannot be split over multiple physical lines
using backslashes; th
Jeremy added the comment:
Wow, this was a fast turnaround! I was going to spin some cycles on this, but
would have not seen the solution in 50m.
--
___
Python tracker
<https://bugs.python.org/issue46
New submission from Jeremy :
A source of one or more backslash-escaped newlines, and one final newline, is
not tokenized the same as a source where those lines are "manually joined".
The source
```
\
\
\
```
produces the tokens NEWLINE, ENDMARKER when piped to the tokenize module
New submission from Jeremy :
If a unittest is written which accesses a module written in C++ (I used
Pybind11 to allow Python access) which uses malloc for a string, a segmentation
fault is caused. This is not replicated when malloc is used for some other data
types such as int, char or char
New submission from Jeremy :
While writing a program using the multiprocessing library I stumbled upon what
appears to be a bug with how different platforms deal with private methods.
When a class has a private method which is the target for a multiprocessing
process, this name is correctly
New submission from Jeremy :
The way that contextlib.chdir currently restores the old working directory, an
exception is raised if the program was already close to or beyond a system's
PATH_MAX. The context manager has no issue crafting the path in __enter__
because os.getcwd() can ret
Jeremy added the comment:
Yes, precisely. Besides being an unreachable long abs path, it might have been
deleted since last visited. I’m working on a few more odd test cases.
--
___
Python tracker
<https://bugs.python.org/issue45
Jeremy added the comment:
>If os.chdir is in os.supports_fd, the context manager can use dirfd =
>os.open(os.getcwd(), os.O_RDONLY). Using an fd should also work around the
>deleted directory case, though POSIX doesn't specify whether fchdir() succeeds
>in this case. It d
Change by Jeremy :
--
keywords: +patch
pull_requests: +27481
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29218
___
Python tracker
<https://bugs.python.org/issu
Jeremy added the comment:
A LBYL won't always raise errors early as you point out. It will give earlier
warnings for a lot of cases, but makes contextlib.chdir usable in less places
than os.chdir.
Some return paths will always be errors, and some will be technically
recoverable bu
Jeremy added the comment:
> How common do you expect such errors to be though? Do you expect them to be
> more or less common than with os.chdir()? Do you expect the mitigations to
> be any different than with a failing os.chdir()?
It has come up for me with some frequency. But
I'm working on this bug now, but can't get an SF login to update the bug report.
Jeremy
On 10/3/06, SourceForge.net <[EMAIL PROTECTED]> wrote:
> Bugs item #1569998, was opened at 2006-10-03 14:04
> Message generated for change (Settings changed) made by gbrandl
> Yo
Jeremy Kloth added the comment:
The test only completed once I purposefully terminated the offending Python
process. The only identifying information I noticed was the command-line of
`-c "while True: pass"`, indicating it was stuck in either
test_call_timeout() or test_ti
Jeremy Kloth added the comment:
I've been able locally to reproduce the test_subprocess hang. The responsible
function is subprocess.run(). The test case, test_timeout(), uses a small
timeout value (0.0001), which, when given enough load, can cause the run() call
to hang.
A judiciou
Jeremy Kloth added the comment:
> > the fix should be as simple as coercing the timeout values to >= 0.
>
> Popen._remaining_time() should return max(endtime - _time(), 0).
That was my first initial instinct as well, however, that change would
also affect more of the Popen beha
New submission from Jeremy Kloth :
While the current build does enable building of projects in parallel
(msbuild -m), the compilation of each project's source files is done
sequentially. For large projects like pythoncore or _freeze_module this can
take quite some time.
This simp
Change by Jeremy Kloth :
--
keywords: +patch
pull_requests: +29535
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31390
___
Python tracker
<https://bugs.python.org/issu
New submission from Jeremy Kloth :
When attempting to run the test harness, I receive the following:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Public\Devel\cpython\main\Lib\test\__main__.
Change by Jeremy Kloth :
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue46788>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jeremy Kloth :
A recent change to the buildmaster config effectively disabled the caching of
the externals for Windows buildbots:
https://github.com/python/buildmaster-config/pull/255
If the caching is desired, a simple change to the buildmaster config is needed
Change by Jeremy Kloth :
--
nosy: +pablogsal, vstinner
___
Python tracker
<https://bugs.python.org/issue46789>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jeremy Kloth :
As a follow on to bpo-46716, the various timeout parameters currently deal with
negative values differently in POSIX and Windows.
On POSIX, a negative value is treated the same as 0; check completion and raise
TimeoutExpired is still running.
On Windows
Change by Jeremy Kloth :
--
nosy: +eryksun, vstinner
___
Python tracker
<https://bugs.python.org/issue46790>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jeremy Kloth added the comment:
Oh, I forgot to add that I'm in favor of following the threading.py behavior of
allowing <=0 to mean "non-blocking" (i.e., just check). This would probably
also benefit from a documentation
Jeremy Kloth added the comment:
I personally would like to see caching restored so as to keep the duration of
buildbot runs as low as possible. The repeated fetching effectively doubles
compilation time for my Win11 builder.
--
___
Python
Jeremy Kloth added the comment:
> Would it be possible to create a download cache somewhere outside the Python
> source tree, so "git clean -fdx" would not remove this cache?
I was thinking of locating it next to the checkout directory. The
current structure is:
[worker r
Jeremy Kloth added the comment:
Good news, the difference on Windows was easy enough to find, bad news total
refs are now negative!
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -3647,8 +3647,7 @@ _PyBuiltins_AddExceptions(PyObject *bltinmod)
#define INIT_ALIAS(NAME, TYPE
Jeremy Kloth added the comment:
Note that an allocated block is still leaking.
Strange as well, when using dump_refs, the total refs are much more negative
(-12 linux, -13 Windows)
--
___
Python tracker
<https://bugs.python.org/issue46
Jeremy Kloth added the comment:
> Oh wow. How did you find this leak? Did you read all C files and check for
> code specific to Windows? How did you proceed? Well spotted!
Initially, I modified Py_INCREF to dump the object (addr & tp_name) on
initial inc (ob_refcnt == 1) and Py
Jeremy Kloth added the comment:
> ./configure --enabled-shared --with-py-debug --with-trace-refs
(that's what I get for typing from memory):
./configure --enable-shared --with-pydebug --with-trace-refs
> > I proposed GH-31594 to fix this macro.
>
> Even using that
Jeremy Kloth added the comment:
Did you also modify initconfig.c? That part is required as the usual
processing of the environment variable PYTHONDUMPREFS needed to enable
tracing output is ignored with -I
--
___
Python tracker
<ht
matter of terminology, there is no currying going on. It's
just a problem with closures.
Jeremy
On 10/1/06, Scott Marks <[EMAIL PROTECTED]> wrote:
> The code below exhibits different behavior depending on whether it invokes
> sys.settrace ('-t' option) or not. This mea
Jeremy Kloth added the comment:
The attached patch seems to work as-is. That is, just testing for `self.path`
as the prefix. On Windows, at least, the paths in RECORD are always absolute.
Further changes will be necessary, of course, once changes for alternative
paths (--prefix, --home
Jeremy Kloth added the comment:
Please read the link which you posted. Quoting the second paragraph, second
sentence:
"Default namespace declarations do not apply directly to attribute names;"
and from the third paragraph, third sentence:
"The namespace name for an unpre
New submission from Jeremy Banks :
I was experimenting with the sqlite3 library and noticed that using certain
strings as identifiers cause bus errors or segfaults. I'm not very familiar
with unicode, but after some Googling I'm pretty sure this happens when I use
non-characters or
Jeremy Banks added the comment:
I'm using OS X 10.6.7.
The bus error is occurring with my Python 3.1 installation:
path: /Library/Frameworks/Python.framework/Versions/3.1/bin/python3
sqlite3.version == 2.4.1
sqlite3.sqlite_version = 3.6.11.
But now that you mention it, my Mac
Jeremy Banks added the comment:
I'll try that, thank you.
If it works without exception in Python 2, isn't the behaviour in Python 3 a
regression bug, even if it doesn't crash? If so, should I create a new/separate
issue fo
Changes by Jeremy Bicha :
--
nosy: +jbicha
___
Python tracker
<http://bugs.python.org/issue12627>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jeremy Kloth :
--
nosy: +jkloth
___
Python tracker
<http://bugs.python.org/issue12729>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jeremy Kloth added the comment:
The failure was due to the sdist command having different default formats for
each platform (i.e., POSIX: gztar, Win32: zip). Patch attached.
--
keywords: +patch
nosy: +jkloth
Added file: http://bugs.python.org/file22952/test_sdist.diff
Changes by Jeremy Kloth :
--
nosy: +jkloth
___
Python tracker
<http://bugs.python.org/issue12895>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jeremy Kloth :
--
nosy: +jkloth
___
Python tracker
<http://bugs.python.org/issue11805>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jeremy Thurgood added the comment:
This seems to be fixed in 3.2 and the 2.7 maintenance branch, but here's a
(one-liner) patch for people who want to fix their local installations.
--
keywords: +patch
nosy: +jerith
Added file: http://bugs.python.org/file18750/2to3_log_fix.
Jeremy Hylton added the comment:
Let me fix that.
--
nosy: +Jeremy.Hylton
___
Python tracker
<http://bugs.python.org/issue9997>
___
___
Python-bugs-list mailin
Changes by Jeremy Thurgood :
--
nosy: +jerith
___
Python tracker
<http://bugs.python.org/issue9997>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jeremy Kloth :
--
nosy: +jkloth
___
Python tracker
<http://bugs.python.org/issue6792>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jeremy Kloth :
--
nosy: +jkloth
___
Python tracker
<http://bugs.python.org/issue10175>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jeremy Kloth added the comment:
A quick look with Dependency Walker gives me the following:
Python 2.4,2.5 -- MSVC .NET 2003 (7.1)
Python 2.6,2.7,3.0,3.1 -- MSVC 2008 (9.0)
Note these are only for the official python.org builds. Each version can also
be built using other MSVC versions. To
Changes by Jeremy Kloth :
--
nosy: +jkloth
___
Python tracker
<http://bugs.python.org/issue10217>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jeremy Kloth :
--
nosy: +jkloth
___
Python tracker
<http://bugs.python.org/issue11921>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jeremy Thurgood added the comment:
Attached a patch to test for and fix the first two issues described in this
ticket.
Basically, it modifies SimpleHTTPRequestHandler.send_head() to operate on a
path already stripped of the query string and fragment rather than the
completely unparsed URL
Jeremy Thurgood added the comment:
The weird behaviour is caused by newlines being treated as normal whitespace
characters and not actually causing _wrap_chunks() to break the line. This
means that it builds "lines" of up to 'width' characters which may contain
Jeremy Thurgood added the comment:
Here's a doc patch for py3k. A similar patch for 2.7 (and other versions?)
might be a good idea.
--
keywords: +patch
Added file: http://bugs.python.org/file19676/issue1859_docs.diff
___
Python tracker
Jeremy Thurgood added the comment:
Thanks for the comments.
There are two separate things here: the URL and the filesystem path. The only
part of the URL we care about is the path section, but the fragment ("#anchor")
and query parameters ("?foo") are valid -- SimpleHTT
Jeremy Thurgood added the comment:
Updated patch as per previous comment.
--
Added file: http://bugs.python.org/file19701/issue10231_v2.diff
___
Python tracker
<http://bugs.python.org/issue10
Jeremy Thurgood added the comment:
On Sun, Nov 21, 2010 at 10:37, Senthil Kumaran wrote:
> Now, what happens when you type "http://bugs.python.org?10231"; [1] in
> your browser? According to this bug report, the server should 301
> redirect it to "http://bugs.python.
Jeremy Thurgood added the comment:
On Sun, Nov 21, 2010 at 17:11, Senthil Kumaran wrote:
>>I can't see any situation in which redirecting
>> "/something?foo" to "/something?foo/" is the correct behaviour.
> As I explained, in the previous post, this wou
New submission from Jeremy Langley :
old versions of python worked on old versions of winpe by copying the
c:\python25\ directory over to the mounted (iso,usb) filesystem, then rebooting
with the media and running the python.exe from the ramdrive.
This formula no longer works with 64 bit
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
Oops. Let me look at this tomorrow. It was down to one failing test
that last time I checked.
Jeremy
On Wed, Jun 11, 2008 at 10:10 PM, Barry A. Warsaw
<[EMAIL PROTECTED]> wrote:
>
> Barry A. Warsaw <[EMAIL PROTECTE
Changes by Jeremy Hylton <[EMAIL PROTECTED]>:
--
assignee: -> jhylton
nosy: +jhylton
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.py
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
Committed revision 65064.
--
status: open -> closed
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.py
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
Committed revision 65118.
I applied a simple version of this patch and added a unittest.
--
assignee: -> jhylton
nosy: +jhylton
status: open -> closed
___
Python tracker <[EMAIL PR
Jeremy Hylton added the comment:
I'm trying to figure out the attached script. If I run Python 3.0, the script
doesn't run because of the undefined gc.DEBUG_OBJECTS. If I just remove that,
the script runs without error. Does that mean the problem is fixed? Or is
running withou
Jeremy Hylton added the comment:
I spent some time to understand the example script today. The specific issue
is that a set of objects get put into the list of unreachable objects with
finalizers (both Immutable and Finalizer instances). When Cycle's __dict__ is
cleared, it also de
Jeremy Hylton added the comment:
One last thought on this bug. The problem is that after we try to delete
garbage, we really can't know much about the state of the objects in the
finalizers list. If any of the objects that are cleared end up causing a
finalizer to run, then any o
Jeremy Hylton added the comment:
Amaury-- I think that will work. I put together a small patch that seems to
pass all the tests, but it too messy. We need some care to make sure we don't
spin forever if there's some degenerate case where we never
I don't think the HTTPConnection class was designed to work with
sockets that don't follow the Python socket API. If you want to use a
different socket, you should create some wrapper that emulates the
Python socket ref count behavior.
Jeremy
On Mon, Feb 1, 2010 at 5:23 PM, Rober
Jeremy Hylton added the comment:
On Fri, Feb 19, 2010 at 6:22 PM, R. David Murray wrote:
>
> R. David Murray added the comment:
>
> But a goal is for the standard library to work with Python implementations
> other than CPython, and the reference counting behavior described
Jeremy Hylton added the comment:
On Sat, Feb 20, 2010 at 12:06 AM, R. David Murray
wrote:
>
> R. David Murray added the comment:
>
> But the docs (which presumably describe the API) say that the socket is
> unusable after the call to close, which argues that the param
Jeremy Hylton added the comment:
In particular, I mean this part of the socket API:
socket.makefile([mode[, bufsize]])
Return a file object associated with the socket. (File objects are
described in File Objects.) The file object references a dup()ped
version of the socket file descriptor, so
Jeremy Hylton added the comment:
On Sun, Feb 21, 2010 at 5:38 PM, Robert Buchholz wrote:
>
> Robert Buchholz added the comment:
>
> almost... HTTPConnection is calling close() on the socket object, but
> HTTPResponse still has an open file-like object from a previous makefile(
___
> ___
> Python-bugs-list mailing list
> Unsubscribe:
> http://mail.python.org/mailman/options/python-bugs-list/jeremy%40alum.mit.edu
>
>
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Jeremy Hylton added the comment:
On Mon, Feb 22, 2010 at 6:10 PM, Guido van Rossum
wrote:
>
> Guido van Rossum added the comment:
>
> All examples so far (*) have to do with our inability to have properly nested
> blocks. If we did, I'd make the except clause a block, an
Jeremy Hylton added the comment:
The patch looks pretty good.
I'd factor out the common error-checking code (common between
LOAD_DEREF and DELETE_DEREF) into a helper function.
It would also be good to add some test cases.
Jeremy
On Tue, Feb 23, 2010 at 9:38 AM, Guido van Rossum
Jeremy Hylton added the comment:
Is deferred blocker a higher priority?
Jeremy
On Tue, Feb 23, 2010 at 4:37 PM, Georg Brandl wrote:
>
> Georg Brandl added the comment:
>
> "High" is not high enough :)
>
> --
> pri
Jeremy Hylton added the comment:
On Sat, Dec 6, 2008 at 1:28 PM, Benjamin Peterson
wrote:
>
> Benjamin Peterson added the comment:
>
> I think I may have been merging add_ast_fields when I wrote the patch.
>
> Here's a new patch that handles "global x, = (5,)"
does have the
downside that you need to enforce this unwritten constraint of the AST
in ast.c and in the ast module.
It also means that the AST will change in a non-backwards compatible
way. I don't see how to do that given that we're also changing the
language spec. (Do you want to
Jeremy Hylton added the comment:
I guess there's some question about whether the syntax in the PEP was
considered carefully when it was approved. If so, I'm not sure that
we want to re-open the discussion. On the other hand, it's been a
long time since the PEP was approved a
Jeremy Hylton added the comment:
Ok. I'll take a look, too.
Jeremy
On Sat, Feb 27, 2010 at 4:30 AM, Ezio Melotti wrote:
>
> Changes by Ezio Melotti :
>
>
> --
> nosy: +orsenthil
> status: pending -> open
>
> __
New submission from Jeremy Sanders :
The struct documentation at http://docs.python.org/library/struct.html says:
Standard size and alignment are as follows: no alignment is required for any
type (so you have to use pad bytes); short is 2 bytes; int and long are 4
bytes; long long (__int64 on
Jeremy Sanders added the comment:
Sorry - I didn't read the docs clearly enough. This probably isn't a bug then.
Can you mark it invalid?
--
___
Python tracker
<http://bugs.python.
New submission from Jeremy Dunck <[EMAIL PROTECTED]>:
Within python 2.5.2:
>>> from decimal import Decimal
>>> x = 3.0
>>> y = Decimal('0.25')
>>> x > y
False (expected error, as in 2.4, or True)
--
components: Library (Lib)
mes
Changes by Jeremy Dunck <[EMAIL PROTECTED]>:
--
type: -> behavior
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2531>
__
___
Python-b
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
I'm working on the new urllib package.
--
nosy: +jhylton
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.
Changes by Jeremy Hylton <[EMAIL PROTECTED]>:
--
nosy: +jhylton
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1346238>
_
___
Python-bugs
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment:
This looks very much like a duplicate of issue 1714. Perhaps the two
should be merged?
--
nosy: +jerith
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
I think we should move robotparser into the urllib package. Anyone
disagree?
Jeremy
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment:
Added handling for "Expect: 100-continue" header to
BaseHTTPRequestHandler. By default, any request that has this header
gets a 100 Continue response (with no other headers) before
do_WHATEVER() is called. By overriding h
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment:
The above patch adds a set of tests for BaseHTTPServer, although the
only tests actually written were those around the areas touched by the
work done for this issue.
__
Tracker <[EMAIL PROTECTE
Changes by Jeremy Hylton <[EMAIL PROTECTED]>:
--
nosy: +jhylton
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1348>
__
___
Python-bugs-list mailin
Jeremy Banks <[EMAIL PROTECTED]> added the comment:
Sorry, allowing for conversion to int/float is probably a more sensible
solution.
This idea was brought to my mind when I was making a very very simple
script for a friend to display how far through a time range we currently
are. For e
New submission from Jeremy Banks <[EMAIL PROTECTED]>:
It would be convenient if it were possible to divide one
datetime.timedelta object by another to determine their relative durations.
Were the datetime module pure Python a crude solution would just be to
add two methods lik
Jeremy Banks <[EMAIL PROTECTED]> added the comment:
Thanks, I should have paid more attention to the results when I searched
for duplicates. I think that Christian's suggestion of enabling float()
and int() for timedeltas is worth having here, though.
--
nosy: -chris
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
It seems generally useful to have a helper function to replace a range
of nodes in a sequence of statements with another sequence of nodes. A
general API like that would allow you to insert or delete nodes as well
as replacing one node
hink this added
> complexity is worth it?
Or we could add parent pointers in the tree, right?
Jeremy
>
> ___
> Python tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue4327>
> ___
&
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
This patch makes sense in principle, but some of the details need to
change. The _send_output() method is used by some clients, merely
because it can be used :-(. It's fairly easy to preserve this API for
backwards compatibility.
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
Just wanted to mention that the best solution is to update as much code
as possible to use HTTPConnection instead of HTTP. I'm not sure how
easy it is to do for xmlrpclib, since it exposes methods like
send_content(). I guess we c
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
I haven't thought about the code in a while, but what code that
modifies the AST are we worried about? There are lots of
modifications in ast.c, since it is being created there. The case we
really care about is sequences, where
d for efficiency.
Jeremy
On Mon, Nov 24, 2008 at 12:32 PM, Jeremy Hylton <[EMAIL PROTECTED]> wrote:
>
> Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
>
> This patch makes sense in principle, but some of the details need to
> change. The _send_output() method
Jeremy Hylton <[EMAIL PROTECTED]> added the comment:
Python 2.4 is now in security-fix-only mode. No new features are being
added, and bugs are not fixed anymore unless they affect the stability
and security of the interpreter, or of Python applications.
http://www.python.org/download/re
1 - 100 of 577 matches
Mail list logo