Re: auto-correct a speech-to-text output and relate to of the words based on syllables

2018-02-01 Thread Steven D'Aprano
On Fri, 02 Feb 2018 08:14:03 +0100, dieter wrote:

>> The user speaks "Light". The system translates it as "Bright" The user
>> speaks "White" The system translates it as "Bright"
> 
> As those words are phonetically quite apart (they have very different
> first consonants), some step in your processing chain does something
> seriously wrong.

I disagree: Light, Bright and White sound very similar. They're identical 
except for the first consonant:

/laɪt/
/bɹaɪt/
/waɪt/

and even those consonants sound very similar. Human beings can easily 
mishear or fail to distinguish between those words, e.g.:

https://www.wordnik.com/words/we%20tripped%20a%20light%20fan%20dangle

https://duckduckgo.com/?q=%22brighter+shade+of+pale%22+mondegreen


(the name of the song is *Whiter* Shade of Pale, not "Lighter" or 
"Brighter"). We should not assume that the first consonant is always 
correct.

Of course we would hope that a speech-to-text system would correctly 
match Light/Bright/White/Fright/etc but given the vagaries of human 
accents and pronunciation, we shouldn't be surprised if it sometimes gets 
them wrong.



-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32747] remove trailing spaces in docstring

2018-02-01 Thread Qian Yun

Change by Qian Yun :


--
keywords: +patch
pull_requests: +5324
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32747] remove trailing spaces in docstring

2018-02-01 Thread Qian Yun

New submission from Qian Yun :

This is a simple PR that removes trailing spaces in docstring,
which are found by:
grep -R ' \\n\\$' .

--
assignee: docs@python
components: Documentation
messages: 311484
nosy: Qian Yun, docs@python
priority: normal
severity: normal
status: open
title: remove trailing spaces in docstring
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32729] socket error handling needed

2018-02-01 Thread INADA Naoki

INADA Naoki  added the comment:

Please give us reproducible example.
Otherwise, we can't know it's our bug or it's bug of caller.

--
nosy: +inada.naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread dieter
jlada...@itu.edu writes:
> ...
> Let me ask those of you who are not using Google Groups: how do you search?  
> In my experience, searching through mailing list archives has been poor.

I am using "gmane.org" which has quite a good search (in my view).
Not sure, whether "gmane.org" hosts "your" newsgroup.

Of course, the service may go away in the future.


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: auto-correct a speech-to-text output and relate to of the words based on syllables

2018-02-01 Thread dieter
nav...@emagevisionpl.com writes:

> I have to make an application in which, 
>
> The user asks a question, Google's API is used to convert the speech to text. 
> But the problem is due to different accent the translator misunderstands the 
> words. 
> I want my application to guess the word to the nearest word spoken by the 
> user. 
> ...
> But sometimes for more than a word it makes the same guess.
> example:
> The user speaks "Light". The system translates it as "Bright"
> The user speaks "White" The system translates it as "Bright"

As those words are phonetically quite apart (they have
very different first consonants), some step in your
processing chain does something seriously wrong.
First thing to do: identify the responsible step. After that,
one can try to find a way to improve on it.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Dependency injection: overriding defaults

2018-02-01 Thread dieter
Kushal Kumaran  writes:

> Victor Porton  writes:
>> dieter wrote:
> ...
>>> I would distinguish between the common library and distinct
>>> applications (command line utility, daemon). The applications
>>> configure the logging system (differently) while the library uses
>>> uniform logging calls.
>>
>> You have essentially just repeated my requirements.
>>
>> But HOW to do this (using dependency_injector module)?
>>
>
> No idea how dependency_injector affects this, but have you read the
> logging howto? The section
> https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library
> would be appropriate.

In fact, it was something like this I had in mind.

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue20082] Misbehavior of BufferedRandom.write with raw file in append mode

2018-02-01 Thread Nitish

Change by Nitish :


--
nosy: +nitishch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20285] Improve object.__doc__ and help(object) output

2018-02-01 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I posted "Is object the most base type?  (bpo-20285)" on pydev.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32733] test_coroutines is failed when run with -We

2018-02-01 Thread Nathaniel Smith

Nathaniel Smith  added the comment:

Thanks!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32733] test_coroutines is failed when run with -We

2018-02-01 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Thank you Nathaniel. And congratulate with getting core developer status!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20285] Improve object.__doc__ and help(object) output

2018-02-01 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Since this modifies the output of a library module function for a specific 
input, I will not backport unless and until there is agreement on doing so.

--
versions:  -Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29317] test_copyxattr_symlinks fails

2018-02-01 Thread Alexander Mohr

Change by Alexander Mohr :


--
nosy: +thehesiod
versions: +Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20285] Improve object.__doc__ and help(object) output

2018-02-01 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

It is better to ask Guido or other language expert.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32733] test_coroutines is failed when run with -We

2018-02-01 Thread Nathaniel Smith

Nathaniel Smith  added the comment:


New changeset 709f6ad7f84855ebdbe3e7702571b0e1447b885b by Nathaniel J. Smith 
(Miss Islington (bot)) in branch '3.7':
bpo-32733: Make test_coroutines robust against -Werror (GH-5487) (GH-5490)
https://github.com/python/cpython/commit/709f6ad7f84855ebdbe3e7702571b0e1447b885b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32746] More misspellings, mostly in source code.

2018-02-01 Thread Leo Arias

Change by Leo Arias :


--
keywords: +patch
pull_requests: +5323
stage: commit review -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32746] More misspellings, mostly in source code.

2018-02-01 Thread Terry J. Reedy

New submission from Terry J. Reedy :

This is similar to #32297.  I intend to backport, if not too much problem, for 
the reason Victor gave on the PR 4803: "to reduce conflicts when backporting 
fixes into Python 3.6."

I propose to not backport to Python 2.7, again for the reason Victor gave: 
"since Python 2.7 is dying and minor fixes are no more backported to 2.7."

--
assignee: terry.reedy
messages: 311476
nosy: terry.reedy
priority: normal
severity: normal
stage: commit review
status: open
title: More misspellings, mostly in source code.
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32297] Few misspellings found in Python source code comments.

2018-02-01 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
versions: +Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20285] Improve object.__doc__ and help(object) output

2018-02-01 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
assignee: docs@python -> terry.reedy
components: +Library (Lib)
stage: patch review -> commit review
versions: +Python 3.6, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero

Change by Mario Corchero :


--
pull_requests: +5321, 5322

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero

Change by Mario Corchero :


--
pull_requests: +5321

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32733] test_coroutines is failed when run with -We

2018-02-01 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5320

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32733] test_coroutines is failed when run with -We

2018-02-01 Thread Nathaniel Smith

Nathaniel Smith  added the comment:


New changeset 2efb9735899c7c642f3e75a121af82b1679577d3 by Nathaniel J. Smith in 
branch 'master':
bpo-32733: Make test_coroutines robust against -Werror (GH-5487)
https://github.com/python/cpython/commit/2efb9735899c7c642f3e75a121af82b1679577d3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32674] minor documentation fix for '__import__'

2018-02-01 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5319

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32674] minor documentation fix for '__import__'

2018-02-01 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:


New changeset 461d225b195eec5269f317323b41115516144c41 by Mariatta (oldk) in 
branch 'master':
bpo-32674: Improve the docstring for __import__ (GH-5339)
https://github.com/python/cpython/commit/461d225b195eec5269f317323b41115516144c41


