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 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
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
Change by Jeff Moguillansky :
--
title: Cross Compile Cython Modules -> Cross Compile CPython Modules
___
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
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
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.
-
Change by Jeff Moguillansky :
--
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue44126>
___
___
Python-bugs-list mailing list
Un
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
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
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
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
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
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
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 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 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
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
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
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
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:
Thanks for the feedback, I understand
--
___
Python tracker
<https://bugs.python.org/issue42863>
___
___
Python-bugs-list m
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
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
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 :
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
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 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
Jeff McNeil added the comment:
Did this ever get committed? Is there anything left for me to do here?
--
___
Python tracker
<http://bugs.python.org/issue12
Jeff McNeil added the comment:
I made the change suggested in the last comment, patch is attached. Trying to
clean up any bugs I've got my name on!
--
keywords: +patch
Added file: http://bugs.python.org/file24816/makedirs_function.patch
___
P
Jeff McNeil added the comment:
Documentation patch to outline the use of context manager protocol attached.
Trying to cleanup any bugs with my name on them.
--
keywords: +patch
Added file: http://bugs.python.org/file24817/urllib_request_doc.patch
Changes by Jeff McNeil :
--
nosy: -mcjeff
___
Python tracker
<http://bugs.python.org/issue10050>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jeff McNeil added the comment:
In an effort to walk through bugs in my nosy list, I dug into this and tried to
reproduce it to no avail.
Also, as the handle_error method is supposed to handle problems gracefully,
calling shutdown on handle_error exception is probably questionable. I'
Jeff McNeil added the comment:
Ah, understood. I kind of like the idea of having the added functionality
behind a custom callable, but if it's generally just a bug then copystat is a
good solution, too.
--
___
Python tracker
Jeff Ramnani added the comment:
I've updated SilentGhost's patch to include a test and documentation.
--
nosy: +jramnani
Added file: http://bugs.python.org/file24828/issue7719-nfs_silly_rename.patch
___
Python tracker
<http://bu
Jeff McNeil added the comment:
Yeah, updated with different wording and proper caps. I left the piece in
regarding the use without the context manager as I think that's probably the
more common use case still.
--
Added file: http://bugs.python.org/file24832/urllib_request_doc.
Jeff McNeil added the comment:
I'd be happy to do that (URLopener, to begin with), though I'm not familiar
with the usual approach. Is it simply a matter of warning in __init__?
--
nosy: +mcjeff
___
Python tracker
<http://bu
Jeff McNeil added the comment:
The actual implementation calls os.path.normcase from
tempfile._get_default_tempdir. In this scenario here, that resolves to the
ntpath module & triggers a lowercase conversion.
On the other hand, the posixpath module is simply an identity function.
Now
Jeff McNeil added the comment:
The normcase call isn't exactly a no-op in ntpath.py as it also swaps / for \\.
Removing the .lower() seems to simply make it a watered down version of
normpath.
There are a couple of options I guess. We could simply keep the altsep, or
u
Jeff McNeil added the comment:
I don't see why we'd need to make these _private -- they're just
accessors/mutators for the most part. I'd be happy to help clean this up if
you need it.
--
___
Python tracker
<http://bug
Jeff McNeil added the comment:
Here's a tiny patch that just changes normcase->normpath. This fixes the
casing issue at the 'gettempdir' level, though it doesn't address the
'normcase' function itself.
Note that *both* macpath.py and ntpath.py use .lower, w
Jeff McNeil added the comment:
It doesn't seem to me that the right approach on either platform is to simply
downcase. Maybe just deprecate the call altogether as its not doing anything
normpath isn't if the .lower call is removed?
--
Jeff Knupp added the comment:
I don't know that this is a bug. Rather, the string '--' means different things
to argparse and optparse. In argparse, '--' is a psuedo-argument taken to mean
"everything after this is a postional argument" and not "s
Jeff Knupp added the comment:
In that case, wouldn't you use 'parse_known_args' instead of 'parse_args'
and pass the remaining arguments to the next script? This case is
explicitly mentioned in the argparse documentation. Again it seems to me
that the meaning of
Jeff Knupp added the comment:
Added patch so that only the first '--' is removed by an argparse.PARSE or
argparse.REMAINDER argument. Note that, as Steven said, argparse.REMAINDER
should be used in the OP's issue (and the added test makes sure all remaining
arguments are pr
New submission from Jeff Robbins :
Windows.h includes RpcNdr.h which does this:
#define small char
accu.h in Python\Include (Python 3.2.3rc2) has this in it:
typedef struct {
PyObject *large; /* A list of previously accumulated large strings */
PyObject *small; /* Pending small
Jeff Robbins added the comment:
The easiest fix would be to rename the "small" field in accu.h (and of course
in any file that references that field.) I have no idea who uses this file.
Perhaps the 2nd easiest fix would be to put this after the #include of Windows.h
#ifdef sm
Jeff Knupp added the comment:
Patch to default character set to utf8 if non-ascii characters are found in the
input string. Please let me know if this is what you had in mind.
--
nosy: +Jeff.Knupp
___
Python tracker
<http://bugs.python.
Changes by Jeff Knupp :
--
keywords: +patch
Added file: http://bugs.python.org/file24997/mailutf8.patch
___
Python tracker
<http://bugs.python.org/issue14
Jeff Robbins added the comment:
re Stefan Krah's posting:
I am sorry if I've caused any confusion. I am building a Python extension
(APSW), and it includes the sqlite "amalgamation" and also includes Python.h.
Sqlite includes Windows.h. Which then causes the prob
Jeff Knupp added the comment:
Understood. Please take a look at the updated patch. Also, removed the
unrelated diffs that somehow were hanging around in my hg mq.
--
Added file: http://bugs.python.org/file24999/mimeutf8.patch
___
Python tracker
Jeff Robbins added the comment:
Stefan asked
'Did you include Python.h before or after Windows.h? Extensions
are supposed to include Python.h before anything else. '
I downloaded http://code.google.com/p/apsw/ to test it out on the latest sqlite
release. I followed the build instr
Jeff McNeil added the comment:
I was looking at a somewhat unrelated issue and I bumped up against a similar
situation with the warnings system.
I didn't look too much into it, but it appeared that warnings didn't get added
to __warningregistry__ correctly. Though, when I set
Jeff McNeil added the comment:
Disregard. That was in concert with ntpath, which uses a funky approach to
testing.
--
___
Python tracker
<http://bugs.python.org/issue10
Jeff Knupp added the comment:
I'm unable to reproduce on either 2.7 or 3.3. Running the following:
from zipfile import ZipFile
z=ZipFile('test.zip','a')
z.comment='Create a new comment'
z.close()
produces the output:
Archive: test.zip
Create a new com
New submission from Jeff Knupp :
ccbench.py warns about unclosed sockets in the bandwidth test. Fix to close
socket properly at end of test.
--
components: Demos and Tools
files: ccbench.patch
keywords: patch
messages: 156891
nosy: Jeff.Knupp
priority: normal
severity: normal
status
Jeff McNeil added the comment:
Quick little patch to change the default to None and update the corresponding
documentation.
--
keywords: +patch
nosy: +mcjeff
Added file: http://bugs.python.org/file25044/urllib_urlopen_default.patch
___
Python
Jeff Dean added the comment:
I just saw Brian Curtin's Pycon 2012 presentation. If a goal is to make it
easy for new users to run python, consider installing a desktop shortcut. This
would make it very easy for new users (easier than starting up a shell).
This is independent of the
Jeff Robbins added the comment:
I'm happy to try another build of apsw, but am not up-to-speed with how to
get development copies of Python. As a user, I typically download the
latest Windows .msi file and install it. If you can point me to a document
on how to proceed, I'll giv
Jeff Robbins added the comment:
Thanks for the pointer to the .msi.
The fix solved my apsw build problem.
I installed Python 3.3.a2 and apsw-3.7.11-r1. I ran this build:
C:\Temp\apsw-3.7.11-r1>c:\Python33\python setup.py fetch --all
build --enable-all-extensions install
apsw built
Jeff McNeil added the comment:
I looked at doing this. The empty() and full() methods are marked with a
disclaimer stating they're likely to be removed at some point?
I'm curious, does just checking the value of .unfinished_tasks satisfy
the requirement? It could still easily b
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 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 :
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:
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 :
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:
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
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 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 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 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:
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
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
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
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 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
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):
Change by Jeff Allen :
--
nosy: +jeff.allen
___
Python tracker
<https://bugs.python.org/issue31630>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jeff VanOss :
--
keywords: +patch
pull_requests: +4624
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
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
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 Tratner:
One of the examples for assertRaisesRegex(p) is wrong by one character.
Current is:
self.assertRaisesRegexp(ValueError, 'invalid literal for.*XYZ$',
int, 'XYZ')
The $ at the end is wrong because the actual error me
New submission from Jeff Dean :
Spun off from Issue3561:
I recently saw Brian Curtin's Pycon 2012 presentation. If a goal is to make it
easy for new Windows users to run python, consider (optionally) installing a
desktop shortcut. This would make it easy for new users to run python (e
New submission from Jeff Laing :
As part of an audit of license compliance, I was looking at the terms in the
LICENSE.txt that describe the Berkeley DB product. I had thought this would be
under the standard Berkeley license, but Oracle have added their own zinger.
* 3. Redistributions in
Jeff Laing added the comment:
With all due respect, I think that the 2.7.3 License Page is still being
actively used by people as a reference, and it should be accurate. I agree that
the code developers can't do anything, but the documentation for all releases,
particularly in s
Jeff Laing added the comment:
@Jesús, as has been pointed out already, the Berkeley DB stuff is not part of
Python 3 so I don't see any point in discussing this with Oracle.
We don't actually use or need the bsddb module, it's just part of the standard
runtime library that we
Jeff McNeil added the comment:
I would think it might make more sense just to make the change to the Transport
object. Since there's an argument for a transport on ServerProxy already, that
seems more straightforward and keeps the network layer isolated.
Otherwise, it seems sli
Jeff McNeil added the comment:
I went through the patch real quick and I noticed that your using single
element tuples in your string formatting. That makes sense in situations where
the argument might itself be a tuple, however, not on calls to len() as that
will return an integer
Jeff McNeil added the comment:
Yeah, that's a good point too. I still personally favor the transport
encapsulation and related unit testing, but I think that's a call for someone
with a snake icon next to their tracker name.
Your English is
Jeff Ramnani added the comment:
Hynek,
I would indeed like to update this patch. I will make the updates you have
suggested.
--
___
Python tracker
<http://bugs.python.org/issue7
Jeff Ramnani added the comment:
Attached the updated patch. I have added a .nfs file to test_prune_file_list
in test_sdist. I've also cleaned up the documentation to read a little better
(IMO).
--
Added file: http://bugs.python.org/file25668/issue7719-nfs_silly_rename.
Jeff Knupp added the comment:
Adding patch. If I misunderstood the issue, let me know.
--
keywords: +patch
nosy: +Jeff.Knupp
Added file: http://bugs.python.org/file26170/imp.patch
___
Python tracker
<http://bugs.python.org/issue15
Jeff Knupp added the comment:
Fixed for 3.3. Does this need to be back ported as well?
--
keywords: +patch
nosy: +Jeff.Knupp
Added file: http://bugs.python.org/file26244/exit_code.patch
___
Python tracker
<http://bugs.python.org/issue15
Jeff Knupp added the comment:
And by 'Fixed' I of course meant 'Patched, awaiting review'.
--
___
Python tracker
<http://bugs.python.org/issue15033>
___
_
Jeff Knupp added the comment:
This is a duplicate of http://bugs.python.org/issue12157, which was fixed.
--
nosy: +Jeff.Knupp
___
Python tracker
<http://bugs.python.org/issue15
New submission from Jeff Knupp:
urllib was updated to deprecate a number of Request methods for 3.3. The
test_urllib2 and test_urllib tests still use some of the deprecated methods.
--
components: Tests
messages: 168692
nosy: Jeff.Knupp
priority: normal
severity: normal
status: open
Jeff Knupp added the comment:
Attaching patch.
--
keywords: +patch
Added file: http://bugs.python.org/file26935/test_urllib.patch
___
Python tracker
<http://bugs.python.org/issue15
Changes by Jeff Knupp :
Removed file: http://bugs.python.org/file26935/test_urllib.patch
___
Python tracker
<http://bugs.python.org/issue15743>
___
___
Python-bugs-list m
Jeff Knupp added the comment:
Updated with correct patch file.
--
Added file: http://bugs.python.org/file26936/test_urllib.patch.2
___
Python tracker
<http://bugs.python.org/issue15
Jeff Knupp added the comment:
Senthil, sorry, missed your comment and hadn't realized anyone had seen the
patch yet. I replaced it with an updated version (had missed a few places
deprecated functions were used). Could you review the new patch in
101 - 200 of 310 matches
Mail list logo