[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10090 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-12-03 Thread Sergei Zobov
Sergei Zobov added the comment: So, should I just close this issue in case we've decided it's not a big problem? -- ___ Python tracker ___

[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-12-03 Thread Chris Withers
Chris Withers added the comment: New changeset 1ef06c62d3c05cbba6448c56af30a09c551c9ec2 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-32153: Add unit test for create_autospec with partial function returned in getattr (GH-10398) (#10855) https://github.com/python/cpython/commit

[issue35382] Something wrong with pymysql

2018-12-03 Thread Leung
New submission from Leung : when i use like that userinfo = dbsession2.query(func.count(radcheck1.username)).\ outerjoin(radcheck2,radcheck1.username==radcheck2.username).\ filter(radcheck1.admin_user==g.user.name,or_(radcheck1.username.like('im_%'),and_(radcheck1.attribute=='Cleartext-Password

[issue10320] printf %qd is nonstandard

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 062cbb67726f26794b1b461853e40696b4a0b220 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853) https://github.com/python/cpython/commit/062cbb6772

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10091 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10092 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10093 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10094 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4013c179117754b039957db4730880bf3285919d by Serhiy Storchaka in branch 'master': bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848) https://github.com/python/cpython/commit/4013c179117754b039957db4730880bf3285919d --

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10095 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35382] Something wrong with pymysql

2018-12-03 Thread Mark Dickinson
Mark Dickinson added the comment: Hi Leung. This is the issue tracker for the core Python language (along with the standard library). PyMySQL is a third-party project: it isn't part of the standard library. I'd suggest reporting your issue directly to the PyMySQL maintainers. (At a quick gl

[issue35382] Something wrong with pymysql

2018-12-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: Also, for future reference, please spend the time to make a good bug report, showing the minimum code needed to reproduce the error, and the full error, not just a summary. Please read this before your next bug report: http://sscce.org/ Thank you. --

[issue35382] Something wrong with pymysql

2018-12-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It's a third party issue as others noted but just to add to this I found the below PR and question to be related to your problem in the tracker while googling byte2int pymysql that might be of help. * https://stackoverflow.com/questions/51565646/p

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-12-03 Thread Dong-hee Na
Dong-hee Na added the comment: Hi, I am going to solve this issue through below process. 1. Implement `isAlive` for dummy thread 2. Updating docstrings to recommend use is_alive() instead of isAlive(). 3. Add a deprecation warning for both Thread.isAlive and _DummyThread.isAlive 4. Remove isAl

[issue35382] Something wrong with pymysql

2018-12-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, I messed up while adding the reply at the same time. Closing it again. -- nosy: +mark.dickinson, steven.daprano resolution: -> third party stage: -> resolved status: open -> closed ___ Python trac

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread miss-islington
miss-islington added the comment: New changeset bdeb56cd21ef3f4f086c93045d80f2a753823379 by Miss Islington (bot) in branch '3.7': bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848) https://github.com/python/cpython/commit/bdeb56cd21ef3f4f086c93045d80f2a753823379 -- n

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
miss-islington added the comment: New changeset a9f435e5d856fb62516b70a78217e40b90bec233 by Miss Islington (bot) in branch '3.7': bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853) https://github.com/python/cpython/commit/a9f435e5d856fb62516b70a7821

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
miss-islington added the comment: New changeset f65ede3f8fa08493facf48177540d0ec26e59560 by Miss Islington (bot) in branch '3.6': bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853) https://github.com/python/cpython/commit/f65ede3f8fa08493facf4817754

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread miss-islington
miss-islington added the comment: New changeset 0f9b6687eb8b26dd804abcc6efd4d6430ae16f24 by Miss Islington (bot) in branch '3.6': bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848) https://github.com/python/cpython/commit/0f9b6687eb8b26dd804abcc6efd4d6430ae16f24 --

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-12-03 Thread Dieter Maurer
Dieter Maurer added the comment: > Hi, I am going to solve this issue through below process. > ... > Is it okay? For me, this would be perfect. -- ___ Python tracker ___

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2018-12-03 Thread Denton Liu
Denton Liu added the comment: Pinging for updates. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2018-12-03 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: Lukasz, have you created a 3rd party package branching off lib2to3? I'm working on a project that is based on it (in a similar usecase as YAPF and Black) and was hoping that there may be some version maintained distinctly from the Python release schedule.

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Since it's a denial of service which can be triggered by an user, I mark this issue as a security issue. I can be wrong, but it seems like Python 2.7 isn't affected: Lib/email/_header_value_parser.py was added by bpo-12586 (commit 0b6f6c82b51b7071d88f48abb3

[issue35383] lib2to3 raises ParseError on argument called "print"

2018-12-03 Thread Niklas Rosenstein
New submission from Niklas Rosenstein : On Python 3.7.0 lib2to3 will not parse code like this: def foo(print=None): pass and yield the following error instead lib2to3.pgen2.parse.ParseError: bad input: type=1, value='print', context=('', (1, 8)) -- components: 2to3 (2.

[issue35377] urlsplit scheme argument broken

2018-12-03 Thread devkral
devkral added the comment: Ok, then the problem is in unsplit. Because: :/// is not a valid url. Next try: in urlunsplit: if netloc or (scheme and scheme in uses_netloc and url[:2] != '//'): if url and url[:1] != '/' and scheme in ("file", ""): # my change url = '/' + url --

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10096 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Crap. My commit 503ce5c482cb267b0770bc46c315d5cf822bdca9 was supposed to fix on of the latest compiler warning in master, but I introduced a new warning :-( What a shame on me :-( I was too quick... PR 10861 should fix the new warning. -- __

[issue32477] Move jumps optimization from the peepholer to the compiler

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Simplified PR 5077. It uses now NEXT_BLOCK() to guarantee that a new block is always used after jumps. NEXT_BLOCK() was defined, but not used before. bpo-35193 and bpo-9566 demonstrate that the code of peephole.c is complex and error-prone. Moving it to th

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35377] urlsplit scheme argument broken

2018-12-03 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +10097 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35384] The repr of ctypes.CArgObject fails for non-ascii character

2018-12-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The repr of the ctypes.CArgObject instance will fail when the value is a non-ascii character. The code is: sprintf(buffer, "", self->tag, self->value.c); ... return PyUnicode_FromString(buffer); If self->value.c is out of ran

[issue35384] The repr of ctypes.CArgObject fails for non-ascii character

2018-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10099 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue35385] time module: why not using tzname from the glibc?

2018-12-03 Thread STINNER Victor
New submission from STINNER Victor : Currently, the time module uses tm_zone and tm_gmtoff of struct tm with localtime_r() to get the timezone (name and offset) on my Fedora 29. But it seems like glibc provides "tzname", "daylight" and "timezone" variables. Why not using them? Python also p

[issue35385] time module: why not using tzname from the glibc?

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue35385] time module: why not using tzname from the glibc?

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Ah, context of this question: I modified get_gmtoff() in bpo-35373 to fix compiler warnings :-) (see my first commit 503ce5c482cb267b0770bc46c315d5cf822bdca9) -- ___ Python tracker

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab6614969301b238fcc27f43923a0189a57a2a3c by Victor Stinner in branch 'master': bpo-35373: Fix PyInit_timezone() if HAVE_DECL_TZNAME is defined (GH-10861) https://github.com/python/cpython/commit/ab6614969301b238fcc27f43923a0189a57a2a3c ---

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10100 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Hum. By the way, PyInit_time() calls PyModule_AddObject() without checking for errors :-/ PyMODINIT_FUNC PyInit_time(void) { PyObject *m; m = PyModule_Create(&timemodule); if (m == NULL) return NULL; ... PyModule_AddObject(m, "stru

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10101 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix ;-) I guess that nobody tried this code with a string longer than 2 GiB before you :-) -- ___ Python tracker ___

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset c275be54411d425c90e7c679ddb5321ba458f61d by Victor Stinner in branch '2.7': bpo-35368: Make PyMem_Malloc() thread-safe in debug mode (GH-10828) https://github.com/python/cpython/commit/c275be54411d425c90e7c679ddb5321ba458f61d -- _

