[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-02-27 Thread INADA Naoki
INADA Naoki added the comment: When using import, (namespace) package name is explicitly specified. Only specified name is searched. In test loader's case, there are no such limit. Loader may search millions of completely unrelated directories. It may include directories in NFS or samba over

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-02-27 Thread INADA Naoki
INADA Naoki added the comment: I'm afraid this change makes testloader searches unrelated directory contains massive files (like node_modules). I don't think loading all tests from whole namespace package is not usual use case. -- nosy: +inada.naoki

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2017-02-27 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks Raymond. I would like to keep the example style another issue, not this one. :-) And I hope someone is willing to review the PR. -- assignee: -> xiang.zhang stage: needs patch -> patch review versions: +Python 3.7 -Python 3.6

Re: Python failed... Repeatedly

2017-02-27 Thread Terry Reedy
On 2/27/2017 11:16 PM, Jarod Nash wrote: I have just started into python and this was my first time setting up my own software. I ended up with pycharm and chose the python 3.6 or whatever translator. Every time I run my hello world program I get the message "invalid translator" and I get

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is 2.7 free from this bug? -- ___ Python tracker ___ ___ Python-bugs-list

[issue29655] Certain errors during IMPORT_STAR can leak a reference

2017-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But it is *very easy* to fix this bug in 2.7. -- keywords: +patch resolution: fixed -> stage: resolved -> patch review status: closed -> open versions: +Python 2.7 -Python 3.5, Python 3.6, Python 3.7 Added file:

[issue28231] zipfile does not support pathlib

2017-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch is backported to 3.6.1. -- versions: +Python 3.6 Added file: http://bugs.python.org/file46677/zipfile-pathlib-3.6.1.patch ___ Python tracker

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2017-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for the decorator idea. It feels very natural. A little off topic, I do not like the with-statement example that we currently have in the docs. I think it is bad design to put some much code inside with-block. In the micro-webframeworks, we register

Python failed... Repeatedly

2017-02-27 Thread Jarod Nash
I have just started into python and this was my first time setting up my own software. I ended up with pycharm and chose the python 3.6 or whatever translator. Every time I run my hello world program I get the message "invalid translator" and I get several pop ups giving me the options of custom

Re: python-libxdo?

2017-02-27 Thread MRAB
On 2017-02-28 04:07, Jim wrote: I found this module by accident the other day and decided to try to use it to position some windows on my desktop. # Script to open and position program windows import subprocess from xdo import Xdo xdo = Xdo() subprocess.call('firefox') win =

[issue29669] Missing import of bisect in the documentation examples

2017-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, but I think this is a waste. A number of the example sections presume that the module under discussion has been imported. Also, these docs have been around for a long time without the slightest indication of confusion. -- nosy:

[issue17894] Edits to descriptor howto

2017-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will work on it thank you. -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___

[issue28231] zipfile does not support pathlib

2017-02-27 Thread Ned Deily
Ned Deily added the comment: > Note that Ned gave us a permission to get this into 3.6.1. I may have although I don't remember specifically discussing zipfile. In any case, I'm willing to consider it. I think you can make good arguments for and against. Yes, it could smell like adding a

python-libxdo?

2017-02-27 Thread Jim
I found this module by accident the other day and decided to try to use it to position some windows on my desktop. # Script to open and position program windows import subprocess from xdo import Xdo xdo = Xdo() subprocess.call('firefox') win = xdo.search_windows(winname = 'Mozilla Firefox')

[issue29661] Typo in the docstring of timeit.Timer.autorange

2017-02-27 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks Raymond! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29661] Typo in the docstring of timeit.Timer.autorange

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

[issue29673] Some gdb macros are broken in 3.6

2017-02-27 Thread Skip Montanaro
Skip Montanaro added the comment: Note that these macros were always expected to be fragile. They depend to a great extent on the layout of the functions in Python/ceval.c. I've had to tweak them a couple times over the years. I'm pretty sure the gdb instance I have available to me at work

Re: Usage of ast.

