Re: Old Man Yells At Cloud

2017-09-20 Thread Steven D'Aprano
On Tue, 19 Sep 2017 18:43:43 -0700, Rick Johnson wrote: > On Tuesday, September 19, 2017 at 12:55:14 PM UTC-5, Chris Angelico > wrote: >> On Wed, Sep 20, 2017 at 3:44 AM, Stefan Ram >> wrote: >> > Steve D'Aprano did *not* write [it was >> >

[issue31506] Improve the error message logic for object_new & object_init

2017-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: C.__new__(42) emits different error, "TypeError: object.__new__(X): X is not a type object (int)". Perhaps you meant C.__new__(C, 42) which now emits "TypeError: C() takes no arguments". Messages "object.__new__() takes no arguments" and "object.__init__()

[issue31527] Report details of excess arguments in object_new & object_init

2017-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: str(x=1) is not the best example since str() takes keyword arguments. Look at tuple() and list(): >>> tuple(x=1) Traceback (most recent call last): File "", line 1, in TypeError: tuple() takes no keyword arguments >>> list(x=1) Traceback (most recent call

[issue27319] Multiple item arguments for selection operations

2017-09-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3656 ___ Python tracker ___

Re: Old Man Yells At Cloud

2017-09-20 Thread Chris Angelico
On Wed, Sep 20, 2017 at 4:01 PM, Steven D'Aprano wrote: > The other reserved words are either: > > - values, like None, which can be included in expressions; > > - operators, like `is`, `or`, and `not`; > > - block statements, like `for x in seq` or `while

[issue31517] MainThread association logic is fragile

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is there a problem here? I haven't heard of anyone even wondering about this > before. This came while working on the PEP 556 implementation. -- ___ Python tracker

[issue31517] MainThread association logic is fragile

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That said, I do agree with Tim that the status quo isn't broken per se: we > renamed `thread` to `_thread` in Python 3 for a reason This is not caused by `_thread` specifically, but any background thread created by C code that might invoke Python code. The

[issue31508] Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings

2017-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Cheryl. I'll open a separate issue. -- ___ Python tracker ___

[issue31508] Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings

2017-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I missed that the selection() method with its current behavior is documented in the module documentation. It isn't undocumented implementation detail. This raises a bar for removing higher. I think it is better to defer removing to 3.8 or later. Instead

Re: How do I check all variables returned buy the functions exists

2017-09-20 Thread Robin Becker
On 16/09/2017 01:58, Steve D'Aprano wrote: If you want to test for None specifically: if any(v is None for v in values): print "at least one value was None" ... for some reason that seems slow on my machine when compared with if None in values: .

wxPython 4.0.0b2 release

2017-09-20 Thread Robin Dunn
Announcing wxPython 4.0.0b2 === PyPI: https://pypi.python.org/pypi/wxPython/4.0.0b2 Extras: https://extras.wxPython.org/wxPython4/extras/ Pip:``pip install wxPython==4.0.0b2`` Changes in this release include the following: * Added a deprecated compatibility helper

ANN: poliastro 0.7 released

2017-09-20 Thread Juan Luis Cano
Hi all, It fills us with astronomical joy to announce the release of *poliastro 0.7.0*!  poliastro is a pure Python library that allows you to simulate and analyze interplanetary orbits in a Jupyter notebook in an interactive and easy way, used by people from all around the world

[issue31508] Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings

2017-09-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3657 ___ Python tracker ___

[RELEASE] Python 3.6.3rc1 and 3.7.0a1 are now available for testing and more

2017-09-20 Thread Ned Deily
The Python build factories have been busy the last several weeks preparing our fall lineup of releases. Today we are happy to announce three additions: 3.6.3rc1, 3.7.0a1, and 3.3.7 final, which join last weekend's 2.7.14 and last month's 3.5.4 bug-fix releases and 3.4.7 security-fix update

Re: How do I check all variables returned buy the functions exists

2017-09-20 Thread Bill
Robin Becker wrote: On 16/09/2017 01:58, Steve D'Aprano wrote: If you want to test for None specifically: if any(v is None for v in values): print "at least one value was None" ... for some reason that seems slow on my machine when compared with if None in values:

[issue31506] Improve the error message logic for object_new & object_init

2017-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, the "C.__new__" example omitting the first arg was just an error in that example. And that's a good point about the current "object.__init__()" error message actually being incorrect, since the *methods* each take exactly one argument - it's only the

ANN: SfePy 2017.3

2017-09-20 Thread Robert Cimrman
I am pleased to announce release 2017.3 of SfePy. Description --- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method or by the isogeometric analysis (limited support). It is distributed under

Re: How to share class relationship representations?

2017-09-20 Thread Leam Hall
On 09/19/2017 11:16 AM, Stefan Ram wrote: leam hall writes: I'm working on designing the classes, sub-classes, and relationships in my code. What is a good visual way to represent it so it can be stored in git and shared on the list without large images or attachments?

[issue31517] MainThread association logic is fragile

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure this is an issue worth fixing, but I don't think it's a good idea to document such quirky semantics. -- ___ Python tracker

[issue31528] Let ConfigParser parse systemd units

2017-09-20 Thread 林自均
New submission from 林自均: Although systemd units are inspired by .ini format, ConfigParser is unable to parse those files because: 1. Multiple assignments to the same option in systemd units are concatenated with white spaces. 2. Multiple sections with the same section name are merged. 3. An

[issue31500] IDLE: Tiny font on HiDPI display

2017-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: My screen is 23.5 x 13.25, making it 109 DPI. I asked Cheryl to try 9 first because it is 3/4 of 12. -- ___ Python tracker

Re: Even Older Man Yells At Whippersnappers

2017-09-20 Thread Gregory Ewing
Rhodri James wrote: Tsk. You should have learned (a fake simplified) assembler first, Never mind that fake assembly rubbish, learn a real assembly language! And hand-assemble it and toggle it into the front panel switches like I did! -- Greg --

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

2017-09-20 Thread Denis Osipov
Changes by Denis Osipov : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

Re: How do I check all variables returned buy the functions exists

2017-09-20 Thread Peter Otten
Bill wrote: > Robin Becker wrote: >> On 16/09/2017 01:58, Steve D'Aprano wrote: >> >>> >>> If you want to test for None specifically: >>> >>> if any(v is None for v in values): >>> print "at least one value was None" >>> >> ... >> >> for some reason that seems slow on my machine

Re: Even Older Man Yells At Whippersnappers

2017-09-20 Thread Gregory Ewing
Grant Edwards wrote: Alternatively, you should design an instruction set and implement it using microcode and AM2900 bit-slice processors. AMD2900? That's cheating! You should design and build your own logic gates. After refining the silicon to make the transistors first, of course. -- Greg

[issue31517] MainThread association logic is fragile

2017-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: We had the quirks of import related threading deadlocks documented for a long time, not as a promise, but as a debugging aid (and a recommendation for "don't do that"). I'd see this as being similar: we'd document that if you're using the _thread module, or

Re: Even Older Man Yells At Whippersnappers

2017-09-20 Thread Chris Angelico
On Wed, Sep 20, 2017 at 7:12 PM, Gregory Ewing wrote: > Grant Edwards wrote: >> >> Alternatively, you should design an instruction set and implement it >> using microcode and AM2900 bit-slice processors. > > > AMD2900? That's cheating! You should design and build your

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Cool! I'm tagging this as an easy issue, suitable for first timers or new contributors. Felipe, are you up for preparing the PR? -- ___ Python tracker

[issue31516] current_thread() becomes "dummy" thread during shutdown

2017-09-20 Thread Tim Peters
Tim Peters added the comment: Ya, it's clearly best for `current_thread()` to deliver consistent results. -- ___ Python tracker ___

[issue31443] Possibly out of date C extension documentation

2017-09-20 Thread Christian Heimes
Christian Heimes added the comment: Do we still support cygwin? -- ___ Python tracker ___ ___

[issue31443] Possibly out of date C extension documentation

2017-09-20 Thread Stefan Krah
Stefan Krah added the comment: Thanks, Christian. -- I found that in the docs the culprit is Cygwin: db6a569de7ae595ada53b618fce6bbbd1c98d350 -- ___ Python tracker

Re: How do I check all variables returned buy the functions exists

2017-09-20 Thread Bill
Steve D'Aprano wrote: In "any(v is None for v in values)", "any" probably isn't called until its argument is (fully) known. No, its a generator expression, so it provides the values one at a time, as needed. Okay, thank you for setting me straight. I'm only about 2 weeks down this road

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3665 ___ Python tracker ___ ___

[issue31536] `make regen-opcode` triggers wholesale rebuild

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that at least `make regen-ast` will also need to be changed in order to reduce build times on Travis-CI. -- ___ Python tracker

Re: How do I check all variables returned buy the functions exists

2017-09-20 Thread Steve D'Aprano
On Wed, 20 Sep 2017 10:07 pm, Steve D'Aprano wrote: > I'm not sure whether to be surprised or not. > > The first one only checks for identity, which should be really fast, while the > `is` operator tests for equality too, Oops, that's supposed to be `in`, not `is`. [...] > Ah... I see that

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ah, didn't see Benjamin's patch: much better solution :-) -- ___ Python tracker ___

