[issue29138] No __hash__() inheritance warning with -Werror

2017-01-02 Thread Martin Panter
Martin Panter added the comment: Thanks, I will try to look at that some time -- stage: needs patch -> resolved status: open -> closed ___ Python tracker

RE: Cleaning up conditionals

2017-01-02 Thread Deborah Swanson
Gregory Ewing wrote, on January 02, 2017 7:58 PM > > Deborah Swanson wrote: > > Unless you know of, and are suggesting, a way to index a > sequence with > > strings instead of integers, so the code could remain > untouched with > > string indices when changes to the columns are made. > > I'm

Re: trouble with cmd.Cmd and prompting

2017-01-02 Thread Cameron Simpson
On 03Jan2017 00:14, Dennis Lee Bieber wrote: On Tue, 3 Jan 2017 11:33:15 +1100, Cameron Simpson declaimed the following: I'm using cmd.Cmd to write a little FTP-like command line to interface to a storage system of mine and encountering weird behaviour.

Re: learning and experimenting python.

2017-01-02 Thread Rustom Mody
On Tuesday, January 3, 2017 at 9:55:35 AM UTC+5:30, Ethan Furman wrote: > On 01/02/2017 09:53 AM, Wildman via Python-list wrote: > > [rude ascii art omitted] > > That is a completely inappropriate response. > > -- > ~Ethan~ Besides 1. Without fix-pitch the ASCII art is undecipherable. [I

[issue29130] Exit code 120 returned from Python unit test testing SystemExit

2017-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Having said all that, perhaps it would be reasonable to tolerate a missing > flush() method, and not treat this as an error. In all cases the flush() method is called unconditionally. I think it can be considered as mandatory part of the writer protocol.

[issue29138] No __hash__() inheritance warning with -Werror

2017-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue8627. -- nosy: +serhiy.storchaka resolution: -> duplicate superseder: -> Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c ___ Python tracker

[issue29137] Fix fpectl-induced ABI breakage

2017-01-02 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, cool - I didn't know that Debian built with fpectl enabled by default. In that case, +1 for: - low maintenance ABI and API compatibility shims that are kept around indefinitely (since they leaked into the limited API/stable ABI) but don't actually do

[issue29138] No __hash__() inheritance warning with -Werror

2017-01-02 Thread Martin Panter
New submission from Martin Panter: Normally there is a Python 3 compatibility warning emitted when a class is based on object, implements __eq__(), but does not define __hash__(): $ python -3 -c 'class C(object): __eq__ = lambda self, other: True' -c:1: DeprecationWarning: Overriding __eq__

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Antonio Caminero Garcia
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 Vim and its python developing setup, I know people who have been programming using Vim for almost 20 years and they

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Antonio Caminero Garcia
On Monday, January 2, 2017 at 5:57:51 PM UTC-8, Steve D'Aprano wrote: > On Mon, 2 Jan 2017 10:38 pm, 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. > > Linux is my IDE. > >

[issue28518] execute("begin immediate") throwing OperationalError

2017-01-02 Thread Ma Lin
Ma Lin added the comment: I'm trying to catch up with you. Does it mean, if I want execute VACUUM, I have to commit manually? Like this: if conn.in_transaction: conn.commit() conn.execute("vacuum") -- ___ Python tracker

Re: learning and experimenting python.

2017-01-02 Thread Ethan Furman
On 01/02/2017 09:53 AM, Wildman via Python-list wrote: [rude ascii art omitted] That is a completely inappropriate response. -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

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

2017-01-02 Thread Nick Coghlan
Nick Coghlan added the comment: Updated patch adds some tests showing that this change should also help with cases where SSH environment forwarding results in an unknown locale being requested in the server environment. -- Added file:

Re: Cleaning up conditionals

2017-01-02 Thread Gregory Ewing
Deborah Swanson wrote: Unless you know of, and are suggesting, a way to index a sequence with strings instead of integers, so the code could remain untouched with string indices when changes to the columns are made. I'm talking about this:

[issue29130] Exit code 120 returned from Python unit test testing SystemExit

2017-01-02 Thread Martin Panter
Martin Panter added the comment: David is right. The 120 code was added in Issue 5319, as a way of indicating a problem in the final stages of the interpreter exiting. The two conditions that trigger this are calling the flush() method on sys.stdout and sys.stderr. If you add a dummy flush()

[issue28864] Add devnull file-like object

2017-01-02 Thread Martin Panter
Martin Panter added the comment: Example where an implementation like Serhiy’s was not good enough: . In that case, the lack of flush() method causes a subtle problem. -- ___ Python tracker

[issue29130] Exit code 120 returned from Python unit test testing SystemExit

2017-01-02 Thread Xiang Zhang
Xiang Zhang added the comment: Behaviour changed in #5319. Add author Martin. -- nosy: +martin.panter, xiang.zhang ___ Python tracker ___

[issue29131] Calling printf from the cdll does not print the full string

2017-01-02 Thread Eryk Sun
Eryk Sun added the comment: > I am following the "Gray Hat Python - Python Programming for Hackers and > Reverse Engineers" >From what I've seen in Stack Overflow questions asked by people reading that >book, its ctypes code is generally of poor quality. It only works in 32-bit >Python 2

[RELEASED] Python 3.4.6rc1 and Python 3.5.3rc1 are now available

2017-01-02 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 and Python 3.5 release teams, I'm pleased to announce the availability of Python 3.4.6rc1 and Python 3.5.6rc1. Python 3.4 is now in "security fixes only" mode. This is the final stage of support for Python 3.4. Python 3.4

[issue29137] Fix fpectl-induced ABI breakage

2017-01-02 Thread Nathaniel Smith
Nathaniel Smith added the comment: > At that point, does it actually make sense to provide the shims? Or should we > instead just add the deprecation warnings and say "Don't use the > --with-fpectl option, as it doesn't work properly, and breaks ABI > compatibility for extension modules built

[issue29133] Minor inaccuracy in shlex.shlex punctuation_chars example

2017-01-02 Thread Evan
Evan added the comment: Sorry for not being more clear in the original report - the error is in the code, not in the output. The old behavior is punct=False, the new is punct=True. -- ___ Python tracker

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Steve D'Aprano
On Mon, 2 Jan 2017 10:38 pm, 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. Linux is my IDE. https://sanctum.geek.nz/arabesque/series/unix-as-ide/ I dislike the Unix-style Vim/Emacs text

[issue29131] Calling printf from the cdll does not print the full string

2017-01-02 Thread mike peremsky
mike peremsky added the comment: I appreciate the feedback, but as I had originally mentioned. I am following the "Gray Hat Python - Python Programming for Hackers and Reverse Engineers" book and was attempting to use Python 3 instead of Python 2 (as was used in the book). The cdll code is

[issue29137] Fix fpectl-induced ABI breakage

2017-01-02 Thread Nick Coghlan
Nick Coghlan added the comment: - 3.4 is already in security-fix only mode so we can safely ignore it for this purpose - 3.5.3 is likely to be the last general bugfix release of 3.5, so we can probably skip that as well - that would mean the ABI compability shims would only go in 3.6.1 and

[issue28870] Reduce stack consumption of PyObject_CallFunctionObjArgs() and like

2017-01-02 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.5, PyObject_CallFunctionObjArgs() calls objargs_mktuple() which uses Py_VA_COPY(countva, va) and creates a tuple. The tuple constructor uses a free list to reduce the cost of heap memory allocations. --

[issue28870] Reduce stack consumption of PyObject_CallFunctionObjArgs() and like

2017-01-02 Thread STINNER Victor
STINNER Victor added the comment: no_small_stack.patch: And now something completely different, a patch to remove the "small stack" alllocated on the C stack, always use the heap memory. FYI I created no_small_stack.patch from less_stack.patch. As expected, the stack usage is lower: *

[issue29131] Calling printf from the cdll does not print the full string

2017-01-02 Thread Eryk Sun
Eryk Sun added the comment: > from ctypes import * > msvcrt = cdll.msvcrt > message_string = "Hello World!\n" > msvcrt.printf("Testing: %s", message_string) Avoid using libraries as attributes of cdll and windll. They get cached, and in turn they cache function pointers. Thus all modules

[issue29131] Calling printf from the cdll does not print the full string

2017-01-02 Thread Eryk Sun
Changes by Eryk Sun : -- Removed message: http://bugs.python.org/msg284525 ___ Python tracker ___

[issue29131] Calling printf from the cdll does not print the full string

2017-01-02 Thread Eryk Sun
Eryk Sun added the comment: > from ctypes import * > msvcrt = cdll.msvcrt > message_string = "Hello World!\n" > msvcrt.printf("Testing: %s", message_string) Avoid using libraries as attributes of cdll and windll. They get cached, and in turn they cache function pointers. Thus all modules

[issue28870] Reduce stack consumption of PyObject_CallFunctionObjArgs() and like

2017-01-02 Thread STINNER Victor
STINNER Victor added the comment: testcapi_stacksize.patch: add _testcapi.pyobjectl_callfunctionobjargs_stacksize(), function used to measure the stack consumption. -- Added file: http://bugs.python.org/file46119/testcapi_stacksize.patch ___ Python

[issue29137] Fix fpectl-induced ABI breakage

2017-01-02 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list

[issue28839] _PyFunction_FastCallDict(): replace PyTuple_New() with PyMem_Malloc()

2017-01-02 Thread STINNER Victor
STINNER Victor added the comment: fastcalldict-4.patch: Rebased patch. kw1: Median +- std dev: [ref] 290 ns +- 3 ns -> [patch] 253 ns +- 21 ns: 1.14x faster (-13%) kw5: Median +- std dev: [ref] 438 ns +- 33 ns -> [patch] 394 ns +- 27 ns: 1.11x faster (-10%) kw10: Median +- std dev: [ref] 663

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Tim Johnson
* Antonio Caminero Garcia [170102 02:50]: <> > Now, I am thinking about giving a try to Visual Studio Code > Edition (take a look, it sounds good > https://marketplace.visualstudio.com/items?itemName=donjayamanne.python). > I need an editor for professional software

[issue28839] _PyFunction_FastCallDict(): replace PyTuple_New() with PyMem_Malloc()

2017-01-02 Thread STINNER Victor
STINNER Victor added the comment: I pushed the two obvious and safe optimization of fastcalldict-3.patch. -- ___ Python tracker ___

[issue28839] _PyFunction_FastCallDict(): replace PyTuple_New() with PyMem_Malloc()

2017-01-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f7cd3b6c9b1 by Victor Stinner in branch 'default': Issue #28839: Optimize function_call() https://hg.python.org/cpython/rev/5f7cd3b6c9b1 New changeset f9dd607dc04c by Victor Stinner in branch 'default': Optimize _PyFunction_FastCallDict() when

[issue27200] make doctest in CPython has failures

2017-01-02 Thread Berker Peksag
Berker Peksag added the comment: I agree with Ezio. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29135] run_proces logs the command without escaping parmaeters such that the coammns logged are not valid

2017-01-02 Thread R. David Murray
Changes by R. David Murray : -- resolution: not a bug -> third party stage: -> resolved ___ Python tracker ___

trouble with cmd.Cmd and prompting

2017-01-02 Thread Cameron Simpson
I'm using cmd.Cmd to write a little FTP-like command line to interface to a storage system of mine and encountering weird behaviour. When I enter a command the next prompt appears _before_ the associated operation runs, or so it appears. Look at this: [~/hg/css-venti(hg:venti)]fleet*> dev

[issue29013] zipfile: inconsistent doc for ZIP64 file size

2017-01-02 Thread Berker Peksag
Berker Peksag added the comment: Right, that's my fault. Apparently I missed the "[...] zipfile will create [...]" part :) What do you think about Monte's suggested changes Serhiy? Should we just revert 4685cd33087b (1) or do both (1) and (2)? -- stage: -> needs patch

RE: Cleaning up conditionals

2017-01-02 Thread Deborah Swanson
Gregory Ewing wrote, on Monday, January 02, 2017 3:28 PM > > Deborah Swanson wrote: > > flds = len(ls[0]) > > cl, ur, d1, de, lo, st, mi, ki, re, da, br, no, yn, ma, ar = > > range(0,flds) > > You might like to consider converting the row into a > namedtuple, then you could refer to the fields

[issue28839] _PyFunction_FastCallDict(): replace PyTuple_New() with PyMem_Malloc()

2017-01-02 Thread STINNER Victor
STINNER Victor added the comment: Quick update on the fastcall work. > I pushed th echange b9c9691c72c5 to replace PyObject_CallFunctionObjArgs() > with _PyObject_CallNoArg() or _PyObject_CallArg1(). These functions are > simpler and don't allocate memory on the C stack. Using

[issue15812] inspect.getframeinfo() cannot show first line

2017-01-02 Thread Berker Peksag
Berker Peksag added the comment: You're right. Thanks for the review, Serhiy! -- ___ Python tracker ___ ___

[issue15812] inspect.getframeinfo() cannot show first line

2017-01-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b6bdd6cd3f8 by Berker Peksag in branch '3.5': Issue #15812: Delete redundant max(start, 0) https://hg.python.org/cpython/rev/2b6bdd6cd3f8 New changeset 7cbcee0c53e3 by Berker Peksag in branch '3.6': Issue #15812: Merge from 3.5

[issue29035] regrtest: simplify regex to match test names for the --fromfile option

2017-01-02 Thread STINNER Victor
STINNER Victor added the comment: > I don't understand the use case of it ;) When I modify a codec or something related to text codecs, I would like to run all codec tests, not the fully Python test suite. So I use "ls Lib/test/test_*codec*py", the list is quite list, it's annoying to have to

[issue29035] regrtest: simplify regex to match test names for the --fromfile option

2017-01-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9fe5bee892b by Victor Stinner in branch 'default': Issue #29035: Simplify a regex in libregrtest https://hg.python.org/cpython/rev/a9fe5bee892b -- nosy: +python-dev ___ Python tracker

[issue29012] __bases__ is a tuple (possibly empty or a singleton)

2017-01-02 Thread Berker Peksag
Berker Peksag added the comment: Good point, Serhiy. Thanks for the patch, Jim. I've now removed the "possible a singleton" part. -- ___ Python tracker

[issue29012] __bases__ is a tuple (possibly empty or a singleton)

2017-01-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1aba7cbbcc27 by Berker Peksag in branch '3.5': Issue #29012: Remove another outdated information https://hg.python.org/cpython/rev/1aba7cbbcc27 New changeset 7ef5b02b228a by Berker Peksag in branch '3.6': Issue #29012: Merge from 3.5

[issue29137] Fix fpectl-induced ABI breakage

2017-01-02 Thread Nathaniel Smith
New submission from Nathaniel Smith: It turns out that CPython built with --with-fpectl has a different ABI than CPython built without --with-fpectl (which is the default). Specifically, if you have an extension module built against a --with-fpectl CPython, and it uses the

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Antonio Caminero Garcia
On Monday, January 2, 2017 at 8:24:29 AM UTC-8, Michael Torrie wrote: > On 01/02/2017 04:38 AM, Antonio Caminero Garcia wrote: > > The problem with Vim is the learning curve, so I know the very basic > > stuff, but obviously not enough for coding and I do not have time to > > learn it, it is a

Re: Cleaning up conditionals

2017-01-02 Thread Gregory Ewing
Deborah Swanson wrote: flds = len(ls[0]) cl, ur, d1, de, lo, st, mi, ki, re, da, br, no, yn, ma, ar = range(0,flds) You might like to consider converting the row into a namedtuple, then you could refer to the fields using attribute names instead of indexes. You could even use the header row

RE: Cleaning up conditionals

2017-01-02 Thread Deborah Swanson
Dennis Lee Bieber wrote on January 02, 2017 8:30 AM > > On Sun, 1 Jan 2017 18:30:03 -0800, "Deborah Swanson" > declaimed the following: > > Out of curiosity -- don't those listings have street > addresses? There must be lots of "2 br" units in the city. >

[issue29012] __bases__ is a tuple (possibly empty or a singleton)

2017-01-02 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Yes, I agree with that it seems redundant after the change. I'm attaching another small patch based on the committed one to trim that off. -- Added file: http://bugs.python.org/file46117/fixbasesdoc2.patch

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Juan C.
On Mon, Jan 2, 2017 at 9:38 AM, Antonio Caminero Garcia < tonycam...@gmail.com> wrote: > The thing with the from-the-scratch full featured IDEs (Eclipse, IntelliJ, Pycharm) is that they look like a space craft dashboard and that unwarranted resources consumption and the unnecessary icons. I want

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Cameron Simpson
On 02Jan2017 21:30, Matt Wheeler wrote: On Mon, 2 Jan 2017 at 16:24 Michael Torrie wrote: Really, the basic stuff is enough to be very productive in vim. In fact just knowing how to save and quit is half the battle! A little cheat sheet for vim by your

[issue29136] Add OP_NO_TLSv1_3

2017-01-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think that's fine for 2.7. On Mon, Jan 2, 2017, at 13:07, Christian Heimes wrote: > > New submission from Christian Heimes: > > OpenSSL 1.1.1 is going to provide TLS 1.3. The preferred protocols > PROTOCOL_TLS (old name PROTOCOL_SSLv23),

[issue29135] run_proces logs the command without escaping parmaeters such that the coammns logged are not valid

2017-01-02 Thread William Gianopoulos
William Gianopoulos added the comment: It seems it is part of the Mozilla build system. I closed this issue. -- resolution: -> not a bug status: open -> closed ___ Python tracker

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Matt Wheeler
On Mon, 2 Jan 2017 at 16:24 Michael Torrie wrote: > Really, the basic stuff is enough to be very productive in vim. In fact > just knowing how to save and quit is half the battle! A little cheat > sheet for vim by your keyboard would be plenty I think. If all you knew > was

[issue29135] run_proces logs the command without escaping parmaeters such that the coammns logged are not valid

2017-01-02 Thread William Gianopoulos
William Gianopoulos added the comment: I would like to keep this open until I figure this out so I can provide a pointer to where the real issue is being tracked. I should have time to do that tomorrow. SOunds like this is part of some third-party add-on python library that is normally

[issue29135] run_proces logs the command without escaping parmaeters such that the coammns logged are not valid

2017-01-02 Thread William Gianopoulos
William Gianopoulos added the comment: OK i t appears it might be a third party python utility library. I will try to trak this down and report it there and close this issue once i sort it out. On Mon, Jan 2, 2017 at 4:07 PM, William Gianopoulos wrote: > > William

[issue29136] Add OP_NO_TLSv1_3

2017-01-02 Thread Christian Heimes
New submission from Christian Heimes: OpenSSL 1.1.1 is going to provide TLS 1.3. The preferred protocols PROTOCOL_TLS (old name PROTOCOL_SSLv23), PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER are going to have TLS 1.3 enabled by default. In order to disable TLS 1.3, let's add OP_NO_TLSv1_3 to

[issue29135] run_proces logs the command without escaping parmaeters such that the coammns logged are not valid

2017-01-02 Thread William Gianopoulos
William Gianopoulos added the comment: well i could be screwed up perhaps it is something provided in the mozilla python environment i was going by the fact that google searches on python run-process returned things, including other reported issues, that made me think it was not. On Mon, Jan 2,

[issue29135] run_proces logs the command without escaping parmaeters such that the coammns logged are not valid

2017-01-02 Thread R. David Murray
R. David Murray added the comment: What is run_process? I'm not getting any hits from grep on the standard library. -- nosy: +r.david.murray ___ Python tracker

[issue28945] get_boundary (and get_filename) invokes unquote twice

2017-01-02 Thread bpoaugust
bpoaugust added the comment: The patch is incomplete. There is another unquote call: 336 return unquote(text) -- ___ Python tracker ___

[issue29020] collapse_rfc2231_value has inconsistent unquoting

2017-01-02 Thread bpoaugust
bpoaugust added the comment: If there are concerns about 3rd party code relying on the current behaviour of the function, then just create a new function without the unquoting, and deprecate the original function. The existing function does not always unquote, so any code which relies on it

Re: learning and experimenting python.

2017-01-02 Thread Ian Kelly
On Jan 2, 2017 10:57 AM, "Wildman via Python-list" wrote: On Sun, 01 Jan 2017 23:02:34 -0800, einstein1410 wrote: > I really don't care the person like you. > Leave my posts, if don't like it. > Why wasting your as well as my time. > Just get lost man, or shut up.

[issue27200] make doctest in CPython has failures

2017-01-02 Thread Ezio Melotti
Ezio Melotti added the comment: I left a few comments on rietveld, In general, if making the doctest pass entails adding superfluous code (e.g. sorted(), , #doctest: +SKIP (if visible), setups/teardowns, or even whole files) or removing details that might be useful (ids or filenames in

[issue29053] Implement >From_ decoding on input from mbox

2017-01-02 Thread bpoaugust
bpoaugust added the comment: The patch can be simplified by just looking for b'\n' in the last 6 chars, and caching from b'\n' if found. This would mean more file seeking in exchange for less buffer matching. -- ___ Python tracker

[issue29135] run_proces logs the command without escaping parmaeters such that the coammns logged are not valid

2017-01-02 Thread William Gianopoulos
New submission from William Gianopoulos: So, the arguments to run_process are not escaped when logged such that the logged command is un-parsable. The following call: self.run_process(['notify-send', '--app-name', 'Mozilla Build System', 'Mozilla Build System', msg]) where msg='Build

[issue29134] contextlib doc bug

2017-01-02 Thread YoSTEALTH
YoSTEALTH added the comment: typo: def ContextBase: to class ContextBase: -- ___ Python tracker ___ ___

[issue29134] contextlib doc bug

2017-01-02 Thread YoSTEALTH
YoSTEALTH added the comment: @SilentGhost You are right, I see it now! If this is the case maybe "ContextBaseClass" should be changed to "UserDefinedContextClass" (or something...) having "Base" in the class name was confusing, since module "io" has IOBase class that refer to its "base class"

[issue29134] contextlib doc bug

2017-01-02 Thread Marco Buttu
Marco Buttu added the comment: Going a bit OT, in the contextlib doc there are two examples that have both normal code and shell code in the same code block. In this way we loose the prompt syntax highlight, and the code block can also confuse the reader. In the patch attached the two

[issue29054] pty.py: pty.spawn hangs after client disconnect over nc (netcat)

2017-01-02 Thread Cornelius Diekmann
Cornelius Diekmann added the comment: Status change: I proposed a generic test suite for pty.spawn() in issue29070. Once we have agreed on the current behavior of pty.spawn() and the test suite is merged, I would like to come back to this issue which requests for a change in behavior of

RE: Cleaning up conditionals

2017-01-02 Thread Deborah Swanson
Dennis Lee Bieber wrote, on January 02, 2017 8:30 AM: > > On Sun, 1 Jan 2017 18:30:03 -0800, "Deborah Swanson" > declaimed the following: > > >Dennis Lee Bieber wrote, on Sunday, January 01, 2017 6:07 PM > >> > >> > >> l1 2 br, Elk Plains12-26

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2017-01-02 Thread Cornelius Diekmann
Cornelius Diekmann added the comment: I just tested pty.spawn() on OS X 10.6.8 and FreeBSD 11 and it also hangs. It works on Linux. Your patch solves the problem. I proposed a test suite for pty.spawn() in issue29070. The test suite currently only exposes the problem, as suggested by Martin.

[issue29070] Integration tests for pty.spawn on Linux and all other platforms

2017-01-02 Thread Cornelius Diekmann
Cornelius Diekmann added the comment: I did a larger update to my proposed patch. I read the pty man pages and posix standard and designed a test suite which documents the expected behavior of the pty module. The test suite is biased towards my Linux system, but I respect the posix standard.

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Irmen de Jong
On 2-1-2017 12:38, Antonio Caminero Garcia wrote: > The thing with the from-the-scratch full featured IDEs (Eclipse, IntelliJ, > Pycharm) > is that they look like a space craft dashboard and that unwarranted resources > consumption and the unnecessary icons. I want my IDE to be minimalistic but

Re: learning and experimenting python.

2017-01-02 Thread Wildman via Python-list
On Sun, 01 Jan 2017 23:02:34 -0800, einstein1410 wrote: > I really don't care the person like you. > Leave my posts, if don't like it. > Why wasting your as well as my time. > Just get lost man, or shut up. _ _ |_| |_| | | /^^^\

[issue29134] contextlib doc bug

2017-01-02 Thread SilentGhost
SilentGhost added the comment: ContextBaseClass is meant to represent a user-defined class that is a parent of mycontext. -- nosy: +SilentGhost ___ Python tracker

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread justin walters
On Mon, Jan 2, 2017 at 3:38 AM, Antonio Caminero Garcia < tonycam...@gmail.com> 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 PyDev, Pycharm, > IntelliJ with

Re: Django broken pipe error

2017-01-02 Thread justin walters
On Mon, Jan 2, 2017 at 6:14 AM, wrote: > > Thanks a lot Justin, > > The problem was solved when I employed standard Framework methods for > creation of new database object: > > in JS: > var trendModel = new App.TrendModel(); > trendModel.set("phrase", search_phrase);

[issue29133] Minor inaccuracy in shlex.shlex punctuation_chars example

2017-01-02 Thread Marco Buttu
Marco Buttu added the comment: Thank you. The patch fixes it and makes the example under doctest. -- keywords: +patch nosy: +marco.buttu Added file: http://bugs.python.org/file46114/issue29133.patch ___ Python tracker

[issue29134] contextlib doc bug

2017-01-02 Thread Chris Warrick
Changes by Chris Warrick : -- nosy: +Kwpolska ___ Python tracker ___ ___ Python-bugs-list

[issue29134] contextlib doc bug

2017-01-02 Thread YoSTEALTH
New submission from YoSTEALTH: Link: https://docs.python.org/3/library/contextlib.html#contextlib.ContextDecorator "from contextlib import ContextDecorator class mycontext(ContextBaseClass, ContextDecorator):" "ContextBaseClass" is referenced but its no where to be found in source.

[issue29128] No way to instsall win32com on python 3.6

2017-01-02 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Michael Torrie
On 01/02/2017 04:38 AM, Antonio Caminero Garcia wrote: > The problem with Vim is the learning curve, so I know the very basic > stuff, but obviously not enough for coding and I do not have time to > learn it, it is a pity because there are awesome plugins that turns > Vim into a lightweight

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

2017-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a fix. -- keywords: +patch Added file: http://bugs.python.org/file46113/tix_library_shell_injection.patch ___ Python tracker

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

2017-01-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___

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

2017-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agreed that this security issue has low severity. Only applications that use Tix are vulnerable, and this is very small number of applications. -- ___ Python tracker

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

2017-01-02 Thread Christian Heimes
Christian Heimes added the comment: yeah, sounds totally fine to me. It's a low risk change and the issue has a small attack surface. I set the priority to release blocker to draw your attention. -- ___ Python tracker

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Marc Brooks
I'd recommend you be willing to put in the time and effort to learn the tools you want to use, if you want to do professional software development. Pick one, use it for a month (at least 100+ hours of hands on keyboard coding). Sublime, Vi are great for Python, since Python doesn't require as

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

2017-01-02 Thread Larry Hastings
Larry Hastings added the comment: This code hasn't changed in years. So while I believe it's a security bug and should be fixed, I don't know if I agree it's a bad enough security bug to stop Python 3.5.3rc1, which is literally in the middle of the release process. I'm guessing this is

[issue29132] shlex.shlex with punctuation_chars and posix doesn't handle punctuation next to quotes

2017-01-02 Thread Evan
Evan added the comment: I've attached a simplistic patch which fixes the problem. I suspect a better fix might be to shuffle the elif branches around so the extra condition isn't necessary. Vinay, what are your thoughts? -- keywords: +patch Added file:

[issue29124] Freeze fails to compile on windows

2017-01-02 Thread Steve Dower
Steve Dower added the comment: Ah, I was thinking of platform.machine(). -- ___ Python tracker ___ ___

Re: Django broken pipe error

2017-01-02 Thread dr . roman . graf
On Monday, December 12, 2016 at 6:38:39 PM UTC+1, justin walters wrote: > On Mon, Dec 12, 2016 at 7:27 AM, roma wrote: > > > Thanks Justin, > > > > I believe, the whole database story has no influence on the broken pipe > > error. I've commented out the whole block and

Re: Cleaning up conditionals

2017-01-02 Thread Antoon Pardon
Op 31-12-16 om 01:26 schreef Deborah Swanson: >> On 31 December 2016 at 10:00, Deborah Swanson >> wrote: >>> Oops, indentation was messed up when I copied it into the email. >> The indentation of your latest message looks completely >> broken now, you can see it

[issue29131] Calling printf from the cdll does not print the full string

2017-01-02 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

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

2017-01-02 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +benjamin.peterson, christian.heimes, larry, ned.deily priority: normal -> release blocker ___ Python tracker

[issue28595] shlex.shlex should not augment wordchars

2017-01-02 Thread Evan
Evan added the comment: I've attached a more complete patch. This takes the conservative approach of retaining all functionality of 3.6 and treating this as a new feature for 3.7. I don't think this is suitable for 3.6.1 given this new behavior contradicts what is currently written in the

[issue29133] Minor inaccuracy in shlex.shlex punctuation_chars example

2017-01-02 Thread Evan
New submission from Evan: https://docs.python.org/3/library/shlex.html#improved-compatibility-with-shells The code sample here does not match the output - the first line is labelled 'New' and the second line 'Old'. -- assignee: docs@python components: Documentation messages: 284481

[issue29132] shlex.shlex with punctuation_chars and posix doesn't handle punctuation next to quotes

2017-01-02 Thread Evan
New submission from Evan: When both punctuation_chars and posix are used, any punctuation directly next to quoted characters is interpreted as a single token. >>> from shlex import shlex >>> list(shlex('>"a"', posix=True)) ['>', 'a'] >>> list(shlex('>"a"', punctuation_chars=True)) ['>', '"a"']

  1   2   >