[issue35377] urlsplit scheme argument broken

2018-12-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: You haven't given a convincing reason that there is a problem that needs fixing, or if there is, that your patch is the right way to fix it. You have already pointed out that there is at least one scheme where :/// is part of a valid URL: "file:///". Where

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Decoding a 2 GiB string takes > 80 seconds on my computer and needs around 14 GiB of memory. -- ___ Python tracker ___ ___

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10102 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26868] Document PyModule_AddObject's behavior on error

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: issue26868_v2.diff LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26868] Document PyModule_AddObject's behavior on error

2018-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35386] ftp://www.pythontest.net/ returns error 500

2018-12-03 Thread STINNER Victor
New submission from STINNER Victor : The FTP server running at www.pythontest.net returns randomly errors with the code 500. Example: $ lftp www.pythontest.net lftp www.pythontest.net:~> ls -r--r--r--1 33 33123 Jun 06 04:15 README lftp www.pythontest.net:/> get README « R

[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +10103 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3bb150d8148e3cc08418077a58f43e064b9fde61 by Victor Stinner in branch 'master': bpo-35373: Fix PyInit_time() error handling (GH-10865) https://github.com/python/cpython/commit/3bb150d8148e3cc08418077a58f43e064b9fde61 -- ___

[issue26544] platform.libc_ver() returns incorrect version number

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10104 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35346] Modernize Lib/platform.py code

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Another issue with Python 2 compatibility (I addition to platform.dist() removal) of Lib/platform.py from master: it uses re.ASCII which doesn't exist in Python 2.7. -- ___ Python tracker

