[issue34486] "RuntimeError: release unlocked lock" when starting a thread

2019-02-20 Thread Radek
Radek added the comment: Any progress on this topic? I think I've encountered this (or similar) issue: >Traceback (most recent call last): > File "logging/__init__.py", line 1944, in shutdown > File "logging/__init__.py", line 813, in acquire > File "

[issue24209] Allow IPv6 bind in http.server

2018-10-10 Thread Radek Podgorny
Change by Radek Podgorny : -- nosy: +rpodgorny ___ Python tracker <https://bugs.python.org/issue24209> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30786] getaddrinfo emulation does not support AI_NUMERICSERV

2017-06-27 Thread Radek Smejkal
Changes by Radek Smejkal <radek.smej...@laicatc.com>: -- pull_requests: +2485 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30711] getaddrinfo invalid port number

2017-06-27 Thread Radek Smejkal
Changes by Radek Smejkal <radek.smej...@laicatc.com>: -- pull_requests: +2484 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30710] getaddrinfo raises OverflowError

2017-06-27 Thread Radek Smejkal
Changes by Radek Smejkal <radek.smej...@laicatc.com>: -- pull_requests: +2483 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30711] getaddrinfo invalid port number

2017-06-27 Thread Radek Smejkal
Radek Smejkal added the comment: See also issue30786. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30711> ___ ___ Python-bugs-

[issue30786] getaddrinfo emulation does not support AI_NUMERICSERV

2017-06-27 Thread Radek Smejkal
New submission from Radek Smejkal: Modules/getaddrinfo.c should support AI_NUMERICSERV. Moreover, not supporting AI_NUMERICSERV may cause troubles on platforms where the getaddrinfo function is available but it's buggy (see configure.ac and Modules/socketmodule.c), because Modules/addrinfo.h

[issue30711] getaddrinfo invalid port number

2017-06-23 Thread Radek Smejkal
Radek Smejkal added the comment: See also issue30710. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30711> ___ ___ Python-bugs-

[issue30711] getaddrinfo invalid port number

2017-06-23 Thread Radek Smejkal
Changes by Radek Smejkal <radek.smej...@laicatc.com>: Removed file: http://bugs.python.org/file46965/getaddrinfo_invalid_port.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30711] getaddrinfo invalid port number

2017-06-21 Thread Radek Smejkal
Changes by Radek Smejkal <radek.smej...@laicatc.com>: -- components: +Extension Modules -Library (Lib) keywords: +patch Added file: http://bugs.python.org/file46965/getaddrinfo_invalid_port.patch ___ Python tracker <rep...@bugs.python.o

[issue30710] getaddrinfo raises OverflowError

2017-06-21 Thread Radek Smejkal
Radek Smejkal added the comment: > I like your idea about getting rid of OverflowError. But wouldn't it make the > problem with other reported by you issue, issue30711, worse? It depends on the implementation of the underlying getaddrinfo. For Modules/getaddrinfo.c, it will be

[issue30710] getaddrinfo raises OverflowError

2017-06-21 Thread Radek Smejkal
Radek Smejkal added the comment: > Why can't the user simply pass in a string service name in the first place? He/she can. But I don't propose to change that. The patch only changes the way a given number is converted to a string. That is, without an intermediate C l

[issue30710] getaddrinfo raises OverflowError

2017-06-21 Thread Radek Smejkal
Radek Smejkal added the comment: > But how large is the performance hit of this change? It adds at least one > additional memory allocation for the str object. If the slowdown is > significant perhaps it is worth to keep the old code as a fast path

[issue30710] getaddrinfo raises OverflowError

2017-06-20 Thread Radek Smejkal
Radek Smejkal added the comment: Use PyObject_Str and PyUnicode_AsUTF8 if the port argument is a PyLong instead of converting it to an intermediate C long that may raise OverflowError. See getaddrinfo_overflow_error.patch -- components: +Extension Modules -Library (Lib) keywords

[issue30711] getaddrinfo invalid port number

2017-06-20 Thread Radek Smejkal
New submission from Radek Smejkal: Some getaddrinfo implementations do not detect invalid numeric services and blindly pass the port number to htons(). For example, service "960179" is returned as port 42675. glibc https://sourceware.org/bugzilla/show_bug.cgi?id=16208 https://sour

[issue30710] getaddrinfo raises OverflowError

2017-06-20 Thread Radek Smejkal
New submission from Radek Smejkal: If the port argument is a number, getaddrinfo attempts to convert it to a C long, that raises OverflowError if the conversion fails. Instead, getaddrinfo should convert the port to a string (bytes) directly and rely on the underlying getaddrinfo to return

Re: Quote of the day

