[issue22395] test_pathlib error for complex symlinks on Windows

2016-08-13 Thread Justin Foo
Justin Foo added the comment: This is no longer a problem for me and I can't reproduce why it was even a problem in the first place. -- status: open -> closed ___ Python tracker

[issue27749] python 3.5.2 maybe crash

2016-08-13 Thread wevsty
wevsty added the comment: To Decorater If you are found to have crashes, I'm sorry, you can follow the previous suggestion to use python_d.exe then open a new issue uploading crash dump. It would be better. About the multiprocessing question,I would like to add some information. My code uses

[issue21417] Compression level for zipfile

2016-08-13 Thread Justin Foo
Justin Foo added the comment: I thought about that, but: 1. compresslevel=None might make look like no compression was being done at all 2. The current default is not 9 for all backends -- ___ Python tracker

[issue1602] windows console doesn't print or input Unicode

2016-08-13 Thread Martin Panter
Martin Panter added the comment: For compatibility, I think it may be good to add custom implementations of the buffer attribute and detach() method to stdin/out. They should be able to at least read and write ASCII bytes. It might be easiest to keep them as the current BufferedReader/Writer

[issue27205] Failing doctests in Library/collections.rst

2016-08-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: FYI, this should have been assigned to me (the author of the examples being modified). -- assignee: zach.ware -> rhettinger nosy: +rhettinger ___ Python tracker

Re: What's the best way to minimize the need of run time checks?

