[issue35646] python -v writes to stderr

2019-01-02 Thread Eric V. Smith


Eric V. Smith  added the comment:

-v writes to stderr, so this is the expected behavior. Although maybe this 
could be better documented.

See issue 18338, where this was briefly discussed and a change was rejected.

Maybe you're looking for -V (uppercase) or --version, which do write to stdout, 
at least in 3.x. I'm not sure where they write in 2.7, but it's much too late 
to change 2.7's behavior.

I'm going to close this. If you find some of our documentation that says -v 
writes to stdout, then we can reopen this.

This is not a Windows specific error, so I'm modifying the nosy list.

--
components: +Interpreter Core -Windows, ctypes
nosy: +eric.smith -paul.moore, steve.dower, tim.golden, zach.ware
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: Subprocess.Popen('python -v',stdout=PIPE,stderr=PIPE,Shell=True) gives 
output in stderr -> python -v writes to stderr

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10829, 10830, 10831

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset ab54b9a130c88f708077c2ef6c4963b632c132b3 by Terry Jan Reedy 
(Emmanuel Arias) in branch 'master':
bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)
https://github.com/python/cpython/commit/ab54b9a130c88f708077c2ef6c4963b632c132b3


--

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10829, 10830

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10829

___
Python tracker 

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



[issue35636] remove redundant check in unicode_hash(PyObject *self)

2019-01-02 Thread Ma Lin


Ma Lin  added the comment:

One scene is caching regular expresses, b'[a-z]', '[a-z]' may exist in the same 
dict. Any way, it's trivial on the whole.

--

___
Python tracker 

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



[issue35646] Subprocess.Popen('python -v', stdout=PIPE, stderr=PIPE, Shell=True) gives output in stderr

2019-01-02 Thread Deepak Joshi


New submission from Deepak Joshi :

Subprocess.Popen('python -v',stdout=PIPE,stderr=PIPE,Shell=True)

Prduces output in stderr instead of stdout.

For others: pip --version or git --version output is in stdout and is expected.

--
components: Windows, ctypes
messages: 332915
nosy: Deepak Joshi, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Subprocess.Popen('python -v',stdout=PIPE,stderr=PIPE,Shell=True) gives 
output in stderr
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue35644] venv doesn't work on Windows when no venvlauncher executable present

2019-01-02 Thread Steve Dower


Steve Dower  added the comment:

The installed venv seems to be okay, so I'm going to assume it's something 
about your own build.

Now I realise I haven't ever tried virtualenv against 3.6 or later... no idea 
what state that's in.

--

___
Python tracker 

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



[issue35644] venv doesn't work on Windows when no venvlauncher executable present

2019-01-02 Thread Steve Dower


Steve Dower  added the comment:

That patch will break the case where the launcher *is* present, which is why it 
was changed. If you're sure the launcher won't be present under Scripts/nt, 
then that patch is okay. You'll probably need to add code to also copy 
python37.dll and vcruntime140.dll, since those are needed by the regular 
python.exe but not the launcher.

However, why not use the launcher? All it does is find pyvenv.cfg, read its 
home variable and launches the python.exe it finds there. If you copy your 
build of venvlauncher over (or even our build) it will do the same thing.

That said, I'm a little concerned about the sys.path in your first post. I 
assumed nobody had hit problems since there haven't been any complaints (I've 
been using the Store version exclusively since 3.7.2 was released), but there 
seems to be something wrong there. Perhaps it was due to your build?

--

___
Python tracker 

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



[issue35645] Alarm usage

2019-01-02 Thread Steven D'Aprano


Change by Steven D'Aprano :


--
resolution:  -> not a bug
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



[issue35645] Alarm usage

2019-01-02 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

This bug report is incoherent. This has nothing to do with alarms or regular 
expressions, and I don't know what your code is supposed to do or what results 
you are expecting. What's "a calci programe"?

You ask: 

"Do we have any ways to rectify the same. if so please let me know."