Re: How to get Nose to run doctests from my Markdown documentation?

2017-09-20 Thread Skip Montanaro
> There are tools for getting doctests out of .rst files. Is it an option to > use .rst instead of .md? Given the existence proof of md working as an extension (see my previous follow-up), my guess is that it more-or-less supports just about any nearly-plain-text format. I could use .rst, I

Re: Old Man Yells At Cloud

2017-09-20 Thread Chris Angelico
On Thu, Sep 21, 2017 at 1:06 AM, Dennis Lee Bieber wrote: > On Wed, 20 Sep 2017 10:08:18 +1000, Steve D'Aprano > declaimed the following: > >>For what its worth: from Python 3.5 (I think) onwards the error you get is >>customized: >> >>py> print

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Where in the docs is this `OpenSSL cipher list format` link located? -- nosy: +Mariatta ___ Python tracker ___

[issue31535] configparser unable to write comment with a upper cas letter

2017-09-20 Thread Philippe Wagnieres
New submission from Philippe Wagnieres: I create entry with this: self.settings.set('General', 'Initial filter', 'All file (*.*)') self.settings.set('General', '# 1 => Text files (*.txt)') self.settings.set('General', '# 2 => CSV files (*.csv)') self.settings.set('General', '# 3 =>

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Felipe
Felipe added the comment: Woops. Apologies -- I somehow deleted that part from the report. Thanks Antoine for jumping in. If you are using the wiki url, make sure not to include the question mark at the end :-) -- ___ Python tracker

