[issue30166] Import command-line parsing modules only when needed

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30215] Make re.compile() locale agnostic

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue30080] Add the --duplicate option for timeit

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

Re: Promiscuous ports under Linux

2017-05-03 Thread Marko Rauhamaa
Peter Pearson : > Cobbling together a minimalist ethernet-sniffing program, I was hoping > to use this simple mechanism for setting the socket to "promiscuous > mode" (to see all traffic going past, instead of just traffic > addressed to my machine): > >

[issue29956] math.exp documentation is misleading

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anybody please make a review of PR 1073? -- ___ Python tracker ___

[issue30152] Reduce the number of imports for argparse

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Implemented Wolfgang Maier's idea. The copy module is now imported in argparse only when the default value for 'append' or 'append_const' is not a list (uncommon case). -- ___ Python tracker

[issue30166] Import command-line parsing modules only when needed

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7e4db2f253c68d56177c2fd083bcf8f88d34 by Serhiy Storchaka in branch 'master': bpo-30166: Import command-line parsing modules only when needed. (#1293) https://github.com/python/cpython/commit/7e4db2f253c68d56177c2fd083bcf8f88d34

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: My previous two messages are not clear enough so I delete them. Sorry for the noise. :-( When unpacking a pascal string, you cannot simply specify a p format character otherwise struct calculate a wrong size of the format. That's why unpack fails. When count

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- Removed message: http://bugs.python.org/msg292959 ___ Python tracker ___

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- Removed message: http://bugs.python.org/msg292958 ___ Python tracker ___

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker

Re: getting memory usage of varaibles

2017-05-03 Thread Ben Finney
Erik writes: > The thing about functions or classes is that you can't (at the literal > source level) define them *without* giving them a name: Even a function is commonly defined without giving it a name. >>> strategies = [ ... (lambda x: x + 2), ...

Re: getting memory usage of varaibles

2017-05-03 Thread Ben Finney
Larry Martell writes: > On Wed, May 3, 2017 at 12:57 AM, Chris Angelico wrote: > > Coming right back to the beginning here: What do you expect the name > > of an object to be? > > The name of the variable in the program, e.g. sql, db_conn, rows, etc.

Re: Promiscuous ports under Linux

2017-05-03 Thread Peter Pearson
On Wed, 3 May 2017 18:09:08 -0700, Rob Gaddi wrote: > On 05/03/2017 04:57 PM, Peter Pearson wrote: >> Cobbling together a minimalist ethernet-sniffing program, I was hoping >> to use this simple mechanism for setting the socket to "promiscuous >> mode" (to see all traffic going past, instead of

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: Note in the doc: Note that for unpack(), the 'p' format character consumes count bytes I think this means you still need to specify the repeat count for unpacking 'p'. -- ___ Python tracker

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: Hmm, code->size is determined by repeat count at initilization stage so I don't understand why it should be updated in s_unpack_internal to 255. And the repro script works well for me. -- nosy: +xiang.zhang resolution: -> not a bug stage: -> resolved

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1bebd8a21948652a5f941c550dec06ea84d1d979 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (GH-1316). (#1441)

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 943861f09ab6bffcd1d97efcd0dd6c87c7f26800 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (GH-1316). (#1442)

[issue30266] AbstractContextManager should support __method__ = None

2017-05-03 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- pull_requests: +1546 ___ Python tracker ___ ___

[issue30266] AbstractContextManager should support __method__ = None

2017-05-03 Thread Jelle Zijlstra
New submission from Jelle Zijlstra: Like other ABCs, contextlib.AbstractContextManager should support the pattern where setting a method to None disables structural subtyping, which was introduced across the standard library in issue 25958. Ivan Levkivskyi suggested making

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: We can finally close this. Thanks everyone :) -- stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset e1b02ff58883c68d3a5e549aa33c6dd94f915bd6 by Mariatta in branch '2.7': [2.7] bpo-28315: Improve code examples in docs (GH-1372) (#1447) https://github.com/python/cpython/commit/e1b02ff58883c68d3a5e549aa33c6dd94f915bd6 --

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1545 ___ Python tracker ___ ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset af71364c3f0e9cd6cb9d83194315af0ee3c783d2 by Mariatta in branch '3.6': [3.6] bpo-28315: Improve code examples in docs (GH-1372) (#1445) https://github.com/python/cpython/commit/af71364c3f0e9cd6cb9d83194315af0ee3c783d2 --

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5274faf5e360f74690ffb735e919cdba5fdbdf1c by Mariatta in branch '3.5': [3.5] bpo-28315: Improve code examples in docs (GH-1372) (#1446) https://github.com/python/cpython/commit/5274faf5e360f74690ffb735e919cdba5fdbdf1c --

Re: getting memory usage of varaibles

2017-05-03 Thread Terry Reedy
On 5/3/2017 6:21 PM, Larry Martell wrote: On Wed, May 3, 2017 at 6:15 PM, Terry Reedy wrote: Python already uses this trick for functions, classes, and modules by giving them .__name__ attribute. Code objects have a .co_name attribute. These are used for tracing and

Re: Promiscuous ports under Linux

2017-05-03 Thread Rob Gaddi
On 05/03/2017 04:57 PM, Peter Pearson wrote: Cobbling together a minimalist ethernet-sniffing program, I was hoping to use this simple mechanism for setting the socket to "promiscuous mode" (to see all traffic going past, instead of just traffic addressed to my machine):

Re: getting memory usage of varaibles

2017-05-03 Thread Chris Angelico
On Thu, May 4, 2017 at 10:32 AM, Ned Batchelder wrote: > On Wednesday, May 3, 2017 at 8:09:59 PM UTC-4, Steve D'Aprano wrote: >> On Thu, 4 May 2017 09:30 am, Ned Batchelder wrote: >> >> > Functions, classes, and modules can also be referred to by a number of >> >

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1544 ___ Python tracker ___ ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1543 ___ Python tracker ___ ___

Re: getting memory usage of varaibles

2017-05-03 Thread Ned Batchelder
On Wednesday, May 3, 2017 at 8:09:59 PM UTC-4, Steve D'Aprano wrote: > On Thu, 4 May 2017 09:30 am, Ned Batchelder wrote: > > > Functions, classes, and modules can also be referred to by a number of > > variables: > > > > def foo(): pass > > bar = baz = foo > > > > But functions (by

Re: getting memory usage of varaibles

2017-05-03 Thread Steve D'Aprano
On Thu, 4 May 2017 09:30 am, Ned Batchelder wrote: > Functions, classes, and modules can also be referred to by a number of > variables: > > def foo(): pass > bar = baz = foo > > But functions (by virtue of the name in the def statement) have an > inherent name, Indeed; but we also

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: > The problem is that os.unlink(TESTFN) ignores all OSError: os.unlink(TESTFN) > fails because there is still an open file object somewhere. I created the issue #30265: test.support.unlink() should fail or emit a warning on WindowsError: [Error 32] The

[issue30265] test.support.unlink() should fail or emit a warning on WindowsError: [Error 32] The process cannot access the file ...

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: While working on issue #30264, I noticed that test.support.unlink() ignores *all* OSError exceptions. I suggest to add handle WindowsError: [Error 32] differently. Example of such error, issue #15388: WindowsError: [Error 32] The process cannot access the

Promiscuous ports under Linux

2017-05-03 Thread Peter Pearson
Cobbling together a minimalist ethernet-sniffing program, I was hoping to use this simple mechanism for setting the socket to "promiscuous mode" (to see all traffic going past, instead of just traffic addressed to my machine): s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON) Unfortunately, it

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: > The question is if all parser provide a close() method? It seems like xml.sax supports pluggable parsers, at least using the PY_SAX_PARSER environment variable. So it would be safer to add a cheap "if hasattr(parser, 'close'):" test; --

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/1444 is written for the master branch. IMHO the bug must be fixed in all supported branches. The question is if all parser provide a close() method? -- versions: +Python 3.5, Python 3.6, Python 3.7

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1542 ___ Python tracker ___ ___

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: Running test_sax of Python 2.7 on Windows emits the following warning: Warning -- files was modified by test_sax The problem is that os.unlink(TESTFN) ignores all OSError: os.unlink(TESTFN) fails because there is still an open file object somewhere. The

Re: getting memory usage of varaibles

2017-05-03 Thread Ned Batchelder
On Wednesday, May 3, 2017 at 6:22:28 PM UTC-4, larry@gmail.com wrote: > On Wed, May 3, 2017 at 6:15 PM, Terry Reedy wrote: > > On 5/3/2017 8:40 AM, Larry Martell wrote: > >> > >> On Wed, May 3, 2017 at 8:29 AM, Chris Angelico wrote: > >>> > >>> On Wed, May

Re: getting memory usage of varaibles

2017-05-03 Thread Erik
On 03/05/17 23:21, Larry Martell wrote: But not for a variable like a list or dict? What name should "[1, 2, 3]", or "{1, 'a': 2: 'b'}" be given? The thing about functions or classes is that you can't (at the literal source level) define them *without* giving them a name: def func(): pass

Re: Python package to accept payments in Internet

2017-05-03 Thread Victor Porton
On Wed, 2017-05-03 at 17:02 +0200, Chris Warrick wrote: > On 3 May 2017 at 16:45, Victor Porton wrote: > > Steve D'Aprano wrote: > >  > > > On Wed, 3 May 2017 02:19 am, Victor Porton wrote: > > >  > > > > I have created a full featured package to accept payments in > > > >

Re: EXTERNAL: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread breamoreboy
On Wednesday, May 3, 2017 at 3:50:01 PM UTC+1, Joaquin Henriquez wrote: > >Hi, I am using Python 3.5.2 on Linux Mint (X64) at the moment, and > >wondering how to update it to 3.5.3. Are there some simple commands to do > >that? > > If available on the Mint repository you should be able to upgrade

[issue30263] regrtest: log the system load?

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: Example of test only failing on one specific buildbot: issue #30225. test_http_body_pipe() of test_urllib2 only fails on macOS Tiger under high system load. -- ___ Python tracker

[issue30263] regrtest: log the system load?

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: It's more and more common to get test failures only on a small group of buildbots, or even a single buildbot. In many cases, it's a race condition which depends on the system load. The system load depends on how many tests are running in parallel, if the

Re: Python package to accept payments in Internet

2017-05-03 Thread Gregory Ewing
Victor Porton wrote: You carp with words, finding a problem where there is no real problem, just words (I mean the word "hack") which sound like a problem. Words are important. The very fact that it sounds like a problem *is* a problem if you're trying to persuade people to use your software,

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1c4670ea0cc3d208121af11b9b973e6bb268e570 by Victor Stinner in branch 'master': bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443) https://github.com/python/cpython/commit/1c4670ea0cc3d208121af11b9b973e6bb268e570 --

Re: Python package to accept payments in Internet

2017-05-03 Thread Gregory Ewing
Chris Warrick wrote: Also, this line looks unconvincing: # This is a quick hack. For serious work use https://github.com/paypal/PayPal-Python-SDK instead. Surely there's no such thing as non-serious work when you're handling other people's money? -- Greg --

Re: TypeVar single constraint not allowed, why?

2017-05-03 Thread Gregory Ewing
Ned Batchelder wrote: Couldn't you simply annotate it as ": type", without using a TypeVar? Not if you want to constrain two types to be the same type. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Chris Angelico
On Thu, May 4, 2017 at 2:43 AM, Thomas Nyberg wrote: > Interesting...learn something new every day! I knew that they would > backport security updates, but I never realized they would actually use > a newer (micro) version of the interpreter while retaining the original >

Re: getting memory usage of varaibles

2017-05-03 Thread Larry Martell
On Wed, May 3, 2017 at 6:15 PM, Terry Reedy wrote: > On 5/3/2017 8:40 AM, Larry Martell wrote: >> >> On Wed, May 3, 2017 at 8:29 AM, Chris Angelico wrote: >>> >>> On Wed, May 3, 2017 at 10:12 PM, Larry Martell >>> wrote: On

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1541 ___ Python tracker ___ ___

Re: getting memory usage of varaibles

2017-05-03 Thread Terry Reedy
On 5/3/2017 8:40 AM, Larry Martell wrote: On Wed, May 3, 2017 at 8:29 AM, Chris Angelico wrote: On Wed, May 3, 2017 at 10:12 PM, Larry Martell wrote: On Wed, May 3, 2017 at 12:57 AM, Chris Angelico wrote: On Wed, May 3, 2017 at

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: initstdio() is supposed to handle EBADF: see issue #24891. -- ___ Python tracker ___

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1540 ___ Python tracker ___ ___

[issue30236] Add options --match and --failfast for test.regrtest in 2.7

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30236] Add options --match and --failfast for test.regrtest in 2.7

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 74f0db885fa84e3a1c73b3ae1edc723d48f7bad2 by Serhiy Storchaka in branch '2.7': [2.7] bpo-30236: Backported regrtest options -m and -G. (#1394) https://github.com/python/cpython/commit/74f0db885fa84e3a1c73b3ae1edc723d48f7bad2 --

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1539 ___ Python tracker ___ ___

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread David Bolen
David Bolen added the comment: In running the test under a local build, the issue is very repeatable, but I believe it's actually due to slow process startup rather than a quick exit. That is, adding a brief sleep after process creation and just before the Request() call seems to fix the

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5f161fd86dd5bb936a1a2a13391b13b7e59ec201 by Serhiy Storchaka in branch 'master': bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316) https://github.com/python/cpython/commit/5f161fd86dd5bb936a1a2a13391b13b7e59ec201

[issue30095] HTMLCalendar allow custom classes

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: For sure :) Thanks Terry. -- assignee: -> Mariatta ___ Python tracker ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mariatta, please continue with this and assign to yourself. I now have IDLE PRs to review and apply. -- assignee: terry.reedy -> ___ Python tracker

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-03 Thread Aviv Palivoda
Changes by Aviv Palivoda : -- pull_requests: +1538 ___ Python tracker ___ ___

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-03 Thread Aviv Palivoda
New submission from Aviv Palivoda: Both the Cache and Statement objects are internally used and should not be exposed to the user from the sqlite3 module. They are not mentioned in the documentation as well. -- components: Extension Modules messages: 292936 nosy: berker.peksag,

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread David Bolen
David Bolen added the comment: Hmm, I wonder if this is another race condition similar to issue 8458? I think that was thought to be related to the subprocess exiting quickly, in which case the question might be why that might happen more so than the actual descriptor error. BTW, Victor, in

[issue30095] HTMLCalendar allow custom classes

2017-05-03 Thread Oz Tiram
Oz Tiram added the comment: @Walter, I implemented your suggestions plus the obvious tasks of adding tests and documentation. Would be happy to hear your feedback. -- ___ Python tracker

[issue30095] HTMLCalendar allow custom classes

2017-05-03 Thread Oz Tiram
Changes by Oz Tiram : -- pull_requests: +1537 ___ Python tracker ___ ___ Python-bugs-list

[issue30250] StreamIO truncate behavior of current position

2017-05-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: For the record, the StringIO module is Python 2 only (replaced by io.StringIO and io.BytesIO for Py3, which are also available on 2.6 and higher if you need consistency), and only documents truncate by reference to the generic docs for the built-in file

[issue30261] Spam

2017-05-03 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: -saumitra1978 resolution: -> not a bug stage: -> resolved status: open -> closed title: saumitra paul choudhury has shared a document on Google Docs with you -> Spam ___ Python tracker

[issue30261] Spam

2017-05-03 Thread Zachary Ware
Changes by Zachary Ware : -- Removed message: http://bugs.python.org/msg292931 ___ Python tracker ___

[issue30248] Using boolean arguments in the _json module

2017-05-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: So, incredibly minor note: This will prevent a ridiculous use case of passing in a mutable object as the argument (say, a list), and mutating it between truthy and falsy values (appending or clearing) to toggle behaviors in an existing Encoder. Note: As

[issue30261] saumitra paul choudhury has shared a document on Google Docs with you

2017-05-03 Thread saumitra paul
New submission from saumitra paul: saumitra paul choudhury has invited you to view the following document: Open in Docs

Re: Python package to accept payments in Internet

2017-05-03 Thread Chris Warrick
On 3 May 2017 at 17:58, Victor Porton wrote: > Chris Warrick wrote: > >> On 3 May 2017 at 17:19, Victor Porton wrote: >>> What do you mean by "banned"? Does this mean that Google does not use >>> software of this license? >> >>

[issue30229] Closing a BufferedRandom calls lseek() mutliple times

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: READAHEAD uses read_end, RAW_OFFSET uses raw_pos. Are you sure that if READAHEAD(self) is zero RAW_OFFSET(self) is zero too? -- ___ Python tracker

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2017-05-03 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: Just to remind that as it stands now(b39d4b1c6) it contains no API changes at all, so it should be considered for merge into 3.6.x line. -- ___ Python tracker

Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Thomas Nyberg
On 05/03/2017 01:14 PM, Matt Ruffalo wrote: > This isn't quite true -- Ubuntu 14.04 shipped with Python 3.4.0, but was > updated at some point to 3.4.3 (which will be installed automatically > through normal update mechanisms). > > MMR... > Well I'm less worried about whether it is _always_

[issue29448] Implement os.Pathlike for importlib.machinery

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> resolved status: open -> closed ___ Python tracker ___

Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Matt Ruffalo
On 2017-05-03 12:43, Thomas Nyberg wrote: > On 05/03/2017 11:47 AM, Wolfgang Maier wrote: >> On 03.05.2017 17:11, Thomas Nyberg wrote: >>> On 05/03/2017 11:04 AM, Daiyue Weng wrote: nope, I was thinking it might be good to update to 3.5.3 for security reasons? >>> (CCing back in

Re: Python package to accept payments in Internet

2017-05-03 Thread alister
On Wed, 03 May 2017 18:58:50 +0300, Victor Porton wrote: > Chris Warrick wrote: > >> On 3 May 2017 at 17:19, Victor Porton wrote: >>> What do you mean by "banned"? Does this mean that Google does not use >>> software of this license? >> >>

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
asterite added the comment: I made up a small program to reproduce an issue, it consists of two files, test.py and test2.py, the second one is imported as a module by the first one, so they should be but in the same dir. # ls test.py test2.py # python3.5 test.py test Segmentation fault The

[issue29712] --enable-optimizations does not work with --enable-shared

2017-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, --enable-shared generally produces slower builds than by default. The slowdown depends on the platform, but it's noticeable on x86-64 and much more on ARM. -- nosy: +pitrou ___ Python tracker

[issue30247] Make importlib.machinery class handle os.PathLike path

2017-05-03 Thread Brett Cannon
Brett Cannon added the comment: The classes mentioned actually require that the path exist on the file system so there's no extra restrictions. As for cost, it's pretty cheap as a call to _os.fspath() is written in C and does an immediate type-check for str or bytes for the common-case

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: resolved -> backport needed ___ Python tracker ___

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
Changes by asterite : Added file: http://bugs.python.org/file46848/test2.py ___ Python tracker ___

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 8856940cf2e82cb17db2b684cd5732fe658605ca by Mariatta (UltimateCoder) in branch 'master': bpo-28315: Improve code examples in docs (GH-1372) https://github.com/python/cpython/commit/8856940cf2e82cb17db2b684cd5732fe658605ca --

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
Changes by asterite : Added file: http://bugs.python.org/file46847/test.py ___ Python tracker ___

[issue29448] Implement os.Pathlike for importlib.machinery

2017-05-03 Thread Brett Cannon
Brett Cannon added the comment: Since the objects I thought of for this aren't purely representing paths I'm going to close this to keep os.PathLike for things that are specifically representing paths. -- resolution: -> rejected ___ Python tracker

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
New submission from asterite: I faced a crash during iterpreter shutdown (Py_Finalize), in final garbage collection phase. The reason, as far as I could understand, was the following: In Python 3, when an unclosed socket is destroyed, it issues a ResourceWarning, which contains a string

Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Thomas Nyberg
On 05/03/2017 11:47 AM, Wolfgang Maier wrote: > On 03.05.2017 17:11, Thomas Nyberg wrote: >> On 05/03/2017 11:04 AM, Daiyue Weng wrote: >>> nope, I was thinking it might be good to update to 3.5.3 for security >>> reasons? >>> >> >> (CCing back in python-list since I accidentally dropped it.) >>

[issue29311] Argument Clinic: convert dict methods

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: > IMO, you've made the docstrings for pure Python versions of > collections.OrderedDict worse. The previous docstrings were clearer. Can you please elaborate? Please reopen the issue or open a new one if you consider that it's worth it (this issue is

[issue28556] typing.py upgrades

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset e612c28513b406779d187e5f816445c7d40d292b by Mariatta in branch '3.6': [3.6] bpo-28556: Routine updates to typing (GH-1366) (#1416) https://github.com/python/cpython/commit/e612c28513b406779d187e5f816445c7d40d292b --

[issue28556] typing.py upgrades

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 4b15e45895ca56ac5f7837cacb8cd3ccc26d1f66 by Mariatta in branch '3.5': [3.5] bpo-28556: Routine updates to typing (GH-1366) (#1417) https://github.com/python/cpython/commit/4b15e45895ca56ac5f7837cacb8cd3ccc26d1f66 --

[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2017-05-03 Thread Brett Cannon
Changes by Brett Cannon : -- title: Add os.PathLike support to the tempfile module's 'dir' arguments -> Add/check os.PathLike support for the tempfile module's 'dir' arguments ___ Python tracker

[issue29447] Add os.PathLike support to the tempfile module's 'dir' arguments

2017-05-03 Thread Brett Cannon
Brett Cannon added the comment: Without looking at the PR there are two ways to interpret my unfortunately vague comment. One is to say that the objects returned by tempfile code should support os.PathLike; that's what Serhiy is objecting to as those are objects representing concrete things

[issue30257] _bsddb: else misleadingly indented

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: I don't understand well the consequence of the change, so I didn't document it in Misc/NEWS :-) -- ___ Python tracker

[issue30259] Test somehow that generated files are up to date: run make regen-all

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: I also asked if something similar should be done for autoconf? http://bugs.python.org/issue23404#msg292829 -- ___ Python tracker

[issue23404] 'make touch' does not work with git clones of the source repository

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: I just created the issue #30259: Test somehow that generated files are up to date: run make regen-all. -- ___ Python tracker

  1   2   3   >