Re: Alternatives to XML?

2016-08-25 Thread Frank Millman
"Peter Otten" wrote in message news:npn25e$s5n$1...@blaine.gmane.org... Frank Millman wrote: As you have to keep the "<", why bother? If you mean why don't I convert the '<' to '', the answer is that I do - I just omitted to say so. However, explicit is better than implicit :-) Doesn't

[issue27842] Order CSV header fields

2016-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Consider using itertools.permutations() to generate the 120 cases cases. The news entry goes into Misc/NEWS (there is not .txt extension). -- ___ Python tracker

[issue19504] Change "customise" to "customize".

2016-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue19504] Change "customise" to "customize".

2016-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 579360b1c8fe by Raymond Hettinger in branch '3.5': Issue 19504: Change "customise" to "customize" American spelling. https://hg.python.org/cpython/rev/579360b1c8fe -- ___ Python tracker

[issue19504] Change "customise" to "customize".

2016-08-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue27840] functools.partial: don't copy keywoard arguments in partial_call()?

2016-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Antoine. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Davin, what are your thoughts? -- assignee: -> davin nosy: +rhettinger ___ Python tracker ___

[issue27858] Add identity function to functools

2016-08-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue27852] itertools -> flatten_all()

2016-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think there is no need add this function in itertools. > And due to this details it may be not worth to add it as a recipe. Sorry YoSTEALTH, I concur with Serhiy on both points and am going to pass on this proposal. That said, I encourage you to post

[issue27860] Improvements to ipaddress module

2016-08-25 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

[issue27865] WeakMethod does not support builtin methods

2016-08-25 Thread Antony Lee
New submission from Antony Lee: List subclasses can be weakref'd (as mentioned by the docs), but their methods cannot be wrapped by WeakMethod, even though this makes sense semantically: ``` In [25]: class L(list): pass In [26]: weakref.WeakMethod(L().append)

[issue17642] IDLE add font resizing hot keys and wheel

2016-08-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://stackoverflow.com/questions/39155656/i-need-bigger-font-in-python-idle/39156068#39156068 is about getting a larger font size than 22 for classroom projection. I think configdialog.py should be extended something as follows (about line 1000).

[issue19884] Importing readline produces erroneous output

2016-08-25 Thread Martin Panter
Martin Panter added the comment: Thanks, I can try to commit the version fix part of the patch when I get a chance. What is EL6.8, is that a Red Hat (Enterprise Linux) thing? -- versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue27213] Rework CALL_FUNCTION* opcodes

2016-08-25 Thread STINNER Victor
STINNER Victor added the comment: I'm working on a new calling convention: "fast call". I already pushed changes implementing first functions: _PyObject_FastCallDict(PyObject *func, PyObject **stack, Py_ssize_t nargs, PyObject *kwargs) kwargs is a Python dict, but it can be NULL.

Re: Python non blocking multi-client service

2016-08-25 Thread sohcahtoa82
On Tue, Aug 23, 2016 at 11:39 PM, wrote: > On Tuesday, August 23, 2016 at 6:42:53 AM UTC-7, Chris Angelico wrote: > > On Tuesday, August 23, 2016 at 4:09:07 PM UTC+3, dimao wrote: > > > except: > > >print ('Error') > > > > > > Don't do this. > > > >

Re: Asynchronous programming

2016-08-25 Thread Terry Reedy
On 8/11/2016 11:55 PM, Lawrence D’Oliveiro wrote: On Friday, August 12, 2016 at 2:25:05 AM UTC+12, Terry Reedy wrote: When I read something like "Python finally acquired an event loop in 3.4" I wonder where people have been. The tk event loop has been in Python perhaps for 2 decades... As

[issue27213] Rework CALL_FUNCTION* opcodes

2016-08-25 Thread STINNER Victor
STINNER Victor added the comment: > Pybench is now only ~200ms slower instead of 1200ms slower. But the whole > point of this patch is that CALL_FUNCTION_EX shouldn't be optimized for, so > I'd much prefer real benchmarking results FYI I released a first version of the "new" Python benchmark

[issue27852] itertools -> flatten_all()