2017-02-27 Thread Chris Angelico
On Tue, Feb 28, 2017 at 11:35 AM, Jon Ribbens wrote: > Sorry, I must have missed something here. What are you talking about? > "lambda: [1,2,3]" is not acceptable input to ast.literal_eval(), it > will throw an exception. [1,2,3] is, though. Go read my previous posts.

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-02-27 Thread Jakub Wilk
Jakub Wilk added the comment: Deleting non-existent files in /tmp is an indicator of a security hole. This kind of error must never pass silently. -- nosy: +jwilk ___ Python tracker

Re: Usage of ast.

2017-02-27 Thread Jon Ribbens
On 2017-02-27, Chris Angelico wrote: > On Tue, Feb 28, 2017 at 3:58 AM, Jon Ribbens > wrote: >> Seeing as most of it is code along the lines of "is this an integer >> constant? if so the value is that constant": no, I think "execution" >> is a

[issue29673] Some gdb macros are broken in 3.6

2017-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I tried to simply replace _PyUnicode_AsString with PyUnicode_AsUTF8, but it looks like code structure has changed and the pyframe and pystack macros don't work anymore. -- ___ Python tracker

[issue29673] Some gdb macros are broken in 3.6

2017-02-27 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Some gdb macros defined in Misc/gdbinit got broken when _PyUnicode_AsString was renamed to PyUnicode_AsUTF8. (gdb) pystack No symbol "_PyUnicode_AsString" in current context. -- messages: 288684 nosy: belopolsky priority: normal severity:

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

2017-02-27 Thread paul j3
Changes by paul j3 : -- status: closed -> open ___ Python tracker ___ ___

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

2017-02-27 Thread paul j3
paul j3 added the comment: Sorry, I missed that. For some reason I looking something bigger. That's coming from the `metavar=""'. If I specify `metavar="xxx" that help line will have -p xxx, --projectid xxx Replace the 'xxx` with '', and you still have space between '-p' and ','. Now

[issue29639] test suite intentionally avoids referring to localhost, destroying abstraction away from IPv6 vs IPv4

2017-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: great! that makes me feel much less bad about fixing this in the way i desire. :) -- ___ Python tracker ___

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

2017-02-27 Thread Falguniben Jhaveri
Falguniben Jhaveri added the comment: There is an extra spacing here if you look carefully. I have commented above the code. Similarly it happens for "-o" too but not for other alphabets. 1427:~/mypy/argdev$ python3 issue29626.py delete -h usage: cli delete [-h] [-p] userid Deletes a user in

[issue29672] `catch_warnings` context manager causes warnings to be reprinted

2017-02-27 Thread Gerrit Holl
Gerrit Holl added the comment: To clarify, this behaviour crosses module boundaries. So even if some piece of code many layers deep buried in a module uses this context manager, it has global consequences. -- ___ Python tracker

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

2017-02-27 Thread paul j3
paul j3 added the comment: This help looks normal: 1427:~/mypy/argdev$ python3 issue29626.py delete -h usage: cli delete [-h] [-p] userid Deletes a user in your organization. positional arguments: userid The userid of user. optional arguments: -h, --help show this

[issue29672] `catch_warnings` context manager causes warnings to be reprinted

2017-02-27 Thread Gerrit Holl
Gerrit Holl added the comment: I suppose this is a consequence of the change in: http://bugs.python.org/issue4180 and although I can see why the warnings filter would be reset when entering the context manager, I don't think it is desirable to have side effects for modules that are entirely

[issue29672] `catch_warnings` context manager causes warnings to be reprinted

2017-02-27 Thread Gerrit Holl
New submission from Gerrit Holl: Entering the `catch_warnings` context manager is causing warnings to be printed over and over again, rather than just once as it should. Without such a context manager, the behaviour is as expected: $ cat ./mwe.py #!/usr/bin/env python3.5

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

