[issue30101] Add support for ncurses A_ITALIC

2017-04-19 Thread Eijebong
Changes by Eijebong : -- components: Library (Lib) nosy: Eijebong priority: normal pull_requests: 1307 severity: normal status: open title: Add support for ncurses A_ITALIC versions: Python 3.7 ___ Python tracker _

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bf623ae8843dc30b28c574bec8d29fc14be59d86 by Serhiy Storchaka in branch 'master': bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) https://github.com/python/cpython/commit/bf623ae8843dc30b28c574bec8d29fc14be59d86 -

[issue21150] Add quick links table to argparse docs

2017-04-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21150] Add quick links table to argparse docs

2017-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Gaurav, overall this looks nice. I would drop the example column because it will make the row too wide for viewing. Alternatively, put the examples in a separate table (as was done for the combinatoric functions in the itertools docs: https://docs.pytho

[issue21150] Add quick links table to argparse docs

2017-04-19 Thread Louie Lu
Changes by Louie Lu : -- nosy: +louielu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue30061] Check if PyObject_Size() raised an error

2017-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27727] Update Tools/freeze to use .vcxproj files

2017-04-19 Thread Kaeptm Blaubaer
Changes by Kaeptm Blaubaer : -- resolution: duplicate -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1306 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Louie Lu
Louie Lu added the comment: Add a simple line to `MAIN_EXAMPLES`: "%(prog)s path/to/test_file.py - run tests from test_file.py" -- nosy: +louielu ___ Python tracker ___ ___

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-19 Thread crenwick
crenwick added the comment: > Feel free to suggest a better wording. > I think the only change that needs to be made is to make the existing message > say 'asyncio.Future' instead of just 'Future'. I hear ya. New commit in the PR reverts the TypeError I added, and changes the original TypeErr

[issue29533] urllib2 works slowly with proxy on windows

2017-04-19 Thread Julia Dolgova
Julia Dolgova added the comment: I compared the behaviour of urllib with these browsers: Firefox("use system proxy" selected), Google Chrome, Yandex. And also Skype (requests to login.live.com). All of them are not doing DNS requests for proxy bypass handling as Marc expects. The result is att

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Zbyszek Jędrzejewski-Szmek
Zbyszek Jędrzejewski-Szmek added the comment: If you can import the module that defines the parser, and get at the generated parser, this should be trivial to integrate with the build system. Something like: PYTHONPATH=. python3 -c 'import mymodule; p=mymodule.make_parser(); p.print_manpage

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
Louie Lu added the comment: Sorry that I didn't figure out what you said in the previous msg. > provide a command-line interface for an end user I add a parameter that developer can switch command line option for man page, if the option is on, user can do this: ./python foo.py --manpage

[issue30071] Duck-typing inspect.isfunction()

2017-04-19 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > So I expect that the case you 'care most about' already works. Yes, it works. That's the most ironic part of this issue: getfullargspec(func) works but packages like Sphinx will not call getfullargspec(func) because they do not detect that "func" is actually

[issue30100] WeakSet should all discard and remove on items that can have weak references

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The argument for not raising TypeError for unsupported types: This is just from the definition of a set. If the set can't contain the value of specific type, then checking if this value is contained in the set should return False, and discarding it from the

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Your example just prints a man page. It doesn't do anything useful besides this. I'm asking how argparse can do two incompatible things: provide a command-line interface for an end user and generate a man page in a build script. Do you mean that the programm

[issue30100] WeakSet should all discard and remove on items that can have weak references

2017-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raising TypeError looks reasonable to me. > Operations with ordinal sets can raise TypeError > for unhashable values. I agree. TypeError looks the right exception in this case. -- ___ Python tracker

[issue28698] Python 3.x ctypes c_wchar_p return is different from official documentation example