--
nosy: +Mariatta

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32674] minor documentation fix for '__import__'

2018-02-01 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5318

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32611] Tkinter taskbar icon (Windows)

2018-02-01 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32436] Implement PEP 567

2018-02-01 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 78767786a87b00925506c32b3b55cf65b56ef3d7 by Yury Selivanov (Miss 
Islington (bot)) in branch '3.7':
bpo-32436: Fix compiler warning (GH-5483) (GH-5486)
https://github.com/python/cpython/commit/78767786a87b00925506c32b3b55cf65b56ef3d7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32733] test_coroutines is failed when run with -We

2018-02-01 Thread Nathaniel Smith

Change by Nathaniel Smith :


--
keywords: +patch
pull_requests: +5317
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Cameron Simpson

On 02Feb2018 02:01, William Sewell  wrote:

It is allright.  I just cannot account for the sudden change.  In my usual path 
everything worked fine.  Now, I have to navigate to where the Python 
executable, even though I have added the path to the Windows path.


Unfortunately I'm not an expert in how Python works on Windows; I gather it is 
rather different an experience from my usual UNIX environment.


I would guess that the requests module is not installed in a place in your 
normal Python's sys.path, but because the current directory is normally a part 
of that, navigating to the Python install area makes the module findable.


You should be able to make it work anywhere with the right Python path setting.  
Hopefully a Windows person can assist with the specifics.



Please close my case.


This is a mailing list! There's no ticket :-) Just idle people prepared to 
help.


Cheers,
Cameron Simpson  (formerly c...@zip.com.au)



Dr. William Sewell
Direct Line: 385.428.5377  Toll Free: 877.435.7948 ext 5377
Course Instructor, IT

WGU will be closed President's Day, February 19th.
Mountain Time Office hours: Sun 3:00 PM - 8:00 PM, Mon 6:30 AM - 3:30 PM, Tue 
9:30 AM - 6:30 PM, Wed 9:00 AM - 5:00 PM, Thu 6:30 AM - 3:30 PM
Your success is very important to me.
IT MSDA and Database Team
cmdatab...@wgu.edu
Toll Free: 1-877-435-7948
Student Services: 1-866-903-0110
WellConnect Counseling Services: 1-877-685-3269
Western Governors University
mailto:william.sew...@wgu.edu



More about WGU in Fast Company, CNN, NPR, NBC Nightly News, Money, The 
Atlantic, TIME, etc.
wgu.edu


-Original Message-
From: Cameron Simpson [mailto:c...@cskk.id.au]
Sent: Thursday, February 01, 2018 8:08 PM
To: William Sewell 
Cc: python-list@python.org
Subject: Re: Trace back error just trying to run a simple import of requests

On 01Feb2018 20:26, William Sewell  wrote:

My python script which I run daily just blew up.  So, I went into python to 
diagnose and just typed in the first line - import requests.  I received 
screenfulls of errors.  Why?  What could have happened when nothing changed on 
my end?  The traceback is copied below.


[cid:image001.png@01D39B71.014E8850]


Please followup to the list with a cut/paste of the error text. This list is 
text only and strips attachments as an aid to readability.

We want to help you, but we deal in plain text - it is far more useful to all.

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)

--
https://mail.python.org/mailman/listinfo/python-list


[issue32436] Implement PEP 567

2018-02-01 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5316

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32436] Implement PEP 567

2018-02-01 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 55e0839f2672e029c2b96514028c77c31ffbe41f by Yury Selivanov in 
branch 'master':
bpo-32436: Fix compiler warning (#5483)
https://github.com/python/cpython/commit/55e0839f2672e029c2b96514028c77c31ffbe41f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32739] collections.deque rotate(n=1) default value not documented

2018-02-01 Thread Raymond Hettinger

Change by Raymond Hettinger :


--
versions: +Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32739] collections.deque rotate(n=1) default value not documented

2018-02-01 Thread Raymond Hettinger

Change by Raymond Hettinger :


--
keywords: +patch
pull_requests: +5315
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32436] Implement PEP 567

2018-02-01 Thread Yury Selivanov

Change by Yury Selivanov :


--
pull_requests: +5314

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32590] Proposal: add an "ensure(arg)" builtin for parameter validation

2018-02-01 Thread Xavier G. Domingo

Change by Xavier G. Domingo :


--
nosy: +xgdomingo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



RE: Trace back error just trying to run a simple import of requests

2018-02-01 Thread William Sewell
It is allright.  I just cannot account for the sudden change.  In my usual path 
everything worked fine.  Now, I have to navigate to where the Python 
executable, even though I have added the path to the Windows path.

Please close my case.


Dr. William Sewell
Direct Line: 385.428.5377  Toll Free: 877.435.7948 ext 5377
Course Instructor, IT

WGU will be closed President's Day, February 19th.
Mountain Time Office hours: Sun 3:00 PM - 8:00 PM, Mon 6:30 AM - 3:30 PM, Tue 
9:30 AM - 6:30 PM, Wed 9:00 AM - 5:00 PM, Thu 6:30 AM - 3:30 PM
Your success is very important to me.  
IT MSDA and Database Team 
cmdatab...@wgu.edu
Toll Free: 1-877-435-7948
Student Services: 1-866-903-0110
WellConnect Counseling Services: 1-877-685-3269
Western Governors University
mailto:william.sew...@wgu.edu



More about WGU in Fast Company, CNN, NPR, NBC Nightly News, Money, The 
Atlantic, TIME, etc.
wgu.edu


-Original Message-
From: Cameron Simpson [mailto:c...@cskk.id.au] 
Sent: Thursday, February 01, 2018 8:08 PM
To: William Sewell 
Cc: python-list@python.org
Subject: Re: Trace back error just trying to run a simple import of requests

On 01Feb2018 20:26, William Sewell  wrote:
>My python script which I run daily just blew up.  So, I went into python to 
>diagnose and just typed in the first line - import requests.  I received 
>screenfulls of errors.  Why?  What could have happened when nothing changed on 
>my end?  The traceback is copied below.
>
>
>[cid:image001.png@01D39B71.014E8850]

Please followup to the list with a cut/paste of the error text. This list is 
text only and strips attachments as an aid to readability.

We want to help you, but we deal in plain text - it is far more useful to all.

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32720] Format mini-language integer definition is incorrect

2018-02-01 Thread Nathan Kerr

Nathan Kerr  added the comment:

Just submitted a PR for this issue, however I only signed the CLA an hour ago 
so it hasn't gone through yet.

This is my first contribution, I followed the guide but please let me know if I 
missed anything. Thanks!

--
nosy: +nkerr

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32720] Format mini-language integer definition is incorrect

2018-02-01 Thread Nathan Kerr

Change by Nathan Kerr :


--
keywords: +patch
pull_requests: +5313
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Cameron Simpson

On 01Feb2018 20:26, William Sewell  wrote:

My python script which I run daily just blew up.  So, I went into python to 
diagnose and just typed in the first line - import requests.  I received 
screenfulls of errors.  Why?  What could have happened when nothing changed on 
my end?  The traceback is copied below.


[cid:image001.png@01D39B71.014E8850]