2016-08-13 Thread Lawrence D’Oliveiro
On Sunday, August 14, 2016 at 4:21:16 PM UTC+12, Chris Angelico wrote: > You have a working class factory, which is downright *impossible* in > many languages. If good old, plain old C can do this: /*prints itself*/void main(void){int c=34;char*s="/*prints itself*/void main(void){int

Re: What's the best way to minimize the need of run time checks?

2016-08-13 Thread Chris Angelico
On Sun, Aug 14, 2016 at 2:20 PM, Chris Angelico wrote: > You have a working class factory, which is downright *impossible* in > many languages. (Unless you count "metaprogramming" to include "programs that write other programs", of course. That is a legit form of

Re: What's the best way to minimize the need of run time checks?

2016-08-13 Thread Chris Angelico
On Sun, Aug 14, 2016 at 2:13 PM, Steven D'Aprano wrote: > What you should be doing is comparing the types of record *instances* > instead: > > py> x = record('Spam', 'breakfast lunch dinner')('spam', > ... 'spam and eggs', 'spam and eggs and spam with a side-dish

Re: What's the best way to minimize the need of run time checks?

2016-08-13 Thread Steven D'Aprano
On Sun, 14 Aug 2016 06:59 am, BartC wrote: > On 13/08/2016 17:06, Steven D'Aprano wrote: >> On Sat, 13 Aug 2016 08:09 pm, BartC wrote: > >>> record date=# define the record >>> var day, month, year >>> end >>> >>> d := date(25,12,2015) # create an instance > >> Sure.

How do I tell if I'm running on a PowerPC?

2016-08-13 Thread Steven D'Aprano
I need to be able to programmatically test whether I'm running on a PowerPC. How can I do that? import platform if platform.machine() in ('ppc', 'ppc64'): print('running PowerPC') Is that right? -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough,

Re: Anyone here running Python on a PowerPC?

2016-08-13 Thread Lawrence D’Oliveiro
On Sunday, August 14, 2016 at 3:11:56 PM UTC+12, Michael Torrie wrote: > I also suggested QEMU, but I'm not sure it's 64-bit PPC, and I'm pretty > sure PowerMacs wouldn't be 64-bit either. Though I see some references > to PPC64 and QEMU in google searches. A little table here

[issue26823] Shrink recursive tracebacks

2016-08-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

Re: Multi-Line Strings: A Modest Proposal

2016-08-13 Thread Lawrence D’Oliveiro
On Sunday, August 14, 2016 at 1:53:42 PM UTC+12, John Wong wrote: > s = ("this string continues " + >"substring continues") Now there’s a Java way of doing it. :) I prefer implicit string concatenation myself. Isn’t it peculiar that, while this feature was introduced in C and faithfully

Re: Multi-Line Strings: A Modest Proposal

2016-08-13 Thread Steven D'Aprano
On Sun, 14 Aug 2016 11:53 am, John Wong wrote: > The way I solve it, and I still find that extremely ugly, is > > s = ("this string continues " + >"substring continues") You don't need the plus sign, as Python will concatenate string literals (not variables) at compile time: "foo"

[issue27761] Private _nth_root function loses accuracy on PowerPC

2016-08-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: You can do no better than to consult with Uncle Timmy. -- nosy: +rhettinger, tim.peters ___ Python tracker ___

Re: Anyone here running Python on a PowerPC?

2016-08-13 Thread Michael Torrie
On 08/13/2016 08:35 PM, Paul Rubin wrote: > Steven D'Aprano writes: >> Is there anyone here running Python on a PowerPC willing to help me >> diagnose and fix this issue? http://bugs.python.org/issue27761 > > https://duckduckgo.com/?q=powerpc+emulator > > gets a few

[issue26823] Shrink recursive tracebacks

2016-08-13 Thread Emanuel Barry
Emanuel Barry added the comment: Is it possible to get this in in time for 3.6.0a4? The feature itself hasn't been touched in about 4 months, only tests have been tweaked since. -- ___ Python tracker

Re: Anyone here running Python on a PowerPC?

2016-08-13 Thread Michael Torrie
On 08/13/2016 08:35 PM, Paul Rubin wrote: > Steven D'Aprano writes: >> Is there anyone here running Python on a PowerPC willing to help me >> diagnose and fix this issue? http://bugs.python.org/issue27761 > > https://duckduckgo.com/?q=powerpc+emulator > > gets a few

[issue27762] ConfigParser ignores in-line comments for lines with semi-colons

2016-08-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list

[issue27762] ConfigParser ignores in-line comments for lines with semi-colons

2016-08-13 Thread Joshua Haas
New submission from Joshua Haas: According to the 2.7 docs at https://docs.python.org/2/library/configparser.html, you can create in-line comments using ";" if it is preceded by white space. However, if the value of a config option contains a semi-colon, for example "password=my;pass123",

Re: Anyone here running Python on a PowerPC?

2016-08-13 Thread Paul Rubin
Steven D'Aprano writes: > Is there anyone here running Python on a PowerPC willing to help me > diagnose and fix this issue? http://bugs.python.org/issue27761 https://duckduckgo.com/?q=powerpc+emulator gets a few hits, one on sourceforge and one in QEMU. I don't

[issue27181] Add geometric mean to `statistics` module

2016-08-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: I've created a new issue to track the loss of accuracy on PowerPC: http://bugs.python.org/issue27761 -- ___ Python tracker

Anyone here running Python on a PowerPC?

2016-08-13 Thread Steven D'Aprano
Is there anyone here running Python on a PowerPC willing to help me diagnose and fix this issue? http://bugs.python.org/issue27761 -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse. --

[issue27761] Private _nth_root function loses accuracy on PowerPC

2016-08-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: Tests fail on a Power PC buildbot: http://buildbot.python.org/all/builders/PPC64LE%20Fedora%203.x/builds/1476/steps/test/logs/stdio == FAIL: testExactPowers

[issue27761] Private _nth_root function loses accuracy on PowerPC

2016-08-13 Thread Steven D'Aprano
New submission from Steven D'Aprano: First reported by Martin Panter here: http://bugs.python.org/issue27181#msg272488 I'm afraid I don't know enough about PowerPC to suggest a fix other than weakening the test on that platform. -- assignee: steven.daprano messages: 272638 nosy:

[issue27757] eval() does not allow import statements to run.

2016-08-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: Correction: `importlib.import_module` is also available in Python 2.7. -- ___ Python tracker ___

[issue27757] eval() does not allow import statements to run.

2016-08-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: That is not a bug, it is a feature. `eval` only evaluates *expressions*, not statements, and `import` is a statement. Neither of those is going to change. Starting in Python 3.1, you could use `import_module`:

Re: Multi-Line Strings: A Modest Proposal

2016-08-13 Thread John Wong
On Sat, Aug 13, 2016 at 8:38 PM, Lawrence D’Oliveiro wrote: > Python allows a single string literal to cross multiple lines, provided it > begins and ends with three quote characters, e.g. > > s = """this string continues > on the next line.""" > > There is a

Re: Win32 API in pywin32

2016-08-13 Thread Michael Torrie
On 08/13/2016 06:22 PM, Lawrence D’Oliveiro wrote: > On Saturday, August 13, 2016 at 10:49:11 PM UTC+12, eryk sun wrote: >> You can call GetFileSizeEx [1]. Or call GetFileInformationByHandleEx >> [2] to get the FileStandardInfo. These APIs use the LARGE_INTEGER >> union type, which has a long long

Re: Win32 API in pywin32

2016-08-13 Thread Michael Torrie
On 08/13/2016 06:22 PM, Lawrence D’Oliveiro wrote: > On Saturday, August 13, 2016 at 10:49:11 PM UTC+12, eryk sun wrote: >> You can call GetFileSizeEx [1]. Or call GetFileInformationByHandleEx >> [2] to get the FileStandardInfo. These APIs use the LARGE_INTEGER >> union type, which has a long long

[issue27760] integer overflow in binascii.b2a_qp

2016-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset af42635b5ed1 by Benjamin Peterson in branch '2.7': fix possible integer overflow in binascii.b2a_qp (closes #27760) https://hg.python.org/cpython/rev/af42635b5ed1 New changeset 54c74212db91 by Benjamin Peterson in branch '3.3': fix possible integer

[issue27760] integer overflow in binascii.b2a_qp

2016-08-13 Thread Benjamin Peterson
New submission from Benjamin Peterson: Thomas E Hybel reports: This vulnerability resides in /Modules/binascii.c in the function binascii_b2a_qp_impl. The problem is that the integer variable "odatalen" can overflow to become a small number. The function binascii_b2a_qp_impl qp-encodes binary

Re: Asynchronous programming

2016-08-13 Thread Ethan Furman
On 08/11/2016 10:47 PM, Paul Rudin wrote: Steven D'Aprano writes: [...] In this case, all the work is pure computation, so I don't expect to save any time by doing this, because the work is still all being done in the same process/thread, not in parallel. It may even take a little bit

[issue27759] selectors incorrectly retain invalid file descriptors

2016-08-13 Thread Mark Williams
Mark Williams added the comment: OK! Sorry for the trouble. On Sat, Aug 13, 2016 at 6:17 PM, Guido van Rossum wrote: > > Guido van Rossum added the comment: > > Also don't spend more time on this, I found a way to apply the patch > cleanly. > > -- > >

[issue27759] selectors incorrectly retain invalid file descriptors

2016-08-13 Thread Guido van Rossum
Guido van Rossum added the comment: Also don't spend more time on this, I found a way to apply the patch cleanly. -- ___ Python tracker ___

[issue27759] selectors incorrectly retain invalid file descriptors

2016-08-13 Thread Guido van Rossum
Guido van Rossum added the comment: We only need 3.5; 3.4 is no longer supported. -- ___ Python tracker ___

[issue27759] selectors incorrectly retain invalid file descriptors

2016-08-13 Thread Mark Williams
Mark Williams added the comment: Whoops! I pulled from https://github.com/python/cpython and branched off of master. The previous commit was https://github.com/python/cpython/tree/043152b8da83105ff5cba88d4e6ef1d5c64b3602 I can generate new patches using hg.python.org's 3.4 and 3.5 branches.

[issue27756] Add pyd icon for 3.6

2016-08-13 Thread Ned Deily
Changes by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue27759] selectors incorrectly retain invalid file descriptors

2016-08-13 Thread Guido van Rossum
Guido van Rossum added the comment: Your patch doesn't apply cleanly to the 3.4 or 3.5 branches -- how did you generate it? -- ___ Python tracker ___

[issue27754] Changing the meaning of bool.__invert__

2016-08-13 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue27754] Changing the meaning of bool.__invert__