First of all, rectify *what*? I don't understand what problem you think you are 
having. And secondly, this is for reporting bugs in the Python interpreter and 
libraries, not for asking for help with bugs in your own code.

I'm going to close this bug report now. If you believe it is actually a bug in 
the interpreter, then please explain what behaviour you expect and show the 
exact behaviour you get, including any traceback. COPY AND PASTE the code and 
any errors, don't summarise them or retype them from memory.

If you want help with your own code, I suggest:

https://old.reddit.com/r/learnpython/

https://mail.python.org/mailman/listinfo/tutor

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

--
nosy: +steven.daprano

___
Python tracker 

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



[issue35636] remove redundant check in unicode_hash(PyObject *self)

2019-01-02 Thread Stefan Behnel


Stefan Behnel  added the comment:

> maybe this can be changed in Python 4.0

Well, if you find a *very* good reason for changing it, as I said. Py4 won't be 
special in that regard, I suppose.

--

___
Python tracker 

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



[issue35636] remove redundant check in unicode_hash(PyObject *self)

2019-01-02 Thread Ma Lin


Ma Lin  added the comment:

> I'd advise against changing the hash function without a very good reason. You 
> never know how much code relies on it in one way or another.

ok, maybe this can be changed in Python 4.0

--

___
Python tracker 

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



[issue35636] remove redundant check in unicode_hash(PyObject *self)

2019-01-02 Thread Stefan Behnel


Stefan Behnel  added the comment:

> why bytes and str generates the same hash value for ASCII sequence

Probably mostly for historical Py2 reasons. These days, both are somewhat 
unlikely to appear in the same dict. But still, I'd advise against changing the 
hash function without a very good reason. You never know how much code relies 
on it in one way or another.

--

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
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



[issue35636] remove redundant check in unicode_hash(PyObject *self)

2019-01-02 Thread Ma Lin


Ma Lin  added the comment:

Thanks for review.

Don't know why bytes and str generates the same hash value for ASCII sequence.
>>> hash('abc') == hash(b'abc')
True

This may brings some hash collisions, does it affect performance slightly?

--

___
Python tracker 

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



[issue35645] Alarm usage

2019-01-02 Thread Siva


New submission from Siva :

'\a' in a command line gives  '\x07' in response.Tried '\a' in a calci programe 
but response gives me enter a valid data and a small box but o alarm. Do we 
have any ways to rectify the same. if so please let me know.

print('enter a value from the below list\n')
a = input('enter a value + , - ')

if a!= '+' and a!= '-' :
print ('enter a valid data \a')
elif a == '+':
b = eval(input('enter first value'))
c=eval(input('enter 2nd value'))
add = b+c
print (b,'+',c,'=',add)
elif a== '-':
b = eval(input('enter first value'))
c=eval(input('enter 2nd value'))
sub=b-c
print (b,'-',c,'=',sub)

--
components: Regular Expressions
messages: 332907
nosy: ezio.melotti, mrabarnett, shivsidhi
priority: normal
severity: normal
status: open
title: Alarm usage
type: behavior
versions: Python 3.7

___
Python tracker 

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



[issue35609] Improve of abc.py docstring

2019-01-02 Thread INADA Naoki


INADA Naoki  added the comment:

No plan for removal.  See https://bugs.python.org/issue28886#msg282582

--
nosy: +inada.naoki

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-02 Thread miss-islington


miss-islington  added the comment:


New changeset b364caa3658e843151602356e527851d6c68 by Miss Islington (bot) 
in branch '3.7':
bpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)
https://github.com/python/cpython/commit/b364caa3658e843151602356e527851d6c68


--
nosy: +miss-islington

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10827

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10828

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10826, 10827, 10828
stage: test needed -> patch review

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10826, 10827
stage: test needed -> patch review

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10826
stage: test needed -> patch review

___
Python tracker 

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2019-01-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset aff0adabf3ace62073076f4ce875ff568f2d3180 by Terry Jan Reedy in 
branch 'master':
bpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)
https://github.com/python/cpython/commit/aff0adabf3ace62073076f4ce875ff568f2d3180