Please followup to the list with a cut/paste of the error text. This list is 
text only and strips attachments as an aid to readability.


We want to help you, but we deal in plain text - it is far more useful to all.

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)
--
https://mail.python.org/mailman/listinfo/python-list


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Cameron Simpson

On 01Feb2018 15:48, jlada...@itu.edu  wrote:

On Thursday, February 1, 2018 at 9:07:15 AM UTC-8, alister wrote:

simple solution stop using google groups & use either the mailing list or
a news server with an NNTP client


Sigh.  I've been on Usenet since 1986.  Is this how it ends?  I will move if I 
must.


Might just mean you need to move from letting Google deliver it to you. The 
beauty of usenet is that taking down one provider doesn't break stuff.


 The Net interprets censorship as damage and routes around it.
 - John Gilmore

Let me ask those of you who are not using Google Groups: how do you search?  
In my experience, searching through mailing list archives has been poor.


Well, I cheat. When I join a mailing list I download its archives into my local 
mail store. The I can use whatever I like (currently notmuch) to index and 
search. Locally, even when offline.


I appreciate that this doesn't work form random ad hoc mailing lists I don't 
use, and also that some mailing lists don't present downloadable archives 
(uncivilised IMO).


Otherwise, there is DuckDuckGo and The Google.

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)
--
https://mail.python.org/mailman/listinfo/python-list


[issue30449] Improve __slots__ datamodel documentation

2018-02-01 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

It looks like this documentation patch was applied to master.  Does it need to 
be backported to 3.6 and 2.7 for the issue to be closed?  Thanks!

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Steven D'Aprano
On Thu, 01 Feb 2018 15:48:36 -0800, jladasky wrote:

> Let me ask those of you who are not using Google Groups: how do you
> search?  In my experience, searching through mailing list archives has
> been poor.

https://duckduckgo.com/?q=site%3Amail.python.org+searching+through+mailing+list+archives



-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32540] venv docs - doesn't match behavior

2018-02-01 Thread Cheryl Sabella

Change by Cheryl Sabella :


--
keywords: +easy
stage:  -> needs patch
type:  -> enhancement
versions: +Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread MRAB

On 2018-02-01 22:32, Grant Edwards wrote:

On 2018-02-01, William Sewell  wrote:


My python script which I run daily just blew up.  So, I went into
python to diagnose and just typed in the first line - import
requests.  I received screenfulls of errors.  Why?  What could have
happened when nothing changed on my end?  The traceback is copied
below.

[cid:image001.png@01D39B71.014E8850]


I don't recoginze "cid:image001.png@01D39B71.014E8850" as an error
message.

Isn't it ironic that we've just had a thread about this very issue, 
namely sending screenshots?


[snip]
--
https://mail.python.org/mailman/listinfo/python-list


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread jladasky
On Thursday, February 1, 2018 at 9:07:15 AM UTC-8, alister wrote:

> simple solution stop using google groups & use either the mailing list or 
> a news server with an NNTP client

Sigh.  I've been on Usenet since 1986.  Is this how it ends?  I will move if I 
must.

Let me ask those of you who are not using Google Groups: how do you search?  In 
my experience, searching through mailing list archives has been poor.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32720] Format mini-language integer definition is incorrect

2018-02-01 Thread Cheryl Sabella

Change by Cheryl Sabella :


--
keywords: +easy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Steven D'Aprano
On Thu, 01 Feb 2018 20:26:20 +, William Sewell wrote:

> My python script which I run daily just blew up.  So, I went into python
> to diagnose and just typed in the first line - import requests.  I
> received screenfulls of errors.  Why?  What could have happened when
> nothing changed on my end?  

Ah, the infamous "nothing changed, now things have changed!" error.

Computers are deterministic, so something has changed. We may be able to 
help you find out what.


> The traceback is copied below.

If by chance you attached it as a screen shot, please don't:

- screen shots of text are discriminatory against programmers who
  are visually impaired or blind;

- they're also counter-productive, as we don't edit our code with
  photoshop; being able to edit copied text is important;

and most importantly:

- this mailing list is *text only* and blocks all non-text attachments
  (which are nearly always spam and malware), so it can't get through
  to us.

Please copy and paste the text of the traceback and include it in the 
body of your reply (to the list, not to me personally).

If for some reason you genuinely cannot copy the text, which I doubt as 
even Windows supports copy and paste, and you don't mind discriminating 
against the visually impaired, then you can upload the screen shot to an 
image hosting site (one without intrusive ads and malware!) and post the 
URL here. The only one I would use is imgur.


Good luck.



-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32493] UUID Module - FreeBSD build failure

2018-02-01 Thread Michael Felt

Michael Felt  added the comment:

