On 6-12-2011 23:24, Terry Reedy wrote:
On Nov 30, Irmen de Jong opened a tracker issue with a patch improve
bytearray pickling.
http://bugs.python.org/issue13503
Yesterday, Dec 5, Antoine Pitrou applied a revised fix.
http://hg.python.org/cpython/rev/e2959a6a1440/
The commit message:
Steven D'Aprano wrote:
I have some bit-twiddling code written in Java which I am trying to port
to Python. I'm not getting the same results though, and I think the
problem is due to differences between Java's signed byte/int/long types,
and Python's unified long integer type. E.g. Java's is
Hi all,
I need some help to a com problem..
I got this class:
class foo(object):
def setComObject(comObject):
self.comO=comObject #This is a com object from a cad application
def showForm(self)
# use the self.comO to read some information from the cad
application
07.12.11 06:03, Steven D'Aprano написав(ла):
long newSeed = (seed 0xL) * 0x41A7L;
while (newSeed= 0x8000L) {
newSeed = (newSeed 0x7FFFL) + (newSeed 31L);
}
seed = (newSeed == 0x7FFFL) ? 0 : (int)newSeed;
seed = (seed 0x) * 0x41A7 % 0x7FFF
--
On 12/06/2011 04:36 AM, Xah Lee wrote:
i don't like python, and i prefer emacs lisp. The primary reason is
that python is not functional, especially with python 3. The python
community is full of fanatics with their drivels. In that respect,
it's not unlike Common Lisp community and Scheme lisp
On 12/7/2011 5:14 AM, Andrea Crotti wrote:
On 12/06/2011 04:36 AM, Xah Lee wrote:
i don't like python, and i prefer emacs lisp. The primary reason is
that python is not functional, especially with python 3. The python
community is full of fanatics with their drivels. In that respect,
it's not
Does anyone have a recipe for the subject build?
I know Solaris is a minority platform these days, but surely someone has
tackled
this problem, haven't they?
Thx,
Skip
--
http://mail.python.org/mailman/listinfo/python-list
Le 07/12/2011 12:30, Skip Montanaro a écrit :
Does anyone have a recipe for the subject build?
I know Solaris is a minority platform these days, but surely someone has tackled
this problem, haven't they?
Thx,
Skip
./configure
make
make install
Karim
--
On 2011-12-07, Terry Reedy tjre...@udel.edu wrote:
It does not pretend that surrounding statements with
parentheses turns them into expressions.
;-)
I like being in a sexpression. Aww YEH!
--
(Neil Cerutti)
--
http://mail.python.org/mailman/listinfo/python-list
Chris Angelico ros...@gmail.com writes:
2011/12/5 Hrvoje Niksic hnik...@xemacs.org:
If a Python implementation tried to implement dict as a tree,
instances of classes that define only __eq__ and __hash__ would not
be correctly inserted in such a dict.
Couldn't you just make a tree of hash
Hi everyone,
in my script I have a dictionary whose items are couples in the form
(string, integer values), say
D = {'a':1, 'b':2, 'c':3}
This dictionary is passed to a function as a parameter, e.g. :
def Sum(D) :
return D['a']+D['b']+D['c']
Is there a way to create three variables
On Wed, 7 Dec 2011 09:09:16 -0800 (PST), Massi wrote:
def Sum(D) :
return D['a']+D['b']+D['c']
Is there a way to create three variables dynamically inside Sum in
order to re write the function like this?
def Sum(D) :
# Here some magic to create a,b,c from D
return a+b+c
In b078a04b-024b-48dc-b24a-8f4ce75fa...@13g2000vbu.googlegroups.com Massi
massi_...@msn.com writes:
in my script I have a dictionary whose items are couples in the form
(string, integer values), say
D = {'a':1, 'b':2, 'c':3}
This dictionary is passed to a function as a parameter, e.g. :
On Wednesday, December 7, 2011 9:28:40 PM UTC+8, Hrvoje Niksic wrote:
Chris Angelico ros...@gmail.com writes:
2011/12/5 Hrvoje Niksic hni...@xemacs.org:
If a Python implementation tried to implement dict as a tree,
instances of classes that define only __eq__ and __hash__ would not
be
On Thu, Dec 8, 2011 at 4:09 AM, Massi massi_...@msn.com wrote:
def Sum(D) :
# Here some magic to create a,b,c from D
return a+b+c
Welcome to TMTOWTDI land! We do magic here... several different ways.
You _may_ be able to do this, which is roughly equivalent to the
extract() function in
On 07/12/2011 17:45, John Gordon wrote:
Inb078a04b-024b-48dc-b24a-8f4ce75fa...@13g2000vbu.googlegroups.com
Massimassi_...@msn.com writes:
in my script I have a dictionary whose items are couples in the form
(string, integer values), say
D = {'a':1, 'b':2, 'c':3}
This dictionary is
ok, so the code is something like
#process A
p = Process(...)
p.daemon = 1
p.start() # starts process B
...
If process A dies (say error, or ctrl-c), or finishes, then process B also
dies. But if process A is killed with the kill command, then process B
soldiers on...
Any idea on how to
Hello Everyone,
I'm looking for a tool, which can add a trusted timestamp to an
existing PDF file (and can sign - but currently only have to add
TS).
Could anybody help?
Thanks:
a.
--
http://mail.python.org/mailman/listinfo/python-list
On 12/7/11, Mihai Badoiu mbad...@gmail.com wrote:
ok, so the code is something like
#process A
p = Process(...)
p.daemon = 1
p.start() # starts process B
...
If process A dies (say error, or ctrl-c), or finishes, then process B also
dies. But if process A is killed with the kill
I like 2) the most. I do have access to the child. The child is a process
started with multiprocessing.Process(function). How do I _not_ set an SID?
thanks,
--mihai
On Wed, Dec 7, 2011 at 2:50 PM, Dan Stromberg drsali...@gmail.com wrote:
On 12/7/11, Mihai Badoiu mbad...@gmail.com wrote:
On 07-12-11 20:41, Hegedüs, Ervin wrote:
Hello Everyone,
I'm looking for a tool, which can add a trusted timestamp to an
existing PDF file (and can sign - but currently only have to add
TS).
Note sure what a 'trusted timestamp' is, but pdftk can manipulate pdf
files. See
A HOME OF TOLERANCE
A Home Of Tolerance Media speculation since the horrific terrorist
attacks on America has pointed the finger at Muslims and the Arab
world, and that has meant ordinary citizens of the US and other
Western countries becoming easy prey for anti-faith hooligans. Shame.
Sadly,
have a look at:
http://www.boscolini.eu/Boscolini/index.php?option=com_contentview=articleid=64%3Anumbering-pdf-file-in-pythoncatid=38%3AprogrammingItemid=55lang=en
On 12/7/2011 12:09 PM, Massi wrote:
in my script I have a dictionary whose items are couples in the form
(string, integer values), say
D = {'a':1, 'b':2, 'c':3}
This dictionary is passed to a function as a parameter, e.g. :
def Sum(D) :
return D['a']+D['b']+D['c']
Is there a way to
On Wed, 07 Dec 2011 09:09:16 -0800, Massi wrote:
Is there a way to create three variables dynamically inside Sum in order
to re write the function like this?
def Sum(D) :
# Here some magic to create a,b,c from D
return a+b+c
No magic is needed.
a, b, c = D['a'], D['b'], D['c']
On 12/7/2011 7:03 PM, Steven D'Aprano wrote:
On Wed, 07 Dec 2011 09:09:16 -0800, Massi wrote:
Is there a way to create three variables dynamically inside Sum in order
to re write the function like this?
I should have mentioned in my earlier response that 'variable' is a bit
vague and
On Wed, 07 Dec 2011 19:27:43 -0500, Terry Reedy wrote:
On 12/7/2011 7:03 PM, Steven D'Aprano wrote:
On Wed, 07 Dec 2011 09:09:16 -0800, Massi wrote:
Is there a way to create three variables dynamically inside Sum in
order to re write the function like this?
I should have mentioned in my
Any Python developers out there that help me?
I would like to configure/make Python so it uses my local OpenSSL-1.0.0e
install in /usr/local/ssl.
I have tried uncommenting the promising section of
./Python 2.7.2/Modules/Setup.dist below without success.
How to do it! Would like to upgrade
On Thu, Dec 8, 2011 at 11:03 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
It is really important that the scope of a,b,c is limited to the Sum
function, they must not exisit outside it or inside any other nested
functions.
The second part is impossible, because that is not
On Dec 6, 10:58 am, Ian Kelly ian.g.ke...@gmail.com wrote:
(snip... beautiful retort)
Ian you make some damn good points and i could not help but laugh
hysterically at your dissection of Xah's tutorial. I don't 100% agree
with everything Mr. Lee rants about, like for instance, documents
needing
On Dec 6, 9:52 pm, alex23 wuwe...@gmail.com wrote:
(snip rambling nonsense)
Alex, i hope you are being theatrical with all this. If not, i fear
you may be putting too much stress on your heart. Please calm down.
The months in which you don't post are an absolute goddamn
_delight_
I am
On 7/12/2011 7:22 PM, Matteo Boscolo wrote:
Hi all,
I need some help to a com problem..
I got this class:
class foo(object):
def setComObject(comObject):
self.comO=comObject #This is a com object from a cad application
def showForm(self)
# use the self.comO to read some information from the
Hello Irmen,
On Wed, Dec 07, 2011 at 08:59:11PM +0100, Irmen de Jong wrote:
On 07-12-11 20:41, Hegedüs, Ervin wrote:
Hello Everyone,
I'm looking for a tool, which can add a trusted timestamp to an
existing PDF file (and can sign - but currently only have to add
TS).
Note sure what a
Just digitally sign the document using python-gnupg
/problem-solved!
On Thu, Dec 8, 2011 at 4:09 PM, Hegedüs, airw...@gmail.com wrote:
Hello Irmen,
On Wed, Dec 07, 2011 at 08:59:11PM +0100, Irmen de Jong wrote:
On 07-12-11 20:41, Hegedüs, Ervin wrote:
Hello Everyone,
I'm looking for a
Hello,
On Thu, Dec 08, 2011 at 04:28:01PM +1100, Alec Taylor wrote:
Just digitally sign the document using python-gnupg
/problem-solved!
using gnupg to sign a document != add a timestamp to a pdf.
May be this doc helps to clear what's the different, and what I want:
I use the @ decorator to behave exactly like a c macro that
does have fewer side effects.
I am wondering is there other interesting methods to do the
jobs in Python?
A lot people complained that no macro in Python.
Cheers to the rule of Python :
If there's none then just go ahead and build
Hi, take a look at this online tool: http://easytimestamping.com
It is able to apply RFC3161 compliant trusted timestamps, issued by accredited
Certification Authorities.
The timestamp is applied to the pdf in detached mode (i.e. as a separate .tsr
file)
If you need to integrate the
Or the python implementation of that RFC:
http://pypi.python.org/pypi/rfc3161/0.1.3
On Thu, Dec 8, 2011 at 6:39 PM, marco.ru...@gmail.com wrote:
Hi, take a look at this online tool: http://easytimestamping.com
It is able to apply RFC3161 compliant trusted timestamps, issued by
accredited
Peter Frauenglass python@everblue.info added the comment:
I should also mention that pydoc2.7 -p 1234 works without issue. It seems to be
a regression.
Also adding lemburg to the Nosy list as the comments on platform.py suggest.
--
nosy: +lemburg
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +jnoller
stage: - needs patch
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13542
___
New submission from Ji Han hanji1...@gmail.com:
The following code snippet will crash IDLE:
import sys
sys.setrecursionlimit((131)-1)
The crash happens immediately and is consistently reproducible (environment:
Windows 7 SP1 64-bit, Python 2.7.2 for Windows X86_64).
--
components:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3822c8087d70 by Ned Deily in branch '3.2':
Issue #8641: Update IDLE 3 syntax coloring to recognize b.. and not u...
http://hg.python.org/cpython/rev/3822c8087d70
New changeset e49220f4c31f by Ned Deily in branch
Ned Deily n...@acm.org added the comment:
Thanks for the patch, Tal, and thanks for testing it, Roger. Applied to 3.2
for release in 3.2.3 and to default for 3.3.0.
--
assignee: - ned.deily
nosy: +ned.deily
resolution: works for me - fixed
stage: - committed/rejected
status: open -
Ned Deily n...@acm.org added the comment:
Trying to set the recursion limit to a large number defeats its purpose. As
documented in the Standard Library Reference:
The highest possible limit is platform-dependent. A user may need to set the
limit higher when she has a program that requires
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
On the other hand, there is no reason for the recursion limit to be actually
reached, just by setting it! Is there a hidden infinite recursion somewhere?
--
nosy: +amaury.forgeotdarc
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
hanji, could you start IDLE from a command prompt and try again:
c:\python27\python.exe -m idlelib.idle
Do you see additional error messages?
--
___
Python tracker rep...@bugs.python.org
Zbyszek Szmek zbys...@in.waw.pl added the comment:
f((yield))
This requirement seems unnecessary. And surprising, because
f(generator-expression) or f('a' if 'a' else 'b') doesn't require parenthes.
There's no room for confusion if parentheses were omitted in the
single-argument case.
Ned Deily n...@acm.org added the comment:
But after setting it, IDLE is going to be executing code. In the 64-bit
Windows Python 2.7.2 that I have available, there were exceptions reported in
the command line interpreter (not IDLE) after changing the recursion limit and
then executing some
Ji Han hanji1...@gmail.com added the comment:
@amaury.forgeotdarc
It says 'python.exe has stopped working'. Details:
Problem Event Name: APPCRASH
Application Name: python.exe
Application Version: 0.0.0.0
Application Timestamp:4df4b010
Fault Module Name:MSVCR90.dll
Antoine Pitrou pit...@free.fr added the comment:
This seems to be an issue with the platform module's detection of the glibc.
Can you tell us more about your system? (OS, distribution...)
--
nosy: +pitrou, r.david.murray
versions: +Python 3.3
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file23216/0001.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file:
http://bugs.python.org/file23570/issue11682_pep380_branch_2031.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file23759/0001-2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file23639/test.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
hgrepos: -11
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
___
Python-bugs-list mailing
Nick Coghlan ncogh...@gmail.com added the comment:
OK, I removed all the old files and repo links (they're still available in the
history below if needed). (well, the link to Renaud's hg patch queue is gone,
but that's also present in one of the early comments). (Ron: your comment makes
me
Nick Coghlan ncogh...@gmail.com added the comment:
As far as *why* yield expressions aren't special cased the way generator
expressions are - just an oversight when yield expressions were added, no real
grand master plan. It's not a big deal in practice, so nobody has ever cared
enough to
Darren Dale dsdal...@gmail.com added the comment:
New patch addressing comments in review.
--
Added file: http://bugs.python.org/file23864/abc_descriptor.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11610
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Tested on Linux:
Python 2.7.2+ (2.7:16c4137a413c+, Dec 4 2011, 22:56:38)
[GCC 4.4.3] on linux2
import sys
sys.setrecursionlimit((131)-1)
import xx
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__'
in
maniram maniram maniandra...@gmail.com added the comment:
On my system it works. :-)
--
nosy: +maniram.maniram
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13545
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Can you try to patch platform.py with the following patch?
diff --git a/Lib/platform.py b/Lib/platform.py
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -186,7 +186,7 @@ def libc_ver(executable=sys.executable,l
elif so:
New submission from Stefan Krah stefan-use...@bytereef.org:
I think that `make distclean` should remove Lib/_sysconfigdata.py and
Modules/_testembed. On second thought, `make clean` should probably
also remove those.
--
components: Build
messages: 148969
nosy: skrah
priority: normal
Antoine Pitrou pit...@free.fr added the comment:
Yes, make clean should remove them as well.
--
nosy: +pitrou
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13547
___
Éric Araujo mer...@netwok.org added the comment:
I believe the commit would have needed a regression test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
___
Garrett Cooper yaneg...@gmail.com added the comment:
I'll verify the fix in another day or two.
FWIW unless python is willing to import pexpect, or provide an equivalent, I'm
not sure how items like this which require interactive input can be run via
the python project testing framework.
Éric Araujo mer...@netwok.org added the comment:
I'm not sure how items like this which require interactive input can
be run via the python project testing framework.
Replace sys.stdin with a custom object (a stub) and you can control input (see
the Inputs class used in
New submission from Stephan R.A. Deibel sdei...@wingware.com:
The tracer set with sys.settrace() is called incorrectly with a 'line' event on
a 'pass' that is at the end of an 'else' clause on the final line of a function
even if the else block is not executed by the interpreter. Whew, talk
Changes by Ned Batchelder n...@nedbatchelder.com:
--
nosy: +nedbat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13548
___
___
Python-bugs-list
Stephan R.A. Deibel sdei...@wingware.com added the comment:
Sorry, the print statement in the file needs a tweak to work with Python 3.2,
but the bug does occur there also.
--
___
Python tracker rep...@bugs.python.org
Garrett Cooper yaneg...@gmail.com added the comment:
Ok. I'll see if I can provide a unittest for this by the 12th.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
___
Ron Adam ron3...@gmail.com added the comment:
Thanks for the updated links Nick.
There is a comment in the docs that recommends putting parentheses around any
yield expression that returns a value. So it is in agreement with that in the
function argument case.
The grammar I used does keep
Ezio Melotti ezio.melo...@gmail.com added the comment:
I think the patch includes too many changes. It would be better if you can
split it in two separate patches: one with the increased coverage, the other
with the bugs you found and their tests.
I can easily commit the first (assuming it
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: - ezio.melotti
stage: test needed - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13531
___
Dave Malcolm dmalc...@redhat.com added the comment:
I agree. I filed this here in case anyone else ran into it, but given that
this is really a glibc bug (now fixed), I'm closing this out as won't fix.
--
resolution: - wont fix
status: open - closed
Charles-François Natali neolo...@free.fr added the comment:
It's a duplicate of #12157.
--
nosy: +neologix
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder: - join method of multiprocessing Pool object hangs if iterable
argument of
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a541bda2f5e2 by Charles-François Natali in branch 'default':
Issue #11051: Reduce the number of syscalls per import.
http://hg.python.org/cpython/rev/a541bda2f5e2
--
nosy: +python-dev
Martin v. Löwis mar...@v.loewis.de added the comment:
I would have appreciated had you considered my review before pushing that
change.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11051
Charles-François Natali neolo...@free.fr added the comment:
I would have appreciated had you considered my review before pushing
that change.
Sorry, I didn't receive an email notification for your review, so I didn't know
you had done one. I'll add a comment.
--
Charles-François Natali neolo...@free.fr added the comment:
Here's a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file23866/event_wait_cleared.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13502
Charles-François Natali neolo...@free.fr added the comment:
URLError: urlopen error [Errno 4] Non-recoverable failure in name
resolution
For this one, we should probably add EAI_FAIL to support.transient_internet.
--
keywords: +patch
nosy: +neologix
Added file:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Here is a patch, with test.
--
keywords: +patch
Added file: http://bugs.python.org/file23868/issue13546.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13546
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
assignee: - amaury.forgeotdarc
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13546
___
Ned Deily n...@acm.org added the comment:
LGTM
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13546
___
___
Python-bugs-list mailing list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 57de1ad15c54 by Amaury Forgeot d'Arc in branch '2.7':
Issue #13546: Fixed an overflow issue that could crash the intepreter when
http://hg.python.org/cpython/rev/57de1ad15c54
--
nosy: +python-dev
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This will be fixed in the next 2.7 release, thanks for the report!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Matt Mackall m...@selenic.com added the comment:
The underlying cause of Python's write exceptions with cp65001 is:
The ANSI C write() function as implemented by the Windows console returns the
number of _characters_ written rather than the number of _bytes_, which Python
reasonably
STINNER Victor victor.stin...@haypocalc.com added the comment:
I got the debug output of test_3_join_in_forked_from_thread() using some hacks
(threading._VERBOSE=True and don't hide subprocess output):
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0,
STINNER Victor victor.stin...@haypocalc.com added the comment:
Hum, it's better with the process identifiers. Oh, by the way: the output is
not truncated, Python test hangs during the second run :-) Without the debug
output, it needs more than 1,000 runs to reproduce the
bug (hang).
Testing
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
Removed message: http://bugs.python.org/msg148991
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
Removed message: http://bugs.python.org/msg148992
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
I removed my two previous message (msg148991 and msg148992), there were
unrelated to this issue: the test hangs in debug mode in the IO module because
of a deadleak in IO related to the fork...
--
New submission from Matt Long m...@crocodoc.com:
The description of nesting list comprehensions in section 5.1.5 of the main
Python tutorial
(http://docs.python.org/tutorial/datastructures.html#nested-list-comprehensions)
is misleading at best and arguably incorrect. Where it says To avoid
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a8deeb549e1a by Ezio Melotti in branch '2.7':
#13531: add a test for defaultdict with a non-callable arg. Patch by Mike
Cheng.
http://hg.python.org/cpython/rev/a8deeb549e1a
New changeset 17ceebc61b65 by Ezio
Charles-François Natali neolo...@free.fr added the comment:
To debug this, we should probably make use of faulthandler (but not
dump_tracebacks_later, since it creates a new thread). The way to go
could be to make the parent process send a fatal signal to the child
process if the latter takes
Ezio Melotti ezio.melo...@gmail.com added the comment:
Committed, thanks for the report and the patch!
For the record, this is related to https://bugs.pypy.org/issue953
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
Terry J. Reedy tjre...@udel.edu added the comment:
I am a little puzzled by the patch. In logic, 'A and B' is equivalent to 'not A
or not B'. But in the patch,
-if (_Py_stat(filename, statbuf) == 0 /it exists */
-S_ISDIR(statbuf.st_mode)) /* it's a directory */
+
STINNER Victor victor.stin...@haypocalc.com added the comment:
By the way, _Py_stat() can fail because of a Python error: -1 result is not
handled in import.c :-( It may leak to the XXX undetected error message.
--
nosy: +haypo
___
Python tracker
Terry J. Reedy tjre...@udel.edu added the comment:
OK, I gather from the comment added in the second patch that you intentionally
changed the logic to restart the loop more often.
--
___
Python tracker rep...@bugs.python.org
New submission from STINNER Victor victor.stin...@haypocalc.com:
The threading module uses an hack to log actions to help debugging. The log
depends on 3 flags: __debug__, threading._VERBOSE and a verbose attribute (each
threading class has such attribute). By default, _note() is always called
Changes by STINNER Victor victor.stin...@haypocalc.com:
Added file: http://bugs.python.org/file23870/threading_note_global.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13550
___
1 - 100 of 120 matches
Mail list logo