2016-08-25 Thread YoSTEALTH
YoSTEALTH added the comment: Currently there is flatten() function in itertools Recipes section. This is what it does: -> a = ['one', 'plus', [b'two', b'three'], ['four', ('five', (1, {'e', 'ee'}, (2, (3, ))), ['six'])], generator()] <- ['o', 'n', 'e', 'p', 'l', 'u', 's', b'two', b'three',

[issue27864] test_socket: unknown thread blocks forever on "AMD64 FreeBSD 9.x 3.x"

2016-08-25 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/4736/steps/test/logs/stdio ... running: test_socket (778 sec) running: test_socket (808 sec) running: test_socket (838 sec) running: test_socket (868 sec) running: test_socket (898

[issue27845] Optimize update_keyword_args() function

2016-08-25 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #27358: "BUILD_MAP_UNPACK_WITH_CALL is slow. -- ___ Python tracker ___

[issue27358] BUILD_MAP_UNPACK_WITH_CALL is slow

2016-08-25 Thread STINNER Victor
STINNER Victor added the comment: See also issue #27845: "Optimize update_keyword_args() function". -- nosy: +haypo ___ Python tracker ___

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-08-25 Thread STINNER Victor
STINNER Victor added the comment: I changed the dependency to the issue #27830 "Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments" which itself depends on the issue #27213 "Rework CALL_FUNCTION* opcodes". -- dependencies: +Add

[issue27830] Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments

2016-08-25 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +Rework CALL_FUNCTION* opcodes ___ Python tracker ___

[issue27830] Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments

2016-08-25 Thread STINNER Victor
Changes by STINNER Victor : -- title: Add _PyObject_FastCallKeywords(): pass keyword arguments as (key, value) pairs -> Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments

[issue27830] Add _PyObject_FastCallKeywords(): pass keyword arguments as (key, value) pairs

2016-08-25 Thread STINNER Victor
STINNER Victor added the comment: > New changeset ffcfa4f005a3 by Victor Stinner in branch 'default': > Issue #27830: Revert, remove _PyFunction_FastCallKeywords() > https://hg.python.org/cpython/rev/ffcfa4f005a3 I'm sorry, I misunderstood Serhiy's comment. I understood that Serhiy proposed to

[issue27830] Add _PyObject_FastCallKeywords(): pass keyword arguments as (key, value) pairs

2016-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffcfa4f005a3 by Victor Stinner in branch 'default': Issue #27830: Revert, remove _PyFunction_FastCallKeywords() https://hg.python.org/cpython/rev/ffcfa4f005a3 -- ___ Python tracker

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2016-08-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith priority: normal -> high ___ Python tracker ___

[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: The processor capabilities vector is not the API you want. What you want is an API to ask the ssl library about characteristics of algorithm implementations it will be using. Those are not the same thing. If we want to expose processor capabilities as a

Re: Something wrong with the PIP, lots of friend have the same problem

2016-08-25 Thread Piet van Oostrum
Wentao Liang writes: > even though I try to upgrade PIP[cid:beb9e7c5-7d98-4506-ba67-9e67890edec1] > > > From: Wentao Liang > Sent: Sunday, 21 August 2016 4:35:31 PM > To: python-list@python.org > Subject: Something wrong with the PIP, lots

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-25 Thread Christian Heimes
Christian Heimes added the comment: OpenSSL 1.1.0 final was released a couple of hours ago. One test is failing because it uses 3DES. 1.1.0 has 3DES disabled by default. -- ___ Python tracker

[issue26638] Avoid warnings about missing CLI options when building documentation

2016-08-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you, that worked -- and should have been documented in the help output. All the sphinx dependencies were inequalities, and rebuilding worked. The devguide only says "You are expected to have installed a recent version of Sphinx on your system or in a

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue27855] 2to3: Wrong code output w/ has_key without trailing space

2016-08-25 Thread E Rippey
E Rippey added the comment: I have one line change to "Lib/lib2to3/fixes/fix_has_key.py" that will resolve this issue. Would a patch be accepted? It doesn't seem like the input is unusually contorted. -- status: closed -> open ___ Python tracker

[issue27859] argparse - subparsers does not retain namespace

2016-08-25 Thread Eric N. Vander Weele
Changes by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___

[issue27863] multiple issues in _elementtree module

2016-08-25 Thread Eric N. Vander Weele
Changes by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___

[issue25878] CPython on Windows builds with /W3, not /W4

2016-08-25 Thread Jim Jewett
Jim Jewett added the comment: Is there a way to document why certain warnings are being suppressed, in case someone wants to revisit the suppression later? -- nosy: +Jim.Jewett ___ Python tracker

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-25 Thread Christian Heimes
Christian Heimes added the comment: Jim, https://docs.python.org/3/library/ssl.html#ssl.SSLContext.set_ciphers >>> ctx = ssl.create_default_context() >>> ctx.set_ciphers('HIGH:+3DES:!MD5') Please note that OpenSSL 1.1 will remove 3DES from default builds. You will have to build your own

[issue27846] Base64 expansion factor is 4 to 3, not 6 to 4

2016-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with David. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27846] Base64 expansion factor is 4 to 3, not 6 to 4

2016-08-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___

[issue27852] itertools -> flatten_all()

2016-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In proposed implementation str and bytes are not flattened. What about bytearray? array.array? memoryview? For different tasks they can be considered atomic or as collections. There are such much task specific details and the implementation is such simple,

[issue27425] Tests fail because of git's newline preferences on Windows

2016-08-25 Thread Jim Jewett
Jim Jewett added the comment: I think if the test is ensuring one line-ending type, then there should be another test ensuring the other... but I think it would be best if there were a single test file that had both types of line-endings, just to ensure that the code doesn't cheat by reading

[issue27414] http.server.BaseHTTPRequestHandler inconsistence with Content-Length value

2016-08-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue27861] sqlite3 type confusion and multiple frees