Now that it is visible - maybe OpenBSD will treat it as a bug and get 
the "version bits" to work as their man page 
(https://man.openbsd.org/uuid.3) says it does:

  STANDARDS 

The *uuid_compare*(), *uuid_create*(), *uuid_create_nil*(), 
*uuid_equal*(), *uuid_from_string*(), *uuid_hash*(), *uuid_is_nil*(), 
and *uuid_to_string*() functions are compatible with the DCE 1.1 RPC 
specification.

The FreeBSD man page 
(https://www.freebsd.org/cgi/man.cgi?query=uuid_create) says:

*NAME* 
  *uuid*_*compare*,*uuid*_*create*, 
*uuid*_*create*_*nil*,*uuid*_*equal*,*uuid*_*from*_*string*,
  *uuid*_*hash*,*uuid*_*is*_*nil*,*uuid*_*to*_*string*  -- DCE 1.1 
compliant UUID func-
  tions

Re the DCE 1.1 RPC implementation/description - I found this link:
http://pubs.opengroup.org/onlinepubs/9629399/apdxa.htm

And this comment:

The version number is multiplexed in the 4 most significant bits of the 
*time_hi_and_version* field. UUID version Field 
 
lists currently defined versions of the UUID.

*msb1*  *msb2*  *msb3*  *msb4*  *Version*   *Description*
0   0   0   1   1   DCE version, as specified herein.
0   0   1   0   2   DCE Security version, with embedded 
POSIX UIDs.

So, maybe either, or both: OpenBSD and FreeBSD fix their implementation. 
Problem solved?!

On 1/23/2018 3:34 PM, David CARLIER wrote:
> David CARLIER  added the comment:
>
> In OpenBSD it s even "worse", the version for each call is random (not a 
> surprise when looking at the source). The question is, do we go back to 
> support only AIX or do we accept somehow wrong version ?
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Grant Edwards
On 2018-02-01, William Sewell  wrote:

> My python script which I run daily just blew up.  So, I went into
> python to diagnose and just typed in the first line - import
> requests.  I received screenfulls of errors.  Why?  What could have
> happened when nothing changed on my end?  The traceback is copied
> below.
>
> [cid:image001.png@01D39B71.014E8850]

I don't recoginze "cid:image001.png@01D39B71.014E8850" as an error
message.

Wow.  This is the most bloated sig I've seen in decades...

> Dr. William Sewell
> Direct Line: 385.428.5377  Toll Free: 877.435.7948 ext 5377
> Course Instructor, IT
>
> WGU will be closed President's Day, February 19th.
> Mountain Time Office hours: Sun 3:00 PM - 8:00 PM, Mon 6:30 AM - 3:30 PM, Tue 
> 9:30 AM - 6:30 PM, Wed 9:00 AM - 5:00 PM, Thu 6:30 AM - 3:30 PM
> Your success is very important to me.
> IT MSDA and Database Team
> cmdatab...@wgu.edu
> Toll Free: 1-877-435-7948
> Student Services: 1-866-903-0110
> WellConnect Counseling Services: 1-877-685-3269
> Western Governors University
> mailto:william.sew...@wgu.edu
>
> [WGU]
>
> More about WGU in Fast Company, CNN, NPR, NBC Nightly News, Money, The 
> Atlantic, TIME, etc.
> wgu.edu



-- 
Grant Edwards   grant.b.edwardsYow! Used staples are good
  at   with SOY SAUCE!
  gmail.com

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: for info

2018-02-01 Thread Dan Stromberg
On Wed, Jan 31, 2018 at 7:55 AM,   wrote:
> from where we learn python for free of cost. i am begineer in python.plzz 
> help me

If you already know another programming language:
https://wiki.python.org/moin/BeginnersGuide/Programmers

If you're making Python your first language:
https://wiki.python.org/moin/BeginnersGuide/NonProgrammers

HTH
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Trace back error just trying to run a simple import of requests

2018-02-01 Thread William Sewell
My python script which I run daily just blew up.  So, I went into python to 
diagnose and just typed in the first line - import requests.  I received 
screenfulls of errors.  Why?  What could have happened when nothing changed on 
my end?  The traceback is copied below.


[cid:image001.png@01D39B71.014E8850]


Dr. William Sewell
Direct Line: 385.428.5377  Toll Free: 877.435.7948 ext 5377
Course Instructor, IT

WGU will be closed President's Day, February 19th.
Mountain Time Office hours: Sun 3:00 PM - 8:00 PM, Mon 6:30 AM - 3:30 PM, Tue 
9:30 AM - 6:30 PM, Wed 9:00 AM - 5:00 PM, Thu 6:30 AM - 3:30 PM
Your success is very important to me.
IT MSDA and Database Team
cmdatab...@wgu.edu
Toll Free: 1-877-435-7948
Student Services: 1-866-903-0110
WellConnect Counseling Services: 1-877-685-3269
Western Governors University
mailto:william.sew...@wgu.edu

[WGU]

More about WGU in Fast Company, CNN, NPR, NBC Nightly News, Money, The 
Atlantic, TIME, etc.
wgu.edu


-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32745] ctypes string pointer fields should accept embedded null characters

2018-02-01 Thread Eryk Sun

Eryk Sun  added the comment:

PyUnicode_AsWideCharString was updated to raise ValueError for embedded nulls 
if the `size` output parameter is NULL. Z_set in cfield.c should be updated to 
get the size, which can be ignored here. For example:

Py_ssize_t size; 
buffer = PyUnicode_AsWideCharString(value, );

--
nosy: +eryksun
stage:  -> test needed
type:  -> behavior
versions: +Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32394] socket lib beahavior change in 3.6.4

2018-02-01 Thread Steve Dower

Steve Dower  added the comment:

PR looks good to me. Unfortunately without SMS (I'm travelling) I can't get 
into my account from my phone, so if someone else wants to add the backport 
tags (3.7 and 3.6) and finish it then feel free.

--
versions: +Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Dependency injection: overriding defaults

2018-02-01 Thread Kushal Kumaran
Victor Porton  writes:

> dieter wrote:
>
>> Victor Porton  writes:
>> 
>>> I am writing a library, a command line utility which uses the library,
>>> and a I am going to use dependency_injector package.
>>>
>>> Consider loggers:
>>>
>>> For the core library the logger should default to stderr.
>>>
>>> For the command line utility, we use the default logger of the library.
>>>
>>> For the server, the log should go to a file (not to stderr).
>>>
>>> Question: How to profoundly make my software to use the appropriate
>>> logger, dependently on whether it is a command line utility or the
>>> daemon?
>> 
>> I would distinguish between the common library and distinct
>> applications (command line utility, daemon). The applications
>> configure the logging system (differently) while the library uses
>> uniform logging calls.
>
> You have essentially just repeated my requirements.
>
> But HOW to do this (using dependency_injector module)?
>

No idea how dependency_injector affects this, but have you read the
logging howto? The section
https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library
would be appropriate.

-- 
regards,
kushal
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32739] collections.deque rotate(n=1) default value not documented

2018-02-01 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Thanks for noticing this.

--
assignee: docs@python -> rhettinger
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Pete Forman
mark...@gmail.com writes:

> On Thursday, February 1, 2018 at 6:01:58 PM UTC+1, superchromix wrote:
>> Our own programming discussion newsgroup, located at
>> comp.lang.idl-pvwave, started receiving spam messages several months
>> ago.
>>
>> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google
>> Groups.
>>
>> When trying to access comp.lang.idl-pvwave, a message is now
>> displayed, stating that the group owner needs to remove the spam,
>> and can then apply to Google in order to have access reinstated.
>>
>> However, old public Usenet groups like this have no owner. The
>> comp.lang.idl-pvwave group is more than 20 years old. Hence, there
>> is no way to unblock the group.
>>
>> This is a serious problem, since the entire collection of postings
>> going back many years has been blocked, no just the spam. This
>> resource is frequently used by IDL programmers.
>>
>> Seeing the spam postings in this newsgroup, I expect something
>> similar may happen to comp.lang.python, soon.
>
> The problem I have now is that there is no public, searchable archive
> of comp.lang.idl-pvwave available. This was the real benefit of Google
> groups, from my point of view.
>
> There is something called "narkive", but its search function seems to
> be broken, and it doesn't archive very far back in time.

A couple of other mail archivers are:

https://www.mail-archive.com
https://marc.info

-- 
Pete Forman
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32394] socket lib beahavior change in 3.6.4

2018-02-01 Thread Steve Dower

Steve Dower  added the comment:

Yes, adding the member back will put you back in the broken state, but there's 
nothing we can do to stop it.

Thanks for the PR - I'll take a look, and if I'm able to log into GitHub on my 
phone maybe finish it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Problem with coroutines old-style / new-style usage and features

2018-02-01 Thread Yahya Abou 'Imran via Python-list
>> @asyncio.coroutine
>> def recorder():
>> dialog = []
>> while True:
>> sent = yield dialog
>> if sent is not None:
>> name, things = sent
>> dialog.append(f'{name} says : {things}')
>This is not an asyncio coroutine. This is just a normal generator that
> you're sending to. So you should probably remove the decorator to
> prevent confusion. For that matter I'm not really sure why this isn't
> just a class with synchronous "add" and "get" methods.

Yeah it's true. I would just instantiate it, send to it and ask for a result. 
To pass it to next to start it and to retrieve a value is not really explicit.

[...]
>>It works well, but I was wondering if I could turn recorder into a new style 
>>coroutine...
>Why? It doesn't do anything asynchronously.

Hey, you're right... I was just, you know... "Async is so cool, let's just 
async everything!"

>If it were a class, then you could make the individual methods be
> coroutines if desired and await those.

Thanks for your advise Ian!
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32303] Namespace packages have inconsistent __loader__ and __spec__.loader

2018-02-01 Thread Barry A. Warsaw

Change by Barry A. Warsaw :


--
keywords: +patch
pull_requests: +5311
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32305] Namespace packages have inconsistent __file__ and __spec__.origin

