[issue31493] IDLE cond context: fix code update and font update timers

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b417332bf44af93c8acda4b7197181d4b62c16a4 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31493: Fix code context update and font update timers. (GH-3622) (#3623)

[issue31440] wrong default module search path in help message

2017-09-17 Thread Gaurav Singh
Changes by Gaurav Singh : -- keywords: +patch pull_requests: +3614 stage: needs patch -> patch review ___ Python tracker ___

[issue31440] wrong default module search path in help message

2017-09-17 Thread Xiang Zhang
Xiang Zhang added the comment: Not sure about Windows. _get_path() looks to me is used for user site-packages. getsitepackages() doesn't do the same and seems matching the current message, also the OS2 branch in py2. Let's consult Windows guys. -- nosy: +eryksun, gauravbackback,

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-17 Thread Terry Reedy
On 9/16/2017 7:04 PM, breamore...@gmail.com wrote: I thought some might find this https://sites.google.com/view/energy-efficiency-languages/ interesting. By 'energy', they only mean electricity, not food calories. This is the email I sent to the authors. --- As a two-decade user of

Re: Old Man Yells At Cloud

2017-09-17 Thread Abdur-Rahmaan Janhangeer
as someone who really dislike js, i have to admit : python's globals are really really bad ! js is a charm at that a real charm ! Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 16 Sep 2017 09:40, "Steve D'Aprano" wrote: > /rant on > >

[issue31490] assertion failure in ctypes in case an _anonymous_ attr appears outside _fields_

2017-09-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 2.7, Python 3.6 ___ Python tracker ___

Re: Unicode (was: Old Man Yells At Cloud)

2017-09-17 Thread Chris Angelico
On Sun, Sep 17, 2017 at 9:38 PM, Leam Hall wrote: > Still trying to keep this Py2 and Py3 compatible. > > The Py2 error is: > UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' > in position 8: ordinal not in range(128) > > even when the string is

[issue31443] Possibly out of date C extension documentation

2017-09-17 Thread Stefan Krah
Stefan Krah added the comment: PyType_GenericNew() should be in libpython, so indeed the example in the docs seems a bit odd to me. -- nosy: +skrah ___ Python tracker

[issue31487] Improve f-strings documentation wrt format specifiers

2017-09-17 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +3616 ___ Python tracker ___ ___

Typo-squatting PyPi

2017-09-17 Thread Alain Ketterlin
In case you haven't heard about this: https://developers.slashdot.org/story/17/09/16/2030229/pythons-official-repository-included-10-malicious-typo-squatting-modules Here is the Slashdot summary: | The Slovak National Security Office (NBU) has identified ten malicious | Python libraries

Re: Old Man Yells At Cloud

2017-09-17 Thread Leam Hall
Different view, I guess. I'm glad all the young Javascripters have that issue. As an old guy trying to re-learn more python it gives me an advantage. I'm usually interested in the best thislanguage-native way to do something. Doing so makes me learn the language faster and tends to generate

[issue27391] server_hostname should only be required when checking host names

2017-09-17 Thread Jim Fulton
Jim Fulton added the comment: OMG, >1year. :) This was always a minor issue. I still think the current asyncio behavior is dumb, but whatever. FWIW, I tripped on this when adding SSL support to ZEO, which is a client-server *database* protocol used by ZODB, having nothing to do with the

[issue31487] Improve f-strings documentation wrt format specifiers

2017-09-17 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 4f6bae9677c0e5398e64c503fd3c19cae94567da by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-31487: Update F-strings doc example (GH-3627) (GH-3628) https://github.com/python/cpython/commit/4f6bae9677c0e5398e64c503fd3c19cae94567da

[issue31443] Possibly out of date C extension documentation

2017-09-17 Thread Romuald Brunet
Romuald Brunet added the comment: I'm not sure this is relevant, but I've just made a simple test on Windows (7) with my C extension using { … .tp_new = PyType_GenericNew } and the compiler did not complain (also the code worked as expected) -- ___

