[issue29565] Still broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2017-02-22 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29618] Making a Tuple or Dict with Callable[ ..., xxx ] gives error

2017-02-22 Thread Pauli Salmenrinne
Pauli Salmenrinne added the comment: I tried to reproduce the issue with 3.5 branch from the current github, and the issue seems to be fixed. Closing this as fixed, sorry for the trouble. -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue29618] Making a Tuple or Dict with Callable[ ..., xxx ] gives error

2017-02-22 Thread Pauli Sundberg
New submission from Pauli Sundberg: Hi all. I tried asking this on IRC channel, but ended up with no answear. Simple example: from typing import Dict, Callable CmdFun= Callable[ ... , int ] CmdFull = Dict[ str, CmdFun ] Gives error: pauli@HPauli-U1604 ~ % python3 /tmp/silly.py

[issue10938] Provide links to system specific strftime/ptime docs

2017-02-22 Thread Xiang Zhang
Xiang Zhang added the comment: I agree with Berker and Jim here. I think the current doc is clear enough so mark this as rejected. :-( -- nosy: +xiang.zhang resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-22 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +196 ___ Python tracker ___ ___

[issue29598] Write unit tests for pdb module

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better to move all tests for internal functions in separate TestCase class. It should be clear that this is testing of implementation details and we are free to change tests when change the implementation. There are some tests for

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-22 Thread Christian Heimes
Christian Heimes added the comment: Thanks Chi Hsuan Yen, I have created a new PR that replaces mkstemp() with tmpfile(). -- ___ Python tracker ___

[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-02-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +197 ___ Python tracker ___ ___ Python-bugs-list

[issue26789] Please do not log during shutdown

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are no guaranties. But in recent Python versions the order of finalising is more predicable. It is hard to reproduce a case when some builtins or sys member is not available (with some exceptions). The order of clearing (see PyImport_Cleanup() in

[issue29532] functools.partial is not compatible between 2.7 and 3.5

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5010a77a4da76d8d3fd861a63a7f1ce8f0e9c520 by GitHub in branch '3.5': [3.5] bpo-29532: Altering a kwarg dictionary passed to functools.partial() no longer affects a partial object after creation. (#222)

[issue29532] functools.partial is not compatible between 2.7 and 3.5

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

[issue29598] Write unit tests for pdb module

2017-02-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +inada.naoki ___ Python tracker ___ ___

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-22 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +198 ___ Python tracker ___ ___

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-22 Thread STINNER Victor
STINNER Victor added the comment: I created https://github.com/python/cpython/pull/237 using tmpfile(). The patch is simpler than my previous PR using Python tempfile. Oh... I didn't see that Christian wrote almost the same change 20 min before me :-D --

[issue29549] Improve docstring for str.index

2017-02-22 Thread Sanyam Khurana
Sanyam Khurana added the comment: Mariatta, I apologize for this. I completely missed to see that this was already assigned to someone else. I've withdrawn my PR. Thanks. -- nosy: +CuriousLearner ___ Python tracker

[issue26213] Document BUILD_*_UNPACK opcodes

2017-02-22 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-22 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Is tmpfile() available on Android? Yes. Just tried it with Android NDK r13 with clang and API 21 (Android 5.0). Here's the source code test.c: #include int main() { FILE *fp = NULL; char c = '\0'; fp = tmpfile(); fprintf(fp, "123\n");

[issue29549] Improve docstring for str.index

2017-02-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: CuriousLearner, I see that you have PRs against this issue. The issue is currently assigned to Lisa. I respectfully request that you choose a different issue to work on and to withdraw your pull request. Please choose an issue that is not currently assigned

[issue29603] More informative Queue class: new method that returns number of unfinished tasks

2017-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > And even when Queue.unfinished gives wrong (outdated) information, > it can lead to creation one new thread that is not really required > at the moment. That is not a big mistake, I suppose (comparing to > creation all N threads during placing first N

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-02-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang versions: -Python 3.3, Python 3.4 ___ Python tracker ___

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-02-22 Thread Mba
New submission from Mba: ino_t is of type 'unsigned long' or 'unsigned long long'. Casting it to signed type means that negative values are incorrectly returned for large inodes. -- components: Library (Lib) messages: 288355 nosy: mba priority: normal severity: normal status: open

[issue28911] Clarify the behaviour of assert_called_once_with

2017-02-22 Thread Arne de Laat
Arne de Laat added the comment: *ping* Is this patch acceptable as is? Perhaps a new issue can be made for a method to check at most one call with a specific signature i.e. `assert_one_call_with`. -- ___ Python tracker

[issue26213] Document BUILD_*_UNPACK opcodes

2017-02-22 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- pull_requests: +200 ___ Python tracker ___ ___

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-02-22 Thread Mba
Changes by Mba : -- components: -Library (Lib) ___ Python tracker ___ ___

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2017-02-22 Thread kernc
New submission from kernc: If any of the objects in sys.modules is a module-like object that performs some additional imports in its __getattribute__ (as appropriate) handler, the following simple unit test test case: import unittest import warnings ... # Ensure one of the

[issue29621] telnetlib.Telnet.write gives confusing error message when a string is passed in

2017-02-22 Thread John Hagen
New submission from John Hagen: I was recently helping someone learn Python 3 from Python 2 and they were confused by error resulting from the following easy-to-make mistake: import telnetlib tn = telnetlib.Telnet('localhost') tn.write('hello') Traceback (most recent call last): File

[issue28810] Document bytecode changes in 3.6

2017-02-22 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- pull_requests: +201 ___ Python tracker ___ ___

[issue28810] Document bytecode changes in 3.6

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patches Ivan. Feel free to rewrite my patch, I'm sure it uses poor English. -- dependencies: +Document BUILD_*_UNPACK opcodes ___ Python tracker

[issue29546] A more helpful ImportError message

2017-02-22 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28911] Clarify the behaviour of assert_called_once_with

2017-02-22 Thread STINNER Victor
STINNER Victor added the comment: Can you please try to write a pull request? https://docs.python.org/devguide/pullrequest.html -- ___ Python tracker ___

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread foxfluff
foxfluff added the comment: David: You are correct that the goal is to handle CSVs with duplicate headers, and that the main intention is to have some of the behavior of DictReader without the destruction of data (such as the auto population of field names as you stated). It is not the

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only)

2017-02-22 Thread Will Pittman
Changes by Will Pittman : -- title: colorsys.rgb_to_hsv always returns saturation as 0 (python2.7.13 only) -> colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only) ___ Python tracker

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only)

2017-02-22 Thread Mark Dickinson
Mark Dickinson added the comment: The arguments to rgb_to_hsv are supposed to be floating-point numbers in the range 0.0 to 1.0. That's documented here: https://docs.python.org/2/library/colorsys.html > Coordinates in all of these color spaces are floating point values. In the > YIQ space,

[issue29603] More informative Queue class: new method that returns number of unfinished tasks

2017-02-22 Thread slytomcat
slytomcat added the comment: I've closed pull request on GitHub. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29624] Python 3.5.3 x86 web installer cannot install launcher

2017-02-22 Thread Steve Dower
New submission from Steve Dower: For some reason, the install bootstrapper for 3.5.3 x86 embedded the wrong hash value for launcher.msi. As a result, it will fail to download the file and install will be aborted. The workaround is to deselect the launcher from being installed, and use the

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-22 Thread paul j3
paul j3 added the comment: http://bugs.python.org/issue22047 "argparse improperly prints mutually exclusive options when they are in a group" is similar. - There are two issues: - the nesting of mutually exclusive groups - the formatting of the usage in such cases. Both have come up

[issue29623] configparser.ConfigParser.read() does not accept Pathlib path as a single argument.

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue27200] make doctest in CPython has failures