2016-08-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue27858] Add identity function to functools

2016-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue1673203, issue11011. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-25 Thread Donald Stufft
Donald Stufft added the comment: It's not a recompile but it's not a configuration file either, it's a Python level API you can call when you're creating a connection to specify what ciphers you want to allow for that connection. -- ___ Python

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-25 Thread Jim Jewett
Jim Jewett added the comment: What does overriding to put it back require? Does it require a re-compile, or can it be done via a config file? Taking it out of the default set sounds reasonable, but requiring a recompile for people who want to retain backwards compatibility strikes me as too

[issue27860] Improvements to ipaddress module

2016-08-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ncoghlan, serhiy.storchaka ___ Python tracker ___

[issue27863] multiple issues in _elementtree module

2016-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report tehybel. -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> needs patch ___ Python tracker

[issue27863] multiple issues in _elementtree module

2016-08-25 Thread SilentGhost
Changes by SilentGhost : -- nosy: +eli.bendersky, scoder type: -> behavior ___ Python tracker ___

[issue27858] Add identity function to functools

2016-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I believe this has been previously discussed and declined. -- nosy: +rhettinger ___ Python tracker ___

[issue27863] multiple issues in _elementtree module

2016-08-25 Thread tehybel
New submission from tehybel: I'll describe 7 issues in the /Modules/_elementtree.c module here. They include multiple use-after-frees, type confusions and instances of out-of-bounds array indexing. Issue 1: use-after-free in element_get_text The problematic code looks like this:

[issue27859] argparse - subparsers does not retain namespace

2016-08-25 Thread SilentGhost
Changes by SilentGhost : -- stage: -> needs patch versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue27862] Make urllib.parse runnable as a script

2016-08-25 Thread SilentGhost
SilentGhost added the comment: Guido doesn't like the idea in general[0]. [0] https://bugs.python.org/issue26488#msg273329 -- nosy: +SilentGhost resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue27860] Improvements to ipaddress module

2016-08-25 Thread SilentGhost
Changes by SilentGhost : -- nosy: +pmoody stage: -> patch review ___ Python tracker ___

[issue27862] Make urllib.parse runnable as a script

2016-08-25 Thread EungJun Yi
New submission from EungJun Yi: It would be nice if urllib.prase runnable as a script so I can easily parse urls in command line or shell script. I have attached a patch. -- components: Library (Lib) files: 0001-Make-urllib.parse-runnable-as-a-script.patch keywords: patch messages:

Parlez-vous Python?

2016-08-25 Thread breamoreboy
Well the language certainly is getting mentioned all over the place https://yougov.co.uk/news/2016/08/23/parlez-vous-python/ Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