--

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2019-01-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

PR 11307 was moved to #35610.

--

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2019-01-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10543

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2019-01-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

On my Macbook with Mohave with installed python.org 3.7.2, compiled against tk 
8.6.8, the startup header is
Python 3.7.2 (v3.7.2.9a3ffc0492, Dec 24 ...) [Clang 6.0 .. on Darwin].

Your header is quite different (repository?, tk version?) but the version is 
the exact same: '3.7.2'.  This should mean that it is a compilation of released 
3.7.2 and does not have any post-3.7.2 patches, such as the fix here.  If it 
did, the version should be '3.7.2+', as it is for my 3.7 compiled today.

Since the problem resulting from a missing closers was fixed on Windows and 
Ubuntu by the post 3.7.2 patch, I will presume it is fixed on Mac also until 
presented with clear evidence otherwise.

Tal, does Grant's problem with compiling on Mac look familiar to you?

--
nosy: +taleinat
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2019-01-02 Thread Grant Jenks


Grant Jenks  added the comment:

This issue was closed but I still see the problem in 3.7.2. Here's a snippet 
with line numbers from IDLE:

01 Python 3.7.2 (default, Dec 30 2018, 08:59:00) 
02 [Clang 9.1.0 (clang-902.0.39.2)] on darwin
03 Type "help", "copyright", "credits" or "license()" for more information.
04 >>> 1 + 2
05 3
06 >>> print('Hello')
07 Hello
08 >>> d = {1: 'uno', 2: 'dos', 3: 'tres}
09   
10 SyntaxError: EOL while scanning string literal
11 >>> 1 + 2
12   
13 3
14 >>> 

Notice that IDLE is inserting an extra blank line at (12) above.

And here's a snippet with line numbers from the Python shell:

01 Python 3.7.2 (default, Dec 30 2018, 08:59:00) 
02 [Clang 9.1.0 (clang-902.0.39.2)] on darwin
03 Type "help", "copyright", "credits" or "license" for more information.
04 >>> 1 + 2
05 3
06 >>> print('Hello')
07 Hello
08 >>> d = {1: 'uno', 2: 'dos', 3: 'tres}
09   File "", line 1
10 d = {1: 'uno', 2: 'dos', 3: 'tres}
11  ^
12 SyntaxError: EOL while scanning string literal
13 >>> 1 + 2
14 3
15 >>> 

Between lines (13) and (14) there is no extra blank line.

I'm sorry if my initial post was unclear. But the extra blank line is the bug 
I'm describing. I don't think there should be an extra blank line between (11) 
and (13) in the IDLE shell. This blank line persists for every input, even 
after restarts.

I'm on macOS.

I would be interested in debugging the issue locally but I ran into a couple 
issues trying to do so. When I check out the CPython sources and build the 
python.exe executable, I get this error when trying to execute IDLE:

$ ./python.exe -m pdb -m idlelib.idle
> /Users/grantj/repos/cpython/Lib/idlelib/idle.py(1)()
-> import os.path
(Pdb) c
Traceback (most recent call last):
  File "/Users/grantj/repos/cpython/Lib/pdb.py", line 1695, in main
pdb._runmodule(mainpyfile)
  File "/Users/grantj/repos/cpython/Lib/pdb.py", line 1540, in _runmodule
self.run(code)
  File "/Users/grantj/repos/cpython/Lib/bdb.py", line 585, in run
exec(cmd, globals, locals)
  File "/Users/grantj/repos/cpython/Lib/idlelib/idle.py", line 1, in 
import os.path
  File "/Users/grantj/repos/cpython/Lib/idlelib/pyshell.py", line 1507, in main
macosx.setupApp(root, flist)
  File "/Users/grantj/repos/cpython/Lib/idlelib/macosx.py", line 280, in 
setupApp
overrideRootMenu(root, flist)
  File "/Users/grantj/repos/cpython/Lib/idlelib/macosx.py", line 181, in 
overrideRootMenu
del mainmenu.menudefs[-2][1][0]
IndexError: list assignment index out of range

If I comment out line 181 in /Users/grantj/repos/cpython/Lib/idlelib/macosx.py 
then I can get IDLE to start. But it will later crash trying to display the 
first tooltip:

$ ./python.exe -m pdb -m idlelib.idle
> /Users/grantj/repos/cpython/Lib/idlelib/idle.py(1)()
-> import os.path
(Pdb) c
2019-01-02 15:52:57.582 python.exe[23803:6374992] *** Assertion failure in 
-[_NSCGSWindow setFrame:], 
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.60.100/CGS.subproj/NSCGSWindow.m:1002
2019-01-02 15:52:57.588 python.exe[23803:6374992] *** Terminating app due to 
uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid 
parameter not satisfying: CGRectContainsRect(CGRectMake((CGFloat)INT_MIN, 
(CGFloat)INT_MIN, (CGFloat)INT_MAX - (CGFloat)INT_MIN, (CGFloat)INT_MAX - 
(CGFloat)INT_MIN), frame)'
*** First throw call stack:
(
0   CoreFoundation  0x7fff48fa923b 
__exceptionPreprocess + 171
1   libobjc.A.dylib 0x7fff7023ac76 
objc_exception_throw + 48
2   CoreFoundation  0x7fff48faefd2 
+[NSException raise:format:arguments:] + 98
3   Foundation  0x7fff4b0d9150 
-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] 
+ 193
4   AppKit  0x7fff465d6f50 
-[_NSCGSWindow setFrame:] + 475
5   AppKit  0x7fff4668eb07 
_NSCreateWindowWithOpaqueShape2 + 248
6   AppKit  0x7fff4668d763 -[NSWindow 
_commonAwake] + 1057
7   AppKit  0x7fff46d9bbe7 
-[NSWindow(NSWindow_Carbon) 
windowRefWithCompositedAttribute:andFrameworkScaledAttribute:] + 139
8   Tk  0x0001061f9ad5 XMapWindow + 
239
9   Tk  0x000106166dbf Tk_MapWindow 
+ 89
10  Tk  0x00010616fcc5 MapFrame + 62
11  Tcl 0x0001060c05cd 
TclServiceIdle + 76
12  Tcl 0x0001060a4a96 
Tcl_DoOneEvent + 329
13  Tk  0x000106145f7d 
Tk_UpdateObjCmd + 172
14  Tcl 0x00010603ed6f 
TclEvalObjvInternal + 773
15  Tcl 

[issue35500] Align expected and actual calls on mock.assert_called_with error message

2019-01-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

"Expected" and "Observed" seem good.  I like "Received" slightly better, but 
would not argue with PR author.  It depends on whether one anthropomorphizes 
the assert function (or test machinery) as saying 'I expected to see' or 'I 
expected to get'.

--
stage:  -> test needed
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



[issue35629] hang and/or leaked processes with multiprocessing.Pool(...).imap(...)

2019-01-02 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
nosy: +pablogsal

___
Python tracker 

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



[issue35629] hang and/or leaked processes with multiprocessing.Pool(...).imap(...)

2019-01-02 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

I believe that this is similar to https://bugs.python.org/issue35378 on which 
@pablogsal is working.

You were right, the issue steems from a refcount bug. Until the resolution you 
can avoid the issue by explictly keeping a reference on the pool:

>>> import multiprocessing
>>> d = multiprocessing.Pool(4)
>>> tuple(d.imap(print, (1, 2, 3)))
1
2
3
(None, None, None)
>>>

--

___
Python tracker 

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



[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2019-01-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch, patch, patch
pull_requests: +10823, 10824, 10825
stage:  -> patch review

___
Python tracker 

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



[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2019-01-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch, patch
pull_requests: +10823, 10824
stage:  -> patch review

___
Python tracker 

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



[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2019-01-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


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

___
Python tracker 

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



[issue35644] venv doesn't work on Windows when no venvlauncher executable present

2019-01-02 Thread Ray Donnelly


Change by Ray Donnelly :


--
title: venv doesn't do what it claims to do (apears not to work at all?) -> 
venv doesn't work on Windows when no venvlauncher executable present

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread miss-islington


miss-islington  added the comment:


New changeset d7cb2034bbaa26170cdc66eb54626e3ce1b8678a by Miss Islington (bot) 
in branch '3.7':
bpo-35525: Correct the argument name for NNTP.starttls() (GH-11310)
https://github.com/python/cpython/commit/d7cb2034bbaa26170cdc66eb54626e3ce1b8678a


--
nosy: +miss-islington

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10818, 10819, 10821, 10822

___
Python tracker 

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



[issue35644] venv doesn't do what it claims to do (apears not to work at all?)

2019-01-02 Thread Ray Donnelly


Ray Donnelly  added the comment:

The commit that my patch modifies is: 
https://github.com/python/cpython/commit/1c3de541e64f75046b20cdd27bada1557e550bcd

Cheers.

--

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10818, 10819

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10818, 10819, 10822

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10818

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10819, 10820, 10821, 10822

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10819, 10820, 10822

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10817, 10818, 10819, 10820

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10818, 10820

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10817, 10818

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10817

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread Tal Einat


Tal Einat  added the comment:


New changeset e9a044ec16989bd4b39763c0588c17200a925350 by Tal Einat (Harmandeep 
Singh) in branch 'master':
bpo-35525: Correct the argument name for NNTP.starttls() (GH-11310)
https://github.com/python/cpython/commit/e9a044ec16989bd4b39763c0588c17200a925350


--
nosy: +taleinat

___
Python tracker 

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



[issue35644] venv doesn't do what it claims to do (apears not to work at all?)

2019-01-02 Thread Ray Donnelly


Ray Donnelly  added the comment:

Bit of an update to this, I'm re-opening it as there appears to be a regression 
from Python 3.7.1 to 3.7.2 for the case when there is no venvlauncher.exe 
present (i.e. when there are no python{w,}.exes in Lib\venv\scripts\nt). The 
old code of copying `sys.executable` is no longer run (on Windows only).

Currently Anaconda Distribution's venv is done this way. Should we change it to 
use the same method as official CPython Windows releases?

Here is a diff I think we need to apply for now, if you feel it is reasonable 
to make a PR then I'm happy to do so.

```
$ diff -urN Lib/venv/__init__.py.orig Lib/venv/__init__.py
--- Lib/venv/__init__.py.orig   2019-01-02 20:56:45.015131800 +
+++ Lib/venv/__init__.py2019-01-02 20:56:55.330130800 +
@@ -188,9 +188,9 @@
 binpath = context.bin_path
 path = context.env_exe
 copier = self.symlink_or_copy
+copier(context.executable, path)
 dirname = context.python_dir
 if os.name != 'nt':
-copier(context.executable, path)
 if not os.path.islink(path):
 os.chmod(path, 0o755)
 for suffix in ('python', 'python3'):
```

--
status: closed -> open

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10554, 10555

___
Python tracker 

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



[issue35525] Incorrect keyword name in NNTP.starttls() documentation

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10554

___
Python tracker 

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



[issue35644] venv doesn't do what it claims to do (apears not to work at all?)

2019-01-02 Thread Ray Donnelly


Ray Donnelly  added the comment:

I found the executable is in the `Scripts` directory, closing. The real issue 
I'm facing is on Anaconda Distribution's build of Python 3 which I'm updating 
to 3.7.2.

Closing,

Cheers!

--
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



[issue35500] Align expected and actual calls on mock.assert_called_with error message

2019-01-02 Thread Tal Einat


Tal Einat  added the comment:

Perhaps "expected" and "observed" or "detected"?

--
nosy: +taleinat

___
Python tracker 

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



[issue35644] venv doesn't do what it claims to do (apears not to work at all?)

2019-01-02 Thread Ray Donnelly

New submission from Ray Donnelly :

Happy New Year!

I'm not sure if this is a misunderstanding on my part, a docs bug or a code bug.

At https://docs.python.org/3/library/venv.html we see:

"The solution for this problem is to create a virtual environment, a 
self-contained directory tree that contains a Python installation for a 
particular version of Python, plus a number of additional packages"

and

"This will create the tutorial-env directory if it doesn’t exist, and also 
create directories inside it containing a copy of the Python interpreter, the 
standard library, and various supporting files."

However, when testing with 
https://www.python.org/ftp/python/3.7.2/python-3.7.2-amd64.exe I see no Python 
interpreter (nor DLL) in my venv directory:

```
python.exe -m venv %TEMP%\venv
%TEMP%\venv\Scripts\activate.bat
dir %TEMP%\venv
```

gives:

```
 Directory of C:\Users\RDONNE~1\AppData\Local\Temp\venv

02/01/2019  19:38  .
02/01/2019  19:38  ..
02/01/2019  19:38  Include
02/01/2019  19:38  Lib
02/01/2019  19:38   121 pyvenv.cfg
02/01/2019  19:38  Scripts
   1 File(s)121 bytes
   5 Dir(s)  912,281,780,224 bytes free
```

pyvenv.cfg contains:

```
home = C:\Users\rdonnelly\AppData\Local\Programs\Python\Python37
include-system-site-packages = false
version = 3.7.2
```

Further to this, after activating, I do not see the `venv` directory in 
`sys.path`:

```
python -c "import sys; print(sys.path)"
['',
 
'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
 'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
 'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37\\lib',
 'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37',
 
'C:\\Users\\rdonnelly\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']
```

>From past experience, the old `virtualenv` project would copy the interpreter 
>and DLL across.

Any help here would be appreciated!

--
components: Windows
messages: 332892
nosy: Ray Donnelly, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: venv doesn't do what it claims to do (apears not to work at all?)
type: behavior
versions: Python 3.7

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread miss-islington


miss-islington  added the comment:


New changeset 6d04bc9a2eb02efdb49f14f2c9664fe687f9a170 by Miss Islington (bot) 
in branch '3.7':
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in 
Modules/_sha3/cleanup.py (GH-11411)
https://github.com/python/cpython/commit/6d04bc9a2eb02efdb49f14f2c9664fe687f9a170


--
nosy: +miss-islington

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10814, 10815

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10814, 10815, 10816

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
keywords: +patch, patch, patch
pull_requests: +10813, 10814, 10815
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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10814

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
keywords: +patch, patch
pull_requests: +10813, 10814
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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
keywords: +patch
pull_requests: +10813
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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
keywords: +patch, patch, patch, patch
pull_requests: +10813, 10814, 10815, 10816
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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen

Change by Mickaël Schoentgen :


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

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen

Change by Mickaël Schoentgen :


--
resolution: fixed -> 
status: closed -> open
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



[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-02 Thread Yash Aggarwal


Change by Yash Aggarwal :


--
pull_requests: +10812

___
Python tracker 

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



[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-01-02 Thread Eric V. Smith


Eric V. Smith  added the comment:

I haven't looked at this closely yet, but you'll need to at least:
- add tests that the locale-aware formatting is happening
- support decimal
- make sure it works with complex (which it probably does, but needs a test)

And, I think we'll need to run this through python-ideas first. One thing I 
expect to come up there: why f and not g?

Again, I haven't looked through the code yet, or really even given any thought 
to determining if this is a sound idea.

--
title: Introduce fixed point locale awear format type for floating point 
numbers -> Introduce fixed point locale aware format type for floating point 
numbers

___
Python tracker 

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



[issue35434] Wrong bpo linked in What's New in 3.8

2019-01-02 Thread Yash Aggarwal


Change by Yash Aggarwal :


--
pull_requests: +10809, 10810, 10811

___
Python tracker 

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



[issue35434] Wrong bpo linked in What's New in 3.8

2019-01-02 Thread Yash Aggarwal


Change by Yash Aggarwal :


--
pull_requests: +10809, 10810

___
Python tracker 

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



[issue35434] Wrong bpo linked in What's New in 3.8

2019-01-02 Thread Yash Aggarwal


Change by Yash Aggarwal :


--
pull_requests: +10809

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10804, 10805, 10806, 10808

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10804, 10805, 10806, 10807, 10808

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10803, 10804

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10803, 10804, 10805, 10806

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:


New changeset d466c43e55cd32af84e353f0e9a48b09b7534f61 by Benjamin Peterson 
(Mickaël Schoentgen) in branch 'master':
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in 
Modules/_sha3/cleanup.py (GH-11411)
https://github.com/python/cpython/commit/d466c43e55cd32af84e353f0e9a48b09b7534f61


--
nosy: +benjamin.peterson
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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10803

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10803, 10804, 10805

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen

Change by Mickaël Schoentgen :


--
keywords: +patch, patch
pull_requests: +10801, 10802
stage:  -> patch review

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen

Change by Mickaël Schoentgen :


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

___
Python tracker 

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



[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen

New submission from Mickaël Schoentgen :

This warning is emitted on Modules/_sha3/cleanup.py, line 11:

SyntaxWarning: invalid escape sequence \
  CPP2 = re.compile("\ //(.*)")

--
components: Extension Modules
messages: 332888
nosy: Tiger-222
priority: normal
severity: normal
status: open
title: SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py
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



[issue35642] _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj

2019-01-02 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch, patch, patch
pull_requests: +10797, 10798, 10800
stage:  -> patch review

___
Python tracker 

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



[issue35642] _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj

2019-01-02 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue35642] _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj

2019-01-02 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch, patch
pull_requests: +10797, 10798
stage:  -> patch review

___
Python tracker 

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



[issue35642] _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj

2019-01-02 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch, patch, patch, patch
pull_requests: +10797, 10798, 10799, 10800
stage:  -> patch review

___
Python tracker 

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



[issue35642] _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj

2019-01-02 Thread Gregory Szorc


New submission from Gregory Szorc :

The _asynciomodule.c source file is compiled as part of both pythoncore.vcxproj 
(providing pythonXY.dll) and _asyncio.vcxproj (providing _asyncio.pyd).

PC\config.c doesn't reference PyInit__asyncio. I'm inclined to believe that 
_asynciomodule.c being built as part of pythoncore.vcxproj is a mistake.

If all goes according to plan, I will contribute my first CPython patch with a 
fix shortly...

--
components: Build
messages: 332887
nosy: Gregory.Szorc
priority: normal
severity: normal
status: open
title: _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj
type: enhancement
versions: 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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

Hi Tal Einat!

I would like to take this issue to be my first contribution :-)

Thanks!

--
nosy: +eamanu

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Tal Einat


Tal Einat  added the comment:

I'm marking this as easy.

Whoever works on this should make sure to add a new test case for this bug.

--
assignee: taleinat -> 
keywords: +easy

___
Python tracker 

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



[issue35638] Introduce fixed point locale awear format type for floating point numbers

2019-01-02 Thread Mark Dickinson


Change by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue35609] Improve of abc.py docstring

2019-01-02 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

Hi Serhiy, 

A little question. Is there a planned version to remove the deprecated?

--

___
Python tracker 

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



[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-02 Thread Tal Einat


Tal Einat  added the comment:

Hi Dan,

Your report is unrelated to this Squeezer-related issue, but thanks for 
reporting it! I've created a new issue for what you've reported, see #35641.

--

___
Python tracker 

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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Tal Einat


Change by Tal Einat :


--
assignee:  -> taleinat
components: +IDLE
nosy: +terry.reedy
stage:  -> needs patch
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



[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-02 Thread Tal Einat


New submission from Tal Einat :

IDLE usually wraps call-tips to 85 characters.  However, for functions without 
a doc-string, this formatting is skipped.  This is an issue for functions with 
long signatures, e.g. due to having many arguments or due to having default 
values with long repr-s.

This appears to be caused by line 170 in Lib/idlelib/calltip.py being indented 
once too much. (see: 
https://github.com/python/cpython/blob/87e59ac11ee074b0dc1bc864c74fac0660b27f6e/Lib/idlelib/calltip.py)

Thanks to Dan Snider for the original report in msg332881 on issue #35196.


Example:

>>> def foo(s='a'*100):
pass

>>> print(get_argspec(foo))
(s='')

>>> def bar(s='a'*100):
"""doc-string"""
pass

>>> print(get_argspec(bar))
(s='a
aaa')
doc-string

--
messages: 332882
nosy: bup, taleinat
priority: normal
severity: normal
status: open
title: IDLE: calltips not properly formatted for functions without doc-strings

___
Python tracker 

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



[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-02 Thread Dan Snider


Dan Snider  added the comment:

Not 100% sure if it's appropriate to post this here... so sorry if not. 

So anyway, the _MAX_COLS and _MAX_LINE constants used for `get_argspec` seem 
like they were intended to limit the generated text tips to at most 5 rows, 85 
characters wide, which makes sense, but isn't what happens at all.

Easy to just post an example of how the call signature isn't limited in any 
meaningful way, which can easily lead to a call tip millions of character long 
that obviously cannot be rendered and can maybe cause crashes:

# freshly started repl session
>>> if 1:
from idlelib.calltips import get_argspec
G = globals()
@get_argspec
def func(x, d=G): pass
print('len of func signature:', len(func))
print(f'len(repr(globals())): {len(repr(G)):_} ({len(G)} globals)')

len of func signature: 564
len(repr(globals())): 899 (10 globals)
>>> from numpy import *
>>> if 1:
from idlelib.calltips import get_argspec
G = globals()
@get_argspec
def func(x, d=G): pass
print('len of func signature:', len(func))
print(f'len(repr(globals())): {len(repr(G)):_} ({len(G)} globals)')
...
len of func signature: 45524
len(repr(globals())): 92_488 (604 globals)

--
nosy: +bup

___
Python tracker 

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



[issue35638] Introduce fixed point locale awear format type for floating point numbers

2019-01-02 Thread steelman


steelman  added the comment:

I have created a new format "m" that is for "n", what "f" is for "g". The patch 
for string.rst says

   +-+--+
   | ``'m'`` | Number. This is the same as ``'f'``, except that it uses |
   | | the current locale setting to insert the appropriate |
   | | number separator characters. |
   +-+--+

My patch only applies to floats not integers.

--

___
Python tracker 

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



[issue35638] Introduce fixed point locale awear format type for floating point numbers

2019-01-02 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch, patch, patch, patch
pull_requests: +10793, 10794, 10795, 10796
stage:  -> patch review

___
Python tracker 

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



[issue35638] Introduce fixed point locale awear format type for floating point numbers

2019-01-02 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch, patch, patch
pull_requests: +10793, 10794, 10796
stage:  -> patch review

___
Python tracker 

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



[issue35638] Introduce fixed point locale awear format type for floating point numbers

2019-01-02 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch, patch
pull_requests: +10793, 10794
stage:  -> patch review

___
Python tracker 

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



[issue35638] Introduce fixed point locale awear format type for floating point numbers

2019-01-02 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue35640] Allow passing PathLike arguments to SimpleHTTPRequestHandler

2019-01-02 Thread Géry

Change by Géry :


--
nosy: +maggyero, mdk, xtreak
versions: +Python 3.7

___
Python tracker 

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



[issue35638] Introduce fixed point locale awear format type for floating point numbers

2019-01-02 Thread Eric V. Smith


Eric V. Smith  added the comment:

Of course, feel free to create a PR. But the correct place to discuss any new 
behavior is on the issue tracker, or maybe on python-ideas, not in a PR.

--

___
Python tracker 

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



  1   2   >