[issue31997] SSL lib does not handle trailing dot (period) in hostname or certificate

2017-11-09 Thread Christian Heimes
Christian Heimes added the comment: Trailing dots in hostname seem to be protocol specific, e.g. SMTP does not allow them. Unless you find a RFC that mandates support for trailing dots in TLS, I'm against a change in Python's TLS stack. It's too risky to mess up SNI, too.

[issue31997] SSL lib does not handle trailing dot (period) in hostname or certificate

2017-11-09 Thread Christian Heimes
Christian Heimes added the comment: In the future Python will no longer use its own hostname verification code. Instead we are going to rely on OpenSSL to verify the hostname for us. A trailing dot also affects SNI. How do OpenSSL's functions SSL_set_tlsext_host_name() and

[issue31380] test_undecodable_filename() in Lib/test/test_httpservers.py broken on APFS

2017-11-09 Thread Matt Billenstein
Matt Billenstein added the comment: Reflected on the High Sierra buildbot now: http://buildbot.python.org/all/#/builders/14/builds/162 -- nosy: +mattbillenstein ___ Python tracker

[issue28117] warning: dereferencing type-punned pointer will break strict-aliasing rules

2017-11-09 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Serhiy, would you open a PR? Your patch looks good to me. I've been looking at the warning on my machine (ubuntu 16.04 x86), it's a bit annoying to me. -- nosy: +masamoto ___ Python

[issue31997] SSL lib does not handle trailing dot (period) in hostname or certificate

2017-11-09 Thread Sam Napolitano
New submission from Sam Napolitano : I recently came across an issue in the ssl library and have a simple fix to address it. When doing hostname verification against an X.509 certificate, a trailing dot (period) in the hostname is matched against the certificate. But

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-09 Thread Nick Coghlan
Nick Coghlan added the comment: Antoine, it's not a wishy-washy compromise, it's a compromise based on the fact that code that has been factored out to a support module is far more likely to have a test suite than code that's directly in __main__. Thus the logic for the

[issue10049] Add a "no-op" (null) context manager to contextlib