[issue31346] Prefer PROTOCOL_TLS_CLIENT/SERVER

2017-09-17 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31386] Make return types of wrap_bio and wrap_socket customizable

2017-09-17 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Which database system?

2017-09-17 Thread Amirouche Boubekki
Le 15 sept. 2017 20:05, "Stefan Ram" a écrit : When one is building an in-memory database that has a single table that is built at the start of the program and then one writes some complex queries to the table, what can be expected to be faster: -

speech_to_text python command not working

2017-09-17 Thread pizza python
Hello all. I'm on Linux Mint 18.2 Cinnamon 64-bit. I am trying to get IBM Watson BlueMix Speech-To-Text to transcribe my spoken-word audio files. Because I'm not a coder, I tried to find the simplest way to use BlueMix Speech-to-Text. And what I found is

Re: Old Man Yells At Cloud

2017-09-17 Thread Leam Hall
Hmm... scratch the "young" and "Javascripters". Why lump them together since I bet it's just a vocal few? Better to have said "people who don't want to really learn the new language". On 09/17/2017 06:03 AM, Leam Hall wrote: Different view, I guess. I'm glad all the young Javascripters have

[issue31490] assertion failure in ctypes in case an _anonymous_ attr appears outside _fields_

2017-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 30b61b51e05d2d43e8e2e783b0a9df738535423b by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is defined only outside _fields_. (#3615)

[issue31351] ensurepip discards pip's return code which leads to broken venvs

2017-09-17 Thread Igor Filatov
Changes by Igor Filatov : -- keywords: +patch pull_requests: +3615 stage: -> patch review ___ Python tracker ___

Re: Old Man Yells At Cloud

2017-09-17 Thread Steve D'Aprano
On Sun, 17 Sep 2017 11:51 pm, Tim Golden wrote: > Print-as-a-function removed one small simplicity Presumably you've never wanted to print to something other than std.out. The syntax in Python 2 is horrid: print >>sys.stderr, args Presumably you've never wanted to print using a separator

[issue31484] Cache single-character strings outside of the Latin1 range

2017-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > > The cache of size 2 x 256 slots can increase memory consumption by 50 KiB > > in worst case, 2 x 1024 -- by 200 KiB. > How much is this compared to the total usage? For Python interpreter VmSize: 31784 kB, VmRSS: 7900 kB. The cache doesn't affect

[issue31487] Improve f-strings documentation wrt format specifiers

2017-09-17 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3617 ___ Python tracker ___

[issue31487] Improve f-strings documentation wrt format specifiers

2017-09-17 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 63c591c0b0b57870a606e8edc59afe6264e7504d by Mariatta in branch 'master': bpo-31487: Update F-strings doc example (GH-3627) https://github.com/python/cpython/commit/63c591c0b0b57870a606e8edc59afe6264e7504d --

[issue31484] Cache single-character strings outside of the Latin1 range

2017-09-17 Thread Xiang Zhang
Xiang Zhang added the comment: I run the patch against a toy NLP application, cutting words from Shui Hu Zhuan provided by Serhiy. The result is not bad, 6% faster. And I also count the hit rate, 90% hit cell 0, 4.5 hit cell 1, 5.5% miss. I also increase the cache size to 1024 * 2. Although

[issue31497] Add _PyType_Name()

2017-09-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3619 ___ Python tracker ___

[issue31498] Default values for zero in time.strftime()

2017-09-17 Thread Denis Osipov
New submission from Denis Osipov: Now default values for zero in time.strftime returns string with day of week value 1: >>> time.strftime("%Y %m %d %H %M %S %w %j", (2000,)+(0,)*8) '2000 01 01 00 00 00 1 001' while 2000-01-01 is Saturday (=6th day of week). Now each illegal value (day of

[issue27541] Repr of collection's subclasses

2017-09-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3620 stage: -> patch review ___ Python tracker ___

[issue27541] Repr of collection's subclasses

2017-09-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Add _PyType_Name() versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue27541] Repr of collection's subclasses

2017-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for changing the cases Serhiy found. Also, I agree with Serhiy that there should be a change for the built-in types that have a literal notation (it has been this was forever, hasn't caused any real issues, and changing it now will likely break code).

[issue31496] IDLE: test_configdialog failed

2017-09-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -m test -uall test_idle Run tests sequentially 0:00:00 load avg: 1.19 [1/1] test_idle invalid command name "140662890299080timer_event" while executing "140662890299080timer_event" ("after" script) test test_idle failed -- Traceback (most

[issue31482] random.seed() doesn't work with bytes and version=1

2017-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 132a7d7cdbc7cb89fa1c1f4e8192241c3d68f549 by Raymond Hettinger in branch 'master': bpo-31482: Missing bytes support for random.seed() version 1 (#3614) https://github.com/python/cpython/commit/132a7d7cdbc7cb89fa1c1f4e8192241c3d68f549

[issue31482] random.seed() doesn't work with bytes and version=1

2017-09-17 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3618 ___ Python tracker ___

Re: Unicode

2017-09-17 Thread leam hall
On Sun, Sep 17, 2017 at 9:13 AM, Peter Otten <__pete...@web.de> wrote: > Leam Hall wrote: > > > On 09/17/2017 08:30 AM, Chris Angelico wrote: > >> On Sun, Sep 17, 2017 at 9:38 PM, Leam Hall wrote: > >>> Still trying to keep this Py2 and Py3 compatible. > >>> > >>> The Py2

[issue31497] Add _PyType_Name()

2017-09-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed PR adds a helper function _PyType_Name() which returns the last component of tp_name after dot. This allows to avoid duplication of the code. I'm going to use this helper in more places in future for getting rid of hardcoded type names

Re: Unicode

2017-09-17 Thread Chris Angelico
On Mon, Sep 18, 2017 at 2:20 AM, leam hall wrote: > On Sun, Sep 17, 2017 at 9:13 AM, Peter Otten <__pete...@web.de> wrote: > >> Leam Hall wrote: >> >> > On 09/17/2017 08:30 AM, Chris Angelico wrote: >> >> On Sun, Sep 17, 2017 at 9:38 PM, Leam Hall wrote:

[issue31497] Add _PyType_Name()

2017-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 This would clean-up the code a bit. -- nosy: +rhettinger ___ Python tracker ___

[issue31496] IDLE: test_configdialog failed

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are you running on Linux or Mac? What tk version? About the 'invalid command name' message: PR3622, patching idlelib.codecontext, merged to master 13 hours ago, fixed this for me on Windows. (It added CodeContext.__del__.) Did it fail on your machine or

[issue31475] Bug in argparse - not supporting utf8

2017-09-17 Thread INADA Naoki
INADA Naoki added the comment: You reported stack trace on Github pull request. But discussion should be made here, not in pull request. As far as reading traceback, your problem is solved already in Python 3.6, by PEP 528. -- nosy: +inada.naoki

Re: Old Man Yells At Cloud

2017-09-17 Thread Steve D'Aprano
On Mon, 18 Sep 2017 03:00 am, Chris Angelico wrote: >> The distinction between Python floats and real numbers ℝ is a red-herring. It >> isn't relevant. > > You said: > (I have a degree in maths, and if we ever covered areas where int/int was undefined, it was only briefly, and I've

[issue31499] ElementTree crash with new expat

2017-09-17 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___

[issue31500] IDLE: Tiny font on HiDPI display

2017-09-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: My new laptop has a HiDPI display (3840x2160). IDLE (as well as other Tk applications) looks ugly on it. The font of menu and dialogs is tiny. The font used in editor and shell looks normal size. I use Linux with X Window. It seems to me this issue

Re: Old Man Yells At Cloud

2017-09-17 Thread Steve D'Aprano
On Mon, 18 Sep 2017 04:09 am, Tim Chase wrote: > On 2017-09-18 00:42, Steve D'Aprano wrote: >> On Sun, 17 Sep 2017 11:51 pm, Tim Golden wrote: >> Presumably you've never wanted to print to something other than >> std.out. The syntax in Python 2 is horrid: >> >> print >>sys.stderr, args > > For

[issue31482] random.seed() doesn't work with bytes and version=1

2017-09-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31499] ElementTree crash with new expat

2017-09-17 Thread Stefan Behnel
New submission from Stefan Behnel: I'm seeing crashes in the latest Py3.7 when I run this test (taken from lxml's compatibility test suite): etree = xml.etree.ElementTree def test_feed_parser_error_position(self): ParseError = etree.ParseError parser = XMLParser()

[issue31497] Add _PyType_Name()

2017-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4ab46d794961491ed185c195d53da7ee6a16e646 by Serhiy Storchaka in branch 'master': bpo-31497: Add private helper _PyType_Name(). (#3630) https://github.com/python/cpython/commit/4ab46d794961491ed185c195d53da7ee6a16e646 --

[issue31443] Possibly out of date C extension documentation

2017-09-17 Thread Stefan Krah
Stefan Krah added the comment: Christian, do you remember which compiler was the reason for the commit cbf3b5cb76906fba15dbf59a1e83c540a447b907 ? + /* Due to cross platform compiler issues the slots must be filled +* here. It's required for portability to Windows without

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2017-09-17 Thread Ewoud Kohl van Wijngaarden
Changes by Ewoud Kohl van Wijngaarden : -- keywords: +patch pull_requests: +3621 stage: -> patch review ___ Python tracker

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2017-09-17 Thread Ewoud Kohl van Wijngaarden
Ewoud Kohl van Wijngaarden added the comment: Today I ran into this as well. In the case of IPv6 it's simple to decide what should be returned but on the IPv4Network I disagree. My expectation would be the domain where I would make the reverse needed. That means for 127.0.0.0/13 it should be

[issue31502] IDLE: Config dialog again deletes custom themes and keysets.

2017-09-17 Thread Terry J. Reedy
New submission from Terry J. Reedy: The askyesno messagebox wrappers, added in #31287, returned None, which is interpreted as 'No', instead of the user entry. With 'Yes' not seen, nothing was saved. The manual tests, once the problem was understood, is to save a new theme/keyset and click

[issue31501] Operator precedence description for arithmetic operators

2017-09-17 Thread svelankar
New submission from svelankar: Description for the operator precedence should read "Multiplication, matrix multiplication division, remainder" instead of "Multiplication, matrix multiplication, division, floor division, remainder. Section 6.16. Operator precedence I feel this would help a

Re: Old Man Yells At Cloud

2017-09-17 Thread Rick Johnson
On Sunday, September 17, 2017 at 9:42:34 AM UTC-5, Steve D'Aprano wrote: > On Sun, 17 Sep 2017 11:51 pm, Tim Golden wrote: > > [Snip: Reasons why print function is better than print statement] > > I've wanted to do all those things, and more. I love the > new print function. For the cost of one

[issue31502] IDLE: Config dialog again deletes custom themes and keysets.

2017-09-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +patch pull_requests: +3624 stage: needs patch -> patch review ___ Python tracker ___

[issue31287] IDLE configdialog tests: don't modify tkinter.messagebox.

2017-09-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3625 ___ Python tracker ___ ___

Re: Unicode

2017-09-17 Thread Matt Ruffalo
On 2017-09-17 17:27, leam hall wrote: > > Ah! So this works in Py2: >def __str__(self): > name= self.name.encode("utf-8") > > > It completely fails in Py3: > PVT b'Lakeisha F\xc3\xa1bi\xc3\xa1n' 7966A4 [F] Age: 22 > > > Note that moving __str__() to display() gets the same

Re: Old Man Yells At Cloud

2017-09-17 Thread Rick Johnson
Tim Chase wrote: > Steve D'Aprano wrote: > > Tim Golden wrote: > > Presumably you've never wanted to print to something other > > than std.out. The syntax in Python 2 is horrid: > > > > print >>sys.stderr, args > > For those cases, the old syntax was sufficiently horrid > that indeed I didn't

[issue31502] IDLE: Config dialog again deletes custom themes and keysets.

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0efc7c67a2f8a184e93f9a491305c81ef2e24250 by Terry Jan Reedy in branch 'master': bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (#3634) https://github.com/python/cpython/commit/0efc7c67a2f8a184e93f9a491305c81ef2e24250

Re: [Tutor] beginning to code

2017-09-17 Thread Terry Reedy
On 9/17/2017 4:39 PM, Rick Johnson wrote: My point is that Python source code was meant to be "executable pseudo code" (Python devs' words not mine!), The coinage 'Executable pseudocode' was my description of Python on comp.lang.python, mirrored to this list, in April 1997, long before I

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 55679e0ec76ee3b30ca609948f47bb02a8e0a078 by Terry Jan Reedy in branch 'master': bpo-30928: Update idlelib/NEWS.txt to 2017 Sep 17. (#3635) https://github.com/python/cpython/commit/55679e0ec76ee3b30ca609948f47bb02a8e0a078 --

[issue31381] Unable to read the project file "pythoncore.vcxproj".

2017-09-17 Thread Denis Osipov
Denis Osipov added the comment: Fixed in PR 3397 (I guess). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Old Man Yells At Cloud

2017-09-17 Thread Chris Angelico
On Sun, Sep 17, 2017 at 11:03 PM, Steve D'Aprano wrote: > On Sun, 17 Sep 2017 08:43 pm, Chris Angelico wrote: > >> On Sun, Sep 17, 2017 at 5:54 PM, Steve D'Aprano >> wrote: >>> To even *know* that there are branches of maths where int/int

Re: [Tutor] beginning to code

2017-09-17 Thread Rick Johnson
Steve D'Aprano wrote: > ROGER GRAYDON CHRISTMAN wrote: [...] > > And most definitely if x is assigned outside my control, I > > would definitely want some way to test or verify x's type > > before I start using it, lest my random number generator > > with its (A + B * C) % D finds itself

[issue31501] Operator precedence description for arithmetic operators

2017-09-17 Thread svelankar
Changes by svelankar : -- keywords: +patch pull_requests: +3623 stage: -> patch review ___ Python tracker ___

[issue31502] IDLE: Config dialog again deletes custom themes and keysets.

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not adding a new item because the regression has not been released. -- ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3626 stage: needs patch -> patch review ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: This should prepare IDLE for 3.6.3 and 3.7.0a1 cutoff tomorrow morning. -- stage: patch review -> needs patch ___ Python tracker

Re: Unicode

2017-09-17 Thread leam hall
Matt wrote: Hi Leam- > > Targeting Python 2.6 for deployment on RHEL/CentOS 6 is a perfectly > valid use case, and after the recent discussions in multiple threads > (your "Design: method in class or general function?" and INADA Naoki's > "People choosing Python 3"), I doubt it would be very

Re: Old Man Yells At Cloud

2017-09-17 Thread Rick Johnson
Steve D'Aprano wrote: > Tim Chase wrote: > > > On 2017-09-18 00:42, Steve D'Aprano wrote: > > > On Sun, 17 Sep 2017 11:51 pm, Tim Golden wrote: > > > Presumably you've never wanted to print to something > > > other than std.out. The syntax in Python 2 is horrid: > > > > > > print >>sys.stderr,

[issue31287] IDLE configdialog tests: don't modify tkinter.messagebox.

2017-09-17 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3628 ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-17 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3629 stage: needs patch -> patch review ___ Python tracker ___

[issue31487] Improve f-strings documentation wrt format specifiers

2017-09-17 Thread Martin Panter
Martin Panter added the comment: >>> f"{number:#0x}" # using integer format specifier It’s not clear what your purpose was adding the above line, but the zero flag (0) does nothing because there is no “width” field. I think it could be misleading, because it is actually the “#x” codes that

[issue31287] IDLE configdialog tests: don't modify tkinter.messagebox.

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0efc7c67a2f8a184e93f9a491305c81ef2e24250 by Terry Jan Reedy in branch 'master': bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (#3634) https://github.com/python/cpython/commit/0efc7c67a2f8a184e93f9a491305c81ef2e24250

[issue31502] IDLE: Config dialog again deletes custom themes and keysets.

2017-09-17 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3627 ___ Python tracker ___

Re: Old Man Yells At Cloud

2017-09-17 Thread Chris Angelico
On Mon, Sep 18, 2017 at 4:35 AM, Steve D'Aprano wrote: >> So why doesn't it return a fractions.Fraction instead? That way, you >> still get "one half" instead of zero, but it's guaranteed to be >> accurate. And having 1/3 be a literal meaning "one third" would avoid >>

[issue31497] Add _PyType_Name()

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

[issue31499] ElementTree crash with new expat

2017-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce a crash. Could you please provide a Python script? -- ___ Python tracker ___

Re: Old Man Yells At Cloud

2017-09-17 Thread MRAB
On 2017-09-17 19:59, Chris Angelico wrote: On Mon, Sep 18, 2017 at 4:35 AM, Steve D'Aprano wrote: So why doesn't it return a fractions.Fraction instead? That way, you still get "one half" instead of zero, but it's guaranteed to be accurate. And having 1/3 be a

Re: Old Man Yells At Cloud

2017-09-17 Thread Tim Chase
On 2017-09-17 14:16, bartc wrote: > print() is used for its side-effects; what relevant value does it > return? depending on the sink, errors can be returned (at least for the printf(3) C function). The biggest one I've encountered is writing to a full disk. The return value is how many

Re: Old Man Yells At Cloud

2017-09-17 Thread Ned Batchelder
On 9/16/17 1:38 AM, Steve D'Aprano wrote: /rant on So apparently everyone who disagrees that Python should be more like Javascript is an old greybeard fuddy-duddy yelling "Get off my lawn!" to the cool kids -- and is also too stupid to know how dumb they are. "Hi, I've been programming in

[issue31496] IDLE: test_configdialog failed

2017-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: About the 'invalid command name' message: PR 3622 was not yet merged on your machine. Inserting hs.see(start) just before hs.bbox(start) fixes the issue. I have added some debug prints. Here are outputs, with and without a fix. -- Added file:

[issue31496] IDLE: test_configdialog failed

2017-09-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: https://bugs.python.org/file47143/success.txt ___ Python tracker ___

Re: Old Man Yells At Cloud

2017-09-17 Thread Tim Daneliuk
On 09/16/2017 09:59 AM, Tim Daneliuk wrote: > On 09/16/2017 12:38 AM, Steve D'Aprano wrote: >> /rant on >> >> So apparently everyone who disagrees that Python should be more like >> Javascript >> is an old greybeard fuddy-duddy yelling "Get off my lawn!" to the cool kids >> -- >> and is also too

Re: Unicode

2017-09-17 Thread Peter Otten
leam hall wrote: > Doesn't seem to work. The failing code takes the strings as is from the > database. it will occasionally fail when a name comes up that uses > a non-ascii character. Your problem in nuce: the Python 2 __str__() method must not return unicode. >>> class Character: ... def

[issue31499] ElementTree crash with new expat

2017-09-17 Thread Stefan Behnel
Stefan Behnel added the comment: Sorry, wrong line number. Was using an installed Py3.7, not a fresh build. However, my crashing installed version is from September 1st, *before* the expat update, which was apparently on September 5th. With a clean debug build, I get a reproducible crash

[issue31499] ElementTree crash while cleaning up ParseError

2017-09-17 Thread Stefan Behnel
Stefan Behnel added the comment: Minimal reproducer seems to be this: -- import xml.etree.ElementTree as etree def test(): parser = etree.XMLParser() try: parser.close() except etree.ParseError as exc: e = exc # must keep local reference! test() --

Re: [Tutor] beginning to code

2017-09-17 Thread Rick Johnson
ROGER GRAYDON CHRISTMAN wrote: [Note: RODGER's words have been edited for clarity, and hopefully he won't mind.] > I have not yet mastered how to respond to a particular note > in a thread with the mailer that I use, so this is not in > response to anyone in particular, but just to some of

[issue31498] Default values for zero in time.strftime()

2017-09-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___

Re: [Tutor] beginning to code

2017-09-17 Thread Rick Johnson
Larry Hudson wrote: > ROGER GRAYDON CHRISTMAN wrote: [Note: RODGER's reply is slightly modified for clarity] > > I have not yet mastered how to respond to a particular > > note in a thread with the mailer that I use, so this is not > > in response to anyone in particular, but just to some of

Re: Unicode

2017-09-17 Thread leam hall
On Sun, Sep 17, 2017 at 3:27 PM, Peter Otten <__pete...@web.de> wrote: > leam hall wrote: > > > Doesn't seem to work. The failing code takes the strings as is from the > > database. it will occasionally fail when a name comes up that uses > > a non-ascii character. > > Your problem in nuce: the

[issue31443] Possibly out of date C extension documentation

2017-09-17 Thread Stefan Krah
Stefan Krah added the comment: FWIW, I've been using https://github.com/python/cpython/blob/master/Modules/_decimal/_decimal.c#L689 the static initialization on problematic platforms like Windows and AIX for years, without any problems. I'm sure this is valid C, and people here agree:

Re: rmtree message

2017-09-17 Thread Larry Martell
On Wed, Sep 13, 2017 at 5:39 PM, Sean DiZazzo wrote: > On Wednesday, September 13, 2017 at 12:06:20 PM UTC-7, larry@gmail.com > wrote: >> I have a script that creates a tmp dir, create a lot of files in it, >> and when done, does a rmtree on the dir. When it does that

[issue27541] Repr of collection's subclasses

2017-09-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg302377 ___ Python tracker ___

[issue27541] Repr of collection's subclasses

2017-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for changing the cases Serhiy found. Also, I agree with Serhiy that there should not be a change for the built-in types that have a literal notation (it has been this was forever, hasn't caused any real issues, and changing it now will likely break

[issue31503] Enhance dir(module) to be informed by __all__ by updating module.__dir__

2017-09-17 Thread Nick Coghlan
Nick Coghlan added the comment: As far the implementation goes, since the `__dir__` overload support in the `dir()` builtin ignores instance dictionaries, this could be implemented in module.__dir__ (or object.__dir__) rather than directly in the builtin. Alternatively, it could use a

Re: Old Man Yells At Cloud

2017-09-17 Thread Tim Chase
On 2017-09-17 16:15, Rick Johnson wrote: > > I've wanted to do all those things, and more. I love the > > new print function. For the cost of one extra character, > > the closing bracket, > > Oops, _two_ characters! What about the opening "bracket"? >>> print(len('print "hello"')) 13 >>>

[issue31287] IDLE configdialog tests: don't modify tkinter.messagebox.

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6b4d8ba0971355027b8981a45a0a62ac1ef9a456 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (GH-3634) (#3636)

[issue31502] IDLE: Config dialog again deletes custom themes and keysets.

2017-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6b4d8ba0971355027b8981a45a0a62ac1ef9a456 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (GH-3634) (#3636)

[issue31501] Operator precedence description for arithmetic operators

2017-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 9b47af65375fab9318e88ccb061394a36c8c6c33 by Raymond Hettinger (svelankar) in branch 'master': bpo-31501: Operator precedence description for arithmetic operators (#3633)

[issue31501] Operator precedence description for arithmetic operators

2017-09-17 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3630 ___ Python tracker ___

  1   2   >