[issue27861] sqlite3 type confusion and multiple frees

2016-08-25 Thread tehybel
New submission from tehybel: The first issue is a type confusion which resides in the sqlite3 module, in the file connection.c. The function pysqlite_connection_cursor takes an optional argument, a factory callable: if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O", kwlist,

[issue27861] sqlite3 type confusion and multiple frees

2016-08-25 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> needs patch type: -> crash versions: +Python 3.6 ___ Python tracker

[issue25847] CPython not using Visual Studio code analysis!

2016-08-25 Thread Christian Heimes
Christian Heimes added the comment: Coverity Scan has two steps. In the first step the code is compiled with the coverity tool chain. It's a wrapper around the preprocessor and compiler. Next up the result is uploaded and analyzed by a service. So yes, the project needs to be build before it

[issue27425] Tests fail because of git's newline preferences on Windows

2016-08-25 Thread Emanuel Barry
Changes by Emanuel Barry : Added file: https://bugs.python.org/file44225/fix_newlines_2.patch ___ Python tracker ___

[issue27425] Tests fail because of git's newline preferences on Windows

2016-08-25 Thread Emanuel Barry
Emanuel Barry added the comment: Whoops, turns out I was using the wrong approach for binary files. Here come add_gitattributes_2.patch and fix_newlines_2.patch (thanks Zachary for pointing this out). -- Added file: https://bugs.python.org/file44224/add_gitattributes_2.patch

[issue26638] Avoid warnings about missing CLI options when building documentation

2016-08-25 Thread Zachary Ware
Zachary Ware added the comment: The syntax is ` install ""`, so in this case 'pip install "Sphinx==1.3.6"` (or `pip install "Sphinx<1.4"`) should do it for you. That ought to also take care of downgrading any other packages that need it (though I don't think there are any), or at least tell

Re: Alternatives to XML?

2016-08-25 Thread Peter Otten
Frank Millman wrote: >> As you have to keep the "<", why bother? > > If you mean why don't I convert the '<' to '', the answer is that I do > - I just omitted to say so. However, explicit is better than implicit :-) Doesn't that make the XML document invalid or changes it in an irreversible

[issue27860] Improvements to ipaddress module

2016-08-25 Thread Moritz Sichert
New submission from Moritz Sichert: This patch fixes the following minor issues with the ipaddress module: - Removed unused property _BaseV4._valid_mask_octets - Removed unused methods _BaseV4._is_valid_netmask() and _BaseV4._is_hostmask() - Replaced several calls to superclass constructors by

[issue27859] argparse - subparsers does not retain namespace

2016-08-25 Thread Nick Papior
New submission from Nick Papior: Using argparse does not retain the Namespace variable across sub-parsers. This prohibits customization of Actions due to "upper" level arguments not being stored in the namespace passed to the sub-parsers. Hence, one may not create different sub-parsers which

[issue25847] CPython not using Visual Studio code analysis!

2016-08-25 Thread Steve Dower
Steve Dower added the comment: Does it only check built code? I thought it would statically analyze everything? Is MS_WINDOWS code excluded, because that would explain why it "misses" issues. -- ___ Python tracker

Re: Alternatives to XML?

2016-08-25 Thread Frank Millman
"Peter Otten" wrote in message news:npmti0$qvu$1...@blaine.gmane.org... Frank Millman wrote: > At the risk of disappointing some of you, this is how I am going to > proceed. 'Tis too late for me to stop ;) > The problem that prompted this thread was the issue of storing '<' and > '>'

[issue27425] Tests fail because of git's newline preferences on Windows

2016-08-25 Thread Emanuel Barry
Emanuel Barry added the comment: Here are three patches for this: - add_gitattributes_1.patch adds `.gitattributes`, with all the newline preferences in `.hgeol` (with the exception of the "native" rule at the end, which in git is the default newline preference). - fix_newlines_1.patch fixes

[issue27425] Tests fail because of git's newline preferences on Windows

2016-08-25 Thread Emanuel Barry
Changes by Emanuel Barry : Added file: https://bugs.python.org/file44221/test_random_warning_1.patch ___ Python tracker ___

[issue27425] Tests fail because of git's newline preferences on Windows