2017-11-09 Thread Nick Coghlan
Nick Coghlan added the comment: Reverting to "Needs patch", as the currently attached patch is for the "No behaviour" variant that always returns None from __enter__(). (hniksic, would you still be willing to sign the Python CLA? If so, then your patch could be used as

[issue10049] Add a "no-op" (null) context manager to contextlib

2017-11-09 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening this based on several years of additional experience with context managers since I wrote https://bugs.python.org/issue10049#msg119514 when originally closing it. The version I'm now interested in adding is the one from

[issue31222] datetime.py implementation of .replace inconsistent with C implementation

2017-11-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset b9a40aca2935d2569191844c88f8b61269e383cb by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-31222: Make (datetime|date|time).replace return subclass type in Pure Python (GH-4176) (#4356)

[issue31985] Deprecate openfp() in aifc, sunau and wave

2017-11-09 Thread Brian Curtin
Brian Curtin added the comment: I think https://github.com/python/cpython/pull/4344 covers what you're looking for. -- ___ Python tracker

[issue31996] `setuptools.setup` parameter `py_modules` is undocumented

2017-11-09 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your report, but the correct place to report issues with packaging.p.o is https://github.com/pypa/python-packaging-user-guide -- nosy: +berker.peksag resolution: -> third party stage: -> resolved status: open ->

[issue31996] `setuptools.setup` parameter `py_modules` is undocumented

2017-11-09 Thread Luther Thompson
New submission from Luther Thompson : I wrote my own distribution package with only one module, but the module file was not being installed along with the dist info file. I found by looking up the code for the `six` module that `setup` has a `py_modules` parameter which

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-09 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I only recently realized that trace.Trace accepts two similar arguments, namely ignoremods and ignoredirs. Should we try to make the API and implementation of the functionality proposed here conform to that of trace.Trace's ignoremods?

[issue31985] Deprecate openfp() in aifc, sunau and wave

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: audiotests.py. Create class AudioMiscTests and inherit classes AifcMiscTest, SunauMiscTest, WaveMiscTest from it instead of AudioTests. There is more work because there was no base for misc tests, but this will make adding other

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: So we're saving memory and CPU time. Cool! -- ___ Python tracker ___

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Olivier Grisel
Olivier Grisel added the comment: More benchmarks with the unix time command: ``` (py37) ogrisel@ici:~/code/cpython$ git checkout master Switched to branch 'master' Your branch is up-to-date with 'origin/master'. (py37) ogrisel@ici:~/code/cpython$ time python

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Olivier Grisel
Olivier Grisel added the comment: Note that the time difference is not significant. I rerun the last command I got: ``` (py37) ogrisel@ici:~/code/cpython$ python ~/tmp/large_pickle_dump.py --use-pypickle Allocating source data... => peak memory usage: 2.014 GB

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: But the total runtime is higher? (6 s. vs. 5 s.) Can you post the CPU time? (as measured by `time`, for example) -- ___ Python tracker

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Olivier Grisel
Olivier Grisel added the comment: I wrote a script to monitor the memory when dumping 2GB of data with python master (C pickler and Python pickler): ``` (py37) ogrisel@ici:~/code/cpython$ python ~/tmp/large_pickle_dump.py Allocating source data... => peak memory

[issue31985] Deprecate openfp() in aifc, sunau and wave

2017-11-09 Thread Brian Curtin
Brian Curtin added the comment: Serhiy, where should a common test that covers all three of these go? I'm not seeing an obvious place for it. -- ___ Python tracker

[issue31985] Deprecate openfp() in aifc, sunau and wave

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Deprecate aifc.openfp -> Deprecate openfp() in aifc, sunau and wave ___ Python tracker

[issue30952] [Windows] include Math extension in SQlite

2017-11-09 Thread Big Stone
Big Stone added the comment: Please apologize. I indeed went off-topic. I can understand few person find this request usefull, and over-react to defend it. Sorry again. -- status: pending -> open ___ Python tracker

Re: Ideas about how software should behave

2017-11-09 Thread Ben Finney
Paul Moore writes: > And on that note, shouldn't participants on this list follow the > Python code of conduct[1]? Specifically, I don't see a lot of > adherence to the mandate to be "tactful when approaching differing > views" in this debate :-( Yes, we should all adhere

[issue31778] ast.literal_eval supports non-literals in Python 3

2017-11-09 Thread Neil Schemenauer
Neil Schemenauer added the comment: Just a comment on what I guess is the intended use of literal_eval(), i.e. taking a potentially untrusted string and turning it into a Python object. Exposing the whole of the Python parser to potential attackers would make me very

[issue31222] datetime.py implementation of .replace inconsistent with C implementation

2017-11-09 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4312 ___ Python tracker ___

[issue31992] Make iteration over dict_items yield namedtuples

2017-11-09 Thread Eric V. Smith
Eric V. Smith added the comment: I cannot imagine this ever happening, for performance reasons. You should write your own wrapper around items, if you want this behavior. -- nosy: +eric.smith ___ Python tracker

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-11-09 Thread Neil Schemenauer
Neil Schemenauer added the comment: FYI, this would seem to be an incentive to get my "bitmaps for small GC objects" idea implemented. I.e. https://mail.python.org/pipermail/python-dev/2017-September/149307.html If implemented, the extra size of the PyGC_Head would

[issue31222] datetime.py implementation of .replace inconsistent with C implementation

2017-11-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 191e993365ac3206f46132dcf46236471ec54bfa by Victor Stinner (Paul Ganssle) in branch 'master': bpo-31222: Make (datetime|date|time).replace return subclass type in Pure Python (#4176)

[issue31927] Fix compiling the socket module on NetBSD 8 and other issues

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31927] Fix compiling the socket module on NetBSD 8 and other issues

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1bce4efdb4624561adce62e544dbe20ec2627ae2 by Serhiy Storchaka in branch '2.7': [2.7] bpo-31927: Fix reading arbitrary data when parse a AF_BLUETOOTH address (GH-4235) (GH-4352) (#4355)

[issue31927] Fix compiling the socket module on NetBSD 8 and other issues

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4310 ___ Python tracker ___ ___

[issue31927] Fix compiling the socket module on NetBSD 8 and other issues

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 596286f8f3c8e53ef010d6298464775dc900a515 by Serhiy Storchaka in branch '3.6': [3.6] bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. (GH-4235) (#4352)

[issue31995] Set operations documentation error

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +rhettinger, serhiy.storchaka versions: -Python 3.4, Python 3.5 ___ Python tracker

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/09/2017 10:51 AM, Rhodri James wrote: > On 09/11/17 17:41, Michael Torrie wrote: >> On 11/09/2017 09:33 AM, Chris Angelico wrote: >>> On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list >>> wrote: On 11/08/2017 11:29 AM, Chris Angelico wrote: > [...]

[issue31995] Set operations documentation error

2017-11-09 Thread Alexander Mentis
New submission from Alexander Mentis : Documentation for set/frozenset says |=, &=, -=, ^= operators do not apply to immutable instances of frozenset. This is incorrect. These operators can be used on frozenset; however, they behave differently on frozenset than on set.

[issue31994] json encoder exception could be better

2017-11-09 Thread Jason Hihn
New submission from Jason Hihn : Given this traceback: File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 184, in default raise TypeError(repr(o) + " is not JSON serializable") TypeError: 7.0374198 is not

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would be nice to see benchmarks. And what about C version? -- ___ Python tracker ___

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Antoine Pitrou
Change by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for the C pickler, currently it dumps the whole pickle into an internal buffer before calling write() at the end. You may want to make writing more incremental. See Modules/_pickler.c (especially _Pickler_Write()). -- stage:

Re: Ideas about how software should behave

2017-11-09 Thread ROGER GRAYDON CHRISTMAN
On Thu, Nov 9, 2017, Gregory Ewing wrote:> But ideas are not software -- they don't actively >*do* anything, so trying to anthropomorphise them >doesn't really work. Generally true. I just remember the notable exception: Colorless green ideas sleep furiously. That case of anthropomorphism

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue14124] _pickle.c comment/documentation improvement

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4309 stage: needs patch -> patch review ___ Python tracker

[issue19907] gettext - Non ascii chars in header

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Of course, +1 for fixing this. -- ___ Python tracker ___

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: You don't need to add a test for a performance enhancement. -- stage: -> needs patch type: resource usage -> performance versions: -Python 3.4, Python 3.5, Python 3.6, Python 3.8 ___ Python tracker

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-09 Thread Olivier Grisel
New submission from Olivier Grisel : I noticed that both pickle.Pickler (C version) and pickle._Pickler (Python version) make unnecessary memory copies when dumping large str, bytes and bytearray objects. This is caused by unnecessary concatenation of the opcode and

[issue21322] Pathlib .owner() and .group() methods fail on broken links

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker

[issue29416] Path.mkdir can get into a recursive error loop

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: pending -> closed ___ Python tracker

[issue14975] import unicodedata, DLL load failed on Python 2.7.3

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker

[issue28827] f-strings: format spec should not accept unicode escapes

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: pending -> closed ___ Python tracker

[issue30213] ZipFile from 'a'ppend-mode file generates invalid zip

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: pending -> closed ___ Python tracker

[issue30035] [RFC] PyMemberDef.name should be const char *

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/09/2017 09:33 AM, Chris Angelico wrote: > On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list > wrote: >> On 11/08/2017 11:29 AM, Chris Angelico wrote: >>> [...] >>> Please, Jon, accept that we were not deliberately trying >>> to put you down. Steve, if you can

[issue25849] files, opened in unicode (text): write() returns symbols count, but seek() expect offset in bytes

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: pending -> closed ___ Python tracker ___

[issue27142] Default int value with xmlrpclib / xmlrpc.client

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker

Re: Ideas about how software should behave

2017-11-09 Thread Rhodri James
On 09/11/17 17:41, Michael Torrie wrote: On 11/09/2017 09:33 AM, Chris Angelico wrote: On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list wrote: On 11/08/2017 11:29 AM, Chris Angelico wrote: [...] Please, Jon, accept that we were not deliberately trying to put you

[issue30952] [Windows] include Math extension in SQlite

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue30952] [Windows] include Math extension in SQlite

2017-11-09 Thread STINNER Victor
STINNER Victor added the comment: "If you want SQlite because of its performance, recent version starts to do multi-threading, and/or fear to leave other langages a stupid sizeable performance advantage, then you may perhaps don't leave the situation as it is." I'm

[issue31778] ast.literal_eval supports non-literals in Python 3

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___

Re: Ideas about how software should behave

2017-11-09 Thread Michael Torrie
On 11/09/2017 09:33 AM, Chris Angelico wrote: > On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list > wrote: >> On 11/08/2017 11:29 AM, Chris Angelico wrote: >>> [...] >>> Please, Jon, accept that we were not deliberately trying >>> to put you down. Steve, if you can

Re: Ideas about how software should behave

2017-11-09 Thread bartc
On 09/11/2017 17:04, Chris Angelico wrote: On Fri, Nov 10, 2017 at 4:00 AM, bartc wrote: On 09/11/2017 16:33, Chris Angelico wrote: On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list wrote: On 11/08/2017 11:29 AM, Chris Angelico wrote: [...]

[issue31927] Fix compiling the socket module on NetBSD 8 and other issues

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4308 ___ Python tracker ___ ___

Re: converting numbers into words

2017-11-09 Thread Grant Edwards
On 2017-11-09, r161...@rguktrkv.ac.in wrote: > How can I covert numbers into word like ex:-123 One hundred twenty three? That's one of the classic freshman intro-to-programming homework problems. I remember having to write a Pascal program to do that back in the 70's...

[issue31992] Make iteration over dict_items yield namedtuples

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, no! Tuples is one of the most charming features of Python. Use tuples, folk! -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker

[issue31893] Issues with kqueue

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed by PR 4349 (changeset 15e14538f90cabc87473a489316fdb81af76cfb2). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Ideas about how software should behave

2017-11-09 Thread Chris Angelico
On Fri, Nov 10, 2017 at 4:00 AM, bartc wrote: > On 09/11/2017 16:33, Chris Angelico wrote: >> >> On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list >> wrote: >>> >>> On 11/08/2017 11:29 AM, Chris Angelico wrote: [...] Please, Jon,

Re: Ideas about how software should behave

2017-11-09 Thread bartc
On 09/11/2017 16:33, Chris Angelico wrote: On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list wrote: On 11/08/2017 11:29 AM, Chris Angelico wrote: [...] Please, Jon, accept that we were not deliberately trying to put you down. Steve, if you can clearly state your

[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2017-11-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4307 ___ Python tracker ___ ___

[issue31977] threading.Condition can not work with threading.Semaphore

2017-11-09 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

Re: Ideas about how software should behave

2017-11-09 Thread Chris Angelico
On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list wrote: > On 11/08/2017 11:29 AM, Chris Angelico wrote: >> [...] >> Please, Jon, accept that we were not deliberately trying >> to put you down. Steve, if you can clearly state your position on this >> (possibly worded

[issue31992] Make iteration over dict_items yield namedtuples

2017-11-09 Thread Richard Neumann
New submission from Richard Neumann : Currently, iterating over dict_items will yield plain tuples, where the first item will be the key and the second item will be the respective value. This has some disadvantages when e.g. sorting dict items by value and key: def

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/08/2017 11:29 AM, Chris Angelico wrote: > [...] > Please, Jon, accept that we were not deliberately trying > to put you down. Steve, if you can clearly state your position on this > (possibly worded in the form of an apology?), it would go a long way > to clearing this up. > ChrisA Are you

[issue31927] Fix compiling the socket module on NetBSD 8 and other issues

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d3187158c09cf899e9849f335bdff10594209167 by Serhiy Storchaka in branch 'master': bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. (#4235)

[issue31893] Issues with kqueue

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4306 stage: resolved -> patch review ___ Python tracker ___

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Then let the statu quo wins! -- ___ Python tracker ___

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-09 Thread Guido van Rossum
Guido van Rossum added the comment: > Such a middle ground is just a wishy-washy decision-by-committee compromise. Fine, but since *I* won't tolerate these warnings on for everything, this is the best you can do. If you don't like it, the status quo wins. --

[issue31893] Issues with kqueue

2017-11-09 Thread STINNER Victor
STINNER Victor added the comment: I suggest to fix the tests, the code looks good to me. -- ___ Python tracker ___

[issue31893] Issues with kqueue

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because the default behavior is different in Python 2 and Python 3. In Python 3 this is a TypeError. In Python 2 all objects are comparable by default. -- ___ Python tracker

[issue31893] Issues with kqueue

2017-11-09 Thread STINNER Victor
STINNER Victor added the comment: kqueue_event_richcompare() returns NotImplemented if other is not an event: if (!kqueue_event_Check(o)) { Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } So I don't understand why tests started to

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine! -- ___ Python tracker ___

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-09 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28441] Change sys.executable to include executable suffix

2017-11-09 Thread Erik Bray
Change by Erik Bray : -- pull_requests: +4305 ___ Python tracker ___ ___

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 0a2ff23fe6efb1653d655ac19d0a4e1629fd8d95 by Antoine Pitrou in branch 'master': Silence error output in test_concurrent_futures (bpo-21423) (#4347) https://github.com/python/cpython/commit/0a2ff23fe6efb1653d655ac19d0a4e1629fd8d95

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2017-11-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core nosy: +ncoghlan stage: -> needs patch versions: +Python 3.7 ___ Python tracker

Re: converting numbers into words (Posting On Python-List Prohibited)

2017-11-09 Thread Christopher Reimer
On Nov 9, 2017, at 3:45 AM, John Ladasky wrote: > >> On Wednesday, November 8, 2017 at 11:40:18 PM UTC-8, Lawrence D’Oliveiro >> wrote: >>> On Thursday, November 9, 2017 at 7:51:35 PM UTC+13, r16...@rguktrkv.ac.in >>> wrote: >>> >>> How can I covert numbers into

[issue31989] setattr on a property gives a very unhelpful exception

2017-11-09 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of #27794. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> setattr a read-only property; the AttributeError should show the attribute that failed

[issue31991] Race condition in wait with timeout for multiprocessing.Event

2017-11-09 Thread Thomas Moreau
New submission from Thomas Moreau : If the methods `set` and `clear` of `multiprocessing.Event` are called one after another, while a `multiprocessing.Process` calls `wait`, the `Event` does not match the documented behavior

Re: converting numbers into words

2017-11-09 Thread bartc
On 09/11/2017 06:51, r161...@rguktrkv.ac.in wrote: How can I covert numbers into word like ex:-123 One hundred twenty three? google for something like "algorithm numbers to words". If this is homework, then it's not cheating as everyone else will be doing the same. > How can I covert

pyspread 1.1.1 released

2017-11-09 Thread Martin Manns
pyspread 1.1.1 Pyspread 1.1.1 has been released. About pyspread == Pyspread is a non-traditional spreadsheet that is based on and written in the programming language Python. The goal of pyspread is to be the most pythonic spreadsheet

[Release] Pyo 0.8.8 (Python dsp library)

2017-11-09 Thread Olivier Bélanger
Hello all, I'm glad to announce the release of pyo 0.8.8, available for python 2.7, 3.5 and 3.6. Pyo is a Python module written in C to help real-time digital signal processing script creation. It is available for Windows, macOS and linux. It is released under the LGPL 3 license. For more info,

attrs 17.3.0 released!

2017-11-09 Thread Hynek Schlawack
Hi everyone, I’m very excited to announce the 17.3.0 release of attrs , the package that will make you love writing classes again! A lot has happened under the hood but the main feature we’d like to point out is first-class support for types including PEP 526-style

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/08/2017 08:18 PM, Ben Finney wrote: > Ned Batchelder writes: > [...] >> Second, now you want us to agree that calling someone arrogant isn't >> an attack? > > It's one thing to say “this idea is arrogant”, which is what Steve did. > That's not in any way personal,

[issue31265] Remove doubly-linked list from C OrderedDict

2017-11-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-09 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +4304 stage: -> patch review ___ Python tracker ___

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy, I think I have found a way to deal with the logging output: https://github.com/python/cpython/pull/4347 -- stage: patch review -> ___ Python tracker

Re: Ideas about how software should behave

2017-11-09 Thread Marko Rauhamaa
Gregory Ewing : > There are plenty of good ways of criticising an idea that are clearly > about the idea itself, so there is no need to resort to adjectives > that could be misunderstood as veiled ad-hominem attacks. I disagree. Ad hominems are needed when you run out

Re: converting numbers into words (Posting On Python-List Prohibited)

2017-11-09 Thread John Ladasky
On Wednesday, November 8, 2017 at 11:40:18 PM UTC-8, Lawrence D’Oliveiro wrote: > On Thursday, November 9, 2017 at 7:51:35 PM UTC+13, r16...@rguktrkv.ac.in > wrote: > > > How can I covert numbers into word like ex:-123 One hundred twenty three? > > Here’s

[issue31893] Issues with kqueue

2017-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I didn't test on 2.7. The old code contradicted the common comparison behavior. It allowed comparing select.kevent with other objects only for equality as for identity. `kevent == other` always returned False even if `other

[issue31987] Ctypes Packing Bitfields Incorrectly - GCC both Linux and Cygwin

2017-11-09 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your report. I believe this is a duplicate of issue 29753. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Ctypes Packing Bitfields Incorrectly - Linux

  1   2   >