2017-02-22 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +202 ___ Python tracker ___ ___

[issue28686] py.exe ignored PATH when using python3 shebang

2017-02-22 Thread Vinay Sajip
Changes by Vinay Sajip : -- nosy: +vinay.sajip ___ Python tracker ___ ___

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-22 Thread Christian Heimes
Christian Heimes added the comment: I think we can live with the fact some tmpfile() might write an error message if the system is broken. If user's tmp is not writeable, the user has more serious issues than a write to stdout inside curses module. --

[issue29616] input() after restarting causes bug

2017-02-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: What OS are you using? > 6. Bug. This does not tell me what you think the bug is. > sometimes whatever you pressed in step 3 disappears, When Shell is restarted by whatever means, any pending input, whether in response to '>>>' or user input(), is cancelled

[issue22273] abort when passing certain structs by value using ctypes

2017-02-22 Thread Eryk Sun
Eryk Sun added the comment: Notes on fix-22273-02.diff: In the second pass over _fields_, you can (should) use dict->length and dict->proto for array types instead of the _length_ and _type_ attributes. When reassigning stgdict->ffi_type_pointer.elements, if use_broken_old_ctypes_semantics

[issue22549] bug in accessing bytes, inconsistent with normal strings and python 2.7

2017-02-22 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +203 ___ Python tracker ___ ___