[issue31516] current_thread() becomes "dummy" thread during shutdown

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Tim, any opinion on this one? Do you agree it's an actual bug (if a bit obscure)? -- ___ Python tracker ___

Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Joey Steward
-- Forwarded message -- From: Joey Steward Date: Wed, Sep 20, 2017 at 10:09 AM Subject: Fwd: Issues with python commands in windows powershell To: python-list@python.org -- Forwarded message -- From: Joey Steward

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Roundup Robot
Changes by Roundup Robot : -- keywords: +patch pull_requests: +3663 stage: needs patch -> patch review ___ Python tracker

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Christian Heimes
Christian Heimes added the comment: New changeset 19e4d9346db7fb65845b98a9cb9caacaaac8a81a by Christian Heimes (Felipe) in branch 'master': bpo-31533: fix broken link to OpenSSL docs (#3674) https://github.com/python/cpython/commit/19e4d9346db7fb65845b98a9cb9caacaaac8a81a --

[issue31500] IDLE: Tiny font on HiDPI display

2017-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The limit 1.4 is not arbitrary. This is a minimal scale for which fonts from 10 to 14 pixels are not decreased when converted to points (with multiplier 0.75 and one rounding). round(14 * 0.75) = round(10.5) = 10; 10 * 1.4 = 14. --

Re: Fw: Problems Installing Python36

2017-09-20 Thread Irmen de Jong
On 14/09/2017 05:46, Michael Torrie wrote: > On 09/12/2017 03:05 AM, Thomas Jollans wrote: >> Other people on this list: >> This isn't the first time I've someone with this issue here. It's >> probably putting off plenty of potential new users who don't make as >> much effort to find a solution. I

Re: Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Bill
Joey Steward wrote: -- Forwarded message -- From: Joey Steward Date: Tue, Sep 19, 2017 at 10:30 PM Subject: Issues with python commands in windows powershell To: python-list@python.org Hello, I've been having issues using basic python commands in

[issue31443] Possibly out of date C extension documentation

2017-09-20 Thread R. David Murray
R. David Murray added the comment: We do not currently officially support cygwin. There are people working on getting it working again (and having a buildbot) so we can support it, so cygwin support is a goal, but not currently a requirement. I've nosied Erik Brey, who is one of the main

[issue31536] `make regen-opcode` triggers wholesale rebuild

2017-09-20 Thread Antoine Pitrou
New submission from Antoine Pitrou: `make regen-opcode` always writes the destination unconditionally, after which `make` thinks it has to rebuild everything. -- components: Build messages: 302649 nosy: pitrou, serhiy.storchaka, twouters priority: normal severity: normal status: open

Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Joey Steward
-- Forwarded message -- From: Joey Steward Date: Tue, Sep 19, 2017 at 10:30 PM Subject: Issues with python commands in windows powershell To: python-list@python.org Hello, I've been having issues using basic python commands in windows powershell. I'm new

[issue31536] `make regen-opcode` triggers wholesale rebuild

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks like `pgen` will also have to be changed, which is more annoying as it's written in C... Perhaps another approach can be used that will use a separate utility to do the copying if the contents changed? --

Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Joey Steward
-- Forwarded message -- From: Joey Steward Date: Tue, Sep 19, 2017 at 10:30 PM Subject: Issues with python commands in windows powershell To: python-list@python.org Hello, I've been having issues using basic python commands in windows powershell. I'm new

Re: Old Man Yells At Cloud

2017-09-20 Thread Steve D'Aprano
On Thu, 21 Sep 2017 01:06 am, Dennis Lee Bieber wrote: > On Wed, 20 Sep 2017 10:08:18 +1000, Steve D'Aprano > declaimed the following: > >>For what its worth: from Python 3.5 (I think) onwards the error you get is >>customized: >> >>py> print 1 >> File "", line 1 >>

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

2017-09-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Backport was done. Thanks. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31443] Possibly out of date C extension documentation