2018-02-01 Thread Barry A. Warsaw

Change by Barry A. Warsaw :


--
keywords: +patch
pull_requests: +5312
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32303] Namespace packages have inconsistent __loader__ and __spec__.loader

2018-02-01 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

3.5 is in security fix only mode, and this is not a security issue.

--
versions:  -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32305] Namespace packages have inconsistent __file__ and __spec__.origin

2018-02-01 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

3.5 is in security fix only mode, and this is not a security issue.

--
versions:  -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32741] Add asyncio.TimerHandle.when() function

2018-02-01 Thread Andrew Svetlov

Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32745] ctypes string pointer fields should accept embedded null characters

2018-02-01 Thread Thomas Heller

New submission from Thomas Heller :

ctypes Structure fields of type c_char_p or c_wchar_p used to accept strings 
with embedded null characters.  I noticed that Python 3.6.4 does refuse them.  
It seems this has been changed in recent version(s).

There ARE use-cases for this:  The Windows-API OPENFILENAME structure is one 
example.  The Microsoft docs for the lpstrFilter field:

"""
lpstrFilter

Type: LPCTSTR

A buffer containing pairs of null-terminated filter strings. The last 
string in the buffer must be terminated by two NULL characters.
"""

I have attached a simple script which demonstrates this new behaviour; the 
output with Python 3.6.4 is this:

Traceback (most recent call last):
  File "nullchars.py", line 8, in 
t.unicode = u"foo\0bar"
ValueError: embedded null character

--
components: ctypes
files: nullchars.py
keywords: 3.6regression
messages: 311462
nosy: theller
priority: normal
severity: normal
status: open
title: ctypes string pointer fields should accept embedded null characters
versions: Python 3.6
Added file: https://bugs.python.org/file47420/nullchars.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Grant Edwards
On 2018-02-01, Jan van den Broek  wrote:
> On 2018-02-01, superchromix  wrote:
>>
>> Our own programming discussion newsgroup, located at
>> comp.lang.idl-pvwave, started receiving spam messages several
>> months ago.
>>
>> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google
>> Groups.
[...]
> [Schnipp]
>
> Personally I would see this as an improvement.

I plonked all posts from google groops yonks ago.  Now that gmane's
web UI is gone, maybe google groups is useful as a searchable archive
(I don't know, I've never used it).  For me, google groups is nothing
but a source of spam.

-- 
Grant Edwards   grant.b.edwardsYow! Let's send the
  at   Russians defective
  gmail.comlifestyle accessories!

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem with coroutines old-style / new-style usage and features

2018-02-01 Thread Ian Kelly
On Thu, Feb 1, 2018 at 5:38 AM, Yahya Abou 'Imran via Python-list
 wrote:
> Hi guys.
>
> I am discovering coroutines and asynchronous programming, and I have a little 
> problem with a little example I'm coding myself as an excercice.
>
> Let say you take two guys in the street: Dave and Bryan.
> You ask dave to count from 1 to 50, 1 by 1. He will do it fast.
> And you ask Bryan to count from 208 to 166 in reversing order, 7 by 7! It 
> will take him some time between each number to think about it.
>
> Now I have a recorder wich is able to recognize voices. I use it to record 
> both of them counting at the same time.
>
> Here is the recorder:
>
>
> @asyncio.coroutine
> def recorder():
> dialog = []
> while True:
> sent = yield dialog
> if sent is not None:
> name, things = sent
> dialog.append(f'{name} says : {things}')

This is not an asyncio coroutine. This is just a normal generator that
you're sending to. So you should probably remove the decorator to
prevent confusion. For that matter I'm not really sure why this isn't
just a class with synchronous "add" and "get" methods.

> It is storing the dialog, and you can ask him fot it later by sending None to 
> it.
>
> For the calculation, I'm using a ascyn generator:
>
>
> async def calcul_mental(range_args, name, timeout=0.2):
> for i in range(*range_args):
> await asyncio.sleep(timeout)
> yield name, i
>
>
> To link the two, I came up with this little coroutine:
>
>
> async def record(recorder, gen):
> async for name, i in gen:
> recorder.send([name, i])
>
>
> And my main:
>
>
> def main():
>
> g1 = calcul_mental([1, 51],
>name='Dave',
>timeout=0.2)
>
> g2 = calcul_mental([208, 165, -7],
>name='Bryan',
>timeout=2)
>
> r = recorder()
> r.send(None)
>
> coros = asyncio.gather(record(r, g1), record(r, g2))
> loop = asyncio.get_event_loop()
> loop.run_until_complete(coros)
>
> dialog = r.send(None)
> for line in dialog:
> print(line)
>
>
> It works well, but I was wondering if I could turn recorder into a new style 
> coroutine...

Why? It doesn't do anything asynchronously.

> The problems are:
> - I can't await for an async generator;
> - I can't let an await alone to send data to it;
> - I can't turn it into an AsyncGenerator because it will lost the .send() 
> method.
>
> I think it's just a problem of design, but I wasn't able to solve it myself.
>
> Any thoughts about it?

If it were a class, then you could make the individual methods be
coroutines if desired and await those.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Jan van den Broek
On 2018-02-01, superchromix  wrote:
>
> Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, 
>started receiving spam messages several months ago.
>
> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups.  
>
> When trying to access comp.lang.idl-pvwave, a message is now displayed, 
>stating that the group owner needs to remove the spam, and can then apply 
>to Google in order to have access reinstated.

[Schnipp]

Personally I would see this as an improvement.
-- 
Jan v/d Broek
balgl...@dds.nl
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Create an alias to an attribute on superclass

2018-02-01 Thread Ben Finney
Sean DiZazzo  writes:

> I basically just want to create an alias to an attribute on an item's
> superclass.

This description – “attribute on an item's superclass” – does not match
what you have described in the rest of the message.

Note the difference between an attribute ‘spam’ on a class ‘Lorem’
(accessed via ‘Lorem.foo’, shared among all instances of ‘Lorem’),
versus an attribute ‘spam’ on a specific instance of ‘Lorem’.

For more information, read about how Python resolves an attribute
reference from an instance, then to its class, and so on:

 A class instance has a namespace implemented as a dictionary which
 is the first place in which attribute references are searched. When
 an attribute is not found there, and the instance’s class has an
 attribute by that name, the search continues with the class attributes.

 


So, if the instance has an attribute ‘spam’, then a reference to that
name will first find the instance's attribute. If not, the class
attribute will be tried; and then that class's superclass; and so on
through the inheritance tree.

Typically, you bind an attribute on the class when you want that
reference shared (e.g. a default) for all the instances of that class;
and you bind an attribute on the instance when you want that reference
to be specific to that instance.

> So that after I create the subclass object, I can access the alias
> attribute to get the value back.

Any instance method can interrogate ‘self.spam’ to ask for that
instance's ‘spam’ attribute. This is true regardless of which class
defines that method.

What problem are you experiencing, and why do you think the default
attribute access behaviour is not enough?