[issue29623] configparser.ConfigParser.read() does not accept Pathlib path as a single argument.

2017-02-22 Thread David Ellis
Changes by David Ellis : -- pull_requests: +205 ___ Python tracker ___ ___

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only)

2017-02-22 Thread Will Pittman
Will Pittman added the comment: oh, thank you very much and sorry for my negligence! -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29623] configparser.ConfigParser.read() does not accept Pathlib path as a single argument.

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review ___ Python tracker ___ ___

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

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +210 ___ Python tracker ___ ___

[issue29626] Issue with spacing in argparse module while using help

2017-02-22 Thread Falguniben Jhaveri
New submission from Falguniben Jhaveri: When I use argparse the optional arguments with character "-p" and "-s" has improper spacing while using help/usage command. Sample out put from argparse module: usage: cli node list [-h] [-p] [-o] Lists nodes in your current project. optional

[issue22594] Add a link to the regex module in re documentation

2017-02-22 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +204 ___ Python tracker ___ ___

[issue29098] document minimum sqlite version

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- dependencies: +sqlite3: remove sqlite3_stmt_readonly() type: -> enhancement versions: +Python 3.7 ___ Python tracker

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-22 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker ___ ___

[issue28814] Deprecation notice on inspect.getargvalues() is incorrect

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +206 ___ Python tracker ___ ___

[issue20438] inspect: Deprecate getfullargspec?

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +207 ___ Python tracker ___ ___

[issue20438] inspect: Deprecate getfullargspec?

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +209 ___ Python tracker ___ ___

[issue28814] Deprecation notice on inspect.getargvalues() is incorrect

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +208 ___ Python tracker ___ ___

[issue29355] sqlite3: remove sqlite3_stmt_readonly()

2017-02-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Ma. > We can use the old way in here, the old way is even better IMO. What do you mean by the old way? The use of switch statement? -- dependencies: +execute("begin immediate") throwing OperationalError

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7.13 only)

2017-02-22 Thread Will Pittman
Will Pittman added the comment: The bug appears to be caused by the difference in division symbols between python3 vs python2. The issue appears to be resolved if you add the following line to the `/usr/lib/python2.7.13/colorsys.py` module (or if all arguments are converted to floats). from

[issue28129] assertion failures in ctypes

2017-02-22 Thread Vinay Sajip
Changes by Vinay Sajip : -- nosy: +vinay.sajip ___ Python tracker ___ ___

[issue29623] configparser.ConfigParser.read() does not accept Pathlib path as a single argument.

2017-02-22 Thread David Ellis
New submission from David Ellis: Trying to use configparser.ConfigParser.read on a pathlib object results in a TypeError. If supplied in a list it works as expected. Repro: >>> import pathlib, configparser >>> configparser.ConfigParser().read(pathlib.Path('some.ini')) TypeError:

[issue29603] More informative Queue class: new method that returns number of unfinished tasks

2017-02-22 Thread slytomcat
slytomcat added the comment: I can't fully agree with this: >Queue objects are primarily about managing a queue of inputs. >Monitoring and managing consumers is another (mostly orthogonal) realm. Monitoring of consumers is already added via task_done() and join() methods. At least this two

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7.13 only)

2017-02-22 Thread Will Pittman
New submission from Will Pittman: colorsys.rgb_to_hsv appears to be broken on python2.7.13 (on archlinux). Saturation is always reported as 0. ex: import colorsys rgb_to_hsv( 127, 116, 18 ) >>> (0.1, 0, 127) -- messages: 288380 nosy: Will Pittman priority: normal

[issue29616] input() after restarting causes bug

2017-02-22 Thread Juan
Juan added the comment: I am using Windows 10 64-bit. >> sometimes whatever you pressed in step 3 disappears, > > When Shell is restarted by whatever means, any pending input, whether in > response to '>>>' or user input(), is cancelled and > *should* disappear and not be left to look as if it

[issue29627] configparser.ConfigParser.read() has undocumented/unexpected behaviour when given a bytestring path.

2017-02-22 Thread David Ellis
New submission from David Ellis: Related: https://github.com/python/cpython/pull/242 https://bugs.python.org/issue29623 In the discussion over my PR for bpo-29623 it became clear that bytestring paths were also unsupported and it was suggested that that should be a separate issue (currently

