Changes by Simon:
--
nosy: +bind
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1651995>
_
___
Python-bugs-list mailing list
Unsubs
Simon added the comment:
The 255 -> 127 change works for me. Let me know if I can help with unit
tests or whatever to get this patched.
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
Simon added the comment:
Not sure if this is related, but for me none of the F5 processes (command line
"pythonw.exe -c __import__('idlelib.run').run.main(True) ") ever exit on
either 2.7.2 or 3.2.1rc1.
------
nosy: +Simon
___
P
New submission from simon :
works in 2.6, fails in 3.2.2
import unittest
class MyTest(unittest.TestCase):
def test_a(self):
exec(compile("a = 1", '', 'single'))
assert a == 1
if __name__ == '__main__':
unittest.main()
-
simon added the comment:
seems i need to use
exec(compile("a = 1", '', 'single'), globals())
--
___
Python tracker
<http://bugs.python.org/issue12928>
___
__
simon added the comment:
Can't get this one working:
import unittest
class MyTest(unittest.TestCase):
def test_a(self):
b = 1
exec(compile("a = b + 1", '', 'single'))
assert a == 2
if __name
New submission from simon :
testmultiprocessing.py:
def main():
import multiprocessing
proc = multiprocessing.Process(target=runhi)
proc.start()
proc.join()
def runhi():
print 'hi'
if __name__ == "__main__":
main()
testmultiprocessing.py
Changes by simon :
--
keywords: +patch
Added file: http://bugs.python.org/file17092/forking.patch
___
Python tracker
<http://bugs.python.org/issue8534>
___
___
New submission from Simon :
The QueueListener could be extended to support the context manager.
--
components: Library (Lib)
messages: 361641
nosy: sbrugman
priority: normal
severity: normal
status: open
title: Logging QueueListener should support context manager
versions: Python 3.5
Change by Simon :
--
keywords: +patch
pull_requests: +17792
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18417
___
Python tracker
<https://bugs.python.org/issu
Simon added the comment:
The QueueListener in the logging library starts a background thread to monitor
the log event queue. The context manager support is ideal in this case, making
the code simpler, more consistent with other classes (e.g.
multiprocessing.Pool) and prompts stopping the
Change by Simon :
--
pull_requests: +17944
pull_request: https://github.com/python/cpython/pull/18563
___
Python tracker
<https://bugs.python.org/issue39
New submission from simon :
when compiling Python 3.7.0 setup.py is reporting that the ssl module failed to
compile due to missing support for X509_VERIFY_PARAM_set1_host() despite it
existing in rsa.h for all versions of OpenSSL 1.1.0.
Could not build the ssl module!
Python requires an
simon added the comment:
Apologies, my bad you are correct the function was defined in x509_vfy.h
Im compiling on RHEL
Red Hat Enterprise Linux Server release 7.5 (Maipo)
I have tried Openssl from source versions;
openssl-1.0.2o (this releaseis a mess and the folder structure has been
simon added the comment:
Thanks
I have found teh root cause of the problem ...
--with-openssl=[my_dir]
The configure scripts has an assumption you are compiling against a binary
packaged version of openssl and that there is a /lib folder under [my_dir].
This simply does not exist under
Changes by Simon :
--
assignee: -> docs@python
components: +Documentation -ctypes
nosy: +docs@python
type: crash -> behavior
___
Python tracker
<http://bugs.python.org/i
New submission from simon :
def __getattr__(self, attr):
# XXX this is a fallback mechanism to guard against these
# methods getting called in a non-standard order. this may be
# too complicated and/or unnecessary.
# XXX should the __r_XXX attributes be public
New submission from Simon:
I downloaded the Embeddable zip file from the Python site,
(https://www.python.org/downloads/release/python-351/) and rand the code below.
When I run the code below certain modules are not imported while others are
imported fine.
The modules that are not imported
Changes by Simon :
--
components: +Interpreter Core, Windows
___
Python tracker
<http://bugs.python.org/issue26598>
___
___
Python-bugs-list mailing list
Unsub
Simon added the comment:
I have tried with the zip file in both the exe alongside the zip and not
alongside it, (mine was not).
And I get the same error in both cases.
I am using Windows 10, VS2015.
I compile the Python35.dll directly and my config is default, I don't change
anything r
Simon added the comment:
1- New solution Win32 "console application", (left all default settings).
2- downloaded "Gzipped source tarball" from
https://www.python.org/downloads/release/python-351/
3- Extracted everything, (didn't change anything).
4- Added "python
Simon added the comment:
Sorry I should add that
1- I do *not* have python installed on my dev machine.
2- VS2015 Enterprise.
3- Windows 10 - x64
4- *Not* running as admin
Everything else is fairly standard.
--
___
Python tracker
<h
Simon added the comment:
Yes, it was a debug build, I didn't know it only works in release, that's the
part I was clearly missing.
It would be great if we could have a debug embeddable zip file, but I
understand that it might be asking for a bit much.
Is the project that builds al
Simon added the comment:
Not sure if I should be closing the issue or if you should.
I think it is not an issue.
--
___
Python tracker
<http://bugs.python.org/issue26
Change by Simon McVittie :
--
keywords: +patch
pull_requests: +28623
pull_request: https://github.com/python/cpython/pull/30417
___
Python tracker
<https://bugs.python.org/issue43
Simon McVittie added the comment:
I've opened https://github.com/python/cpython/pull/30417, is that what you want?
I am not a regular CPython developer, so I don't have a good way to assess
which reviewers speak for the project and which reviewers are only offering a
person
New submission from Simon Wrede :
Documentation states that a reference must be kept when creating a task,
https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task.
This is not done in StreamReaderProtocol,
https://github.com/python/cpython/blob/main/Lib/asyncio/streams.py
Change by Simon Wrede :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue46309>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Simon Wrede :
--
keywords: +patch
pull_requests: +28710
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30505
___
Python tracker
<https://bugs.python.org/issu
Change by Simon Wrede :
--
versions: +Python 3.11, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46309>
___
___
Python-bug
Simon Arlott added the comment:
Another way to do this is to call threading.main_thread().join() in another
thread and do the shutdown cleanup when it returns.
The main thread is stopped at shutdown just before the
threading._threading_atexits are called.
--
nosy: +sa
Changes by Simon Anders:
--
components: Build, Interpreter Core
severity: normal
status: open
title: ''.find() gives wrong result in Python built with ICC
versions: Python 2.5
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.p
New submission from Simon Anders:
I have just encountered a strange bug affecting Python 2.5.1 on an
x86_64 Linux, but only when compiled with the Intel C Compiler (ICC)
10.0, not a GCC-compiled Python. On my Intel-compiled one, which
otherwise seems to work fine, ''.find() works incor
Simon Anders added the comment:
Martin, you are right: is is related to compiler optimization. I have
boiled it down to a call of stringlib_find (defined in
Python-2.5.1/Objects/stringlib/find.h) and this runs fine with 'icc -O2'
but incorrectly for 'icc -O3'. (The test co
Simon Anders added the comment:
Martin: I've boiled down the test case a bit more and removed all
Python-specific types and macros, so that it can now be compiled
stand-alone. (Updated test case 'findtest.c' attached.) I didn't feel
like diving into the code much deeper, and
Simon Percivall added the comment:
It has to do with the MACOSX_DEPLOYMENT_TARGET. If it's set to 10.4, the
legacy version of setpgrp is used (with args), it it's 10.5, setpgrp
expects no arguments. It seems configure won't detect the difference.
--
n
New submission from Simon Elén :
The zlib (de)compressobj copy() method is missing on Windows.
Tested on Python 2.7.2 and 3.2.2 Windows binaries. I have not tried to build
from source.
(In the source code I can see a check for HAVE_ZLIB_COPY. Does the Windows
binaries statically link the
New submission from Simon Sapin :
Hi,
The attached patch adds a 'key' optional parameter to the heapq.merge function
that behaves as in sorted().
Related discussion:
http://mail.python.org/pipermail/python-ideas/2012-January/013295.html
This is my first contribution
Simon Sapin added the comment:
The attached script benchmarks the basline (current implementation) against 3
new implementations, as suggested on
http://mail.python.org/pipermail/python-ideas/2012-January/013296.html
On my machine, the output is:
merge_baseline
per run, min of 3
Simon Sapin added the comment:
Oops, the patch to the documentation would also need 'New in 3.3: the key
parameter', with the right Sphinx directive. But that depends on whether this
change ends up in 3.3 or 3.4.
Does 3.3 still get ne
Changes by Simon Sapin :
--
nosy: +ssapin
___
Python tracker
<http://bugs.python.org/issue5441>
___
___
Python-bugs-list mailing list
Unsubscribe:
Simon Sapin added the comment:
Raymond, please have a look at merge_3 in benchmark_heapq_merge.py. It is
implemented as you say.
Do you think the speed is worth the code duplication?
--
___
Python tracker
<http://bugs.python.org/issue13
Changes by Simon Baird :
--
nosy: +sbaird
___
Python tracker
<http://bugs.python.org/issue12345>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Simon Forman :
In IDLE if you open a file that is longer than the editor window the first
line, with the cursor, is scrolled off the top of the window making it appear
as though the file begins at the second line.
This can be fixed by adding 'text.see("insert&quo
Simon Buchan added the comment:
Confirming this patch fixes the test_aynsc* tests in my VS10 build. Shouldn't
it swap all WSA* defines to protect against this in the future, though?
Alternatively, should the check for WSA* codes existing be in Lib\asyncore.py?
--
nosy: +
Simon Forman added the comment:
You're very welcome.
--
___
Python tracker
<http://bugs.python.org/issue12590>
___
___
Python-bugs-list mailing list
Unsubsc
New submission from John Simon :
The ConfigParser docs say that when __init__ is called with interpolation=None,
no interpolation occurs. But when this is done in Python 3.2.1, it actually
results in an AttributeError upon getting or setting a value, due to
self._interpolation being set to
Changes by Simon Law :
--
nosy: +sfllaw
___
Python tracker
<http://bugs.python.org/issue444582>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Simon Liedtke :
I'd like to have the method `index` not only for list, but also for
collections.deque.
Here is my attempt:
http://bitbucket.org/derdon/hodgepodge/src/tip/extended_deque.py
I'm looking forward to see this method implemented in
Simon Liedtke added the comment:
I see that adding this method to a deque is useless. A list is better for this
kind of operation. I just wrote it for fun and realized that it was implemented
rather slow.
--
resolution: -> rejected
status: open ->
Simon Cross added the comment:
I'm attaching a patch to relax the check in PyModule_Create2 as suggested by
the Amaury (http://bugs.python.org/issue4236#msg75409).
The patch uses "PyThreadState_Get()->interp->modules == NULL" to determine
whether the import machinery ha
Simon Cross added the comment:
I made the minor changes needed to get Eli Bendersky's patch to apply against
3.2. Diff attached.
--
nosy: +hodgestar
Added file: http://bugs.python.org/file19675/issue2986.fix32.5.patch
___
Python tracker
Simon Cross added the comment:
This issue is subsumed by #10435 and can probably be closed as a duplicated.
--
nosy: +hodgestar
___
Python tracker
<http://bugs.python.org/issue8
Simon Cross added the comment:
This issue is subsumed by #10435 and can probably be closed as a duplicated.
--
nosy: +hodgestar
___
Python tracker
<http://bugs.python.org/issue8
Simon Cross added the comment:
This issue is subsumed by #10435 and can probably be closed as a duplicated.
--
nosy: +hodgestar
___
Python tracker
<http://bugs.python.org/issue8
Changes by Simon Cross :
--
nosy: +hodgestar
___
Python tracker
<http://bugs.python.org/issue10435>
___
___
Python-bugs-list mailing list
Unsubscribe:
Simon Cross added the comment:
My vote is that this bug be closed and a new feature request be opened. Failing
that, it would be good to have a concise description of what else we would like
done (and the priority should be downgraded, I guess
Simon Cross <[EMAIL PROTECTED]> added the comment:
Some quick digging in the code on trunk has revealed that by the time
the base reaches PyInt_FromString in intobject.c, -909 has become 10.
Surrounding numbers seem to come through fine.
--
nosy: +hod
Simon Cross <[EMAIL PROTECTED]> added the comment:
In int_new in intobject.c the base -909 is used to indicate that no base
has been passed through (presumably because NULL / 0 is a more common
pitfall that -909). Thus -909 is equivalent to base 10.
__
T
Simon Cross <[EMAIL PROTECTED]> added the comment:
One of the examples Christoph tried was
unicode(Exception(u'\xe1'))
which fails quite oddly with:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in
position 0: ordinal not in ran
Simon Cross <[EMAIL PROTECTED]> added the comment:
Concerning http://bugs.python.org/issue1551432:
I'd much rather have working unicode(e) than working unicode(Exception).
Calling unicode(C) on any class C which overrides __unicode__ is broken
without tp_uni
Simon Cross <[EMAIL PROTECTED]> added the comment:
Benjamin Peterson wrote:
> What version are you using? In Py3k, str is unicode so __str__ can
> return a unicode string.
I'm sorry it wasn't clear. I'm aware that this issue doesn't apply to
Python 3.0. I'm
Simon Cross <[EMAIL PROTECTED]> added the comment:
Attached a patch which implements Nick Coghlan's suggestion. All
existing tests in test_exceptions.py and test_unicode.py pass as does
the new unicode(Exception(u"\xe1")) test.
Added file:
http://bugs.python.org/file10
Simon Cross <[EMAIL PROTECTED]> added the comment:
Re msg67974:
> Minor cleanup of Simon's patch attached - aside from a couple of
> unneeded whitespace changes, it all looks good to me.
>
> Not checking it in yet, since it isn't critical for this week's beta
&
Simon Cross <[EMAIL PROTECTED]> added the comment:
Justing prodding the issue again now that the betas are out. What's the
next step?
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
New submission from Simon Cross <[EMAIL PROTECTED]>:
The _hash method of the Set ABC uses sys.maxsize but doesn't import sys.
The attached patch (against trunk) imports sys and adds a test to show
the problem. There are also still some other _abcoll.py cleanups waiting
in
Simon Cross <[EMAIL PROTECTED]> added the comment:
One could also make a case for simply removing the _hash method since it
doesn't look like anything is using it? And anything that was using it
would already be broken?
___
Python tracker <[E
New submission from Simon Cross <[EMAIL PROTECTED]>:
It appears that ssl.SSLSocket attempts to override some of the methods
socket.socket delegates to the underlying _socket.socket methods.
However, this overriding fails because socket.socket.__init__ replaces
all the methods mentio
Simon Cross <[EMAIL PROTECTED]> added the comment:
I've just checked that the patch still applies cleanly to 2.6 and it
does and the tests still passes. It looks like the patch has already
been applied to 3.0 but without the test. The test part of the part
applies cleanly
Simon Cross <[EMAIL PROTECTED]> added the comment:
Poking the issue.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1923>
___
___
Python
Simon Cross <[EMAIL PROTECTED]> added the comment:
I've attached a patch for trunk / 2.6 that adds recv_into and
recvfrom_into methods to ssl.SSLSocket and does a minor re-ordering of
the nasty lambdas in __init__. The recv_into method is a port of the one
from 3.0. The recvfrom_into
Simon Cross <[EMAIL PROTECTED]> added the comment:
Attach recvfrom_into method patch for 3.0.
Added file: http://bugs.python.org/file11390/3k-ssl-methods.patch
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Simon Cross <[EMAIL PROTECTED]> added the comment:
Tests for recv* and send* methods in 3.0 (2.6 tests coming shortly).
Added file: http://bugs.python.org/file11392/3k-ssl-tests.patch
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Simon Cross <[EMAIL PROTECTED]> added the comment:
Test for recv* and send* in 2.6.
The tests revealed some bugs so this patch fixes those and supercedes
trunk-ssl-methods.patch.
Of particular note is that recv_into called self.read(buf, nbytes) which
isn't supported in _ssl.c i
Simon Cross <[EMAIL PROTECTED]> added the comment:
>> self.read(buf, nbytes)
> Shouldn't this function be named readinto()?
There is no readinto function (and I suspect one is unlikely to be added
now). In Py3k SSLSocket.read takes both len and buffer a
Simon Cross <[EMAIL PROTECTED]> added the comment:
@Bill Janssen:
There are currently two patch sets which I think should be applied. For
2.6 it's just trunk-ssl-tests.patch. For 3.0 it's 3k-ssl-methods.patch
and 3k-ssl-tests.patch.
@Amaury Forgeot d'Arc
I agree it
Simon Cross <[EMAIL PROTECTED]> added the comment:
And thanks for looking at them and applying! :)
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Simon Cross <[EMAIL PROTECTED]> added the comment:
I've dug around in the code a bit and the keyfile, certfile and ca_certs
filename arguments to SSLSocket.__init__ are passed down into
newPySSLObject in _ssl.c and from there directly to SSL_CTX_* function
from OpenSSL so making thes
Simon Cross <[EMAIL PROTECTED]> added the comment:
I can't reproduce this on current trunk (r66633, 27 Sep 2008). I checked
sys.getdefaultencoding() but that returned 'ascii' as expected and I
even tried language Python with "LANG=C ./python" but that didn'
Simon Cross <[EMAIL PROTECTED]> added the comment:
I've tracked down the cause to the .unescape(...) method in HTMLParser.
The replaceEntities function passed to re.sub() always returns a unicode
character, even when matching string s is a byte string. Changing line
383 to
New submission from Simon Anders :
The class optparse.OptionParser supports a number of useful keyword arguments
to the initializer, which are not documented in the Python Standard Library
documentation, here: http://docs.python.org/library/optparse.html
This is a bit unfortunate. For example
New submission from Simon Jagoe :
I have been using sqlalchemy and sqlamp in a project for a while with Python
2.5.x and Python 2.6.4. With a recent upgrade to Python 2.6.5 (on Ubuntu Lucid
Lynx), a particular operation began to fail when using sqlite.
I have tracked this to using the sqlite3
Simon Anders added the comment:
Update to the story: After I submitted the bug report to Intel, they
investigated and quickly confirmed it to be a compiler bug, whcih they
then managed to fix.
I have just got an e-mail from Intel that the newest available version
of ICC, namely version
New submission from Simon Percivall:
_safe_repr() tries to handle the case where two objects are unorderable by
ordering on (str(type(key)), key, value), but this fails when
str(type(key)) is equal for two objects, but key is different and
unorderable. Easy fix: order just on the string
Changes by Simon Percivall <[EMAIL PROTECTED]>:
Added file: http://bugs.python.org/file9746/test_pprint30_bug.py
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Simon Percivall <[EMAIL PROTECTED]> added the comment:
It's still a problem, as the test case demonstrates.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2074>
__
___
Simon Cross <[EMAIL PROTECTED]> added the comment:
This also affects Python 2.4 and 2.6 on Linux systems. Bug
http://bugs.python.org/issue2763 is a duplicate of this one.
The issue is that socketmodule.c doesn't convert empty strings to NULLs
before passing hptr through to the underl
Simon Cross <[EMAIL PROTECTED]> added the comment:
Attached a patch to correct the getaddrinfo(...) documentation and the
code example in socket.rst.
--
keywords: +patch
Added file:
http://bugs.python.org/file10237/getaddrinfo-doesnt-treat-empty-string-as-non
Simon Cross <[EMAIL PROTECTED]> added the comment:
cElementTree.ElementTree is a copy of ElementTree.ElementTree with the
.parse(...) method replaced, so the original patch for ElementTree
should fix cElementTree too.
The copying of the ElementTree class into cElementTree happens in the
c
Simon Cross <[EMAIL PROTECTED]> added the comment:
Attached a patch which adds a .totimetuple(...) method to
datetime.datetime and tests for it.
The intention is that the dt.totimetuple(...) method is equivalent to:
mktime(dt.timetuple()) + (dt.microsecond / 100.0)
--
ke
Simon Cross <[EMAIL PROTECTED]> added the comment:
Patch adding documentation for datetime.totimestamp(...).
Added file:
http://bugs.python.org/file10256/add-datetime-totimestamp-method-docs.diff
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Changes by Simon Cross <[EMAIL PROTECTED]>:
--
nosy: +hodgestar
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1491>
__
___
Python-bugs-list mailin
New submission from Simon Cross <[EMAIL PROTECTED]>:
The section on Additional meta-data in Doc/distutils/setupscript.rst is
missing any reference to the setup() "platforms" keyword. I've attached
a patch which fills in the basics but there are some outstanding questions:
Changes by Simon Cross <[EMAIL PROTECTED]>:
--
nosy: +hodgestar
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4336>
___
___
Python
New submission from simon mackenzie :
The docs for subprocess.run say "The arguments used to launch the process. This
may be a list or a string."
This works in windows but in linux it has to be a list. Either needs fixing or
the docs need to be changed.
--
messages: 3
simon mackenzie added the comment:
Technically true but I am not the first person to have incorrectly
interpreted this that it can be a string which suggests it is not clear to
the reader. Maybe should be explicitly stated in the description of run as
it is not obvious or intuitive.
On Thu
simon mackenzie added the comment:
Would be clearer if the arguments were listed before the return object.
On Thu, 15 Aug 2019 at 15:05, SilentGhost wrote:
>
> SilentGhost added the comment:
>
> But docs don't say that at all. You're looking at description of an
&
New submission from Simon Aldrich :
Running a Valgrind memcheck of Py_Initialize still produces issues even when
using the suggested suppressions file. Am I doing something wrong or is this
expected?
I've attached a simple reproducer which can be run as follows:
1. Extract tarball
2.
New submission from Simon Willison :
In Python 3.10 it is not possible to instantiate an asyncio.Condition that
wraps an asyncio.Lock without raising a "loop argument must agree with lock"
exception.
This code raises that exception:
asyncio.Condition(asyncio.Lock())
This
Simon Willison added the comment:
I ran across this issue while trying to use the https://pypi.org/project/janus/
locking library with Python 3.10 - see my issue on their tracker here:
https://github.com/aio-libs/janus/issues/358
--
___
Python
1 - 100 of 275 matches
Mail list logo