Re: What's an elegant way to test for list index existing?

2018-09-28 Thread Ben Finney
Chris Green writes: > I have a list created by:- > > fld = shlex.split(ln) > > It may contain 3, 4 or 5 entries according to data read into ln. Because of what an index means for the 'list' type, that's equivalent to saying "the result of `len(fld)` may be 3, 4, or 5". > What's the neatest

[issue29001] logging.handlers.RotatingFileHandler rotation broken under gunicorn

2018-09-28 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29001] logging.handlers.RotatingFileHandler rotation broken under gunicorn

2018-09-28 Thread Vinay Sajip
Vinay Sajip added the comment: It's not Gunicorn-specific - more a case of multiple processes writing to a single log file. This is not supported directly, as documented here: https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes As the

Re: Which class method is being called when we declare below expression?

2018-09-28 Thread Ben Finney
Ben Finney writes: > Ajay Patel writes: > > > L = [1,2,3] > > That's not an expression; it is an assignment statement. > > The right-hand side is an expression. […] in this case, [the object] a new > instance of 'list' […] is the result of evaluating the right-hand side > of the expression. I

Re: What's an elegant way to test for list index existing?

2018-09-28 Thread jladasky
On Friday, September 28, 2018 at 11:03:17 AM UTC-7, Chris Green wrote: > I have a list created by:- > > fld = shlex.split(ln) > > It may contain 3, 4 or 5 entries according to data read into ln. > What's the neatest way of setting the fourth and fifth entries to an > empty string if they

What's an elegant way to test for list index existing?

2018-09-28 Thread Chris Green
I have a list created by:- fld = shlex.split(ln) It may contain 3, 4 or 5 entries according to data read into ln. What's the neatest way of setting the fourth and fifth entries to an empty string if they don't (yet) exist? Using 'if len(fld) < 4:' feels clumsy somehow. -- Chris Green · --

Re: JPEGImage() hangs

