[issue28647] python --help: -u is misdocumented as binary mode

2017-01-06 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review type: -> behavior versions: +Python 3.6, Python 3.7 ___ Python tracker

Re: The hardest problem in computer science...

2017-01-06 Thread Steve D'Aprano
On Sat, 7 Jan 2017 12:03 am, Steve D'Aprano wrote: > The second hardest problem in computer science is cache invalidation. > > The *hardest* problem is naming things. Thanks everyone who answered, but I think some of you misunderstood my question. I know that the individual characters

[issue29145] failing overflow checks in replace_*

2017-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code in PyUnicode_Join() checks on overflow after making an addition. sz += PyUnicode_GET_LENGTH(item); item_maxchar = PyUnicode_MAX_CHAR_VALUE(item); maxchar = Py_MAX(maxchar, item_maxchar); if (i != 0) sz +=

[issue29186] TimeoutError isn't being raised?

2017-01-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list

[issue29187] Pickle failure is raising AttributeError and not PicklingError

2017-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python implementation of pickle still raises PicklingError. Seems this was not intentional change. >>> pickle._dumps(func()()) Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/pickle.py", line 918, in save_global obj2, parent =

Re: Search a sequence for its minimum and stop as soon as the lowest possible value is found

2017-01-06 Thread Rustom Mody
On Saturday, January 7, 2017 at 12:26:04 PM UTC+5:30, Jussi Piitulainen wrote: > Paul Rubin writes: > > > Peter Otten writes: > >> How would you implement stopmin()? > > > > Use itertools.takewhile > > How? It consumes the crucial stop element: > >it = iter('what?') >

[issue29190] Avoid possible errors in comparing strings

2017-01-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PyUnicode_Compare() and PyUnicode_RichCompare() can raise an exception if one of arguments is not ready unicode object. The result is not always checked for error. Proposed patch gets rid of possible bugs. PyUnicode_Compare() and PyUnicode_RichCompare()

Re: Search a sequence for its minimum and stop as soon as the lowest possible value is found

2017-01-06 Thread Jussi Piitulainen
Paul Rubin writes: > Peter Otten writes: >> How would you implement stopmin()? > > Use itertools.takewhile How? It consumes the crucial stop element: it = iter('what?') list(takewhile(str.isalpha, it)) # ==> ['w', 'h', 'a', 't'] next(it, 42) # ==> 42 --

[issue29133] Minor inaccuracy in shlex.shlex punctuation_chars example

2017-01-06 Thread Berker Peksag
Berker Peksag added the comment: I'd probably write it without the for loop: text = "a && b; c && d || e; f >'abc'; (def \"ghi\")" result = shlex.shlex(text) print(f"Old behavior: {list(result)}") result = shlex.shlex(text, punctuation_chars=True) print(f"New behavior:

[issue16026] csv.DictReader argument names documented incorrectly

2017-01-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 198edd926751 by Berker Peksag in branch '3.6': Issue #16026: Fix parameter names of DictReader and DictWriter https://hg.python.org/cpython/rev/198edd926751 New changeset 63c5531cfdf7 by Berker Peksag in branch 'default': Issue #16026: Merge from

[issue16026] csv.DictReader argument names documented incorrectly

2017-01-06 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patches James and Greg! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker

[issue29189] Broken indentation in FancyURLopener documentation

2017-01-06 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the review, Senthil. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

RE: Namedtuples: TypeError: 'str' object is not callable

2017-01-06 Thread Deborah Swanson
Chris Angelico wrote, on January 06, 2017 9:14 PM > > On Sat, Jan 7, 2017 at 4:07 PM, Deborah Swanson > wrote: > > > > I really don't know how long it would've taken me to think of that, so > > thank you! > > I have a well-trained crystal ball :) > > ChrisA More

[issue29189] Broken indentation in FancyURLopener documentation