2016-08-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: >>> ... it would be nice if ~ acted as negation on bools (~False being >>> True and ~True being false) instead of mapping them to -1 and -2 >>> as it currently does. I'm strongly against this proposal for several reasons. 1. One way to do it. We don't

Re: Multi-Line Strings: A Modest Proposal

2016-08-13 Thread Ben Finney
Lawrence D’Oliveiro writes: > So really, you should write it more like > > s = """this string continues > on the next line.""" > > which gets a bit ugly. For this I have the following treatment : import textwrap

Re: Asynchronous programming

2016-08-13 Thread Lawrence D’Oliveiro
On Saturday, August 13, 2016 at 8:26:05 PM UTC+12, Marko Rauhamaa wrote: > ... (unless Python takes Linux's AIO API into use, which > would be groundbreaking). Last I looked, asynchronous I/O on Linux was still a work in progress. The whole POSIX API has been grounded in the assumption that all

Re: Creating dictionary of items from Excel with mutliple keys

2016-08-13 Thread Lawrence D’Oliveiro
On Sunday, August 14, 2016 at 6:43:54 AM UTC+12, Michael Selik wrote: > Rather than using xlrd or other tools to read from excel, can you save the > file as CSV (comma-separated values)? I think you'll find Python's csv > module is very pleasant to use. Trying to use Python as a substitute for

Multi-Line Strings: A Modest Proposal

2016-08-13 Thread Lawrence D’Oliveiro
Python allows a single string literal to cross multiple lines, provided it begins and ends with three quote characters, e.g. s = """this string continues on the next line.""" There is a drawback with this: any whitespace at the start of the continuation line is included as part of the

[issue12345] Add math.tau

2016-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue12345] Add math.tau