2016-08-25 Thread Emanuel Barry
Changes by Emanuel Barry : Added file: https://bugs.python.org/file44220/fix_newlines_1.patch ___ Python tracker ___

[issue23746] sysconfg.is_python_build() is buggy

2016-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf51f1f3569a by Vinay Sajip in branch '3.5': Issue #23746: Clarified is_python_build() documentation. https://hg.python.org/cpython/rev/bf51f1f3569a New changeset a0a7c5b1af97 by Vinay Sajip in branch 'default': Closes #23746: merged update from

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2016-08-25 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___

Re: Alternatives to XML?

2016-08-25 Thread Peter Otten
Frank Millman wrote: > "Frank Millman" wrote in message news:nplvvl$ci2$1...@blaine.gmane.org... > >> Hi all > >> I have mentioned in the past that I use XML for storing certain >> structures 'off-line', and I got a number of comments urging me to use >> JSON or YAML instead. > >> Can anyone

[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux

2016-08-25 Thread Vinay Sajip
Vinay Sajip added the comment: The existing docs have a section "These constants are GNU extensions and not present if they are not defined by the C library." There could be a corresponding section for BSD extensions to which O_EXLOCK and O_SHLOCK are moved, or the word "GNU" can removed from

[issue23746] sysconfg.is_python_build() is buggy

2016-08-25 Thread Vinay Sajip
Vinay Sajip added the comment: It's not *only* used in test - it's also used in third party libraries. For example, it's used in distlib (which is vendored by pip) to determine whether it's being run from a source build. -- nosy: +vinay.sajip ___

[issue27858] Add identity function to functools

2016-08-25 Thread R. David Murray
R. David Murray added the comment: I agree with Steven, I don't think this is really worth it, but I wouldn't vote -1. I suspect it won't get added, though, since a function I do want ('first') got rejected :) -- nosy: +r.david.murray ___ Python

[issue27858] Add identity function to functools

2016-08-25 Thread Jáchym Barvínek
Jáchym Barvínek added the comment: Java offers an identity function: https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html 2016-08-25 14:10 GMT+02:00 Steven D'Aprano : > > Steven D'Aprano added the comment: > > Just in case anyone else thinks this

[issue27855] 2to3: Wrong code output w/ has_key without trailing space

2016-08-25 Thread R. David Murray
Changes by R. David Murray : -- title: 2to3: Wrong code output w/ has_key -> 2to3: Wrong code output w/ has_key without trailing space ___ Python tracker

[issue27855] 2to3: Wrong code output w/ has_key

2016-08-25 Thread R. David Murray
R. David Murray added the comment: I don't think it is necessary or reasonable to expect 2to3 to handle this. It is a tool for the developer to use, so just clean up the input. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed

[issue27858] Add identity function to functools

2016-08-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: Just in case anyone else thinks this is a good idea, here's a patch. -- keywords: +patch Added file: https://bugs.python.org/file44218/identity.patch ___ Python tracker

[issue27858] Add identity function to functools

2016-08-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: I had a work mate make this exact same point literally yesterday. He asked me if Python had an identity function, and when I suggested just using `lambda x: x` he grouched that this wasn't sufficiently obvious enough as "identity" is self-explanatory.

Re: Alternatives to XML?

2016-08-25 Thread Chris Angelico
On Thu, Aug 25, 2016 at 9:23 PM, Frank Millman wrote: > > At the risk of disappointing some of you, this is how I am going to proceed. > > 4. As I have said already, for good or ill, I am comfortable with my current > use of XML, so I do not have a pressing need to change to

[issue27858] Add identity function to functools

2016-08-25 Thread Jáchym Barvínek
New submission from Jáchym Barvínek: An identity function is sometimes useful in functional-style programming as a dummy or default value. For example, we can sometimes see a pattern like this (e.g. in itertools.groupby): def f(params, key=None): if key is None: key = lambda x: x ...

[issue27846] Base64 expansion factor is 4 to 3, not 6 to 4

2016-08-25 Thread Jens Jørgen Mortensen
Changes by Jens Jørgen Mortensen : -- versions: +Python 3.5 ___ Python tracker ___

[issue27846] Base64 expansion factor is 4 to 3, not 6 to 4

2016-08-25 Thread Jens Jørgen Mortensen
Jens Jørgen Mortensen added the comment: That would also be a solution. Also, the sentence is not quite grammatically correct: "when space [is] expensive". -- versions: -Python 3.5 ___ Python tracker

Re: Holding until next value change

2016-08-25 Thread Arshpreet Singh
On Saturday, 20 August 2016 19:48:38 UTC+5:30, andrze...@gmail.com wrote: > prev = None > for value in main_call(): > if value==prev: > pass > else: > prev = value > if prev>0: > print('+v') > elif prev<0: > print('-v') >

Re: Alternatives to XML?

2016-08-25 Thread Frank Millman
"Frank Millman" wrote in message news:nplvvl$ci2$1...@blaine.gmane.org... Hi all I have mentioned in the past that I use XML for storing certain structures 'off-line', and I got a number of comments urging me to use JSON or YAML instead. Can anyone offer an alternative which is closer

[issue27838] test_os.test_chown() random failure on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2016-08-25 Thread STINNER Victor
STINNER Victor added the comment: Hum, the test has a fail ratio somewhere near 1/5. It fails for 6 months, maybe longer. -- ___ Python tracker ___

Re: Alternatives to XML?

2016-08-25 Thread Chris Angelico
On Thu, Aug 25, 2016 at 5:13 PM, Frank Millman wrote: > "Chris Angelico" wrote in message > news:CAPTjJmof_sXqax0Ury5LsBEj7cdFv92WiWKbfvAC+bM=hwt...@mail.gmail.com... > >> Sounds to me like you have two very different concerns, then. My >> understanding of "GUI" is that it's

Re: Alternatives to XML?

2016-08-25 Thread Peter Otten
Frank Millman wrote: > "Chris Angelico" wrote in message > news:CAPTjJmof_sXqax0Ury5LsBEj7cdFv92WiWKbfvAC+bM=hwt...@mail.gmail.com... > >> Sounds to me like you have two very different concerns, then. My >> understanding of "GUI" is that it's a desktop app running on the user's >> computer, as

[issue27838] test_os.test_chown() random failure on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2016-08-25 Thread koobs
koobs added the comment: This appears to have spontaneously resolved itself after build #957 after many failures. For reference, other builders on the same host were failing as well: AMD64 FreeBSD CURRENT Debug 3.5 (#567, #568) AMD64 FreeBSD CURRENT Non-Debug 3.5 (#8, #9) And possibly others

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-25 Thread Xiang Zhang
Xiang Zhang added the comment: Guni, the behaviour is not consistent since your code is not that 'right'. You can not expect a not 'right' snippet to behave correctly. You can do what the programming guide says: [1] consuming all items before join [2] call q.cancel_join_thread [3] ignore

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-25 Thread Guni
Guni added the comment: Hi Eric, The reason why I still think is a actually bug is because the behaviour is not consistent. When we write code we don't exactly know how much data we will put in the queue. If this ticket is consider as not an actual bug it means that everybody has to make a

Re: Knowing which thread had the GIL before

2016-08-25 Thread dieter
Julien Kauffmann writes: > ... > Is there a way to know which thread had the GIL right before my > profiling thread acquired it ? Perhaps through a C extension ? I've > seen such profilers for Linux that take advantage of an ITIMER signal > to do that. Sadly this is

[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: If we wanted to expose such information, we would need to do it in a dedicated module (or in `os`) and provide something that doesn't restrict itself to two particular x86 flags. requests can rely on a private attribute if they really want to. --

[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-25 Thread Christian Heimes
Christian Heimes added the comment: Why? Other libraries like requests like to use the information, too. -- ___ Python tracker ___

[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: The constants would have to be private, too. We really don't want to encourage other users to rely on them. -- ___ Python tracker

[issue26488] hashlib command line interface

2016-08-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue25847] CPython not using Visual Studio code analysis!

2016-08-25 Thread Christian Heimes
Christian Heimes added the comment: +1, if somebody is able to find time. Coverity Scan checks only X86_64 Linux builds. -- ___ Python tracker ___

[issue27852] itertools -> flatten_all()

2016-08-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger components: +Documentation nosy: +rhettinger priority: normal -> low ___ Python tracker

  1   2   >