[issue35385] time module: why not using tzname from the glibc?

2018-12-03 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: See #28108 and https://sourceware.org/bugzilla/show_bug.cgi?id=23859 (for msg276123). -- nosy: +izbyshev ___ Python tracker ___ ___

[issue35387] Dialogs on IDLE are accompanied by a small black window

2018-12-03 Thread Kevin Walzer
New submission from Kevin Walzer : The "About IDLE" and "Preferences" dialogs on IDLE are accompanied by a small black window titled "idle" when IDLE is run agains the tip of Tk 8.6 on macOS 10.14. This is likely owing to the multiple changes in Tk to accommodate the Mac's API changes on Moja

[issue35351] LTOFLAGS are passed to BASECFLAGS when using LTO

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue35388] _PyRuntime_Initialize() called after Py_Finalize() does nothing

2018-12-03 Thread STINNER Victor
New submission from STINNER Victor : When Python is embedded, it should be possible to call the following Python function multiple times: void func(void) { Py_Initialize(); /* do something in Python */ Py_Finalize(); } Py_Finalize() ends by calling _PyRuntime_Finalize(). Problem: when

[issue31473] PyMem_Raw* API in debug mode are not thread safe

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: I looked at _Py_atomic_address to avoid atomic "serialno++", but we don't have atomic_fetch_add(). We could implement it using a loop and atomic_compare_exchange_strong()... but we don't have atomic_compare_exchange_strong() neither. I tried to add a mutex,

[issue31473] PyMem_Raw* API in debug mode are not thread safe

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35265: "Internal C API: pass the memory allocator in a context". The most complex part is the Python initialization which changes the memory allocator *and* allocate memory. We have to remain which allocator has been used to allocate data, to be

[issue31473] PyMem_Raw* API in debug mode are not thread safe

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: By the way, the previous attempt to add _PyRuntime.mem had to be reverted. See bpo-32096, bpo-30860 and the commit: commit 9e87e7776f7ace66baaf7247233afdabd00c2b44 Author: Victor Stinner Date: Fri Nov 24 12:09:24 2017 +0100 bpo-32096: Remove obj and m

