I have a very strange bug. A thread in a .pyc stops dead.
This program has many threads and queues and has worked
great for months.
One thread listens for UDP messages from other programs,
and puts the messages in listenq.
Procmsgs gets from listenq and for a certain kind of
message creates anoth
New submission from phil:
In PyInt_FromString(), please change the type of the first
arg from char * to const char *. That is, of course, if
the function indeed does not write to the string. (I took
a quick look at the code; it doesn't appear to.)
If the function does modify the strin
phil added the comment:
Oh, all right. Just don't tell my boss -- he thinks I'm doing
"real" work. :-)
I haven't thoroughly studied the test harness, but it looked like
/bin/python /lib/python2.5/test/autotest.py
was what I should do? The output generated b
Changes by phil:
Added file: http://bugs.python.org/file9266/autotest.out.after
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1866>
__
___
Python-bugs-list
phil added the comment:
Ok. Ran 'make test' before and after patch. Output identical.
Attaching output after patch.
Added file: http://bugs.python.org/file9417/make_test_after
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.p
New submission from Phil :
https://discuss.python.org/t/assertionerror-asyncio-streams-in-drain-helper/3743/4
I recently came across this error, which I now know how to fix. I think the
error can be clearer and I've a PR which I think does so.
--
components: asyncio
messages: 3
Change by Phil :
--
keywords: +patch
pull_requests: +18598
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19240
___
Python tracker
<https://bugs.python.org/issu
Change by Phil :
--
nosy: +pgjones
___
Python tracker
<https://bugs.python.org/issue43246>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
New submission from Phil:
I had converted some code for a scraper from 2.7.3 to 3.3.0 on Windows 7 and
suddenly the code stopped working. Now the https fetch results in:
Traceback (most recent call last):
File "D:\Users\Phil\Desktop\demo.py", line 67, in
page=getWebData()
Changes by Phil :
Added file: http://bugs.python.org/file27786/py2-filtered.pcapng
___
Python tracker
<http://bugs.python.org/issue16361>
___
___
Python-bugs-list mailin
Changes by Phil :
Added file: http://bugs.python.org/file27787/py3-filtered.pcapng
___
Python tracker
<http://bugs.python.org/issue16361>
___
___
Python-bugs-list mailin
Phil added the comment:
You will notice that in the Python 3.3.0 version after packet 54 (Client
Hello), there seems to be no response from the server.
Today, I was able to verify that the code worked under Python 3.2.3.
--
___
Python tracker
<h
New submission from Phil Thompson :
In Python v3.2b1 the type of the first argument of PySlice_GetIndices() and
PySlice_GetIndicesEx() has changed from PySliceObject* to PyObject*.
The documentation does not reflect this change.
Which is correct, the source code or the documentation
Phil Thompson added the comment:
You might want to add a "Changed in Python v3.2" because as it is an
incompatible change.
--
___
Python tracker
<http://bugs.python.o
Phil Thompson added the comment:
It's source level incompatible - my extension modules compiled fine with v3.2a
but failed with v3.2b1.
--
___
Python tracker
<http://bugs.python.org/is
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue32092>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue38091>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue30587>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue7897>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue38122>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue38384>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue18108>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue38494>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue23882>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue37052>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue38505>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue25299>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue35617>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue25597>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue36723>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Phil Thompson :
I am running macOS v11 (Big Sur) and using Xcode v12.1 (because this is the
latest that includes SDK v10.15 rather than v11) to build a C extension. I'm
using the older SDK because of 3rd party libraries that are not tested against
the newer SDK.
Phil Thompson added the comment:
Another aspect of this is when building a Python v3.10 C extension on macOS
v10.15 (Catalina) with SDK 10.15, the wheel has the 'universal2' platform tag
when it actually only contains an x86_64 impl
New submission from Phil Soucheray :
After running `start` on an indeterminate Progressbar, it animates to one side,
goes back to the other and then right before it reaches the end it disappears.
I've attached a sample script below and a screen recording. This is running on
macOS 11.
Phil Soucheray added the comment:
It looks like that has done the trick. Is there an expected time when there
won't be different installers?
--
___
Python tracker
<https://bugs.python.org/is
Phil Thompson added the comment:
Is this likely to be fixed for v3.10? At the very least a wheel should have the
correct platform tag.
--
___
Python tracker
<https://bugs.python.org/issue44
New submission from Phil Connell :
Add a comment to the os.fork docs to note that forking from a subinterpreter is
no longer allowed (see issue34651)
--
assignee: docs@python
components: Documentation
messages: 356459
nosy: docs@python, eric.snow, pconnell
priority: normal
severity
Change by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<https://bugs.python.org/issue33608>
___
___
Python-bugs-list mailing list
Unsubscribe:
Phil Connell added the comment:
Based on Victor's info from https://bugs.python.org/issue36114#msg337090 I
believe the crash is essentially what's reproduced in the attached program.
>From the root of a (built) cpython clone run:
gcc -c -o fini_crash.o -IInclude -I. fini_cras
Phil Connell added the comment:
Just to summarise, I'm fairly sure this is exactly what Victor saw: a daemon
thread attempts to reacquire the GIL via Py_END_ALLOW_THREADS after interpreter
finalisation. Obviously the threadstate pointer held by the thread is then
invalid...so we crash
Phil Connell added the comment:
The attached patch (wrap_threadstate.diff) is enough to stop the crash. It's a
slightly dirty proof-of-concept, but equally could be the basis for a solution.
The main functional issue is that there's still a race on the Py_BLOCK_THREADS
side: it&
New submission from Phil Elson :
The documentation for site.getusersitepackages() states at
https://docs.python.org/3.10/library/site.html#site.getusersitepackages:
Return the path of the user-specific site-packages directory, USER_SITE. If it
is not initialized yet, this function will also
Change by Phil Elson :
--
keywords: +patch
pull_requests: +20740
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21602
___
Python tracker
<https://bugs.python.org/issu
Phil Connell added the comment:
One version of the bug described here (and fixed in the old implementation
under issue17633) exists in the Python implementation of zipimport:
$ unzip -l namespace1.zip
Archive: namespace1.zip
Length DateTimeName
New submission from Phil Thompson :
The old unaccelerated ETree XMLParser accepts input from a io.StringIO, but the
accelerated version does not. Any code that relies on this is broken by Python
v3.3.
--
components: XML
messages: 155301
nosy: philthompson10
priority: normal
severity
Phil Thompson added the comment:
This variation of your test doesn't...
---
import io
from xml.etree.ElementTree import parse
stream = io.StringIO()
stream.write('''
''')
stream.seek(0)
p
New submission from Phil Frost :
We've observed instances of Decimal divisions being incorrect a few times per
day in a web application serving millions of requests daily. I've been unable
to reproduce the issue but have been investigating core dumps which suggest
either some issu
Phil Frost added the comment:
I should note that while we do observe this issue with Decimal, my
troubleshooting so far indicates the logic in decimal.py is fine. It seems
instead the instructions in decimal.py aren't being correctly executed.
I'm not sure if the problem is limit
Phil Frost added the comment:
skrah: Yes, that's correct. Since I can only produce this bug in production it
will take me some days to build and validate a source build. But absent any
better ideas, I will try.
tim.peters: I've observed this bug across hundreds of EC2 hosts, in
Phil Frost added the comment:
> Alpine Linux apparently uses musl. Is that well supported and tested?
Heh. Not really.
Switching to a Debian container is probably just about as much work as building
Python from source. Would that be prefera
Phil Frost added the comment:
So this is uminteresting
(gdb) p small_ints[0]
$2 = (PyIntObject *) 0x558ce65df528
(gdb) p *small_ints[0]
$3 = {ob_refcnt = 18, ob_type = 0x7fe019b694c0 , ob_ival = -5}
(gdb) p *small_ints[1]
$4 = {ob_refcnt = 65, ob_type = 0x7fe019b694c0 , ob_ival = -3
Phil Frost added the comment:
Probably too many C extensions to feasibly audit them all. Also we can't rule
out something busted in Alpine. So I'm going to set a watchpoint on
small_ints[1]->ob_ival with a little gdb script to dump core right when it
changes; hopefully in
Phil Frost added the comment:
I'm afraid that won't be of much use since the object is statically allocated.
Besides, the trouble isn't finding what created the object, but what mutated an
int object which should be immutable.
--
___
New submission from Phil Thompson :
In the 3.8b1 64-bit Windows installer the names of the OpenSSL DLLs do not have
the -x64 suffix which seems to be the convention (and is the default when
building OpenSSL from source). The convention is followed in the 3.7.0 to 3.7.3
installers. I haven
Phil Thompson added the comment:
I think I was incorrect in saying the suffix was the default when building
v1.1.1 from source, so any problem I have (trying to share the DLL with
different pre-built packages) is not a Python problem. Sorry for the noise.
--
resolution: -> no
Phil Thompson added the comment:
A clarification...
It seems the suffix is added when configured as VC-WIN64A but omitted when
configured as VC-WIN64A-masm.
...still not a Python problem.
--
___
Python tracker
<https://bugs.python.
Phil Frost added the comment:
Not yet. I had a hell of a time getting gdb to follow gunicorn forks so it
would watch the workers but not also every other thing using popen or
os.system(). And the lldb package on Alpine doesn't seem to work.
So we're currently in the process of
New submission from Phil Thompson :
I have a number of static PyTypeObject declarations. In order to avoid compiler
warnings about missing field initialisers I always provide explicit 0 values
for unused fields (protected by #if PY_HEX_VERSION >= ...). However with v3.8b2
this triggers
Phil Thompson added the comment:
I am not "touching" tp_print. I am simply defining it as 0 to avoid the missing
initialiser warning. My point is that it should be possible to write code that
doesn't trigger warnings (whether or not yo
Phil Thompson added the comment:
On 19/07/2019 11:37, Jeroen Demeyer wrote:
> Jeroen Demeyer added the comment:
>
>> We have some reserved/deprecated/unused fields. Setting 0 to them
>> makes forward incompatible code.
>
> Good point. tp_print is removed in 3.9
Wh
Phil Thompson added the comment:
>> Which is why I protect the initialisation with #if PY_VERSION_HEX <
> 0x0309
>
> It is your specific case. We can not assume people do it, or even you
> never forget it. So this is not the "right thing" we can recommen
New submission from Phil Kang :
ConfigParser calls ConfigParser.optionxform twice per each key when assigning a
dictionary to a section.
The following code:
ini = configparser.ConfigParser()
ini.optionxform = lambda x: '(' + x + ')'
# Bugged
ini[
New submission from Phil Dream :
Firstable I am not a software expert just a hobby user so please be indulgent
I use a Raspberry Pi3B+ with raspbian lite and Python 3.5.3
In my script, I need 2 nested "while" loops so I chose two variables to
incriment them 'i' and j. Th
Phil Dream added the comment:
OK, I am sorry I didn’t know
Best regards
De : Stéphane Wirtel
Envoyé le :mercredi 6 février 2019 11:10
À : philsdr...@gmail.com
Objet :[issue35910] Curious problem with my choice of variables
Stéphane Wirtel added the comment:
Hi Phil,
This bug tracker is
Phil Dream added the comment:
OK, I am sorry I didn’t know
Thanks for the advice
Best regards
De : Rémi Lapeyre
Envoyé le :mercredi 6 février 2019 11:07
À : philsdr...@gmail.com
Objet :[issue35910] Curious problem with my choice of variables
Rémi Lapeyre added the comment:
Hi @Phil Dream
New submission from Phil Thompson :
When configure searches for a C compiler on macOS it fails to handle spaces in
directory name on PATH. The fix is to enclose $as_dir in quotes.
--
components: Build
messages: 307004
nosy: philthompson10
priority: normal
severity: normal
status: open
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18032>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18033>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18035>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18036>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18043>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18042>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18047>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue17792>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18111>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +isoschiz, pconnell
___
Python tracker
<http://bugs.python.org/issue18112>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Connell :
--
nosy: +pconnell
___
Python tracker
<http://bugs.python.org/issue18129>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Phil Connell:
The following two expressions should have the same value:
Python 3.4.0a0 (default:fae92309c3be, Jun 14 2013, 09:29:54)
[GCC 4.8.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
New submission from Phil Muldoon:
(gdb) py-bt
#2 Frame 0xef8180, for file , line 1, in ()
Python Exception (2, 'No such file or directory',
''):
Error occurred in Python command: (2, 'No such file or directory', '')
This is the actual raw frame
Phil Connell added the comment:
Thanks Amaury. That's quite surprising, but I wouldn't advocate changing such
long standing behaviour.
I'm closing the issue.
--
status: pending -> closed
___
Python tracker
<http://bugs.
Phil Muldoon added the comment:
Yes I did truncate the output, the backtrace was very long.
This is my scenario:
gdb --args ./gdb
When the superior gdb loads, I did:
(top-gdb) b frapy_pc
(top-gdb) run
In the inferior gdb, I did:
(gdb) start
(gdb) py g = gdb.selected_frame()
(gdb) py print
Changes by Phil Webster :
--
nosy: +philwebster
___
Python tracker
<http://bugs.python.org/issue18103>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Phil Webster:
This is a single test for RstripExtension.py, following from #15392. I also
added a mock EditorWindow module with a Text widget for testing.
test_rstripextension.py seems to run fine inside IDLE and produces the
following output:
>>>
test_
Changes by Phil Webster :
--
nosy: +Todd.Rovito
___
Python tracker
<http://bugs.python.org/issue18279>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Webster :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue18279>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Phil Webster :
--
keywords: +patch
Added file: http://bugs.python.org/file30664/test_rstripext.patch
___
Python tracker
<http://bugs.python.org/issue18
Phil Webster added the comment:
Thank you for the feedback Terry. I'm not seeing the traceback without '-ugui'
either, so I'm going to look into that. I get the same results with
requires('gui') moved inside of setUp, is that what you mean by wrapping?
For mock_
Phil Webster added the comment:
Modified the first patch to get rid of mock EditorWindow in favor of the real
thing. Also renamed the test to 'test_rstrip'.
--
Added file: http://bugs.python.org/file30694/test_rstrip.patch
___
Python trac
Changes by Phil Webster :
--
nosy: +philwebster
___
Python tracker
<http://bugs.python.org/issue18292>
___
___
Python-bugs-list mailing list
Unsubscribe:
Phil Webster added the comment:
I'm not sure if this is worth pursuing, but I made a mock Text Widget that
behaves more like an actual Text Widget. I've attached my modified mock_tk.py
which I used to create a mock editor window. This works for the test I made in
#18279, but I am al
Phil Webster added the comment:
Added to Terry's Text Widget code (in #18226) and created mock_idle.py for the
mock EditorWindow. Todd's FormatParagraph test in the aforementioned issue also
passes with the mock EditorWindow.
--
Added file: http://bugs.python.org
Phil Webster added the comment:
I made slight modifications to Todd's initial patch to test the mock Text
widget from #18365.
Thank you for the helpful feedback Terry!
--
Added file:
http://bugs.python.org/file30853/18226IDLEUnitTestFormatParagraph2.
Phil Webster added the comment:
Added Text class to mock_tk.py and GUI/non-GUI tests in test_text.py. Running
the IDLE tests produced no errors for me.
--
keywords: +patch
Added file: http://bugs.python.org/file30851/mock_text.patch
___
Python
Phil Webster added the comment:
This patch contains mock_idle.py and the rstrip test using the mock text widget
from #18365.
Terry- For some reason, the Text widget always contains a '\n' as the last
character even when there is nothing visible. Doing a text.get('1.0',
New submission from Phil Webster:
I've started writing this test which depends on #18365.
--
components: IDLE
messages: 192711
nosy: JayKrish, Todd.Rovito, philwebster, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE Improvements: Unit test for AutoComple
New submission from Phil Webster:
Continuing the IDLE unittest framework from #15392. Depends on #18365.
--
components: IDLE
messages: 192713
nosy: JayKrish, Todd.Rovito, philwebster, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE Improvements: Unit test for
Changes by Phil Webster :
--
nosy: +philwebster
___
Python tracker
<http://bugs.python.org/issue18425>
___
___
Python-bugs-list mailing list
Unsubscribe:
Phil Webster added the comment:
Thanks Terry, I will start PEP8-checking my code before I submit (as well as
testing more thoroughly). I was thinking the same thing about the logic behind
_decode and index functions needing to be combined.
How would you recommend adding functionality to the
Phil Webster added the comment:
Using tk.Text for more involved tests sounds good (at least as a start). The
pass functions were used to get the FormatParagraph test (#18226) working.
I've been using the same effbot.org site as a reference and haven't found
anything mor
Phil Webster added the comment:
Added tests for FormatParagraph using single/multiline comment blocks and
single/multiline strings in the mock editor window.
Here is a summary of the changes:
FormatParagraph.py
- description for format_paragraph_event
- modified so that selecting a long
Phil Webster added the comment:
After reading Terry's comments on the initial patch I turned FormatParagraph's
initial comments into a docstring and made sure that all lines were < 80
characters.
--
Added file:
http://bugs.python.org/file30960/18226IDLEUnitTestFormatPar
1 - 100 of 218 matches
Mail list logo