2017-01-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31172ecb9e40 by Berker Peksag in branch '2.7': Issue #29189: Fix broken indentation in FancyURLopener documentation https://hg.python.org/cpython/rev/31172ecb9e40 -- nosy: +python-dev ___ Python tracker

[issue29189] Broken indentation in FancyURLopener documentation

2017-01-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch looks good to me, and can committed. Thanks! -- ___ Python tracker ___

[issue29189] Broken indentation in FancyURLopener documentation

2017-01-06 Thread Berker Peksag
New submission from Berker Peksag: I noticed this while taking a look at urllib docs for issue 29182. Indentation of prompt_user_passwd() is broken and it looks like it's part of the note directive: https://docs.python.org/2/library/urllib.html#urllib.FancyURLopener.prompt_user_passwd Python

[issue29182] Remove the warning in urllib docs that it doesn't do certificate validate by default.

2017-01-06 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> commit review ___ Python tracker ___

[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-01-06 Thread INADA Naoki
INADA Naoki added the comment: >> stderr is used to log errors. Getting a new error when trying to log >> an error is kind of annoying. > > Hm, what bad surprise/error could appear that would not appear with > backslashescape? $ cat badfilename.py badfn =

Re: Namedtuples: TypeError: 'str' object is not callable

2017-01-06 Thread Chris Angelico
On Sat, Jan 7, 2017 at 4:07 PM, Deborah Swanson wrote: > And you would be precisely correct. I have a variable named 'map', and I > intended to delete it and the code that used it, but totally forgot > about it. It's still in there somewhere, but a simple search will

[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-01-06 Thread Sworddragon
Sworddragon added the comment: > What do you mean by "make the C locale"? I was pointing to the Platform Support Changes of PEP 538. > I'm not sure of the name of each mode yet. > > After having written the "Use Cases" section and especially the > Mojibake column of results, I consider the

RE: Namedtuples: TypeError: 'str' object is not callable

2017-01-06 Thread Deborah Swanson
Chris Angelico wrote, on January 06, 2017 8:05 PM > To: python-list@python.org > Subject: Re: Namedtuples: TypeError: 'str' object is not callable > > > On Sat, Jan 7, 2017 at 2:46 PM, Deborah Swanson > wrote: > > And here's the Traceback in PyCharm: > > File

[issue28961] unittest.mock._Call ignores `name` parameter

2017-01-06 Thread Berker Peksag
Berker Peksag added the comment: IIRC 3.5.3rc1 is already tagged so the 3.5 branch is open for 3.5.4. Anything that needs to be in 3.5.3 should be cherry-picked by the RM at this point if I'm not mistaken (and note that I don't have time check, but 3.5.3 may be the last bugfix release of 3.5

Re: Namedtuples: TypeError: 'str' object is not callable

2017-01-06 Thread Chris Angelico
On Sat, Jan 7, 2017 at 2:46 PM, Deborah Swanson wrote: > And here's the Traceback in PyCharm: > File "E:/Coding projects/Pycharm/Moving/moving_numberedtuples.py", > line 139, in moving() > for lst in map(listings._make, csv.reader(open('E:\\Coding >

Namedtuples: TypeError: 'str' object is not callable

2017-01-06 Thread Deborah Swanson
I'm not sure what Python is complaining about here, or why. Here's the example from the Python docs: https://docs.python.org/3/library/collections.html#collections.namedtupl e EmployeeRecord = namedtuple('EmployeeRecord', 'name, age, title, department, paygrade') import csv for emp in

Re: The hardest problem in computer science...

2017-01-06 Thread Larry Hudson via Python-list
On 01/06/2017 05:03 AM, Steve D'Aprano wrote: The second hardest problem in computer science is cache invalidation. The *hardest* problem is naming things. In a hierarchical tree view widget that displays items like this: Fiction ├─ Fantasy │ ├─ Terry Pratchett │ │ ├─

[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: Sworddragon added the comment: > (for me and maybe others that is explicitly preferred but maybe this depends > on each individual) That's why the PEP 540 has options to enable to disable its UTF-8 mode(s). > If I'm not wrong PEP 538 improves this for the

[issue29174] 'NoneType' object is not callable in subprocess.py

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: Martin Panter: > Victor opened Issue 27068 about adding a Popen.detach() method, which such > code could use to opt out of the warning. I opened the issue because you asked me to open it, but I'm not convinced yet that the design would work. I don't understand

[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-01-06 Thread Sworddragon
Sworddragon added the comment: On looking into PEP 538 and PEP 540 I think PEP 540 is the way to go. It provides an option for a stronger encapsulation for the de-/encoding logic between the interpreter and the developer. Instead of caring about error handling the developer has now to care

[issue29174] 'NoneType' object is not callable in subprocess.py

2017-01-06 Thread Martin Panter
Martin Panter added the comment: The ResourceWarning was added by Issue 26741. I agree that there are legitimate reasons why pre-3.6 code may avoid calling Popen.wait() and equivalent. Victor opened Issue 27068 about adding a Popen.detach() method, which such code could use to opt out of the

Re: Using sudo with pip3?

2017-01-06 Thread Cameron Simpson
On 06Jan2017 23:03, Clint Moyer wrote: Packages supplied by your distribution can be trusted more than packages from PyPi. Just my two cents. Most distros offer nearly all the useful Python modules directly from the repo. I would agree with this on the whole. And also

Re: The hardest problem in computer science...

2017-01-06 Thread Mario R. Osorio
On Friday, January 6, 2017 at 8:45:41 PM UTC-5, Mario R. Osorio wrote: > On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote: > > On 01/06/2017 05:03 AM, Steve D'Aprano wrote: > > > > > what do we call the vertical and horizontal line elements? I want to make > > > them

Re: The hardest problem in computer science...

2017-01-06 Thread Mario R. Osorio
On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote: > On 01/06/2017 05:03 AM, Steve D'Aprano wrote: > > > what do we call the vertical and horizontal line elements? I want to make > > them configurable, which means the user has to be able to pass an argument > > that specifies

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: > I think it is far too late to be making these kind of changes to 2.7. I would prefer to use the "same code" (or almost) on all maintained versions of Python: 2.7, 3.5, 3.6 and 3.7. It should ease the maintenance for bugfixes and enhancements. It seems like

Re: Search a sequence for its minimum and stop as soon as the lowest possible value is found

2017-01-06 Thread Paul Rubin
Peter Otten <__pete...@web.de> writes: > How would you implement stopmin()? Use itertools.takewhile -- https://mail.python.org/mailman/listinfo/python-list

[issue27632] build on AIX fails when builddir != srcdir, more than bad path to ld_so_aix

2017-01-06 Thread Martin Panter
Martin Panter added the comment: Regarding reopening Issue 10656, whatever you think is more appropriate. You just have to judge whether it is the same use case, the same code affected, etc. Issue 16189 and Issue 25825 were about updating to match recent changes to directory names, and I

[issue29179] Py_UNUSED is not documented

2017-01-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> larry nosy: +larry ___ Python tracker ___

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think it is far too late to be making these kind of changes to 2.7. -- nosy: +rhettinger ___ Python tracker ___

[issue29023] Results of random.seed() call with integer argument should be claimed deterministic.

2017-01-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue29023] Results of random.seed() call with integer argument should be claimed deterministic.

2017-01-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d6ebd206cd6 by Raymond Hettinger in branch '2.7': Issue #29023: Clarify that ints and longs are always deterministic seeds for random. https://hg.python.org/cpython/rev/7d6ebd206cd6 -- nosy: +python-dev

[issue29186] TimeoutError isn't being raised?

2017-01-06 Thread YoSTEALTH
Changes by YoSTEALTH : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

Re: Using sudo with pip3?

2017-01-06 Thread Clint Moyer
>From Ubuntu, why not try: sudo apt-get install python-matplotlib -Clint On Fri, Jan 6, 2017 at 3:09 PM jim wrote: > Setting up a new computer to run Ubuntu 16.04. Started using pip3 to > > install all the python stuff I had on the old machine and got this message: > >

[issue29157] random.c: Prefer getrandom() over getentropy() to support glibc 2.24 on Linux

2017-01-06 Thread STINNER Victor
Changes by STINNER Victor : -- title: random.c: Prefer getrandom() over getentropy(), handle ENOSYS in py_getentropy() -> random.c: Prefer getrandom() over getentropy() to support glibc 2.24 on Linux ___ Python tracker

[issue29188] Backport random.c from Python 3.5 to Python 2.7

2017-01-06 Thread STINNER Victor
New submission from STINNER Victor: Python 3.6 uses the new getrandom() function/syscall on Linux and Solaris to get random bytes with no file descriptor: it prevents EMFILE and ENFILE errors or surprises when opening a first file (and looking at its file descriptor). I propose to copy and

[issue19977] Use "surrogateescape" error handler for sys.stdin and sys.stdout on UNIX for the C locale

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: > But maybe I'm just missing something. This issue fixed exactly one use case: "List a directory into stdout" (similar to the UNIX "ls" or Windows "dir" commands): https://www.python.org/dev/peps/pep-0540/#list-a-directory-into-stdout Your use case is more

[issue29030] argparse: choices override metavar

2017-01-06 Thread paul j3
paul j3 added the comment: subparsers is an example of choices displaying as the metavar. From the documentation example: usage: PROG [-h] [--foo] {a,b} ... positional arguments: {a,b} sub-command help - To the main parser, the 'subparser' is a positional argument, with

[issue19977] Use "surrogateescape" error handler for sys.stdin and sys.stdout on UNIX for the C locale

2017-01-06 Thread Sworddragon
Sworddragon added the comment: The point is this ticket claims to be using the surrogateescape error handler for sys.stdout and sys.stdin for the C locale. I have never used surrogateescape explicitly before and thus have no experience for it and consulting the documentation mentions throwing

[issue29157] random.c: Prefer getrandom() over getentropy(), handle ENOSYS in py_getentropy()

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: random-py35.patch: Patch for the 3.5 branch. My prepared commit message: --- Issue #29157: Prefer getrandom() over getentropy() Copy and then adapt Python/random.c from default branch. Difference between 3.5 and default branches: * Python 3.5 only uses

crosstab output

2017-01-06 Thread Val Krem via Python-list
Hi all, How do I access the rows and columns of a data frame crosstab output? Here is code using a sample data and output. a= pd.read_csv("cross.dat", skipinitialspace=True) xc=pd.crosstab(a['nam'],a['x1'],margins=True) print(xc) x10 1 nam A13 2 A21 4 I want to create a

Re: Pexpect

2017-01-06 Thread Cameron Simpson
On 06Jan2017 11:37, Joaquin Alzola wrote: Iranna Mathapati asked: How to match latter(caps and small) ,numbers and # symbol in python pexpect. With a .* Ugh. Please not. Expect() accepts a nongreedy regular expression. ".*" is the lazy

Re: Using sudo with pip3?

2017-01-06 Thread Clint Moyer
Packages supplied by your distribution can be trusted more than packages from PyPi. Just my two cents. Most distros offer nearly all the useful Python modules directly from the repo. Virtual environments are great, but if you want to add libraries to your system interpreter I'd recommend a

[issue29157] random.c: Prefer getrandom() over getentropy(), handle ENOSYS in py_getentropy()

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: Christian Heimes: "I'm doing a review now." Follow-up on #python-dev (IRC): haypo: yes, I looked at the patch and did not see any obvious problem with it. Didn't I tell you? haypo: maybe I forgot :) -- ___

[issue29157] random.c: Prefer getrandom() over getentropy(), handle ENOSYS in py_getentropy()

2017-01-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8e24a0a1124 by Victor Stinner in branch '3.6': Issue #29157: Prefer getrandom() over getentropy() https://hg.python.org/cpython/rev/f8e24a0a1124 -- ___ Python tracker

RE: Receiving a lot of double messages.

2017-01-06 Thread Deborah Swanson
Grant Edwards wrote, on January 06, 2017 1:56 PM > > On 2017-01-05, Antoon Pardon wrote: > > > Is there something going on with the mailinglist? Because I have > > receive a lot > > of double messages. One copy is fairly normal and is part > of the discussion >

[issue29187] Pickle failure is raising AttributeError and not PicklingError

2017-01-06 Thread Matt Dodge
New submission from Matt Dodge: When failing to pickle something (like a locally scoped class) the documentation indicates that a PicklingError should be raised. Doc links: - https://docs.python.org/3/library/pickle.html?highlight=pickle#pickle-picklable -

[issue29186] TimeoutError isn't being raised?

2017-01-06 Thread YoSTEALTH
New submission from YoSTEALTH: TimeoutError isn't being raised? My Python Version: 3.5.1 (64bit, linux) # Document: https://docs.python.org/3/library/exceptions.html#TimeoutError """ exception TimeoutError Raised when a system function timed out at the system level. Corresponds to errno

[issue29174] 'NoneType' object is not callable in subprocess.py

2017-01-06 Thread ita1024
ita1024 added the comment: The point #3 was referring to the new requirement for an atexit handler in order to not only kill the processes but to also wait for them at interpreter shutdown. The sub-processes (and associated resources) in the example are definitely freed as the parent process

[issue2771] Test issue

2017-01-06 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +10 ___ Python tracker ___ ___ Python-bugs-list

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: I dislike adding a lpAttributeList attribute: it's too close to the exact implementation of Windows may change in the future. I would prefer a more high level API. Since the only known use case today is to pass handles, I propose to focus on this use case:

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: Python already has a multiprocessing module which is able to pass handles (maybe also FD? I don't know) to child processes on Windows. I found some code in Lib/multiprocessing/reduction.py: - duplicate() - steal_handle() - send_handle() But the design doesn't

Re: Using sudo with pip3?

2017-01-06 Thread cs
On 06Jan2017 15:44, jim wrote: Setting up a new computer to run Ubuntu 16.04. Started using pip3 to install all the python stuff I had on the old machine and got this message: jfb@jims-1604:~$ sudo pip3 install matplotlib [sudo] password for jfb: The directory

[issue29178] Adding bytes.frombuffer(byteslike) constructor

2017-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Which virtually no one follows :( Sad. But adding bytes.frombuffer() wouldn't make it magically used. If you are aware of the problem, you can use the above two-liner as well as bytes.frombuffer(). You even can use it in the current code with older Python

[issue19977] Use "surrogateescape" error handler for sys.stdin and sys.stdout on UNIX for the C locale

2017-01-06 Thread STINNER Victor
STINNER Victor added the comment: "I thought with the surrogateescape error handler now being used for sys.stdout this would not throw an exception but I'm getting this: (...)" Please see the two recently proposed PEP: Nick's PEP 538 and my PEP 540, both propose (two different) solutions to

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can concatenate any object supporting the buffer protocol to bytes and bytearray. Current error message for bytes looks awkward too, because it says "bytes to othertype" instead of "othertype to bytes". --

[issue29177] skip tests of test_logging when bind() raises PermissionError (non-root user on Android)

2017-01-06 Thread Vinay Sajip
Vinay Sajip added the comment: > including the SysLogHandlerTest, which wasn't reported Sorry, I appear to have lost the ability to read :-( -- ___ Python tracker

[issue29125] Shell injection via TIX_LIBRARY when using tkinter.tix

2017-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes this prevents the injection. The injection is possible because the patch is substituted in the string without any escaping. Your fix is not enough. The real path to a Tix installation can contain special characters: '\', '{' or '}'. My patch first sets

Using sudo with pip3?

2017-01-06 Thread jim
Setting up a new computer to run Ubuntu 16.04. Started using pip3 to install all the python stuff I had on the old machine and got this message: jfb@jims-1604:~$ sudo pip3 install matplotlib [sudo] password for jfb: The directory '/home/jfb/.cache/pip/http' or its parent directory is not owned

Re: Receiving a lot of double messages.

2017-01-06 Thread Grant Edwards
On 2017-01-05, Antoon Pardon wrote: > Is there something going on with the mailinglist? Because I have receive a > lot > of double messages. One copy is fairly normal and is part of the discussion > thread, the other is completely seperated. -- Antoon Pardon.

[issue29117] dir() should include dunder attributes of the unbound method

2017-01-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested your last claim and it is true as far as I went. >>> C.f.__annotations__ {'a': } >>> C().f.__annotations__ {'a': } >>> C.f.__code__ ", line 2> >>> C().f.__code__ ", line 2> -- nosy: +terry.reedy stage: -> test needed type: -> behavior

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-01-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: By default, error message wording changes are 'enhancements' that wait for the next x.y.0 release unless the current wording is positively wrong'. This is different from doc changes because there are tests depending on error messages. 'Inconsistent' or

[issue29177] skip tests of test_logging when bind() raises PermissionError (non-root user on Android)

2017-01-06 Thread Vinay Sajip
Vinay Sajip added the comment: I've added a patch that should handle these errors (including the SysLogHandlerTest, which wasn't reported, but I think the same logic applies). To simulate failure during setup, uncomment one or more of the lines which says # raise ValueError('dummy error

[issue29181] skip tests that raise PermissionError in test_tarfile (non-root user on Android)

2017-01-06 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +lars.gustaebel ___ Python tracker ___ ___

[issue29030] argparse: choices override metavar

2017-01-06 Thread paul j3
paul j3 added the comment: Here's the method in HelpFormatter that creates the metavar: def _metavar_formatter(self, action, default_metavar): if action.metavar is not None: result = action.metavar elif action.choices is not None: choice_strs =

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2017-01-06 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: [Matthias Klose (doko) 2016-10-27 15:45] > I'm not sure that you really want this, because it would make it impossible > to build an extension for the stable ABI for a debug build. It looks like that is already impossible:

[issue29006] 2.7.13 _sqlite more prone to "database table is locked"

2017-01-06 Thread Larry Hastings
Larry Hastings added the comment: FYI I'm keeping an eye on this for possible cherry-picking into 3.5.3 final, depending on the resolution. Reverting 030e100f048a work for me, assuming that's a reasonable solution. -- ___ Python tracker

[issue2771] Test issue

2017-01-06 Thread Ezio Melotti
Ezio Melotti added the comment: test -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26865] Meta-issue: support of the android platform

2017-01-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #29176: /tmp does not exist on Android and is used by curses.window.putwin() issue #29177: skip tests of test_logging when bind() raises PermissionError (non-root user on Android) issue #29180: skip tests that raise PermissionError in test_os (non-root

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do

2017-01-06 Thread Paul Rudin
Tim Johnson writes: > * Antonio Caminero Garcia [170102 20:56]: >> Guys really thank you for your answers. Basically now I am more >> emphasizing in learning in depth a tool and get stick to it so I >> can get a fast workflow. Eventually I will learn

RE: Receiving a lot of double messages.

2017-01-06 Thread Deborah Swanson
Antoon Pardon wrote, on January 06, 2017 2:11 AM > > Is there something going on with the mailinglist? Because I > have receive a lot of double messages. One copy is fairly > normal and is part of the discussion thread, the other is > completely seperated. -- Antoon Pardon. Looks to me like the

Re: Forcing prompt to be on newline when embedding Python with

2017-01-06 Thread H Krishnan
Thanks for your help. > > > > > I am working on embedding Python in my application. > > You forgot to tell us the version of Python that you're embedding. > > I am using Python2.7. > > I have redirected sys.stdin and sys.stdout to call methods from a Qt > TextEdit > > widget. Everything works

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do

2017-01-06 Thread Steven D'Aprano
On Wednesday 04 January 2017 12:10, Cameron Simpson wrote: > On 03Jan2017 12:57, Steve D'Aprano wrote: >>I dislike the Unix-style Vim/Emacs text editors, I prefer a traditional >>GUI-based editor. So my "IDE" is: >>- Firefox, for doing searches and looking up

Re: Python for WEB-page !?

2017-01-06 Thread Michael Torrie
On 01/05/2017 04:53 PM, Victor Porton wrote: > Ionut Predoiu wrote: > >> I am a beginner in programming language. >> I want to know what version of Python I must to learn to use, beside of >> basic language, because I want to integrate in my site 1 page in which >> users to can made calculus based

Re: Forcing prompt to be on newline when embedding Python with

2017-01-06 Thread eryk sun
On Fri, Jan 6, 2017 at 1:06 AM, H Krishnan wrote: > I tried replacing sys.displayhook with a function that does not print > newline but the newline still got inserted. So, I am not sure where the > newline is coming from. In any case, I could override sys.displayhook to add >

Re: Python for WEB-page !?

2017-01-06 Thread Michael Torrie
On 01/05/2017 05:57 AM, Ionut Predoiu wrote: > Good afternoon, > > I am a beginner in programming language. I want to know what version > of Python I must to learn to use, beside of basic language, because I > want to integrate in my site 1 page in which users to can made > calculus based on my

Re: Forcing prompt to be on newline when embedding Python with

2017-01-06 Thread H Krishnan
Hello Mr.Eryk, Thanks for the detailed explanation. After I added attribute support to my extension class for stdio, the problem was resolved. Regards, Krishnan On Fri, Jan 6, 2017 at 9:24 AM, eryk sun wrote: > On Fri, Jan 6, 2017 at 1:06 AM, H Krishnan

[issue29125] Shell injection via TIX_LIBRARY when using tkinter.tix

2017-01-06 Thread Larry Hastings
Larry Hastings added the comment: I don't understand the fix. Does this really prevent the injection? I would fix it this way: if tixlib is not None and os.path.exists(tixlib): -- ___ Python tracker

RE: Python for WEB-page !?

2017-01-06 Thread Deborah Swanson
Ionut Predoiu wrote, on January 05, 2017 11:07 PM > > Good morning, > > Thanks to all for feedback and advice. > Because I am a beginner I will read more about versions of > Python recommended by you. > > On the other side I am interested to know if exist some sites > which have develop platform

Re: Choosing a Python IDE. what is your Pythonish recommendation? I

2017-01-06 Thread Antonio Caminero Garcia
On Wednesday, January 4, 2017 at 1:10:04 PM UTC-8, Dietmar Schwertberger wrote: > On 04.01.2017 07:54, Antonio Caminero Garcia wrote: > > Unfortunately most of the time I am still using print and input functions. I know that sucks, I did not use the pdb module, I guess that IDE debuggers leverage

Receiving a lot of double messages.

2017-01-06 Thread Antoon Pardon
Is there something going on with the mailinglist? Because I have receive a lot of double messages. One copy is fairly normal and is part of the discussion thread, the other is completely seperated. -- Antoon Pardon. -- https://mail.python.org/mailman/listinfo/python-list

Re: Forcing prompt to be on newline when embedding Python with

2017-01-06 Thread eryk sun
On Thu, Jan 5, 2017 at 7:09 AM, H Krishnan wrote: > > I am working on embedding Python in my application. You forgot to tell us the version of Python that you're embedding. > I have redirected sys.stdin and sys.stdout to call methods from a Qt TextEdit > widget. Everything

Re: MySQL schema sync or diff

2017-01-06 Thread Chris Angelico
On Thu, Jan 5, 2017 at 11:02 AM, Charles Heizer wrote: > I have a MySQL database that is not managed (yet) and I would like to get an output or diff against my new model file. I'm using flask-sqlalchemy. > > Are there any modules that would help me discover the differences so

Re: Choosing a Python IDE. what is your Pythonish recommendation? I

2017-01-06 Thread Antonio Caminero Garcia
On Thursday, January 5, 2017 at 12:32:19 PM UTC-8, fpp wrote: > > On Thu, Jan 5, 2017 at 12:12 PM, Chris Clark > > wrote: > >> I want an IDE that I can use at work and home, linux and dare I say > >> windows. > >> Sublime, had to remove it from my work PC as it is not

Re: Python for WEB-page !?

2017-01-06 Thread Victor Porton
Ionut Predoiu wrote: > I am a beginner in programming language. > I want to know what version of Python I must to learn to use, beside of > basic language, because I want to integrate in my site 1 page in which > users to can made calculus based on my formulas already write behind (the > users

Re: Work between multiple processes

2017-01-06 Thread Irmen de Jong
On 4-1-2017 23:14, zxpat...@gmail.com wrote: > Hi everyone, > > I ran into a case that I need to create a work process of an application (Jython so has to call using java.exe) which will collect the data based on what main process indicates. > > (1) I tried multiprocessing package, no luck.

Pexpect

2017-01-06 Thread Iranna Mathapati
Hi Team, How to match latter(caps and small) ,numbers and # symbol in python pexpect. Thanks, Iranna M -- https://mail.python.org/mailman/listinfo/python-list

RE: Clickable hyperlinks

2017-01-06 Thread Deborah Swanson
Rhodri James wrote, on January 05, 2017 3:53 AM > > On 05/01/17 04:52, Deborah Swanson wrote: > > My original question was in fact whether there was a way to make > > clickable hyperlinks in a console. I was persuaded after about 10 > > replies that the answer was no, > > Then you were persuaded

Re: Choosing a Python IDE. what is your Pythonish recommendation? I

2017-01-06 Thread Antonio Caminero Garcia
On Thursday, January 5, 2017 at 9:51:17 AM UTC-8, ArnoB wrote: > On 02-01-17 12:38, Antonio Caminero Garcia wrote: > > Hello, I am having a hard time deciding what IDE or IDE-like code editor should I use. This can be overwhelming. > > > > So far, I have used Vim, Sublime, Atom, Eclipse with

RE: Clickable hyperlinks

2017-01-06 Thread Deborah Swanson
Terry Reedy wrote, on January 04, 2017 10:18 PM > > On 1/5/2017 12:11 AM, Deborah Swanson wrote: > > Terry Reedy wrote, on January 04, 2017 3:58 PM > > >> To have a string interpreted as a clickable link, you send the string to > >> software capable of creating a clickable link, plus the

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do

2017-01-06 Thread fpp
> On Thu, Jan 5, 2017 at 12:12 PM, Chris Clark > wrote: >> I want an IDE that I can use at work and home, linux and dare I say >> windows. >> Sublime, had to remove it from my work PC as it is not licensed. >> Atom, loved it until it slowed down. >> VIM, ok the best if you

Re: Python for WEB-page !?

2017-01-06 Thread Ionut Predoiu
Good morning, Thanks to all for feedback and advice. Because I am a beginner I will read more about versions of Python recommended by you. On the other side I am interested to know if exist some sites which have develop platform where can be use for free Python from browsers, without have it

[issue29185] test_distutils fails on Android API level 24

2017-01-06 Thread Xavier de Gaye
New submission from Xavier de Gaye: == ERROR: test_tarfile_vs_tar (distutils.tests.test_archive_util.ArchiveUtilTestCase) -- Traceback (most recent call last):

  1   2   3   >