2018-09-28 Thread Cameron Simpson
On 28Sep2018 20:12, Chris Green wrote: Peter Pearson wrote: On Fri, 28 Sep 2018 15:01:41 +0100, Chris Green wrote: > Chris Green wrote: >> Brian Oney wrote: >> > Could you please try another tool like `convert'? E.g. >> > >> > $ convert 102_PANA/P1020466.JPG test.png >> > >> > What does

[issue34831] Asyncio Tutorial

2018-09-28 Thread Yury Selivanov
Yury Selivanov added the comment: I like this, great job! Couple of thoughts on how we should organize this: * I think we should stick to your structure and push things to docs.python.org as soon as every next section is somewhat ready. * Every big section should probably have its own

Re: Anaconda with Python 3.7

2018-09-28 Thread Russell Owen
On Sep 3, 2018, gvim wrote (in article <5b8d0122.1030...@gmail.com>): > Anyone have any idea when Anaconda might ship a version compatible with > Python 3.7. I sent them 2 emails but no reply. I heard a rumor today that it will be a few more months. They are short on resources and are also

[issue34609] Importing certain modules while debugging raises an exception

2018-09-28 Thread Brett Cannon
Brett Cannon added the comment: The failure line that Cheryl found in her traceback is at https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap.py#L101 . Maybe Antoine has an idea since he did a bunch of work on import locking? -- nosy: +pitrou

[issue34839] doctest: Change example under warnings section

2018-09-28 Thread Cheryl Sabella
New submission from Cheryl Sabella : The Warnings section of the doctest documentation (https://docs.python.org/3.8/library/doctest.html#warnings) contains an example that the printing order of a dictionary is not guaranteed. Since it is now guaranteed to be insertion order, perhaps the

[issue34832] "Short circuiting" in base64's b64decode, decode, decodebytes

2018-09-28 Thread Felipe Rodrigues
Felipe Rodrigues added the comment: Actually, I'm not even sure if it makes sense to decode the 'first valid substring'... IMHO, we should warn the user -- ___ Python tracker

[issue34832] "Short circuiting" in base64's b64decode, decode, decodebytes

2018-09-28 Thread Felipe Rodrigues
Felipe Rodrigues added the comment: I am not sure if simply ignoring the non-valid character is the best way to go. Feels like silencing errors. b64decode does accept the 'validate' flag - defaulted to False - that will halt the execution and throw an error. What might be a good idea is to

[issue34838] Improve arg clinic code generation for cases with type checking

2018-09-28 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2018-09-28 Thread Laurent Gautier
Laurent Gautier added the comment: @mattip : do you mean that it can currently be achieved by calling `cast` with a specific shape parameter ? If the case, how so ? -- ___ Python tracker

[issue29001] logging.handlers.RotatingFileHandler rotation broken under gunicorn

2018-09-28 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +vinay.sajip versions: +Python 3.8 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list

[issue29001] logging.handlers.RotatingFileHandler rotation broken under gunicorn

2018-09-28 Thread Umesh Pathak
Change by Umesh Pathak : -- keywords: +patch pull_requests: +9027 stage: -> patch review ___ Python tracker ___ ___

[issue34779] IDLE internals show up in tracebacks when returning objects that cannot be `repr`ed

2018-09-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.

2018-09-28 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +9026 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34838] Improve arg clinic code generation for cases with type checking

2018-09-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34838] Improve arg clinic code generation for cases with type checking

2018-09-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34838] Improve arg clinic code generation for cases with type checking

2018-09-28 Thread Raymond Hettinger
New submission from Raymond Hettinger : An arg clinic specification such as p: object(subclass_of='_Type') generates slow code using _PyArg_ParseStack() that has to parse a format string like "O!" to decide to make a type check. Instead, it should directly generate a branch-predictable

[issue34837] Multiprocessing.pool API Extension - Pass Data to Workers w/o Globals

2018-09-28 Thread Sean Harrington
Change by Sean Harrington : -- title: Multiprocessing.pool API Extension - Non-Global Initialization of Workers -> Multiprocessing.pool API Extension - Pass Data to Workers w/o Globals ___ Python tracker

[issue34370] Tkinter scroll issues on macOS

2018-09-28 Thread Ned Deily
Ned Deily added the comment: Thanks for testing, Vlad. And thanks for the followup, Kevin. I guess we'll wait to hear more from Kevin. -- ___ Python tracker ___

[issue34828] sqlite.iterdump does not work for (most) databases with autoincrement

2018-09-28 Thread Joel Klimont
Joel Klimont added the comment: I made the pull request: https://github.com/python/cpython/pull/9621 -- ___ Python tracker ___ ___

[issue25812] locale.nl_langinfo() can't decode value

2018-09-28 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- assignee: -> nnja ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34837] Multiprocessing.pool API Extension - Non-Global Initialization of Workers

2018-09-28 Thread Sean Harrington
Change by Sean Harrington : -- keywords: +patch pull_requests: +9025 stage: -> patch review ___ Python tracker ___ ___

[issue34837] Multiprocessing.pool API Extension - Non-Global Initialization of Workers

2018-09-28 Thread Sean Harrington
Change by Sean Harrington : -- components: Library (Lib) nosy: seanharr11 priority: normal severity: normal status: open title: Multiprocessing.pool API Extension - Non-Global Initialization of Workers type: enhancement versions: Python 3.6, Python 3.7, Python 3.8

[issue34771] test_ctypes failing on Linux SPARC64

2018-09-28 Thread Frank Schaefer
Frank Schaefer added the comment: FYI the libffi bug report is open here: https://github.com/libffi/libffi/issues/451 As noted in the bug report, this issue actually doesn't appear to impact ARM64 (or ARM32 GNUEABI/GNUEABIHF). -- ___ Python

[issue34797] Convert heapq to the argument clinic

2018-09-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34797] Convert heapq to the argument clinic

2018-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e2f48bf0e851dc79d888c70fd24c631a8a9e1030 by Raymond Hettinger (Pablo Galindo) in branch 'master': bpo-34797: Convert heapq to the argument clinic (GH-9560) https://github.com/python/cpython/commit/e2f48bf0e851dc79d888c70fd24c631a8a9e1030

Re: JPEGImage() hangs

2018-09-28 Thread Chris Green
Peter Pearson wrote: > On Fri, 28 Sep 2018 15:01:41 +0100, Chris Green wrote: > > Chris Green wrote: > >> Brian Oney wrote: > >> > Could you please try another tool like `convert'? E.g. > >> > > >> > $ convert 102_PANA/P1020466.JPG test.png > >> > > >> > > >> > What does that say? > >> >