-- 
 \“Sane people have an appropriate perspective on the relative |
  `\ importance of foodstuffs and human beings. Crazy people can't |
_o__) tell the difference.” —Paul Z. Myers, 2010-04-18 |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
On Thursday, February 1, 2018 at 10:23:06 AM UTC-8, Sean DiZazzo wrote:
> Hi!
> 
> I basically just want to create an alias to an attribute on an item's 
> superclass.  So that after I create the subclass object, I can access the 
> alias attribute to get the value back.
> 
> 
> class Superclass(object):
> def __init__(self, value):
> """
> I want to pass x by reference, so that any time
> x on the subclass is updated, so is the alias here
> """
> self.alias = value
> 
> class Subclass(Superclass):
> def __init__(self, x):
> self.x = x
> Superclass.__init__(self, self.x)
> 
> def __repr__(self):
> return "x: %s\nalias: %s" % (self.x, self.alias)
> 
> 
> if __name__ == "__main__":
> foo = Subclass(1)
> print foo.alias
> 
> foo.x = 6
> # Should return 6 !!!
> print foo.alias
> 
> 

Yep.  Thats it.  Thank you guys!!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Create an alias to an attribute on superclass

2018-02-01 Thread Ian Kelly
On Thu, Feb 1, 2018 at 11:44 AM, Sean DiZazzo  wrote:
> On Thursday, February 1, 2018 at 10:37:32 AM UTC-8, Chris Angelico wrote:
>> On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo  wrote:
>> > Hi!
>> >
>> > I basically just want to create an alias to an attribute on an item's 
>> > superclass.  So that after I create the subclass object, I can access the 
>> > alias attribute to get the value back.
>> >
>> > 
>> > class Superclass(object):
>> > def __init__(self, value):
>> > """
>> > I want to pass x by reference, so that any time
>> > x on the subclass is updated, so is the alias here
>> > """
>> > self.alias = value
>> >
>> > class Subclass(Superclass):
>> > def __init__(self, x):
>> > self.x = x
>> > Superclass.__init__(self, self.x)
>> >
>> > def __repr__(self):
>> > return "x: %s\nalias: %s" % (self.x, self.alias)
>> >
>> >
>> > if __name__ == "__main__":
>> > foo = Subclass(1)
>> > print foo.alias
>> >
>> > foo.x = 6
>> > # Should return 6 !!!
>> > print foo.alias
>> >
>> > 
>>
>> ISTM the easiest way would be to define a property on the superclass:
>>
>> class Superclass(object):
>> @property
>> def alias(self):
>> return self.x
>>
>> Whatever happens, self.alias will be identical to self.x. Is that what
>> you're after?
>>
>> ChrisA
>
> Yes, but that doesn't seem to work.  It looks like there is a way to do it if 
> you make the original value a list (mutable) instead of an integer.  I really 
> need to do it with an arbitrary object.  Not sure if I can hack the list 
> trick to work in my case though.

What about it doesn't work? Did you want to be able to set the value
via the alias as well? Then use a property with a setter:

class Superclass(object):
@property
def alias(self):
return self.x

@alias.setter
def alias(self, value):
self.x = value
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Create an alias to an attribute on superclass

2018-02-01 Thread Chris Angelico
On Fri, Feb 2, 2018 at 5:44 AM, Sean DiZazzo  wrote:
> On Thursday, February 1, 2018 at 10:37:32 AM UTC-8, Chris Angelico wrote:
>> On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo  wrote:
>> > Hi!
>> >
>> > I basically just want to create an alias to an attribute on an item's 
>> > superclass.  So that after I create the subclass object, I can access the 
>> > alias attribute to get the value back.
>> >
>> > 
>> > class Superclass(object):
>> > def __init__(self, value):
>> > """
>> > I want to pass x by reference, so that any time
>> > x on the subclass is updated, so is the alias here
>> > """
>> > self.alias = value
>> >
>> > class Subclass(Superclass):
>> > def __init__(self, x):
>> > self.x = x
>> > Superclass.__init__(self, self.x)
>> >
>> > def __repr__(self):
>> > return "x: %s\nalias: %s" % (self.x, self.alias)
>> >
>> >
>> > if __name__ == "__main__":
>> > foo = Subclass(1)
>> > print foo.alias
>> >
>> > foo.x = 6
>> > # Should return 6 !!!
>> > print foo.alias
>> >
>> > 
>>
>> ISTM the easiest way would be to define a property on the superclass:
>>
>> class Superclass(object):
>> @property
>> def alias(self):
>> return self.x
>>
>> Whatever happens, self.alias will be identical to self.x. Is that what
>> you're after?
>>
>> ChrisA
>
> Yes, but that doesn't seem to work.  It looks like there is a way to do it if 
> you make the original value a list (mutable) instead of an integer.  I really 
> need to do it with an arbitrary object.  Not sure if I can hack the list 
> trick to work in my case though.
>

Can you post your actual code? The alias will be looked up whenever
you ask for it, so it won't be a copy.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
On Thursday, February 1, 2018 at 10:37:32 AM UTC-8, Chris Angelico wrote:
> On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo  wrote:
> > Hi!
> >
> > I basically just want to create an alias to an attribute on an item's 
> > superclass.  So that after I create the subclass object, I can access the 
> > alias attribute to get the value back.
> >
> > 
> > class Superclass(object):
> > def __init__(self, value):
> > """
> > I want to pass x by reference, so that any time
> > x on the subclass is updated, so is the alias here
> > """
> > self.alias = value
> >
> > class Subclass(Superclass):
> > def __init__(self, x):
> > self.x = x
> > Superclass.__init__(self, self.x)
> >
> > def __repr__(self):
> > return "x: %s\nalias: %s" % (self.x, self.alias)
> >
> >
> > if __name__ == "__main__":
> > foo = Subclass(1)
> > print foo.alias
> >
> > foo.x = 6
> > # Should return 6 !!!
> > print foo.alias
> >
> > 
> 
> ISTM the easiest way would be to define a property on the superclass:
> 
> class Superclass(object):
> @property
> def alias(self):
> return self.x
> 
> Whatever happens, self.alias will be identical to self.x. Is that what
> you're after?
> 
> ChrisA

Yes, but that doesn't seem to work.  It looks like there is a way to do it if 
you make the original value a list (mutable) instead of an integer.  I really 
need to do it with an arbitrary object.  Not sure if I can hack the list trick 
to work in my case though.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Create an alias to an attribute on superclass

2018-02-01 Thread Chris Angelico
On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo  wrote:
> Hi!
>
> I basically just want to create an alias to an attribute on an item's 
> superclass.  So that after I create the subclass object, I can access the 
> alias attribute to get the value back.
>
> 
> class Superclass(object):
> def __init__(self, value):
> """
> I want to pass x by reference, so that any time
> x on the subclass is updated, so is the alias here
> """
> self.alias = value
>
> class Subclass(Superclass):
> def __init__(self, x):
> self.x = x
> Superclass.__init__(self, self.x)
>
> def __repr__(self):
> return "x: %s\nalias: %s" % (self.x, self.alias)
>
>
> if __name__ == "__main__":
> foo = Subclass(1)
> print foo.alias
>
> foo.x = 6
> # Should return 6 !!!
> print foo.alias
>
> 

ISTM the easiest way would be to define a property on the superclass:

class Superclass(object):
@property
def alias(self):
return self.x

Whatever happens, self.alias will be identical to self.x. Is that what
you're after?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
Hi!

I basically just want to create an alias to an attribute on an item's 
superclass.  So that after I create the subclass object, I can access the alias 
attribute to get the value back.


class Superclass(object):
def __init__(self, value):
"""
I want to pass x by reference, so that any time
x on the subclass is updated, so is the alias here
"""
self.alias = value

class Subclass(Superclass):
def __init__(self, x):
self.x = x
Superclass.__init__(self, self.x)

def __repr__(self):
return "x: %s\nalias: %s" % (self.x, self.alias)


if __name__ == "__main__":
foo = Subclass(1)
print foo.alias

foo.x = 6
# Should return 6 !!!
print foo.alias


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread mm0fmf

On 01/02/2018 17:15, Chris Angelico wrote:

On Fri, Feb 2, 2018 at 4:01 AM, superchromix  wrote:


Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, 
started receiving spam messages several months ago.

Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups.

When trying to access comp.lang.idl-pvwave, a message is now displayed, stating 
that the group owner needs to remove the spam, and can then apply to Google in 
order to have access reinstated.

However, old public Usenet groups like this have no owner.  The 
comp.lang.idl-pvwave group is more than 20 years old.  Hence, there is no way 
to unblock the group.

This is a serious problem, since the entire collection of postings going back 
many years has been blocked, no just the spam.  This resource is frequently 
used by IDL programmers.

Seeing the spam postings in this newsgroup, I expect something similar may 
happen to comp.lang.python, soon.



Pot, meet Kettle.

Most of our worst spam comes FROM the Google Groups bridge. If they
cut the connection, I would not be sorry.


 ^^

This. This a googol times!

--
https://mail.python.org/mailman/listinfo/python-list


[issue32744] PEP 342 double colons typos in code

2018-02-01 Thread Dmitry Alimov

Dmitry Alimov  added the comment:

Merged. It's fixed now: https://www.python.org/dev/peps/pep-0342/

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32741] Add asyncio.TimerHandle.when() function

2018-02-01 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5310

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Chris Angelico
On Fri, Feb 2, 2018 at 4:50 AM,   wrote:
> On Thursday, February 1, 2018 at 6:01:58 PM UTC+1, superchromix wrote:
>> Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, 
>> started receiving spam messages several months ago.
>>
>> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups.
>>
>> When trying to access comp.lang.idl-pvwave, a message is now displayed, 
>> stating that the group owner needs to remove the spam, and can then apply to 
>> Google in order to have access reinstated.
>>
>> However, old public Usenet groups like this have no owner.  The 
>> comp.lang.idl-pvwave group is more than 20 years old.  Hence, there is no 
>> way to unblock the group.
>>
>> This is a serious problem, since the entire collection of postings going 
>> back many years has been blocked, no just the spam.  This resource is 
>> frequently used by IDL programmers.
>>
>> Seeing the spam postings in this newsgroup, I expect something similar may 
>> happen to comp.lang.python, soon.
>
> The problem I have now is that there is no public, searchable archive of 
> comp.lang.idl-pvwave available.  This was the real benefit of Google groups, 
> from my point of view.
>
> There is something called "narkive", but its search function seems to be 
> broken, and it doesn't archive very far back in time.
>

Which is why you don't rely on proprietary services if you don't have
to. They can go away at any time, without notice.

Fortunately, python-list has its own archive, so you can access that
from python.org independently of the newsgroup's availability
elsewhere on the internet. It doesn't have all the posts that are on
the newsgroup and not on the mailing list, but IMO that's a feature,
not a bug. (With the possible exception of the "no-archive" posts.
Possible exception only.)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32741] Add asyncio.TimerHandle.when() function

2018-02-01 Thread Andrew Svetlov

Andrew Svetlov  added the comment:

Thanks.
Let's do it.
The addition is really very trivial.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread markb77
On Thursday, February 1, 2018 at 6:01:58 PM UTC+1, superchromix wrote:
> Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, 
> started receiving spam messages several months ago.
> 
> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups.  
> 
> When trying to access comp.lang.idl-pvwave, a message is now displayed, 
> stating that the group owner needs to remove the spam, and can then apply to 
> Google in order to have access reinstated.
> 
> However, old public Usenet groups like this have no owner.  The 
> comp.lang.idl-pvwave group is more than 20 years old.  Hence, there is no way 
> to unblock the group.
> 
> This is a serious problem, since the entire collection of postings going back 
> many years has been blocked, no just the spam.  This resource is frequently 
> used by IDL programmers.
> 
> Seeing the spam postings in this newsgroup, I expect something similar may 
> happen to comp.lang.python, soon.

The problem I have now is that there is no public, searchable archive of 
comp.lang.idl-pvwave available.  This was the real benefit of Google groups, 
from my point of view.

There is something called "narkive", but its search function seems to be 
broken, and it doesn't archive very far back in time.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread markb77
On Thursday, February 1, 2018 at 6:22:22 PM UTC+1, Jack Dangler wrote:
> On 02/01/2018 12:06 PM, alister via Python-list wrote:
> > On Thu, 01 Feb 2018 09:01:35 -0800, superchromix wrote:
> >
> >> Our own programming discussion newsgroup, located at
> >> comp.lang.idl-pvwave, started receiving spam messages several months
> >> ago.
> >>
> >> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google
> >> Groups.
> >>
> >> When trying to access comp.lang.idl-pvwave, a message is now displayed,
> >> stating that the group owner needs to remove the spam, and can then
> >> apply to Google in order to have access reinstated.
> >>
> >> However, old public Usenet groups like this have no owner.  The
> >> comp.lang.idl-pvwave group is more than 20 years old.  Hence, there is
> >> no way to unblock the group.
> >>
> >> This is a serious problem, since the entire collection of postings going
> >> back many years has been blocked, no just the spam.  This resource is
> >> frequently used by IDL programmers.
> >>
> >> Seeing the spam postings in this newsgroup, I expect something similar
> >> may happen to comp.lang.python, soon.
> > simple solution stop using google groups & use either the mailing list or
> > a news server with an NNTP client
> >
> >
> >
> Is it possible to name an 'owner' and then get into the group archive to 
> remove the spam by account "recovery" ?

Is this possible within the framework of the Usenet?
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32744] PEP 342 double colons typos in code

2018-02-01 Thread Dmitry Alimov

Dmitry Alimov  added the comment:

https://github.com/python/peps/pull/567

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32744] PEP 342 double colons typos in code

2018-02-01 Thread Dmitry Alimov

New submission from Dmitry Alimov :

I've found "double colons" typos in examples:

@consumer
def jpeg_writer(dirname)::  # 1) here
fileno = 1

and

try:
while self.running and self.queue::  # 2) here
   func = self.queue.popleft()

--
assignee: docs@python
components: Documentation
messages: 311458
nosy: delimitry, docs@python
priority: normal
severity: normal
status: open
title: PEP 342 double colons typos in code
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32711] Fix warnings for Python/ast_unparse.c

2018-02-01 Thread Christian Heimes

Christian Heimes  added the comment:

Thanks!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> compile error
versions: +Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32711] Fix warnings for Python/ast_unparse.c

2018-02-01 Thread Christian Heimes

Christian Heimes  added the comment:


New changeset 78758f29b13aba6136f4c0a15d4457fbf92c5eef by Christian Heimes 
(Miss Islington (bot)) in branch '3.7':
[3.7] bpo-32711: Fix warnings for Python/ast_unparse.c (GH-5426) (#5475)
https://github.com/python/cpython/commit/78758f29b13aba6136f4c0a15d4457fbf92c5eef


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-01 Thread Bar Harel

Bar Harel  added the comment:

Finished fixing CR and adding backports.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Chris Angelico
On Fri, Feb 2, 2018 at 4:01 AM, superchromix  wrote:
>
> Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, 
> started receiving spam messages several months ago.
>
> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups.
>
> When trying to access comp.lang.idl-pvwave, a message is now displayed, 
> stating that the group owner needs to remove the spam, and can then apply to 
> Google in order to have access reinstated.
>
> However, old public Usenet groups like this have no owner.  The 
> comp.lang.idl-pvwave group is more than 20 years old.  Hence, there is no way 
> to unblock the group.
>
> This is a serious problem, since the entire collection of postings going back 
> many years has been blocked, no just the spam.  This resource is frequently 
> used by IDL programmers.
>
> Seeing the spam postings in this newsgroup, I expect something similar may 
> happen to comp.lang.python, soon.
>

Pot, meet Kettle.

Most of our worst spam comes FROM the Google Groups bridge. If they
cut the connection, I would not be sorry.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32572] Add the ftplib option, overrides the IP address.

2018-02-01 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Considering the security implications and the fact that it's a corner case I 
don't think this is worth adding as a new, public API, sorry. I think ftplib 
should expose and promote APIs reflecting common scenarios and good practices, 
yet be flexible enough in order to allow "breaking the rules". FWIW, you may 
get away with something like this, which IMO is not too bad (not tested): 


class FTP(ftplib.FTP):
externalip = None

def sendport(self, host, port):
return super().sendport(self.externalip or host, port)

def sendeprt(self, host, port):
return super().sendeprt(self.externalip or host, port)

--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Tim Golden

On 01/02/2018 17:01, superchromix wrote:


Our own programming discussion newsgroup, located at
comp.lang.idl-pvwave, started receiving spam messages several months
ago.

Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google
Groups.

When trying to access comp.lang.idl-pvwave, a message is now
displayed, stating that the group owner needs to remove the spam, and
can then apply to Google in order to have access reinstated.

However, old public Usenet groups like this have no owner.  The
comp.lang.idl-pvwave group is more than 20 years old.  Hence, there
is no way to unblock the group.

This is a serious problem, since the entire collection of postings
going back many years has been blocked, no just the spam.  This
resource is frequently used by IDL programmers.

Seeing the spam postings in this newsgroup, I expect something
similar may happen to comp.lang.python, soon.



Thanks for the heads-up. I'm not sure there's anything we'll be able to 
do. Google have seemed remarkably uninterested in Google Groups for some 
years now.


Although I recognise how useful GG is for some people, I wouldn't be 
sorry [as a list maintainer here] if it were to be blocked for good by 
forces outside our control. We've wondered several times whether we 
ought to be block its posts outright, but to date we've simply used 
refined filters to block the spam and other abuse. If Google essentially 
close the group down, the decision is taken out of our hands.


TJG
--
https://mail.python.org/mailman/listinfo/python-list


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Jack Dangler



On 02/01/2018 12:06 PM, alister via Python-list wrote:

On Thu, 01 Feb 2018 09:01:35 -0800, superchromix wrote:


Our own programming discussion newsgroup, located at
comp.lang.idl-pvwave, started receiving spam messages several months
ago.

Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google
Groups.

When trying to access comp.lang.idl-pvwave, a message is now displayed,
stating that the group owner needs to remove the spam, and can then
apply to Google in order to have access reinstated.

However, old public Usenet groups like this have no owner.  The
comp.lang.idl-pvwave group is more than 20 years old.  Hence, there is
no way to unblock the group.

This is a serious problem, since the entire collection of postings going
back many years has been blocked, no just the spam.  This resource is
frequently used by IDL programmers.

Seeing the spam postings in this newsgroup, I expect something similar
may happen to comp.lang.python, soon.

simple solution stop using google groups & use either the mailing list or
a news server with an NNTP client



Is it possible to name an 'owner' and then get into the group archive to 
remove the spam by account "recovery" ?


--
https://mail.python.org/mailman/listinfo/python-list


[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-01 Thread Bar Harel

Change by Bar Harel :


--
pull_requests: +5309

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32743] Typo in hamt.c comments

2018-02-01 Thread Dmitry Alimov

Change by Dmitry Alimov :


--
keywords: +patch
pull_requests: +5307
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32743] Typo in hamt.c comments

2018-02-01 Thread Yury Selivanov

Yury Selivanov  added the comment:

Yeah, please submit a PR

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32743] Typo in hamt.c comments

2018-02-01 Thread Dmitry Alimov

New submission from Dmitry Alimov :

In the comments to `hamt_node_collision_without` function in hamt.c module, I 
think should be `so convert` instead of `co convert`:

```
 if (new_count == 1) {
 /* The node has two keys, and after deletion the
new Collision node would have one.  Collision nodes
-   with one key shouldn't exist, co convert it to a
+   with one key shouldn't exist, so convert it to a
Bitmap node.
 */
```

--
assignee: docs@python
components: Documentation
messages: 311452
nosy: delimitry, docs@python, yselivanov
priority: normal
severity: normal
status: open
title: Typo in hamt.c comments
type: enhancement
versions: Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-01 Thread Bar Harel

Change by Bar Harel :


--
pull_requests: +5306

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-01 Thread Bar Harel

Change by Bar Harel :


--
pull_requests: +5305

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2018-02-01 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
versions: +Python 3.8 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread alister via Python-list
On Thu, 01 Feb 2018 09:01:35 -0800, superchromix wrote:

> Our own programming discussion newsgroup, located at
> comp.lang.idl-pvwave, started receiving spam messages several months
> ago.
> 
> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google
> Groups.
> 
> When trying to access comp.lang.idl-pvwave, a message is now displayed,
> stating that the group owner needs to remove the spam, and can then
> apply to Google in order to have access reinstated.
> 
> However, old public Usenet groups like this have no owner.  The
> comp.lang.idl-pvwave group is more than 20 years old.  Hence, there is
> no way to unblock the group.
> 
> This is a serious problem, since the entire collection of postings going
> back many years has been blocked, no just the spam.  This resource is
> frequently used by IDL programmers.
> 
> Seeing the spam postings in this newsgroup, I expect something similar
> may happen to comp.lang.python, soon.

simple solution stop using google groups & use either the mailing list or 
a news server with an NNTP client



-- 
Your wig steers the gig.
-- Lord Buckley
-- 
https://mail.python.org/mailman/listinfo/python-list


This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread superchromix

Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, 
started receiving spam messages several months ago.

Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups.  

When trying to access comp.lang.idl-pvwave, a message is now displayed, stating 
that the group owner needs to remove the spam, and can then apply to Google in 
order to have access reinstated.

However, old public Usenet groups like this have no owner.  The 
comp.lang.idl-pvwave group is more than 20 years old.  Hence, there is no way 
to unblock the group.

This is a serious problem, since the entire collection of postings going back 
many years has been blocked, no just the spam.  This resource is frequently 
used by IDL programmers.

Seeing the spam postings in this newsgroup, I expect something similar may 
happen to comp.lang.python, soon.
-- 
https://mail.python.org/mailman/listinfo/python-list


  1   2   >