[issue35386] ftp://www.pythontest.net/ returns error 500

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Ernest w. Durbin iii (EWDurbin) fixed the bug in less than one hour, cool! I contacted him on IRC (#python-infra). The disk was full (/dev/vda1 25G 25G 0 100% /) and cron was stopped. -- resolution: -> fixed stage: -> resolved status: open -> cl

[issue26544] platform.libc_ver() returns incorrect version number

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8687bd86e6f138ef0699a1e9f3f9555765949b51 by Victor Stinner in branch '2.7': bpo-26544: Make platform.libc_ver() less slow (GH-10868) https://github.com/python/cpython/commit/8687bd86e6f138ef0699a1e9f3f9555765949b51 --

[issue9338] argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

2018-12-03 Thread Lars Beckers
Change by Lars Beckers : -- nosy: +extmind ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-03 Thread STINNER Victor
New submission from STINNER Victor : Currently, platform.libc_ver() opens Python binary file (ex: /usr/bin/python3) and looks for a string like "GLIBC-2.28". Maybe gnu_get_libc_version() should be exposed in Python to get the version of the running glibc version? And use it if available, or f

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-03 Thread Jakub Wilk
Jakub Wilk added the comment: You can use confstr to get (running) glibc version: >>> os.confstr('CS_GNU_LIBC_VERSION') 'glibc 2.28' -- nosy: +jwilk ___ Python tracker ___ __

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: I suggest to revert this change, since it caused a regression: "multiprocessing.Pool.imap hangs in MacOs after applying this commit: (...)" -- nosy: +benjamin.peterson, ned.deily, vstinner priority: normal -> release blocker resolution: fixed -> stat

[issue10320] printf %qd is nonstandard

2018-12-03 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: """ def the_test(): print("Begin") for x in multiprocessing.Pool().imap(int, ["4", "3"]): print(x) print("End") """ Side-note: Is it correct to use a pool without calling terminate() nor close()? Should we start to emit a Resou

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: > >>> os.confstr('CS_GNU_LIBC_VERSION') > 'glibc 2.28' That's cool because it doesn't require to write new C code ;-) -- ___ Python tracker

[issue31473] PyMem_Raw* API in debug mode are not thread safe

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Note: PTHREAD_MUTEX_INITIALIZER can be used to statically initialize a mutex. -- ___ Python tracker ___ _

[issue31473] Debug hooks on memory allocators are not thread safe (serialno variable)

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- title: PyMem_Raw* API in debug mode are not thread safe -> Debug hooks on memory allocators are not thread safe (serialno variable) versions: +Python 2.7, Python 3.8 ___ Python tracker

[issue31473] Debug hooks on memory allocators are not thread safe (serialno variable)

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35368: [2.7] Make PyMem_Malloc() thread-safe in debug mode. -- ___ Python tracker ___ __

[issue35385] time module: why not using tzname from the glibc?

2018-12-03 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: According to bpo-31473, the debug hook on PyMem_Malloc() is not thread-safe: 'serialno' variable is not protected by any lock and it's not atomic. -- ___ Python tracker ___

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Víctor, I have a PR fixing this in: issue35378 Even if is not correct to not call close or join on the Pool, this behaviour was working before while now it hangs. The fix is really simple, si I think we should fix it and not revert the change on this

[issue35390] ctypes not possible to pass NULL c_void_p in structure by reference