2017-09-20 Thread Stefan Krah
Stefan Krah added the comment: I've just asked on python-dev if Cygwin is still broken. Not sure if we support it. -- ___ Python tracker ___

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3664 ___ Python tracker ___

[issue31536] `make regen-opcode` triggers wholesale rebuild

2017-09-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +patch pull_requests: +3666 stage: -> patch review ___ Python tracker ___

[issue26510] [argparse] Add required argument to add_subparsers

2017-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> merwok nosy: +merwok stage: -> commit review versions: +Python 3.7 -Python 3.5 ___ Python tracker

[issue1230540] sys.excepthook doesn't work in threads

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Matt, do you want to post your patch here? -- ___ Python tracker ___ ___

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Felipe
Felipe added the comment: Sure, will do! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "What if just deny reentrant reads? Set a flag while read into a buffer, check it before reading in other thread, and raise RuntimeError." io.BufferedReader/io.BufferedWriter raises a RuntimeError exception for reentrant call, but only in the same

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +3660 stage: -> patch review ___ Python tracker ___

Re: How to get Nose to run doctests from my Markdown documentation?

2017-09-20 Thread Skip Montanaro
> I routinely include doctests as a source of test cases in my nose runs, but I > want to also coax it to check the > examples in my Markdown files. Is there a way to do this? If I explicitly > give a Markdown file on the command line, > nose complains: > > Unable to load tests from file ... I

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

2017-09-20 Thread alister via Python-list
On Wed, 20 Sep 2017 14:14:24 +0100, Paul Moore wrote: > On 20 September 2017 at 13:58, alister via Python-list > wrote: >> On Tue, 19 Sep 2017 14:40:17 -0400, leam hall wrote: >> >>> On Tue, Sep 19, 2017 at 2:37 PM, Stephan Houben < >>> stephan...@gmail.com.invalid>

Re: How to get Nose to run doctests from my Markdown documentation?

2017-09-20 Thread Skip Montanaro
> I didn't mean, "Can you name your Markdown files with an .rst extension," I > meant, "Can you use ReST instead of Markdown?" I wondered if maybe I was misinterpreting your question. :-) Conceptually, yes, I could use ReST. I'm just trying to go with the flow here at work. Markdown seems to be

Re: Even Older Man Yells At Whippersnappers

2017-09-20 Thread Larry Martell
On Wed, Sep 20, 2017 at 5:09 AM, Gregory Ewing wrote: > > Never mind that fake assembly rubbish, learn a real assembly > language! And hand-assemble it and toggle it into the front > panel switches like I did! 1979, I was working at Bausch and Lomb in Rochester NY.

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually such flag already exists. It is unlocked_count. There is also similar issue with seek(). -- ___ Python tracker

Re: Stdlib, what's in, what's out

2017-09-20 Thread Chris Warrick
On 20 September 2017 at 17:16, Dennis Lee Bieber wrote: > On Tue, 19 Sep 2017 11:58:47 -0700 (PDT), John Ladasky > declaimed the following: > >> >>And of course I have found some other third-party packages: scipy, pandas, >>matplotlib, and

Re: Old Man Yells At Cloud