2016-05-17 Thread Radek Holý
2016-05-17 9:50 GMT+02:00 Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info>: > Overhead in the office today: > > > "I don't have time to learn an existing library - much faster to make my > own > mistakes!" > > > > -- > Steve > > -- > https://mail.python.org/mailman/listinfo/python-list >

Re: Pylint prefers list comprehension over filter...

2016-05-07 Thread Radek Holý
2016-05-07 21:17 GMT+02:00 Christopher Reimer : > On 5/5/2016 6:37 PM, Stephen Hansen wrote: > >> On Thu, May 5, 2016, at 06:26 PM, Christopher Reimer wrote: >> >>> Which is one is correct (Pythonic)? Or does it matter? >>> >> First, pylint is somewhat opinionated,

HTTPServer and SSL

2016-04-17 Thread Radek Holý
there used to be a HTTPSServer in the test suite of Python 2.7 in 2014 that did a similar thing but in the "get_request" method but it isn't there anymore. So, is there a *supported* way of combining http.server.HTTPServer and ssl? Best regards -- Radek -- https://mail.python.org/mailman/listinfo/python-list

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-10-06 Thread Radek Novacek
Radek Novacek added the comment: There is still problem with col_offset is some situations, for example col_offset of the ast.Attribute should be 4 but is 0 instead: >>> for x in ast.walk(ast.parse('foo.bar')): ... if hasattr(x, 'col_offset'): ... print("%s: %d"

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-10-06 Thread Radek Novacek
Radek Novacek added the comment: Aivar, I have to admit that my knowledge of this is limited, but as I understand it, the attribute is "bar" in the "foo.bar" expression. I can get beginning of the assignment by >>> ast.parse('foo.bar').body[0].value.value.co

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-09-24 Thread Radek Novacek
Radek Novacek added the comment: I've ran the tests from first and second comment using python 3.5.0 and it seems it produces correct results: >>> import ast >>> tree = ast.parse("sin(0.5)") >>> first_stmt = tree.body[0] >>> call = first_stmt.

[issue6057] sqlite3 error classes should be documented

2015-05-11 Thread Radek Holý
Radek Holý added the comment: One reason why I would like to have it mentioned in the documentation is that the fact that it is not documented there causes sqlite3.Error to be missing in the objects.inv file generated by Sphinx so that enabling the nitpicky mode with intersphinx extension

[issue23169] Reflect that PreReq and BuildPreReq are deprecated in the latest RPM

2015-01-05 Thread Radek Simko
New submission from Radek Simko: When I try to make custom package of Python 2.7, I use the spec file attached in `/Misc/RPM`. I don't really use it to build Python as I want to define some specific options, but I do use it as a source of RPM package meta data which I can simply reuse when

Re: Shear image (numpy.ndarray)

2013-04-29 Thread Radek Machulka
/Shear_matrix Radek -- http://mail.python.org/mailman/listinfo/python-list

Shear image (numpy.ndarray)

2013-04-27 Thread Radek Machulka
to scale, translate, rotate, and shear the original image.', however I was not able to get it work. So could anybody give me a hand how to use it (or how to shear the image in different way)? The input array is 2D (NxM) type numpy.float32. Thanks Radek -- http://mail.python.org/mailman/listinfo/python

[issue5148] gzip.open breaks with 'U' flag

2009-02-13 Thread Radek
Radek szklarc...@yahoo.com added the comment: Same bug in 2.5, I don't know if the patch applies to 2.5 -- nosy: +radek768 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5148

Re: fetch html page via isa proxy

2007-03-27 Thread Radek
So you have already tried NTLM Authorization Proxy Server?http://ntlmaps.sourceforge.net/ This used to work fine for me but that was at least 3-4 years ago. Actually NTLM proxy server works for most intranet addresses. Not for the outside Internet ones, though. Radek -- http

fetch html page via isa proxy

2007-03-26 Thread Radek
. As the last resort I started to play with pywin32 win32inet, but even the test_win32inet.py does not get there. Any advice? Or better working example? Thanks a lot, Radek -- http://mail.python.org/mailman/listinfo/python-list

Re: run subprocess in separate window

2006-10-16 Thread Radek
Hello, as you can see, I tried subprocess methods. But could not find the right call. Radek [EMAIL PROTECTED] wrote: Radek a écrit : Hi, I am trying to create GUI launcher of several applications using Python and Tkinter. Currently when using subprocess.Popen(mycommand) all

run subprocess in separate window

2006-10-15 Thread Radek
window. How can I make it? Thanks, Radek -- http://mail.python.org/mailman/listinfo/python-list

Re: What editor shall I use?

2006-02-08 Thread Radek Kubicek
What editor shall I use if my Python script must contain utf-8 characters? I use XP vim :-) Thank you for reply l.b. not for all :-) -- http://mail.python.org/mailman/listinfo/python-list