New submission from Jeff Cagle :
Squeezed text output currently opens in a viewer whose only functionality is
scrolling. Adding the Find widget a la IDLE would make the viewer much more
useful.
--
assignee: terry.reedy
components: IDLE
messages: 413761
nosy: Jeff.Cagle, terry.reedy
Jeff Allen added the comment:
Thomas wrote:
> it's as part of this discussion in
> https://mail.python.org/archives/list/python-...@python.org/thread/ABR2L6BENNA6UPSPKV474HCS4LWT26GY/#IAOCDDCJ653NBED3G2J2YBWD7HHPFHT6
> and others in #python-dev
That's where I noticed it
Jeff Allen added the comment:
I'm interested in Thomas' reasons, but here are some of mine (as far as I
understand things):
1. It is specific to one interpreter implemented in C, equipped with a GIL, and
on certain assumptions about the byte code interpreter and the implementation
New submission from Jeff S :
The documentation page https://docs.python.org/3/library/tkinter.html states
"Passing the config() method the name of a shorthand option will return a
2-tuple, not 5-tuple." While config() without argument does return a map that
yields references lik
Change by Jeff Moguillansky :
--
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue44126>
___
___
Python-bugs-list mailing list
Un
Jeff Moguillansky added the comment:
Is it possible to add support for cross-compiling of cpython modules to
setuptools?
It seems that currently there's some 3rd party solutions like "crossenv" but
they don't seem to work with clang / ndk-toolchain for example.
-
Jeff Moguillansky added the comment:
Thanks for the info, I will forward the question to the setuptools mailing list
--
status: open -> closed
___
Python tracker
<https://bugs.python.org/issu
Change by Jeff Moguillansky :
--
status: closed -> open
___
Python tracker
<https://bugs.python.org/issue44126>
___
___
Python-bugs-list mailing list
Un
Change by Jeff Moguillansky :
--
title: Cross Compile Cython Modules -> Cross Compile CPython Modules
___
Python tracker
<https://bugs.python.org/issu
Jeff Moguillansky added the comment:
Sorry I meant cpython.
Distutils is part of cpython?
Currently it doesn't seem to support cross compiling?
On Thu, May 13, 2021, 1:08 PM Ned Deily wrote:
>
> Ned Deily added the comment:
>
> This issue tracker is for issues with cPyth
New submission from Jeff Moguillansky :
Hi,
I was able to cross-compile Python 3.9.4 for Android.
How do I cross-compile cython modules?
I found one tool online: https://pypi.org/project/crossenv/
but it doesn't seem to be compatible with android clang?
Does cython support cross-comp
New submission from Jeff Moguillansky :
when running python.exe -m venv on Windows,
It creates several activate scripts.
The activate bash script has the wrong line endings (it should be unix-style,
not windows-style).
Bash scripts should always end with unix style line endings
Jeff Moguillansky added the comment:
Thanks for the feedback
On Mon, Feb 8, 2021, 8:29 PM Eryk Sun wrote:
>
> Eryk Sun added the comment:
>
> > What's the correct way to set the DLL search path when running a python
> script?
>
> If possible, the simplest appr
New submission from Jeff Moguillansky :
Hi,
What's the correct way to set the DLL search path when running a python script?
It seems that it doesn't search the directories specified in PATH environment
variable.
FYI: For debugging the DLL loading issues, I'm using "P
New submission from Jeff Moguillansky :
I have a question regarding debugging native Python modules on Windows, with
Visual Studio toolchain:
Currently I have a native module (native C code), along with Python API
bindings (via Cython), and finally Python code that invokes the native module
Jeff Moguillansky added the comment:
Thanks for the feedback, I understand
--
___
Python tracker
<https://bugs.python.org/issue42863>
___
___
Python-bugs-list m
Jeff Moguillansky added the comment:
Maybe we can consider adding additional params and a new code path to python -m
venv? This way we don't break any existing functionality?
e.g. -includedir=... -libdir=... -bindir=...
?
--
___
Python tr
Jeff Moguillansky added the comment:
To give more context regarding this issue:
I'm currently using meson build system to generate the pkg-config files, and it
seems that the paths "include", "lib" are hardcoded.
>From the perspective of the overall syste
New submission from Jeff Moguillansky :
When creating a virtual environment on windows using venv, the folder
structure: "Scripts", "Include", "Lib", is inconsistent with other platforms
(e.g. "include", "lib", "bin", etc).
This c
New submission from Jeff Moguillansky :
Hi,
We developed a Python module that interfaces with native code via Cython.
We currently build on Windows with Visual Studio Toolchain.
We encounter the following issues when trying to build a debug version:
1) 3rd party modules installed via PIP are
New submission from Jeff Scheibly :
I went through and ran the make altinstall from the Python3.8.3.tar.gz and
after running the .configure --enable-optimizations, I ran make altinstall,
which was successful.
Would it be possible to get a uninstall target added so that in the case you
may
New submission from Jeff Laughlin :
As a test engineer I want to be able to run async test fixtures and test cases
in different async tasks with the same Context. Not a copy; the same specific
instance of contextvars.Context().
I do NOT want the task to run in a COPY of the context because I
Jeff Fischer added the comment:
I've run into the same problem. It appears that the SharedMemory class is
assuming that all clients of a segment are child processes from a single
parent, and that they inherit the same resource_tracker. If you run separate,
unrelated processes, you
Jeff Allen added the comment:
Jython uses the reference grammar and ASDL as a way to ensure it is Python we
approximate, not some subtly different language. The presence of Suite here
gives rise to a class
(https://github.com/jythontools/jython/blob/v2.7.2b3/src/org/python/antlr/ast
Jeff Edwards added the comment:
Interesting, I hadn’t realized that it would embed the FQ Executable path,
but that does make sense overall. I guess I had always planned on fixing
the ‘bin’ directory anyway afterwards, it’s just that the lack of relative
home made it significantly harder to
Jeff Edwards added the comment:
I would say they’re not designed to be, but the also aren’t designed to not
be portable. This is often useful where open network access isn’t
reasonable, so access to Pip/pipx/pipenv is limited at best.
Suffice to say, is there a significant reason to not allow
New submission from Jeff Edwards :
Currently, the interpreter only supports absolute paths for the 'home'
directory in the pyvenv.cfg file. While this works when the interpreter is
always installed at a fixed location, it impacts the portability of virtual
environments and c
New submission from Jeff Berkowitz :
After using the Python-supported installer to install 3.8.0 on my
employer-owned Mac running High Sierra (10.13.6), the 'Install
Certificates.command' had no apparently effect on the behavior of Python.
The behavior before executing the script
Jeff Robbins added the comment:
Editing one line in structseq.h seems to fix the issue.
I changed this
extern char* PyStructSequence_UnnamedField;
to
PyAPI_DATA(char*) PyStructSequence_UnnamedField;
rebuilt, and now my C extension can use PyStructSequence_UnnamedField.
--
Added
New submission from Jeff Robbins :
Python 3.8.0b3 has the fixed
https://docs.python.org/3/c-api/tuple.html#c.PyStructSequence_NewType, but one
of the documented features of PyStructSequence is the special
https://docs.python.org/3/c-api/tuple.html#c.PyStructSequence_UnnamedField
which is
Jeff Robbins added the comment:
Steve, sorry to be dense, but I'm unfortunately ignorant as to what tests I
ought to be running. The only test I have right now is much too complicated,
and I'd rather be running some official regression test that reveals the
problem without my ap
Jeff Robbins added the comment:
Steve, I did some more digging into why the native condition variable approach
might be causing problems on Windows. Testing my fix revealed that there is at
least one place in Modules\overlapped.c that either
a) waits too long to call GetLastError(), or
Jeff Robbins added the comment:
I don't understand why 0 would be safer. Since asyncio can only service this
IOCP from its single threaded event loop, I would have thought 1 would express
the intent better.
Why not convey to the OS what we're up to, in case that helps it do a b
Jeff Knupp added the comment:
According to https://snyk.io/research/zip-slip-vulnerability (the source of the
paper), Python hasn't been vulnerable since 2014.
--
nosy: +jeffknupp
___
Python tracker
<https://bugs.python.org/is
Jeff Robbins added the comment:
I searched harder. :-)
https://bugs.python.org/issue29871
I see that someone else already noticed this broken function, but I guess
it was left broken because of other issues with using condition variables
instead of the emulated ones?
Still, the code is
Jeff Robbins added the comment:
I did a search and couldn't find exactly this issue. This issue is about a
broken function. It is broken because it treats a timeout as a fatal error
which crashes your Python program.
I supplied a proposed fix for the function.
If there are other known i
New submission from Jeff Robbins :
Python 3.x defaults to using emulated condition variables on Windows. I tested
a build with native Windows condition variables (#define _PY_EMULATED_WIN_CV
0), and found a serious issue.
The problem is in condvar.h, in this routine:
/* This
Jeff Robbins added the comment:
This issue is likely a duplicate of https://bugs.python.org/issue34323
which was reported in Python 3.5.
--
___
Python tracker
<https://bugs.python.org/issue35
New submission from Jeff Robbins :
The close() method of IocpProactor in windows_events.py has this code in its
close() method:
while self._cache:
if not self._poll(1):
logger.debug('taking long time to close proactor')
The bug is that self._poll
Jeff Robbins added the comment:
Per
https://stackoverflow.com/questions/38133870/how-the-parameter-numberofconcurrentthreads-is-used-in-createiocompletionport,
it seems that `NumberOfConcurrentThreads` controls what happens when multiple
threads call `GetQueuedCompletionStatus`.
But
New submission from Jeff Robbins :
By default, the __init__ function of IocpProactor in windows_events.py calls
CreateIoCompletionPort with a 4th argument of 0x, yet MSDN doesn't
document this as a valid argument.
https://docs.microsoft.com/en-us/windows/desktop/f
Jeff Dafoe added the comment:
I have a question about this old patch, as it just came down in a CentOS 6
update. I think the patch is applied to the data channel in ASCII mode and not
just the control channel. On the data channel in ASCII mode, there should be no
assumption of maximum line
New submission from Jeff Kaufman :
With python built at HEAD (c51d8c9b) and at 3.7b3 (fcd4e03e08) the code:
import difflib
for fromdata, todata, flag in difflib._mdiff(
["2"], ["3"], 1):
pass
produces:
Traceback (most recent call last):
New submission from Jeff DuMonthier :
The following simple example code creates a started SyncManager and passes it
as an argument to a subprocess started with multiprocessing.Process(). It
works on Linux and Mac OS but fails on Windows.
import multiprocessing as mp
def subProcFn(m1
Jeff Ramnani added the comment:
I think the error message you suggested is better than the one in the current
patch. I've added a new patch with your improved message.
I haven't submitted or updated a patch since the migration to GitHub. I can
open a PR over on GitHub if that wou
New submission from jeff deifik :
I am running python 3.6.3 on cygwin / windows.
Here is a test program to demonstrate the bug:
#!/usr/bin/env python3
fp = open("bug_out.txt", "ab")
buff = 'Hello world'
print('type of buff is', type(buff))
bin_buf
Change by Jeff VanOss :
--
keywords: +patch
pull_requests: +4624
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Jeff Allen :
--
nosy: +jeff.allen
___
Python tracker
<https://bugs.python.org/issue31630>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jeff Zhang:
I want to use pickle in compile/exec, but it doesn't work for me. It only works
when I use the global namespace. But I don't want to use global namespace, is
there any way for that ? Thanks
>>> a = compile("def f():\n\t'hello
New submission from Jeff DuMonthier:
In multiprocessing, attempting to add a Queue proxy to a dict or Namespace
proxy (all returned by the same SyncManager) raises an exception indicating a
keyword argument 'manager_owned=True' has been passed to the function
AutoProxy() but
Jeff Allen added the comment:
Just terminology ... strictly speaking what you've done here is "add a *field*
to the nodes Module, FunctionDef and ClassDef", rather than add an *attribute*
-- that is, when one is consistent with the terms used in the ast module
(https://do
Jeff Knupp added the comment:
I believe this is working as intended. Remember, the '%w' directive instructs
strptime to consider 0 to be Sunday, while tm_wday considers 0 Monday. In 2016,
the %W directive means that the first week (week #1) starts on Monday, January
4th. If you g
Jeff Reback added the comment:
ok thanks for the info. fixed in pandas here:
https://github.com/pandas-dev/pandas/pull/14689
is this documented in the whatsnew?
--
___
Python tracker
<http://bugs.python.org/issue28
New submission from Jeff Reback:
xref to https://github.com/pandas-dev/pandas/issues/14679.
pandas has had a cython extension class to datetime.datetime for quite some
time. A simple __reduce__ is defined.
def __reduce__(self):
object_state = self.value, self.freq, self.tzinfo
Jeff Allen added the comment:
Ah, cunning: I can make sense of it in hex.
>>> hex(to_ulps(expected))
'0x3ff0'
>>> hex(to_ulps(got))
'0x3fec'
>>> hex( to_ulps(got) - to_ulps(expected) )
'-0x4'
... and what you
Jeff Allen added the comment:
Mark: Thanks for doing my homework. Points 1 and 3 I can readily agree with. I
must take another look at to_ulps() with your patch on locally. I used the
approach I did because I thought it was incorrect in exactly those corners
where you prefer it. I'll t
Jeff Allen added the comment:
Mark: Thanks for validating the additional cases so carefully.
If you still want to apply it in stages then I suppose the change to the
comparison logic could go first (untested idea), although that's also where I
could most easily have made a mi
Jeff Allen added the comment:
It would be nice to see this considered alongside #26040.
--
nosy: +jeff.allen
___
Python tracker
<http://bugs.python.org/issue27
New submission from Jeff Peters:
The help| about idleX | popup still lists the version as 1.12 this throws
off the check for updats functionality
--
components: IDLE
messages: 264838
nosy: Jeff Peters
priority: normal
severity: normal
status: open
title: About Idle-x version not
Changes by Jeff Allen :
Added file: http://bugs.python.org/file42191/extra_cmath_testcases.py
___
Python tracker
<http://bugs.python.org/issue26040>
___
___
Python-bug
Changes by Jeff Allen :
Removed file: http://bugs.python.org/file42190/stat_math.py
___
Python tracker
<http://bugs.python.org/issue26040>
___
___
Python-bugs-list mailin
Changes by Jeff Allen :
Added file: http://bugs.python.org/file42192/stat_math.py
___
Python tracker
<http://bugs.python.org/issue26040>
___
___
Python-bugs-list mailin
Changes by Jeff Allen :
Removed file: http://bugs.python.org/file41526/stat_math.py
___
Python tracker
<http://bugs.python.org/issue26040>
___
___
Python-bugs-list mailin
Jeff Allen added the comment:
Thanks for the prompt acknowledgement and for accepting this to review.
I have updated the coverage & tolerance demo program. Usage in the comments (in
v3).
I have also added the program I used to generate the extra test cases (needs
mpmath -- easier to
Changes by Jeff Allen :
Added file: http://bugs.python.org/file42190/stat_math.py
___
Python tracker
<http://bugs.python.org/issue26040>
___
___
Python-bugs-list mailin
Jeff Allen added the comment:
Here is a patch that improves coverage and addresses the uneven accuracy.
Required accuracy is now specified in ulps. Mostly, I have choses 1 ulp, since
this passed for me on an x86 architecture (and also ARM), but this may be too
ambitious.
I have also
Jeff Allen added the comment:
I'm also interested in a smooth experience for beginners.
I have a factual observation with respect to Terry's comment:
'''Windows icons have a Shortcut tab with a Start-in field. We should like to
put %USERPROFILE% there, but this d
Jeff Ramnani added the comment:
I'm still getting these test failures on OS X 10.11.1. Has a radar been filed
with Apple? I'd submit one, but I don't know enough about the issue to create
a good bug report.
In the meantime, I'm attaching a patch to skip these tests
Jeff Quast added the comment:
I looked over the focus on "default" path, thank you for clarifying!
Sadly, I can't help you move either of these patches forward, best wishes!
--
___
Python tracker
<http://bugs.pyt
Jeff Quast added the comment:
John, What do you think of the patches attached to
http://bugs.python.org/issue20664 ?
"crle is not needed at all because the default library path is
a constant on Solaris"
I don't believe this to be true, source? crle is absolutely needed to
New submission from Jeff Ding:
After uninstalling old versions of Python:
Python is unable to install unless I disable pip.
Once python installs, python immediately crashes due to Py_Initialize
--
components: Windows
files: python_crash.png
messages: 244003
nosy: Jeff77789
Jeff McNeil added the comment:
Do we have a decision on this yet? I'm willing to rework bits that may need
it, but I'd like to know whether this is going to be a fruitful effort or not.
Thanks!
--
___
Python tracker
<http://bu
Jeff McNeil added the comment:
Fixing the underlying connect call should also address EINTR failing with a
"operation already in progress" when a connect+timeout fails due to a signal.
I can understand not addressing EINTR generically (though it is already
partially addresse
Jeff Ramnani added the comment:
So, the devguide has been updated since this issue was opened. The Quick Start
section now has a link to build documentation, which includes information about
build dependencies. Is this sufficient to call this bug closed?
--
nosy: +jramnani
Jeff McNeil added the comment:
I'm not a big fan of the settimeout approach myself (and only did it because it
was mentioned as a possible approach). I think the existing implementations of
EINTR retry also suffer from the same issue in which the timeout isn't adjusted
per iter
Jeff McNeil added the comment:
Actually, never mind that suggestion. Now that I think a bit more about it,
that actually doesn't do anything since I'd still need to set the updated
timeout on the current socket object anyway. Whoops.
I'll leave it up to you as to whethe
Jeff McNeil added the comment:
Added a flag to allow for at least one run -- I know nothing of non-Linux clock
resolution. That should handle that.
As for the thread safety of the socket timeouts, yeah, that was why I didn't do
that initially, I assumed the suggestion to take that app
Jeff McNeil added the comment:
Updated to recalculate timeout at Python level. The current module already
works this way on recv() calls. See attached.
I'd be happy to churn through and fix the other modules (using the 3.5 work as
a guide), though I think only addressing the higher
Jeff McNeil added the comment:
So, yeah, that's right. In the attached patch, I'm closing the file descriptor
if the timeout/error happens on a non-blocking call. It fails with an EBADF on
reconnect at that point, but it doesn't potentially leave an FD in the proc's
file
Jeff McNeil added the comment:
Missed check on _ex func.
--
Added file: http://bugs.python.org/file38865/socket_eintr.2.patch
___
Python tracker
<http://bugs.python.org/issue23
Jeff McNeil added the comment:
Whoops. Accidentally attached the wrong patch that I generated during testing.
--
Added file: http://bugs.python.org/file38832/socket_eintr.1.patch
___
Python tracker
<http://bugs.python.org/issue23
Jeff McNeil added the comment:
mcjeff@mcjeff:~/cpython_clean$ hg summary
parent: 95416:fe34dfea16b0
Escaped backslashes in docstrings.
branch: 2.7
commit: 3 modified, 3 unknown
update: (current)
--
keywords: +patch
nosy: +gregory.p.smith
Added file: http://bugs.python.org/file38826
New submission from Jeff McNeil:
There are a collection of places in the socket module that do not correctly
retry on EINTR. Updated to wrap those calls in a retry loop. However, when
fixing connect calls, I noticed that when EINTR is retried on a socket with a
timeout specified, the retry
Jeff Doak added the comment:
Thanks Ned and everyone! It turns out that Ned was correct and it works fine
now that I followed his instructions.
--
___
Python tracker
<http://bugs.python.org/issue23
Jeff Doak added the comment:
I am in a standard Terminal session. I have a symbolic link for python 3.4:
/usr/bin/python -> /opt/local/bin/python3.4
so I can run python... or the following:
$ /opt/local/bin/python3.4 -c 'import sys;print(sys.version)'
3.4.2 (default, Oct 22 2014, 01
Jeff Doak added the comment:
I noticed they are smart quotes and came back to see David already mentioned it.
As for Demian's question:
2.7.6:
>>> print("{’Test’}")
{’Test’}
3.4.2:
>>> print("{Test}")
{Test}
It is upon paste that the
New submission from Jeff Doak:
On MacBook. Copy/paste the following line into 3.4.2 interpreter session:
[“Test”][‘Test’]
Results in:
[Test][Test]
Same paste into 2.7.6 is as expected:
[“Test”][‘Test’]
--
components: Macintosh
messages: 237389
nosy: Jeff Doak, ned.deily, ronaldoussoren
Jeff Zemla added the comment:
In 3), "not" should be "now"
--
___
Python tracker
<http://bugs.python.org/issue23594>
___
___
Python-bugs-lis
New submission from Jeff Zemla:
I've found a rather simple bug in the default CPython implementation on Mac OS
X 10.9.5
1) Create a new .py file containing:
def a():
print q
x=5
2) Open Python and run using execfile() then a(). Receive error as expected:
File "test.py"
Jeff Hammel added the comment:
A few observations in passing. I beg your pardon for not commenting after a
more in depth study of the issue, but as someone that's written and managed
several subprocess module front-ends, my general observations seem applicable.
subprocess needs easie
Jeff Allen added the comment:
Disabling the AV/firewall did not stop the symptoms when I was investigating
originally. In order to get the unmodified test to pass, I had to stop the BFE
(base filtering engine), which I think may have been given new rules or
behaviours as a result of
Jeff Quast added the comment:
Submitting fix to fallback to alternate '/usr/bin/dump' path, confirmed using
SmartOS.
As for the issues writing to /lib and /usr/lib from a zone, and the request for
"An environment variable .. to override this functionality." I have
Changes by Jeff Quast :
Added file: http://bugs.python.org/file35363/opensolaris-ctypes-python-3.x.patch
___
Python tracker
<http://bugs.python.org/issue20664>
___
___
New submission from Jeff Hinrichs:
if you run
setup.py check --restructuredtext
without docutils installed, it will appear to pass
if you add the -s flag, it will error and inform you that docutils is not
installed.
So nothing is reported and return results are the same as a "pa
Jeff Hinrichs added the comment:
example:
(dhp)jlh@jlh-d520:~/Projects/dhp/src$ python setup.py check
running check
(dhp)jlh@jlh-d520:~/Projects/dhp/src$ python setup.py check --restructuredtext
running check
warning: check: Title underline too short. (line 2)
warning: check: Could not finish
New submission from Jeff Hinrichs:
python setup.py check
python setup.py check --restructuredtext
both incorrectly "warn" and don't "Fail" for things that will cause a failure
when uploading to pypi. This is wrong.
Additionally, they should return a non 0 exit co
Jeff Ramnani added the comment:
Now that bug #18586 is closed, could the Dev Guide point benchmarkers to the
benchmarks repo and its README?
http://hg.python.org/benchmarks/file/9a1136898539/README.txt
--
nosy: +jramnani
___
Python tracker
<h
Jeff Ramnani added the comment:
Attaching a patch with a (hopefully) more useful error message.
I didn't find a good place to add this information in the "Distributing Python
Modules" section of the docs, but let me know if you had a place in mind.
--
keywords: +patch
Jeff Ramnani added the comment:
> Really? Apple's packaging looks almost criminal here.
Apple has deprecated their bundled version of OpenSSL. This issue has more
details, http://bugs.python.org/issue17128
--
nosy: +jramnani
___
Python
New submission from Jeff Ramnani:
The unittest, test_ssl.test_default_ecdh_curve, is failing on OS X (and FreeBSD
9).
The test fails with the error message:
"""
==
ERROR: test_default_ecdh_curve (test.test_ss
1 - 100 of 310 matches
Mail list logo