[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-02-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: aiosmtpd is coming along nicely: http://aiosmtpd.readthedocs.io/en/latest/ We'll soon have a 1.0 release. Still, I don't think it's worth pulling this into the stdlib. But we could silently deprecate it and point to aiosmtpd in the docs. --

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Serhiy, David, and Inada Marking this as closed. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue29594] implementation of __or__ in enum.auto

2017-02-22 Thread Ethan Furman
Ethan Furman added the comment: I also think using leading underscores is a better way to signal that a particular value is "weird". -- ___ Python tracker

[issue15657] Error in Python 3 docs for PyMethodDef

2017-02-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think this bug has been fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29594] implementation of __or__ in enum.auto

2017-02-22 Thread Ethan Furman
Ethan Furman added the comment: @Julian: Giving flag combinations their own name can be useful. For example, instead of seeing Color.GREEN|RED one can see Color.YELLOW . @Marc: I'm not convinced this is a needed change as it doesn't seem to be a common method, nor one that cannot be easily

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The manpage of tmpfile contains the note: POSIX.1-2001 specifies: an error message may be written to stdout if the stream cannot be opened. Did you tested tmpfile() with readonly temporary files directory or overfull file system? --

[issue29616] input() after restarting causes bug

2017-02-22 Thread Juan
Juan added the comment: What I meant was: 1. Open a file whose content is "input()" with IDLE 2. F5 3. Type something but without pressing Enter. 4. Come back to the script (with input() still responding to keystrokes on the input line) 5. F5 6. Bug. (Results vary even on the same machine by

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread R. David Murray
R. David Murray added the comment: Inada: I believe the goal is to be able to handle CSV files that have columns with duplicate names. However, in that case one could just use the regular reader class. The only advantage TableReader gives over the regular reader that I can see is that it

[issue29616] input() after restarting causes bug

2017-02-22 Thread Juan
Juan added the comment: *doesn't respond to commands. I mean something similar to (not equal) "while(1): pass") -- ___ Python tracker ___

[issue29355] sqlite3: remove sqlite3_stmt_readonly()

2017-02-22 Thread Ma Lin
Ma Lin added the comment: The "old way" is not using sqlite3_stmt_readonly(). Before 3.6.0, we only count rowcount for INSERT, UPDATE, DELETE, REPLACE: https://hg.python.org/cpython/file/3.5/Modules/_sqlite/cursor.c#l689 These four statements can be representd by is_dml in PR 245:

[issue29569] threading.Timer class: Continue periodical execution till action returns True

2017-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Ideally, proposed API expansions should be based on a demonstrated user need. This API is over decade old and I don't recall a single user request for this functionality. A quick scan of StackOverflow didn't turn-up any questions or answers on the

[issue29463] Add `docstring` field to AST nodes

2017-02-22 Thread INADA Naoki
INADA Naoki added the comment: OK, let's continue on #29522, and close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29463] Add `docstring` field to AST nodes

2017-02-22 Thread INADA Naoki
INADA Naoki added the comment: s/ #29522 / #29622 / -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29628] struct objects can no longer be pickled

2017-02-22 Thread mesheb82
New submission from mesheb82: When I run the following code on Windows/Linux for < Python 3.6, I have no problems. When I run in Python 3.6.0, I get the subsequent traceback. I checked the release notes and only saw the following struct module note related to half-floats: Issue #11734 from

[issue27788] platform module's version number doesn't match its docstring

2017-02-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.7 ___ Python tracker ___ ___

[issue22594] Add a link to the regex module in re documentation

2017-02-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue29629] rgb_to_hls in colorsys.py

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 0.8334 * 360 is equivalent to 300. -- ___ Python tracker ___

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-22 Thread paul j3
paul j3 added the comment: I played around with the patch 117. I was wrong in thinking this was another case of excess brackets being wrongly purged. The fix works by adding ending ] that were missing the original. And it does add a symmetry to the code. But it is easy to construct a set

[issue29616] input() after restarting causes bug

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The implementation of standard input/output in IDLE was significantly changed in recent years. -- ___ Python tracker

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-22 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Duplicating my comment of 29463 who was in a race condition with this issue: thank you for your work on the AST, I know many developers are looking forward to improvement and stabilisation with the hope of having it stable (and documented) in the

[issue29463] Add `docstring` field to AST nodes