[issue34370] Tkinter scroll issues on macOS

2018-09-28 Thread Vlad Tudorache
Vlad Tudorache added the comment: The scroll problem (clicking on the upper half of the slider is taken as "through1") still persists for me on Mojave with 3.7.1 RC1 downloaded from python.org and including Tcl/Tk. -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-09-28 Thread Tim Peters
Tim Peters added the comment: [Tim] > Perhaps worth noting that FNV-1a works great if used as > _intended_: on a stream of unsigned bytes. > ... > >Py_uhash_t t = (Py_uhash_t)y; >for (int i = 0; i < sizeof(t); ++i) { >x = (x ^ (t & 0xff)) * (Py_uhash_t)1099511628211ULL; >

[issue21109] tarfile: Traversal attack vulnerability

2018-09-28 Thread R. David Murray
Change by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34827] Make argparse.NameSpace iterable

2018-09-28 Thread paul j3
paul j3 added the comment: As documented in https://docs.python.org/3/library/argparse.html#the-namespace-object you can create your own 'namespace' class, that does everything you want and more. argparse makes very few assumptions about the object - using getattr, setattr, and hasattr

[issue21919] Changing cls.__bases__ must ensure proper metaclass inheritance

2018-09-28 Thread Guido van Rossum
Guido van Rossum added the comment: As long as you can't crash CPython with this, this is the responsibility of the code that assigns to __bases__. If they don't take care, the program's behavior is undefined. -- ___ Python tracker

[issue34797] Convert heapq to the argument clinic

2018-09-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25812] locale.nl_langinfo() can't decode value

2018-09-28 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21919] Changing cls.__bases__ must ensure proper metaclass inheritance