2017-04-19 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
Louie Lu added the comment: Also, `print_manpage` use the same infra as `print_help` and `print_usage`, so it can use the parameter `file` to output to different stream or file. -- ___ Python tracker _

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
Louie Lu added the comment: Attachment is the poc of generating man page via `print_manpage`: $ ./python poc_2.py > output && man ./output -- Added file: http://bugs.python.org/file46812/poc_2.py ___ Python tracker

[issue29925] test_uuid fails on OS X Tiger

2017-04-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset c209b70d610da50a844a3c10f37d6183bade3446 by Victor Stinner in branch 'master': bpo-29925: Skip test_uuid1_safe() on OS X Tiger (#971) https://github.com/python/cpython/commit/c209b70d610da50a844a3c10f37d6183bade3446 -- _

[issue30095] HTMLCalendar allow custom classes

2017-04-19 Thread Walter Dörwald
Walter Dörwald added the comment: OK, go ahead. I'm looking forward to what you come up with. -- ___ Python tracker ___ ___ Python-bug

[issue30095] HTMLCalendar allow custom classes

2017-04-19 Thread Oz Tiram
Oz Tiram added the comment: ... Using class attributes would nice, also considering that the days CSS classes are defined as class attributes. I meant to write : Using class attributes would be nicer, also considering that the days CSS classes are defined as class attributes. -- ___

[issue30095] HTMLCalendar allow custom classes

2017-04-19 Thread Oz Tiram
Oz Tiram added the comment: @doerwalter, exactly. I found myself overwriting the relevant methods too many times. I usually did something like this: class WorkCalendar(HTMLCalendar): def formatmonthname(self, theyear, themonth, withyear=True, style=r'class=

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But how to use print_manpage()? Can you provide a new template of a program that uses argparse? -- ___ Python tracker ___ ___

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
Louie Lu added the comment: > How to use this feature? > argparse is executed every time when the end user runs the program. > But generating a man page is the action that should be executed at > develop or build stage. > ... > How generating a man page should be invoked? For now, man page will

[issue30095] HTMLCalendar allow custom classes

2017-04-19 Thread Walter Dörwald
Walter Dörwald added the comment: IMHO this could all be done by overwriting the relevant methods. But this might be overkill. I think a solution might be to move the CSS classes into class attributes of HTMLCalendar. Customizing the CSS classes would then be done by subclassing HTMLCalendar

[issue30100] WeakSet should all discard and remove on items that can have weak references

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: dict.pop() supports unhashable values, but dict.__contains__() and dict.get() don't: >>> [] in {} Traceback (most recent call last): File "", line 1, in TypeError: unhashable type: 'list' >>> {}.get([], 42) Traceback (most recent call last): File "", lin

[issue30100] WeakSet should all discard and remove on items that can have weak references

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about difference_update(), issubset(), issuperset(), __eq__()? Raising TypeError looks reasonable to me. Operations with ordinal sets can raise TypeError for unhashable values. >>> [] in set() Traceback (most recent call last): File "", line 1, in Ty

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How to use this feature? argparse is executed every time when the end user runs the program. But generating a man page is the action that should be executed at develop or build stage. The end user gets a generated man page, he doesn't need the option to gene

[issue30046] csv: Inconsistency re QUOTE_NONNUMERIC

2017-04-19 Thread Dong-hee Na
Dong-hee Na added the comment: Oh, I read the Serhiy Storchaka 's comment just right now. -- ___ Python tracker ___ ___ Python-bugs-li

[issue30046] csv: Inconsistency re QUOTE_NONNUMERIC

2017-04-19 Thread Dong-hee Na
Dong-hee Na added the comment: I would like to solve this issue. Is there any other way than casting specifically for the bool object? (e.g For general ways?) -- nosy: +corona10 ___ Python tracker

[issue30046] csv: Inconsistency re QUOTE_NONNUMERIC

2017-04-19 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: -1305 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30046] csv: Inconsistency re QUOTE_NONNUMERIC

2017-04-19 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: -1303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

<    1   2