2016-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unsubscribing from this ridiculous issue. Guido, do your thing. -- ___ Python tracker ___

[issue27759] selectors incorrectly retain invalid file descriptors

2016-08-13 Thread Mark Williams
New submission from Mark Williams: Registering a file descriptor with EpollSelector.register that epoll(7) refuses results in the selector retaining a SelectorKey for that file descriptor, even though it's not monitored. The following program attempts to register a file on the filesystem with

Re: Win32 API in pywin32

2016-08-13 Thread Lawrence D’Oliveiro
On Saturday, August 13, 2016 at 10:49:11 PM UTC+12, eryk sun wrote: > You can call GetFileSizeEx [1]. Or call GetFileInformationByHandleEx > [2] to get the FileStandardInfo. These APIs use the LARGE_INTEGER > union type, which has a long long "QuadPart" member. > ... > FILETIME is a legacy of the

[issue27758] integer overflow in the _csv module's join_append_data function

2016-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset fdae903db33a by Benjamin Peterson in branch '2.7': check for overflow in join_append_data (closes #27758) https://hg.python.org/cpython/rev/fdae903db33a New changeset afa356402217 by Benjamin Peterson in branch '3.3': check for overflow in

[issue27758] integer overflow in the _csv module's join_append_data function

2016-08-13 Thread Benjamin Peterson
New submission from Benjamin Peterson: Thomas E Hybel on PSRT reports: This vulnerability is an integer overflow leading to a heap buffer overflow. I have attached a proof-of-concept script below. The vulnerability resides in the Modules/_csv.c file, in the join_append and join_append_data

[issue23369] integer overflow in _json.encode_basestring_ascii

2016-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6fa0ebfdc136 by Benjamin Peterson in branch '2.7': fix possible overflow in encode_basestring_ascii (#23369) https://hg.python.org/cpython/rev/6fa0ebfdc136 -- ___ Python tracker

Re: Why my image cannot be displayed?

2016-08-13 Thread huey . y . jiang
On Friday, August 12, 2016 at 9:40:15 PM UTC-4, huey.y...@gmail.com wrote: > Hi All, > > Image display drives me crazy. After I get it displayed, and want to do the > job with a class, display failed again. Please take a look at my trial code: > > from Tkinter import * > > class imageDisplay:

[issue27757] eval() does not allow import statements to run.

2016-08-13 Thread Decorater
New submission from Decorater: runnign exec on import lines are fine however if I run the following code in a exec: >>>import py2pycx;py2pycx.api.compress_script(sys.path[0] + >>>'\resources\Dependencies', 'six.py') Traceback (most recent call last): File

[issue27757] eval() does not allow import statements to run.

2016-08-13 Thread Decorater
Decorater added the comment: eval* my typo is OP -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27754] Changing the meaning of bool.__invert__

2016-08-13 Thread R. David Murray
R. David Murray added the comment: Well, maybe I'm wrong about the 'next feature release' bit, I won't claim to be able to read Guido's mind :) -- ___ Python tracker

[issue27754] Changing the meaning of bool.__invert__

2016-08-13 Thread R. David Murray
R. David Murray added the comment: Well, in this context "in 3.6" means "in the next feature release", so it isn't as if the window closes forever. I'd vote -1 myself. It doesn't seem like a useful enough feature to be worth adding, given that ~x is equivalent to "not x" for booleans, but

[issue12345] Add math.tau

2016-08-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list

[issue12345] Add math.tau

2016-08-13 Thread Decorater
Decorater added the comment: not to mention I like to use the following expression myself. pie = 22 / 7 # because why not? tau = 2 * pie -- nosy: +Decorater ___ Python tracker

Re: A strange list concatenation result

2016-08-13 Thread Mok-Kong Shen
Am 13.08.2016 um 03:08 schrieb Steven D'Aprano: On Sat, 13 Aug 2016 06:44 am, Mok-Kong Shen wrote: list2 = [1,2,3] list1 += [4,5,6] print(list1, list2) [1, 2, 3, 4, 5, 6] [1, 2, 3] Does that help? I don't yet understand why in my 2nd example list2 came out as [1, 2, 3] outside. Because

Re: What's the best way to minimize the need of run time checks?

2016-08-13 Thread BartC
On 13/08/2016 17:06, Steven D'Aprano wrote: On Sat, 13 Aug 2016 08:09 pm, BartC wrote: record date=# define the record var day, month, year end d := date(25,12,2015) # create an instance Sure. But you've put most of the work into the compiler. Into the language

[issue12345] Add math.tau

2016-08-13 Thread Vedran Čačić
Vedran Čačić added the comment: As an Easter egg, of course. I'm all for it. But please take a look at https://docs.python.org/3.5/search.html?q=antigravity_keywords=yes=default -- ___ Python tracker

[issue27749] python 3.5.2 maybe crash

2016-08-13 Thread Decorater
Decorater added the comment: I do know for sure the crash happens in python.exe and blames ntdll.dll for it. -- ___ Python tracker ___

[issue27749] python 3.5.2 maybe crash

2016-08-13 Thread Decorater
Decorater added the comment: I can confirm that I also get the same crash. -- Added file: http://bugs.python.org/file44099/python.exe.8228.dmp ___ Python tracker

[issue27754] Changing the meaning of bool.__invert__

2016-08-13 Thread Vedran Čačić
Vedran Čačić added the comment: Ok, so let me try to summarize. Some people realized that & and | on bools are overridden to return bools instead of ints, and thought it would be nice if ~ acted as negation on bools (~False being True and ~True being false) instead of mapping them to -1 and

[issue27756] Add pyd icon for 3.6

2016-08-13 Thread Decorater
New submission from Decorater: I did some working and did a halfed one for pyd's it basically combines it icon from python.exe with the DLL "gears" for windows DLL's beig under that. Hopefully it will work. (Anyone could use this as a base file and restyle it or whatever if they want. At

[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-13 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch. FWIW, that does seem to solve the crash. Brett, look good to you? If so, I can push the fix. -- stage: needs patch -> patch review ___ Python tracker

[issue21417] Compression level for zipfile

2016-08-13 Thread Decorater
Decorater added the comment: Yes, it would make sence or better yet have a arg that is optional that if not set make it = ``9``. -- nosy: +Decorater ___ Python tracker

[issue21417] Compression level for zipfile

2016-08-13 Thread Justin Foo
Justin Foo added the comment: Would compresslevel be a suitable argument? All the backend compressors accept values from 1 to 9 if I'm not mistaken. -- nosy: +jfoo ___ Python tracker

[issue27755] Retire DynOptionMenu with a ttk Combobox

2016-08-13 Thread Justin Foo
Changes by Justin Foo : -- keywords: +patch Added file: http://bugs.python.org/file44097/issue27755.patch ___ Python tracker ___

[issue27755] Retire DynOptionMenu with a ttk Combobox

2016-08-13 Thread Justin Foo
New submission from Justin Foo: One aspect of the IDLE interface that looks extremely old is the the dropdown menu. In the patch, I think I've preserved whatever essential functionality DynOptionMenu used to have, but I'm relatively unfamiliar with Tk so I'm not sure. -- assignee:

Re: Asynchronous programming

2016-08-13 Thread Ethan Furman
On 08/11/2016 07:14 AM, Steven D'Aprano wrote: On Thu, 11 Aug 2016 03:06 pm, Paul Rubin wrote: The basic characteristic of asynchronous programming is that it involves changing all your usual blocking i/o calls to non-blocking ones, so your program can keep running as soon as your request is

Looking for info on how Python developers negotiate breaking changes in PyPI packages

2016-08-13 Thread Chris Bogart
Hi, I'm looking for some help from Python developers who write PyPI packages (or open source software that depends on PyPI packages). My research group is interested in the impacts of different choices package managers make when designing their ecosystems -- e.g. Python/PyPi, Hackage and R/CRAN.

[issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

2016-08-13 Thread R. David Murray
R. David Murray added the comment: Agreed, the current wording is correct and complete, except for the name vs named bit. I've fixed that. -- nosy: +r.david.murray resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

Re: How to add data in xlm file ?

2016-08-13 Thread Karim
On 13/08/2016 11:05, Asad ur Rehman wrote: def Test(request): save_path = '/usr/share/newfies/' name_of_file = ("Avatar") completeName = os.path.join(save_path, name_of_file+".xlm") file1 = open(completeName, "w") toFile = raw_input("Write what you want into the

[issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

2016-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1e4c8a3e786 by R David Murray in branch '2.7': #27753: fix typo (name->named). https://hg.python.org/cpython/rev/b1e4c8a3e786 New changeset c1cc1f616285 by R David Murray in branch '3.5': #27753: fix typo (name->named).

Re: Creating dictionary of items from Excel with mutliple keys

2016-08-13 Thread Michael Selik
On Sat, Aug 13, 2016 at 12:46 PM Atri Mahapatra wrote: > I am trying to create a following dictionary. I am reading data from excel > Rather than using xlrd or other tools to read from excel, can you save the file as CSV (comma-separated values)? I think you'll find

[issue27754] Changing the meaning of bool.__invert__

2016-08-13 Thread R. David Murray
R. David Murray added the comment: That doesn't look like a thread consensus, nor does the link you provide explain what is under discussion. I'm not going to search the thread myself, so my answer right now is "dropped" unless there was actually a positive conclusion to that thread for

[issue1602] windows console doesn't print or input Unicode

2016-08-13 Thread Adam Bartoš
Adam Bartoš added the comment: Hello Steve, that's great you are working on this! I've ran through your patch and I have the following remarks: • Since wide chars have two bytes, there may be problem when someone wants to read or write odd number of bytes. If the number is > 1, it's ok since

Re: What's the best way to minimize the need of run time checks?

2016-08-13 Thread Christian Gollwitzer
Am 12.08.16 um 11:58 schrieb BartC: On 12/08/2016 10:45, Chris Angelico wrote: On Fri, Aug 12, 2016 at 7:38 PM, BartC wrote: You can be too dynamic. Take an example like this: d.yaer=1999 print (d.day,d.month,d.year) This would never get past a static language nor

[issue27720] decimal.Context.to_eng_string wrong docstring

2016-08-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27720] decimal.Context.to_eng_string wrong docstring

2016-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset de2a9c98948e by Raymond Hettinger in branch '3.5': Issue #27720: Fix error in eng_to_decimal docs and add examples from the specification. https://hg.python.org/cpython/rev/de2a9c98948e -- ___ Python

[issue27720] decimal.Context.to_eng_string wrong docstring

2016-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 825713d3786a by Raymond Hettinger in branch '2.7': Issue #27720: Fix error in eng_to_decimal docs and add examples from the specification. https://hg.python.org/cpython/rev/825713d3786a -- nosy: +python-dev

[issue25825] AIX shared library extension modules installation broken

2016-08-13 Thread David Edelsohn
David Edelsohn added the comment: The second of two patches. This patch changes the definition of LDSHARED for AIX in configure to reference the matching installed location as defined in Makefile.pre.in by Patch1. The definition from configure propagates into _sysconfigdata.py. This change

Re: Python Indentation

2016-08-13 Thread Cai Gengyang
Yay ! On Sunday, August 14, 2016 at 1:40:09 AM UTC+8, Chris Angelico wrote: > On Sun, Aug 14, 2016 at 3:06 AM, Cai Gengyang wrote: > > Oh ok, so for the first block , it works because the indentation is the > > same for all 3 "print" statements , i.e. the indentation is 4

[issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

2016-08-13 Thread SilentGhost
SilentGhost added the comment: I don't see how this is an improvement. Before it clearly said that the first argument must be file name, now it's an oddly confusing statement. Also, typically we don't list all the possibilities of what the arguments must not be. --

[issue12345] Add math.tau

2016-08-13 Thread Georg Brandl
Georg Brandl added the comment: Please folks. Stop taking this so seriously and remember that this is the language where you can type in >>> import antigravity and it actually works. (Sort of.) -- ___ Python tracker

[issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

2016-08-13 Thread Decorater
Decorater added the comment: Ok, file uploaded. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

2016-08-13 Thread Decorater
Changes by Decorater : Added file: http://bugs.python.org/file44095/py_compile.rst ___ Python tracker ___

[issue12345] Add math.tau

2016-08-13 Thread Vedran Čačić
Vedran Čačić added the comment: > However an honest and non partisan web site would list all the use of pi > without 2 where the formula would be more complicated. I don't see that so > I'm still not convinced. "non partisan" is probably hard to find, but if you want to see the other side of

Re: Python Indentation

2016-08-13 Thread Chris Angelico
On Sun, Aug 14, 2016 at 3:06 AM, Cai Gengyang wrote: > Oh ok, so for the first block , it works because the indentation is the same > for all 3 "print" statements , i.e. the indentation is 4 spaces for each of > the 3 print statements. > > if a == 1: > print("If a is

[issue27754] Changing the meaning of bool.__invert__

2016-08-13 Thread Vedran Čačić
New submission from Vedran Čačić: Not that I'm very much for it, but I'd like this not to be forgotten: https://mail.python.org/pipermail/python-ideas/2016-April/039665.html Is this going to be done in Py3.6? Or officially dropped? -- messages: 272597 nosy: veky priority: normal

[issue1602] windows console doesn't print or input Unicode

2016-08-13 Thread Steve Dower
Steve Dower added the comment: I'm now actively working on this for 3.6. I've attached my first pass at implementing an alternative raw IO stream that uses the *ConsoleW APIs instead of the CRT. It works fine for basic print() and input() (including handling redirection "properly", which is a

Re: Python Indentation

2016-08-13 Thread Cai Gengyang
Oh ok, so for the first block , it works because the indentation is the same for all 3 "print" statements , i.e. the indentation is 4 spaces for each of the 3 print statements. if a == 1: print("If a is one, this will print.") print("So will this.") print("And this.")

[issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

2016-08-13 Thread SilentGhost
SilentGhost added the comment: Do you care to propose an improved wording? -- ___ Python tracker ___ ___

[issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

2016-08-13 Thread Decorater
Decorater added the comment: yeah, true and to specify that it cannot be anything but a file. -- ___ Python tracker ___

Creating dictionary of items from Excel with mutliple keys

2016-08-13 Thread Atri Mahapatra
I am trying to create a following dictionary. I am reading data from excel which has data in the following format: Sl no: Name Thickness Length Material Width Quantity Side It has 20 rows of data. The dictionary for the 20 rows, I would like to make is Data_Dict = [ { 'Name': 'X',

[issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

2016-08-13 Thread Xiang Zhang
Xiang Zhang added the comment: Maybe in the sentence, name should be named? -- nosy: +xiang.zhang ___ Python tracker ___

[issue12345] Add math.tau

2016-08-13 Thread Xavier Combelle
Xavier Combelle added the comment: Python will really follow the tau sort joke ? I never saw it mentioned in any serious math or programming document. All the github search result looks like people who are in this joke (kind of). The page http://tauday.com/state-of-the-tau list very little

Re: What's the best way to minimize the need of run time checks?

2016-08-13 Thread Steven D'Aprano
On Sat, 13 Aug 2016 08:09 pm, BartC wrote: > (The way I deal with records elsewhere is so ridiculously simple that it > almost makes me want to cry when I see what most dynamic languages have > to do. Example: > > record date=# define the record > var day, month, year > end >

  1   2   >