2018-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I am adding Raymond as part of triaging who might have a better explanation > about this. Guido, is this something we care about? There is value in checking for metaclass conflicts when a class is created (to catch plausible mistakes and to assure

[issue25812] locale.nl_langinfo() can't decode value

2018-09-28 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- versions: +Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

Re: JPEGImage() hangs

2018-09-28 Thread Peter Pearson
On Fri, 28 Sep 2018 15:01:41 +0100, Chris Green wrote: > Chris Green wrote: >> Brian Oney wrote: >> > Could you please try another tool like `convert'? E.g. >> > >> > $ convert 102_PANA/P1020466.JPG test.png >> > >> > >> > What does that say? >> >> Well, after having returned home with the

[issue15994] memoryview to freed memory can cause segfault

2018-09-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___ ___

[issue34836] test_ssl.test_default_ecdh_curve needs no tls1.3 flag in 2.7, for now

2018-09-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34834] test_ssl.test_options does not correctly account for built-in ctx defaults with openssl 1.1.1

2018-09-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34768] Add documentation explaining __init__.py in packages

2018-09-28 Thread Éric Araujo
Éric Araujo added the comment: I think the expectation is that people will know about modules and packages long before they upload things to PyPI. The import system and the packaging tools are two independent domains. For example the official tutorial has an intro:

Re: I am not able to run Python in Powershell

2018-09-28 Thread praveenjain04121997
On Friday, 1 September 2017 19:37:41 UTC+1, The Cat Gamer wrote: > fter I installed Python I try to open it in Powershell, by typing > python/python.exe. > It gives me an error: > python : The term 'python' is not recognized as the name of a cmdlet, > function, script file, or operable program.

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2018-09-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The DFA for the rule with_stmt: 'with' ( with_item (',' with_item)* | '(' with_item (',' with_item)* [','] ')' ) ':' suite is: DFA for with_stmt

[issue34835] Multiprocessing module update fails with pip3

2018-09-28 Thread Dr_Zaszus
Dr_Zaszus added the comment: No, you are right, thank you. But just to be clear, how do I update multiprocessing in python3 then? -- ___ Python tracker ___

[issue34835] Multiprocessing module update fails with pip3

2018-09-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: ``pip3 search multiprocessing`` says: multiprocessing (2.6.2.1)- Backport of the multiprocessing package to Python 2.4 and 2.5 so you are trying to install a Python 2.4/2.5 package into Python 3.7, which naturally cannot work. In Python 2.6+

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2018-09-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The Python grammar is already not LL(1) strictly. Take for example the production for "argument": argument: ( test [comp_for] | test '=' test | '**' test | '*' test ) obviously the first sets of test and test are the same and is ambiguous, but the

[issue34836] test_ssl.test_default_ecdh_curve needs no tls1.3 flag in 2.7, for now

2018-09-28 Thread Dimitri John Ledkov
Change by Dimitri John Ledkov : -- keywords: +patch pull_requests: +9024 stage: -> patch review ___ Python tracker ___ ___

[issue34836] test_ssl.test_default_ecdh_curve needs no tls1.3 flag in 2.7, for now

2018-09-28 Thread Dimitri John Ledkov
New submission from Dimitri John Ledkov : test_default_ecdh_curve fails, as ssl.OP_NO_TLSv1_3 is not set on the context. and the test case can only work with non-tls1.3 connections. this indicates that the pull request that sprinkled ssl.OP_NO_TLSv1_3 everywhere was not backported, taking

[issue34835] Multiprocessing module update fails with pip3

2018-09-28 Thread Dr_Zaszus
New submission from Dr_Zaszus : pip3 install --upgrade multiprocessing fails with a python2 error in 'setup.py': print 'Macros:' ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Macros:')? -- components: Installation

[issue34802] asyncio.iscoroutine() documentation is wrong

2018-09-28 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +9023 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34834] test_ssl.test_options does not correctly account for built-in ctx defaults with openssl 1.1.1

2018-09-28 Thread Dimitri John Ledkov
Change by Dimitri John Ledkov : -- keywords: +patch pull_requests: +9022 stage: -> patch review ___ Python tracker ___ ___

[issue34834] test_ssl.test_options does not correctly account for built-in ctx defaults with openssl 1.1.1

2018-09-28 Thread Dimitri John Ledkov
New submission from Dimitri John Ledkov : self.assertEqual(default, ctx.options) in test_options fails with openssl 1.1.1 as it does not correctly account for OP_ENABLE_MIDDLEBOX_COMPAT. It is not defined by the python2.7 ssl module either. either ssl.OP_ENABLE_MIDDLEBOX_COMPAT needs to be

[issue34687] asyncio: is it time to make ProactorEventLoop as the default event loop?

2018-09-28 Thread miss-islington
miss-islington added the comment: New changeset 37aae9dcf18753b8ffda99d1a5758a90af852464 by Miss Islington (bot) (Victor Stinner) in branch 'master': bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623)

[issue34751] Hash collisions for tuples

2018-09-28 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I spent about 2 days doing an extensive study of the FNV and DJB algorithms. I share my conclusions below. To be very clear what I mean, I am talking about the following algorithms (t is a tuple and m is the multiplier which is always assumed to be odd).

[issue34687] asyncio: is it time to make ProactorEventLoop as the default event loop?

2018-09-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9021 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2018-09-28 Thread Nick Coghlan
Nick Coghlan added the comment: Especially since the dynamic flexibility of ExitStack comes at a genuine runtime cost when unwinding the resource stack. I also (very!) belatedly noticed that I never answered Julian's request for clarification about the potential grammar ambiguity, so going

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-09-28 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/python/cpython/pull/9607 turns SOURCE_DATE_EPOCH into a > *default* rather than absolute override. Once we decided to merge or reject this PR, we should maybe update the PEP 552 to clarify the interaction with the SOURCE_DATE_EPOCH

EuroPython 2019: RFP for Venues

2018-09-28 Thread M.-A. Lemburg
Dear EuroPython'istas, We are happy to announce that we have started the RFP for venues to host the EuroPython 2019 conference. We have sent out the details to almost 40 venues. For more details about the RFP, please see our blog post:

Re: JPEGImage() hangs

2018-09-28 Thread Chris Green
Chris Green wrote: > Brian Oney wrote: > > Could you please try another tool like `convert'? E.g. > > > > $ convert 102_PANA/P1020466.JPG test.png > > > > > > What does that say? > > Well, after having returned home with the laptop where this was > failing and doing exactly the same thing

Re: JPEGImage() hangs

2018-09-28 Thread Chris Green
Brian Oney wrote: > Could you please try another tool like `convert'? E.g. > > $ convert 102_PANA/P1020466.JPG test.png > > > What does that say? Well, after having returned home with the laptop where this was failing and doing exactly the same thing again, it now works. However it did take

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2018-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: This was closed without enough explanation. Suggesting people should use ExitStack due to a Python grammar deficiency is suboptimal to say the least. This problem is coming back to users of Black due to Black's removal of backslashes. It's the only piece of

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2018-09-28 Thread Łukasz Langa
Change by Łukasz Langa : -- assignee: -> pablogsal nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34771] test_ctypes failing on Linux SPARC64

2018-09-28 Thread Martin Panter
Martin Panter added the comment: Seems to be a common theme on various 64-bit ABIs. There is already a fix for Python’s Windows copy of the FFI library (Issue 29565), and a “hack” for Arm and x86 Windows (again!): Issue 30353. -- nosy: +martin.panter

Re: What's needed for jpegtran in Python 3?

2018-09-28 Thread Chris Green
Chris Angelico wrote: > On Fri, Sep 28, 2018 at 3:51 AM Chris Green wrote: > > > > Chris Angelico wrote: > > > On Fri, Sep 28, 2018 at 2:51 AM Chris Green wrote: > > > > > > > > I'm converting an existing Python2 program to Python3, it uses > > > > jpegtran and I can't find what to install to

cx_Freeze window app path question

2018-09-28 Thread Grant Edwards
[I tried without success to post this question to the cx_Freeze mailing list (which seems to have suddenly died at the beginning of the year).] You freeze an app on Windows producing a 'build' directory. The contents of that build directory get installed in some arbitrary location. When you run

[issue34818] test.test_ssl.ThreadedTests.test_tls1_3 fails in 2.7 with AttributeError: __exit__

2018-09-28 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9020 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-09-28 Thread STINNER Victor
STINNER Victor added the comment: Pablo: I merged your PR on master, and backport it to 3.6 and 3.7. But I let you handle 2.7, since I expect a conflict :-) -- ___ Python tracker

[issue34833] [CI] Azure Pipeline: Initialize Agent failed

2018-09-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34833] [CI] Azure Pipeline: Initialize Agent failed

2018-09-28 Thread STINNER Victor
STINNER Victor added the comment: Ah, I found more info: ##[Error 1] The agent: Hosted Agent lost communication with the server. Verify the machine is running and has a healthy network connection. For more information, see: https://go.microsoft.com/fwlink/?linkid=846610 ##[Error 2] The

[issue34833] [CI] Azure Pipeline: Initialize Agent failed

2018-09-28 Thread STINNER Victor
New submission from STINNER Victor : Error: "Initialize Agent failed". Sorry... I don't see any additional information, only this error message... Failed build: https://python.visualstudio.com/cpython/_build/results?buildId=31597=logs Source: https://github.com/python/cpython/pull/9619 It's

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-09-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 007fda436f707ac95c2fa8f8886efd9e09d5b630 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH-9613) (GH-9619)

[issue34817] Ellipsis docs has extra dot in the markdown that makes it look like .... (four dots)

2018-09-28 Thread Martin Panter
Martin Panter added the comment: In these situations, I use quotes or brackets to mention a symbol without using it as punctuation. Using words might also help. What about: Ellipsis The same as the ellipsis literal “...”. Special value used [etc] -- nosy: +martin.panter

[issue34828] sqlite.iterdump does not work for (most) databases with autoincrement

2018-09-28 Thread Joel Klimont
Change by Joel Klimont : -- keywords: +patch pull_requests: +9019 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34832] "Short circuiting" in base64's b64decode, decode, decodebytes

2018-09-28 Thread Michael Harris
New submission from Michael Harris : When given an invalid base64 string that starts with a valid base64 substring, the functions will return the decoded bytes only up to the substring rather then ignoring the non-alphabet character. Examples: >>> base64.b64decode("")

[issue34810] Maximum and minimum value of C types integers from Python

2018-09-28 Thread Ammar Askar
Ammar Askar added the comment: What is the use case for getting the maximum and minimum of the fixed bit integers like `uint8`? It's a trivial formula to calculate those. Now, if you're talking about platform dependent types like `int` and `long` then it might makes more sense to add such

[issue34831] Asyncio Tutorial

2018-09-28 Thread Caleb Hattingh
New submission from Caleb Hattingh : Hi Yury, As discussed, below is a very rough outline of a proposed TOC for an asyncio tutorial. No content has been written yet (only what you see below). I think we should nail down the TOC first. Asyncio Tutorial Proposed Table of

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-09-28 Thread miss-islington
miss-islington added the comment: New changeset 5d33ee1595767d68800fda13bc68b7b01dba5117 by Miss Islington (bot) in branch '3.6': bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH-9613)

[issue25095] test_httpservers hangs since Python 3.5

2018-09-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-09-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9018 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-09-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9017 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34829] Add missing selection_ methods to tkinter Spinbox

2018-09-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25095] test_httpservers hangs since Python 3.5

2018-09-28 Thread Martin Panter
Martin Panter added the comment: Hi William, when I mentioned “Content-Length”, I meant adding it to the response from the server. See the second version of “do_GET” in my earlier comment . But that is no good without also adding the

[issue34777] urllib.request accepts anything as a header parameter for some URLs

2018-09-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sure, thanks for the confirmation. Closing it as not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: How to change '\\' to '\'

2018-09-28 Thread Jach Fong
Yes, you are right, it's just the way Python display the '\'. Thank you. Gregory Ewing at 2018/9/28 PM 02:02 wrote: Jach Fong wrote: I get a string item, for example path[0], from path = os.get_exec_path() It's something like "\\Borland\\Bcc55\\Include" It doesn't actually have double

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-09-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 077061a7b24917aaf31057885c69919c5a553c88 by Victor Stinner (Pablo Galindo) in branch 'master': bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH-9613)

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Instances of many builtin types are not weak referencable. >>> weakref.ref(0) Traceback (most recent call last): File "", line 1, in TypeError: cannot create weak reference to 'int' object >>> weakref.ref([]) Traceback (most recent call last): File "",

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Julien Palard
Change by Julien Palard : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Julien Palard
Julien Palard added the comment: TIL. So it really make sense in this context to tell a functools.partial is weak referencable? -- ___ Python tracker ___

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think yes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34369] kqueue.control() documentation and implementation mismatch

2018-09-28 Thread Tal Einat
Tal Einat added the comment: I agree Martin, I hadn't noticed that the docs don't otherwise mention the default behavior WRT timeout. I've added a description as per your suggestion to the PR. -- ___ Python tracker

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: ``` In [1]: import weakref In [2]: class A: ...: __slots__ = ()

[issue34777] urllib.request accepts anything as a header parameter for some URLs

2018-09-28 Thread Jose Gama
Jose Gama added the comment: Yes, I agree, it's not a bug.This note might help other people who run into the same questions, particularly with error handling.Thank you! On Friday, September 28, 2018, 7:21:03 AM GMT+2, Karthikeyan Singaravelan wrote: Karthikeyan Singaravelan added

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Julien Palard
New submission from Julien Palard : According to the doc: :class:`partial` objects are like :class:`function` objects in that they are callable, weak referencable, and can have attributes. I don't understand why "weak" here, and it's the only occurence of "weak referencable" in the

[issue34369] kqueue.control() documentation and implementation mismatch

2018-09-28 Thread Martin Panter
Martin Panter added the comment: I think removing all mention of “None” is a step too far. The “devpoll”, “epoll”, and “poll” documentation all say that “None” is acceptable for the timeout. Only the “select” function doesn’t say this. What about adding to the text: * “timeout” in seconds

  1   2   >