2017-02-27 Thread Falguniben Jhaveri
Falguniben Jhaveri added the comment: Sample code to repro this: import argparse parser = argparse.ArgumentParser(prog='cli') subparsers = parser.add_subparsers(dest="command") subparsers_user_delete = subparsers.add_parser("delete", help="Deletes a user in your organization.",

[issue28791] update sqlite to 3.17.0

2017-02-27 Thread Big Stone
Big Stone added the comment: python-3.7 should include the latest stable sqlite, at the time of last alpha. -- title: update sqlite to 3.15.2 -> update sqlite to 3.17.0 ___ Python tracker

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

2017-02-27 Thread paul j3
paul j3 added the comment: With this setup import argparse parser=argparse.ArgumentParser(prog='cli') parser.add_argument('nodes') sp=parser.add_subparsers() p1 = sp.add_parser('list', description='Lists nodes in your current project') p1.add_argument('-p','--projectid', action='store_true')

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

2017-02-27 Thread paul j3
Changes by paul j3 : -- stage: -> resolved status: open -> closed ___ Python tracker ___

Re: panda, column access

2017-02-27 Thread Andrew Zyman
On Monday, February 27, 2017 at 4:27:23 PM UTC-5, Pavol Lisy wrote: > On 2/27/17, Andrew Zyman wrote: > I think you meant: > colnames = ['hostname'] arh... Exactly. Now the rest is "unfolding". > What do you want is probably: > >>> data[colnames[0]].tolist() this is great

Re: panda, column access

2017-02-27 Thread Pavol Lisy
On 2/27/17, Andrew Zyman wrote: > Hello, > i'm trying to understand what is the difference between the below code. > And how do i access the column's data without hardcoding the column name in > such a way that i'll be able to convert it's values into the list of > strings? >

[issue26389] Expand traceback module API to accept just an exception as an argument

2017-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Comments probably apply to format_exception and in part, format_exception_only (both also patched in PR237) but I have not checked behavior or code at all. -- ___ Python tracker

[issue29671] Add function to gc module to check if any reference cycles have been reclaimed.

2017-02-27 Thread Kevin Mills
Kevin Mills added the comment: gc.disable() at the beginning and then analyzing the results of gc.collect() actually does do what I was wanting, thank you. Reference cycles in and of themselves aren't the problem. It's only a problem if garbage contains reference cycles. In a normal program,

panda, column access

2017-02-27 Thread Andrew Zyman
Hello, i'd appreciate an explanation about the differences in the code versions below. I'm trying to get the list of the strings out of the column and avoid hardcoding the column name. cat Data/2domain.csv hostname hostname1 hostname2 ... ... Working version(s): Python2.7: input_file =

[issue26389] Expand traceback module API to accept just an exception as an argument

2017-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The print_exception API goes back to when exception values were (or at least, could be) strings. Its doc is incomplete as to the requirements on the args and, at least by 3.5, erroneous. To modify it, we need to understand how it actually works now. In

[issue29671] Add function to gc module to check if any reference cycles have been reclaimed.

2017-02-27 Thread Mark Dickinson
Mark Dickinson added the comment: An addendum: I'd note that avoiding reference cycles altogether is hard in modern-day Python. For example, any dynamically-created class creates a reference cycle between the class and its MRO: >>> import gc >>> gc.disable() >>> gc.collect() 0 >>> class

[issue29671] Add function to gc module to check if any reference cycles have been reclaimed.

2017-02-27 Thread Mark Dickinson
Mark Dickinson added the comment: If I understand correctly, you can already achieve what you want by: 1. Disabling gc (with gc.disable()) at the beginning of your code, and possibly adding a `gc.collect()` immediately afterwards for good measure. 2. Doing a gc.collect() (and taking note of

[issue29671] Add function to gc module to check if any reference cycles have been reclaimed.

2017-02-27 Thread Kevin Mills
New submission from Kevin Mills: The intro paragraph for the gc module's documentation says: > Since the collector supplements the reference counting already used in > Python, you can disable the collector if you are sure your program does not > create reference cycles. How would you ever be

[issue29670] argparse: does not respect required args pre-populated into namespace

2017-02-27 Thread Matthew Hall
New submission from Matthew Hall: I have some Python code which takes advantage of the ability to prepopulate the argparse Namespace before passing it to argparse. This allows me to read sensitive settings such as usernames and passwords from DBs, environment variables, etc. in addition to

[issue17894] Edits to descriptor howto

2017-02-27 Thread Ned Batchelder
Ned Batchelder added the comment: I'm still interested in moving this forward. I can make a GitHub pull request if that would help. -- ___ Python tracker

panda, column access

2017-02-27 Thread Andrew Zyman
Hello, i'm trying to understand what is the difference between the below code. And how do i access the column's data without hardcoding the column name in such a way that i'll be able to convert it's values into the list of strings? I appreciate your help. Short version: colnames='hostname'

[issue29655] Certain errors during IMPORT_STAR can leak a reference

2017-02-27 Thread Berker Peksag
Berker Peksag added the comment: I ignored 2.7 because you know... it's 2.7 :) And you said [1] that it doesn't have a big effect on real applications. [1] https://github.com/python/cpython/pull/301#issuecomment-282789185 -- nosy: +berker.peksag

[issue29659] Expose the `length` arg from shutil.copyfileobj for public use

2017-02-27 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- components: +Library (Lib) ___ Python tracker ___

[issue29655] Certain errors during IMPORT_STAR can leak a reference

2017-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that 2.7 has this bug. -- ___ Python tracker ___ ___

[issue28231] zipfile does not support pathlib

2017-02-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ned.deily ___ Python tracker ___ ___

[issue29669] Missing import of bisect in the documentation examples

2017-02-27 Thread Marco Buttu
New submission from Marco Buttu: There is no import of bisect.bisect() and bisect.bisect_left() in the documentation. IMHO the examples are clearer and more complete if we import these functions, as in the attached patch. -- assignee: docs@python components: Documentation files:

[issue28791] update sqlite to 3.15.2

2017-02-27 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Is this something we want to include for the upcoming 3.6.1 release? The latest sqlite version is 3.17.0. -- nosy: +Mariatta ___ Python tracker

[issue24700] array compare is hideously slow

2017-02-27 Thread lou1306
lou1306 added the comment: I noticed the issue is still there in Python 3.6. But I can't see why array subclasses should be the reason for this implementation. By looking at getarrayitem, it looks like __getitem__ does not play any role in how the elements are accessed. Consider the attached

[issue29655] Certain errors during IMPORT_STAR can leak a reference

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue26389] Expand traceback module API to accept just an exception as an argument

2017-02-27 Thread Brett Cannon
Brett Cannon added the comment: I don't think supporting both approaches is worth it; we should just choose one of them. As for which one, I'm torn. The single argument one is the most pragmatic, but changing types like has always bugged me. But as Martin points out, the `raise` syntax

[issue29668] f-strings don't change the values as expected.

2017-02-27 Thread Rafael Capucho
Rafael Capucho added the comment: Serhiy Storchaka, Thank you for your explanation. -- ___ Python tracker ___

[issue29668] f-strings don't change the values as expected.

2017-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The expression is a concatenation of f-string expression f"SELECT COUNT(*) " and three string literals. If you want to substitute the "a" value, convert string literals into f-string expressions: query = (f"SELECT COUNT(*) " f"FROM `{a}` entry "

[issue29668] f-strings don't change the values as expected.

2017-02-27 Thread Rafael Capucho
Rafael Capucho added the comment: I got: SELECT COUNT(*) FROM `{a}` entry WHERE entry.type == 'device' AND entry.instance == {a} I expect the value of `{a}` changed, like: SELECT COUNT(*) FROM `some_underscored_value` entry WHERE entry.type == 'device' AND entry.instance ==

[issue28231] zipfile does not support pathlib

2017-02-27 Thread Berker Peksag
Berker Peksag added the comment: Note that Ned gave us a permission to get this into 3.6.1. -- ___ Python tracker ___

[issue29668] f-strings don't change the values as expected.

2017-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What you get? What you expect? -- ___ Python tracker ___ ___

[issue28231] zipfile does not support pathlib

2017-02-27 Thread Steve Dower
Steve Dower added the comment: Why can't we fix this in 3.6? We were meant to support pathlike in that version, and this is an oversight, not a new feature. -- ___ Python tracker

[issue29668] f-strings don't change the values as expected.

2017-02-27 Thread Rafael Capucho
Rafael Capucho added the comment: ``` a = "some_underscored_value" u = (f" hello `{a}` cruel world" " hi") print(u) query = (f"SELECT COUNT(*) " "FROM `{a}` entry " "WHERE entry.type == 'device' " "AND entry.instance == {a}") print(query) ``` --

[issue28231] zipfile does not support pathlib

2017-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I consider this a new feature. Some modules got the support of path-like objects for free after implementing the support of path-like objects in os, os.path and io modules. But others need additional work for implementing it, writing tests and

[issue29639] test suite intentionally avoids referring to localhost, destroying abstraction away from IPv6 vs IPv4

2017-02-27 Thread Steve Dower
Steve Dower added the comment: As far as I recall, there's a hosts file that resolves localhost to 127.0.0.1 on Windows, which means a user could break their own configuration if they so desired. Definitely on all supported versions we should be able to assume localhost can be resolved. I

[issue29668] f-strings don't change the values as expected.

2017-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please provide your example as a text. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29668] f-strings don't change the values as expected.

2017-02-27 Thread Rafael Capucho
New submission from Rafael Capucho: In the attached file, the lines 4 and 6 have the same structure, the line 4 changes the value of {a} properly, the line 6 didn't. Thank you. -- components: Interpreter Core files: crazy.png messages: 288649 nosy: Rafael Capucho priority: normal

Re: Usage of ast.

2017-02-27 Thread Chris Angelico
On Tue, Feb 28, 2017 at 3:58 AM, Jon Ribbens wrote: > On 2017-02-27, Chris Angelico wrote: >> On Tue, Feb 28, 2017 at 3:17 AM, Jon Ribbens >> wrote: >>> On 2017-02-27, Chris Angelico wrote: Actually

[issue29667] socket module sometimes loses response packets

2017-02-27 Thread Bob Kline
New submission from Bob Kline: The socket module does not always return response packets which are successfully delivered to the client host. We ran into this problem with an HTTP request for which socket.recv() raised an exception instead of returning the 301 redirection response which the

Re: Usage of ast.

2017-02-27 Thread Jon Ribbens
On 2017-02-27, Chris Angelico wrote: > On Tue, Feb 28, 2017 at 3:17 AM, Jon Ribbens > wrote: >> On 2017-02-27, Chris Angelico wrote: >>> Actually it does execute, as you can see from the source code. >> >> I'm not sure what you

[issue29655] Certain errors during IMPORT_STAR can leak a reference

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +301 ___ Python tracker ___ ___

[issue29655] Certain errors during IMPORT_STAR can leak a reference

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +300 ___ Python tracker ___ ___

Re: Usage of ast.

2017-02-27 Thread Chris Angelico
On Tue, Feb 28, 2017 at 3:17 AM, Jon Ribbens wrote: > On 2017-02-27, Chris Angelico wrote: >> Actually it does execute, as you can see from the source code. > > I'm not sure what you mean by that. I was looking at the source code > (and its history)

Re: Usage of ast.

2017-02-27 Thread Jon Ribbens
On 2017-02-27, Chris Angelico wrote: > On Tue, Feb 28, 2017 at 1:18 AM, Jon Ribbens > wrote: >> "execution" isn't really the right way to describe literal_eval(). >> It isn't an code executor or even an expression evaluator, all it >> does is turns a

[issue29666] Issue in enum documentation

2017-02-27 Thread Ethan Furman
Ethan Furman added the comment: `Flag` and `IntFlag` are indeed the correct (and missing) names. -- nosy: +ethan.furman ___ Python tracker ___

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- versions: -Python 2.7 ___ Python tracker ___ ___

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-02-27 Thread Martijn Pieters
Changes by Martijn Pieters : -- pull_requests: +299 ___ Python tracker ___ ___

[issue29636] Specifying indent in the json.tool command

2017-02-27 Thread Daniel Himmelstein
Daniel Himmelstein added the comment: For discussion on how to implement this, see + https://github.com/python/cpython/pull/201#discussion_r102146742 + https://github.com/python/cpython/pull/201#discussion_r102840190 + https://github.com/python/cpython/pull/201#discussion_r102891428

[issue29636] Specifying indent in the json.tool command

2017-02-27 Thread Daniel Himmelstein
Changes by Daniel Himmelstein : -- pull_requests: -230 ___ Python tracker ___

[issue26389] Expand traceback module API to accept just an exception as an argument

2017-02-27 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Another point is that it may be better to keep the existing parameter name > “value”, rather than (eventually?) replacing it with “exc”. I think both of > these things could be accomplished by juggling the “value” and “etype” > parameters: I agreed,

[issue29636] Specifying indent in the json.tool command

2017-02-27 Thread Daniel Himmelstein
Changes by Daniel Himmelstein : -- pull_requests: +298 ___ Python tracker ___

[issue29660] Document that print/format_exception ignore etype

2017-02-27 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +297 ___ Python tracker ___

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

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue29414] Change 'the for statement is such an iterator' in Tutorial

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