2018-12-03 Thread Dan
New submission from Dan : I have a C struct typedef struct Effect { void* ptr; } Effect; where when I allocate the memory, the void* gets initialized to NULL, and pass back a pointer: Effect* get_effect(){ Effect* pEffect = malloc(sizeof(*pEffect)); pEffect->ptr = NULL; retu

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-03 Thread tzickel
tzickel added the comment: The previous posts here touch all this subjects: A. The documentation explicitly says: "When the pool object is garbage collected terminate() will be called immediately." (Happened till a code refactor 9 years ago introduced this bug). B. Large amount of code was d

[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2018-12-03 Thread Natal Ngétal
Natal Ngétal added the comment: Please can you convert your patch to a pull request on github. -- nosy: +hobbestigrou ___ Python tracker ___

[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

2018-12-03 Thread Andrew Dunai
Andrew Dunai added the comment: I've just stumbled upon this issue while looking for a good first issue to contribute on. If the community agrees this is something that needs to be done, I'll gladly work on this. -- nosy: +and3rson ___ Python trac

[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

2018-12-03 Thread Chris Withers
Chris Withers added the comment: Go for it! :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

2018-12-03 Thread Chris Withers
Chris Withers added the comment: Not sure I follow the second option, I was thinking of just _mock_parent and _mock_name when I logged this. Happy to see a PR for either though! -- ___ Python tracker _

[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

2018-12-03 Thread Andrew Dunai
Andrew Dunai added the comment: I see 2 most applicable ways to do it: - Hide .parent and .name by mangling - Define them within the mock class definition scope, but not within the class itself. As long as those are accessed only from within the mock class, I think second method would be be

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-03 Thread dzhu
dzhu added the comment: Given the hairiness of the deadlock, I think I would rather let someone who has more experience with the codebase in general handle it, but I can come back to it if it doesn't get addressed. -- ___ Python tracker

[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2018-12-03 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- pull_requests: +10105 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2018-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I submitted Gaurav's patch as PR 10870. Please review. -- ___ Python tracker ___ ___ Python

[issue25567] shlex.quote doesn't work on bytestrings

2018-12-03 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +10106 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

2018-12-03 Thread Andrew Dunai
Andrew Dunai added the comment: I was considering wrapping a `unittest.mock._Call` class definition within a function that would contain name & parent as local variables (arguments). Thus they would be accessible within the `_Call` class, but wouldn't be accessible from the outside. However

[issue35391] threading.RLock exception handling while waiting

2018-12-03 Thread Omer Bartal
New submission from Omer Bartal : (tested on python 2.7) Created a threading.Condition(threading.RLock()) A piece of code acquires the lock using a with block and waits (for a notify) While wait() is running a KeyboardInterrupt is raised An exception is raised while exiting the lock's with bloc

[issue35392] Create asyncio/sockutils.py

2018-12-03 Thread Andrew Svetlov
New submission from Andrew Svetlov : As discussed with Yuri on https://github.com/python/cpython/pull/10867#discussion_r238395192 Candidate functions to move into the helper modules: * _set_nodelay() * _ipaddr_info() * _set_reuseport() -- components: asyncio messages: 330973 nosy: asv

[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10109 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3bc0ebab17bf5a2c29d2214743c82034f82e6573 by Andrew Svetlov in branch 'master': bpo-35380: Enable TCP_NODELAY for proactor event loop (#10867) https://github.com/python/cpython/commit/3bc0ebab17bf5a2c29d2214743c82034f82e6573 -- ___

[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

2018-12-03 Thread Andrew Dunai
Change by Andrew Dunai : -- keywords: +patch pull_requests: +10110 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +10111 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2018-12-03 Thread s-ball
Change by s-ball : -- pull_requests: +10113 stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue35335] msgfmt should be able to merge more than one po file

2018-12-03 Thread s-ball
Change by s-ball : -- keywords: +patch pull_requests: +10112 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue35393] Typo in documentation

2018-12-03 Thread Filip Bengtsson
New submission from Filip Bengtsson : There are 256 characters in the range 0–255. -- assignee: docs@python components: Documentation messages: 330975 nosy: autom, docs@python priority: normal pull_requests: 10114 severity: normal status: open title: Typo in documentation __

[issue35377] urlsplit scheme argument broken

2018-12-03 Thread devkral
devkral added the comment: ah, I get the idea behind urlunsplit. But still: for e.g. http, http:/// is invalid. These urls are invalid for e.g. requests. May I ask: urllib.parse is for web protocol urls? If yes, then there should be an option which defaults to my version. --

[issue35335] msgfmt should be able to merge more than one po file

2018-12-03 Thread SilentGhost
Change by SilentGhost : -- nosy: +eric.araujo, ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue35335] msgfmt should be able to merge more than one po file

2018-12-03 Thread Éric Araujo
Éric Araujo added the comment: I am curious about the use cases for this feature! -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue35393] Typo in documentation

2018-12-03 Thread Eric V. Smith
Eric V. Smith added the comment: Can you be more specific? There's not enough information here to take any action. -- nosy: +eric.smith ___ Python tracker ___ ___

[issue35335] msgfmt should be able to merge more than one po file

2018-12-03 Thread s-ball
s-ball added the comment: Currently my main use case is to be able to compile one or more po file(s) from a Python script, so I just need to be able to repeatedly call make from that script - which was broken per issue 9741 To be honest, I must acknowledge that I initially thought that compi

  1   2   >