2017-09-20 Thread Thomas Jollans
On 2017-09-20 17:06, Dennis Lee Bieber wrote: > On Wed, 20 Sep 2017 10:08:18 +1000, Steve D'Aprano > declaimed the following: > >> For what its worth: from Python 3.5 (I think) onwards the error you get is >> customized: >> >> py> print 1 >> File "", line 1 >>

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Antoine. So is this a matter of replacing the url to https://wiki.openssl.org/index.php/Manual:Ciphers(1)#CIPHER_LIST_FORMAT? Or is there a better url that will not go out of date in the future... -- stage: -> needs patch versions: +Python 2.7

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think OpenSSL are promising anything about their URLs (the old one having gone 404 is proof of that :-)). So Felipe's suggestion is as good as any, IMHO. -- nosy: +christian.heimes ___ Python tracker

Re: [issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread M.-A. Lemburg
Why not simply document the fact that read ahead in Python 2.7 is not thread-safe and leave it at that ? .next() and .readline() already don't work well together, so this would just add one more case. -- Marc-Andre Lemburg eGenix.com ___

[issue31525] require sqlite3_prepare_v2

2017-09-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 525269430a3f9fbb7287e4bb6b365ac216004980 by Benjamin Peterson in branch 'master': closes bpo-31525: require sqlite3_prepare_v2 (#3666) https://github.com/python/cpython/commit/525269430a3f9fbb7287e4bb6b365ac216004980 -- resolution:

Re: [Tutor] beginning to code

2017-09-20 Thread Jerry Hill
On Tue, Sep 19, 2017 at 8:26 PM, Rick Johnson wrote: > In the spirit of my last comment, i was going to say: "Or if > `x` does not support rich comparisons", but alas, it seems that > _all_ objects in Python support rich comparisons, even when > it doesn't make sense

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread Guido van Rossum
Guido van Rossum added the comment: > Why not simply document the fact that read ahead in Python 2.7 > is not thread-safe and leave it at that ? Program bugs should not crash the interpreter. (ctypes excepted.) -- ___ Python tracker

Re: How to get Nose to run doctests from my Markdown documentation?

2017-09-20 Thread Skip Montanaro
Actually, I semi-lied. It seems to pick up the second of two examples, and gets a bit confused about leading whitespace. I think I need to do some more fiddling. S -- https://mail.python.org/mailman/listinfo/python-list

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3661 ___ Python tracker ___

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

2017-09-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: Sorry, I didn't see this until now. I added a line to editor.py in #31529 for this error message. In _close() in editor.py, self.text was being set to None which wasn't calling the __del__ function of multicall. I added a line to unbind "<>", which made

Re: How to get Nose to run doctests from my Markdown documentation?

2017-09-20 Thread Ned Batchelder
On 9/20/17 11:17 AM, Skip Montanaro wrote: There are tools for getting doctests out of .rst files. Is it an option to use .rst instead of .md? Given the existence proof of md working as an extension (see my previous follow-up), my guess is that it more-or-less supports just about any

Re: Stdlib, what's in, what's out

2017-09-20 Thread Ethan Furman
On 09/20/2017 09:24 AM, Chris Warrick wrote: On 20 September 2017 at 17:16, Dennis Lee Bieber wrote: And if wxPython had been part of the stdlib, it would have meant Python 3 would have been delayed years until wxPython had been ported -- or wxPython would have been pulled from the stdlib and

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Mariatta, that would be in the documentation for the `SSLContext.set_ciphers` method (in `Doc/library/ssl.rst`). -- nosy: +pitrou ___ Python tracker

How to get Nose to run doctests from my Markdown documentation?

2017-09-20 Thread Skip Montanaro
I routinely include doctests as a source of test cases in my nose runs, but I want to also coax it to check the examples in my Markdown files. Is there a way to do this? If I explicitly give a Markdown file on the command line, nose complains: Unable to load tests from file ... Am I perhaps

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Why not simply document the fact that read ahead in Python 2.7 is not thread-safe and leave it at that ? .next() and .readline() already don't work well together, so this would just add one more case. -- nosy: +lemburg

Re: How to get Nose to run doctests from my Markdown documentation?

2017-09-20 Thread Ned Batchelder
On 9/20/17 10:07 AM, Skip Montanaro wrote: I routinely include doctests as a source of test cases in my nose runs, but I want to also coax it to check the examples in my Markdown files. Is there a way to do this? If I explicitly give a Markdown file on the command line, nose complains: Unable

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Felipe
New submission from Felipe: The link to the `OpenSSL cipher list format` 404s. I don't know if it's where the original meant to point, but the same information is available at https://wiki.openssl.org/index.php/Manual:Ciphers(1)#CIPHER_LIST_FORMAT -- assignee: docs@python components:

Re: Old Man Yells At Cloud

2017-09-20 Thread Thomas Jollans
On 2017-09-19 16:30, D'Arcy Cain wrote: > On 09/19/2017 06:46 AM, Larry Martell wrote: >> True story - the other day I was in a store and my total was $10.12. I > > One time I was at a cash with three or four items which were taxable. > The cashier rung each one up and hit the total button.  She

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-09-20 Thread Charles Wohlganger
Charles Wohlganger added the comment: The PR contains all the requested features, as well as mutual deletion (requested on PR page), and I have separated out the options for mutual deletion triggered by delete or triggered by backspace. I've found in usage that it was irritating to have both,

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread Guido van Rossum
Guido van Rossum added the comment: @benjamin can you post your patch as a PR so you'll get credit for it? -- nosy: +gvanrossum ___ Python tracker ___

[issue31532] Py_GetPath, Py_SetPath memory corruption due to mixed PyMem_New micex with PyMem_Raw_Free

2017-09-20 Thread Hartmut Goebel
New submission from Hartmut Goebel: When using Py_GetPath(); Py_SetPath(pypath_w); near the beginning of a program, Py_SetPath crashes with memory corruption if run on a systems with glibc's MALLOC_CHECK enabled. The reason is: Py_GetPath and Py_SetPath use different memory interfaces. *

[issue31516] current_thread() becomes "dummy" thread during shutdown

2017-09-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +patch pull_requests: +3662 stage: needs patch -> patch review ___ Python tracker ___

[issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread STINNER Victor
STINNER Victor added the comment: @Serhiy: Would you like to propose a PR to implement your RuntimeError. Maybe we can test a few popular Python projects to see if the change would break them? Which popular applications use threads (and files)? :-) --

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

2017-09-20 Thread Ned Deily
Changes by Ned Deily : -- nosy: +dstufft, ncoghlan ___ Python tracker ___ ___

[issue31530] Python 2.7 readahead feature of file objects is not thread safe

2017-09-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 20.09.2017 17:22, Guido van Rossum wrote: > >> Why not simply document the fact that read ahead in Python 2.7 >> is not thread-safe and leave it at that ? > > Program bugs should not crash the interpreter. (ctypes excepted.) Ideally not, agreed :-)

[issue31532] Py_GetPath, Py_SetPath memory corruption due to mixed PyMem_New micex with PyMem_Raw_Free

2017-09-20 Thread Vincent Gatine
Changes by Vincent Gatine : -- keywords: +patch pull_requests: +3668 stage: -> patch review ___ Python tracker ___

Re: Even Older Man Yells At Whippersnappers

2017-09-20 Thread Ben Bacarisse
Larry Martell writes: > On Tue, Sep 19, 2017 at 12:12 PM, Rhodri James wrote: >> >> Eh, my school never 'ad an electronics class, nor a computer neither. Made >> programming a bit tricky; we 'ad to write programs on a form and send 'em >> off to

Re: Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Terry Reedy
On 9/20/2017 1:09 PM, Joey Steward wrote: -- Forwarded message -- From: Joey Steward Date: Tue, Sep 19, 2017 at 10:30 PM Subject: Issues with python commands in windows powershell To: python-list@python.org Hello, I've been having issues using basic

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 6b44ad1abdb9b3aaf27e2ba1fc4b69b9a0f50c25 by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-31533: fix broken link to OpenSSL docs (GH-3674) (GH-3675) https://github.com/python/cpython/commit/6b44ad1abdb9b3aaf27e2ba1fc4b69b9a0f50c25

[issue31533] Dead link in SSLContext.set_ciphers documentation

2017-09-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5b6452d412b5be45f265093e75563fcf6d05dc3e by Mariatta (Christian Heimes) in branch '2.7': bpo-31533: fix broken link to OpenSSL docs (GH-3674) (GH-3676) https://github.com/python/cpython/commit/5b6452d412b5be45f265093e75563fcf6d05dc3e

Re: Even Older Man Yells At Whippersnappers

2017-09-20 Thread Grant Edwards
On 2017-09-20, Gregory Ewing wrote: > Grant Edwards wrote: >> Alternatively, you should design an instruction set and implement it >> using microcode and AM2900 bit-slice processors. > > AMD2900? That's cheating! You should design and build your > own logic gates.

  1   2   >