[issue29455] Mention coverage.py in trace module documentation

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue24241] webbrowser default browser detection and/or public API for _trylist.

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +296 ___ Python tracker ___ ___

[issue28609] argparse claims '*' positional argument is required in error output

2017-02-27 Thread Ben Hoyt
Ben Hoyt added the comment: I definitely agree with Reuben here -- I just ran into this issue while creating a "production quality" tool, and the help message produced by argparse with nargs='*' confused me too. It's pretty clear that this is a simple bug in argparse's production of that

Re: Usage of ast.

2017-02-27 Thread Chris Angelico
On Tue, Feb 28, 2017 at 1:18 AM, Jon Ribbens wrote: > On 2017-02-27, Vincent Vande Vyvre wrote: >> Le 27/02/17 à 14:09, Chris Angelico a écrit : >>> The message is a little confusing, but the error comes from the fact >>> that

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

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +295 ___ Python tracker ___ ___

[issue28609] argparse claims '*' positional argument is required in error output

2017-02-27 Thread Ben Hoyt
Changes by Ben Hoyt : -- nosy: +benhoyt ___ Python tracker ___ ___ Python-bugs-list

Re: Usage of ast.

2017-02-27 Thread Jon Ribbens
On 2017-02-27, Vincent Vande Vyvre wrote: > Le 27/02/17 à 14:09, Chris Angelico a écrit : >> The message is a little confusing, but the error comes from the fact >> that literal_eval permits a very few legal operations, and calling a >> function isn't one of them.

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-02-27 Thread Martijn Pieters
Changes by Martijn Pieters : -- pull_requests: +294 ___ Python tracker ___ ___