2017-02-22 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: thank you for your work on the AST, I know many developers are looking forward to improvement and stabilisation with the hope of having it stable (and documented) in the stdlib at some point. The recent change in PR 46 now change (at least) the

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-22 Thread STINNER Victor
New submission from STINNER Victor: The _ast.AST constructor requires a tuple with the same number of items than the fields list. Example with Raise: ASDL: Raise(expr? exc, expr? cause) >>> import _ast >>> _ast.Raise() <_ast.Raise object at 0x7fc2ca7dee90> >>> _ast.Raise(1) Traceback (most

[issue29463] Add `docstring` field to AST nodes

2017-02-22 Thread STINNER Victor
STINNER Victor added the comment: This issue broke the ast API. Copy of the following comment on the PR: https://github.com/python/cpython/pull/46#issuecomment-281721296 --- Carreau: Thanks for this ! Improvement to the AST are welcome ! Would it have been possible to make the docstring

[issue29549] Improve docstring for str.index

2017-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, I'm not sure what you're referring to by "Just make docstrings in the style of of Argument Clinic descriptions". For the time being, I would like the docstring to match that of str.find(). The point of the patch is to decouple the two. AC

[issue29549] Improve docstring for str.index

2017-02-22 Thread Xiang Zhang
Xiang Zhang added the comment: Lisa, could you make a PR? It could let more developers see your patch. -- nosy: +xiang.zhang stage: needs patch -> patch review ___ Python tracker

[issue29628] struct objects can no longer be pickled

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > When I run the following code on Windows/Linux for < Python 3.6, I have no > problems. You have a problem. Did you try to use the copied object? It is a broken Struct object. >>> copied = copy.deepcopy(this_fails) >>> copied.format >>> copied.size -1 >>>

[issue29549] Improve docstring for str.index

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I mean that this work is useless since it will be lost when convert str.index to Argument Clinic. Well, even when don't use Argument Clinic, but make str.index() be supported by inspect.signature(), the docstring should be significantly rewritten. I think

[issue29355] sqlite3: remove sqlite3_stmt_readonly()

2017-02-22 Thread Berker Peksag
Berker Peksag added the comment: > - if (!sqlite3_stmt_readonly(self->statement->st)) { > + if (self->statement->is_dml) { Ah, yes now I understand what do you mean! :) I agree and this is already in my local branch to fix issue 28518. -- ___

[issue29629] rgb_to_hls in colorsys.py

2017-02-22 Thread Madhavendra Sharma
Changes by Madhavendra Sharma : -- title: rgb_to_hls to colorsys.py -> rgb_to_hls in colorsys.py ___ Python tracker ___

[issue29629] rgb_to_hls in colorsys.py

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All coordinates in RGB and HSV spaces are floating point numbers between 0.0 and 1.0. In Wikipedia article h is a degree value between 0° and 360°. Could you provide an example of rgb_to_hls() returning invalid result? -- nosy: +serhiy.storchaka

[issue29627] configparser.ConfigParser.read() has undocumented/unexpected behaviour when given a bytestring path.

2017-02-22 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +lukasz.langa ___ Python tracker ___ ___

[issue27788] platform module's version number doesn't match its docstring

2017-02-22 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +211 ___ Python tracker ___

[issue29626] Issue with spacing in argparse module while using help

2017-02-22 Thread paul j3
paul j3 added the comment: We need to see the parser setup as well. I've never seen a bug like this before. The `usage` line suggests that you are using subparsers. It might be better if you asked this on StackOverFlow with a repeatable code example. That's a better place to get debugging

[issue29549] Improve docstring for str.index

2017-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please everyone. Ease up. This is a very simple patch. Copy what is done in str.find to str.index. It doesn't need infinite discussion and debate. I assigned this to Lisa to give her practice. It wasn't intended to have five developers jump in and

[issue29628] struct objects can no longer be pickled

2017-02-22 Thread mesheb82
mesheb82 added the comment: Thank you. On Wed, Feb 22, 2017 at 9:22 PM, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > > When I run the following code on Windows/Linux for < Python 3.6, I have > no problems. > > You have a problem. Did you try to

[issue29629] rgb_to_hls to colorsys.py

2017-02-22 Thread Madhavendra Sharma
New submission from Madhavendra Sharma: Calculations in rgb_to_hls at line number 67 in python version 2.7.3 for "h" the hue component are not correct according reference mentioned in the same source file "en.wikipedia.org/wiki/HSV_color_space". code snippet: if r == maxc: #h =

  1   2   >