Re: Usage of ast.

2017-02-27 Thread Chris Angelico
On Tue, Feb 28, 2017 at 12:44 AM, Vincent Vande Vyvre wrote: > OK, it's coherent with the secure execution. > Yep. Here's a PR to make the message a bit clearer, though: https://github.com/python/cpython/pull/340 >>> ast.literal_eval("print('hello world')")

[issue29666] Issue in enum documentation

2017-02-27 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Yup, `IntFlags` is a typo, that's why the reference to it doesn't show too. Also, the fourth enum must be `Flag` which must of been omitted when it was added in `3.6`. -- nosy: +Jim Fasarakis-Hilliard ___

[issue29665] how to edit or delete issues created by me in bug tracker ?!

2017-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29666] Issue in enum documentation

2017-02-27 Thread STINNER Victor
New submission from STINNER Victor: https://docs.python.org/dev/library/enum.html "This module defines four enumeration classes that can be used to define unique sets of names and values: Enum, IntEnum, and IntFlags" Enum, IntEnum, IntFlag: I count 3 classes, no 4? Moreover, the correct

Re: Usage of ast.

2017-02-27 Thread Vincent Vande Vyvre
Le 27/02/17 à 14:09, Chris Angelico a écrit : On Mon, Feb 27, 2017 at 11:57 PM, Vincent Vande Vyvre wrote: I've this strange error: Python 3.4.3 (default, Nov 17 2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more

[issue29658] Combining thread and process, process hangs (sometimes)

2017-02-27 Thread djstrong
djstrong added the comment: Thank you! I couldn't find information about first forking then launching threads. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: Usage of ast.

2017-02-27 Thread Jussi Piitulainen
Vincent Vande Vyvre writes: > I've this strange error: > > Python 3.4.3 (default, Nov 17 2016, 01:08:31) > [GCC 4.8.4] on linux > Type "help", "copyright", "credits" or "license" for more information. import ast l = "print('hello world')" ast.literal_eval(l) > Traceback (most

Re: Usage of ast.

2017-02-27 Thread Chris Angelico
On Mon, Feb 27, 2017 at 11:57 PM, Vincent Vande Vyvre wrote: > I've this strange error: > > Python 3.4.3 (default, Nov 17 2016, 01:08:31) > [GCC 4.8.4] on linux > Type "help", "copyright", "credits" or "license" for more information. import ast l =

  1   2   >