[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset 00bf4d64ecb01027be40c32d822e47e55d6b5c76 by Miss Islington (bot) 
in branch '2.7':
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
https://github.com/python/cpython/commit/00bf4d64ecb01027be40c32d822e47e55d6b5c76


--

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14451
pull_request: https://github.com/python/cpython/pull/14637

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset 3f7d0c9665ca546bb0073376cb83e31dd13b48d9 by Miss Islington (bot) 
in branch '3.8':
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
https://github.com/python/cpython/commit/3f7d0c9665ca546bb0073376cb83e31dd13b48d9


--

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset bc0a6ced30267d4e21e7566bfd6d14b30d6d1604 by Miss Islington (bot) 
in branch '3.7':
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
https://github.com/python/cpython/commit/bc0a6ced30267d4e21e7566bfd6d14b30d6d1604


--
nosy: +miss-islington

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread Xiang Zhang


Xiang Zhang  added the comment:


New changeset f6cdd3ff687ebbf8209d793a18a042ea495c4aeb by Xiang Zhang (Hai Shi) 
in branch 'master':
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
https://github.com/python/cpython/commit/f6cdd3ff687ebbf8209d793a18a042ea495c4aeb


--

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14450
pull_request: https://github.com/python/cpython/pull/14636

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14449
pull_request: https://github.com/python/cpython/pull/14635

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread Xiang Zhang


Xiang Zhang  added the comment:

Should be TypeError. It's changed from ValueError to TypeError in 
https://bugs.python.org/issue1831.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-05 Thread hai shi


hai shi  added the comment:

or the value error replace type error in struct_init().

--

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-05 Thread hai shi


Change by hai shi :


--
keywords: +patch
pull_requests: +14429
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14615

___
Python tracker 

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



[issue37513] Fix a type error in ctypes.rst

2019-07-05 Thread hai shi


New submission from hai shi :

Python 3.9.0a0 (heads/master-dirty:80097e0, Jul  6 2019, 02:14:54)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> class POINT(Structure):
... _fields_ = [("x", c_int),
... ("y", c_int)]
...
>>> POINT(1, 2, 3)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: too many initializers

and the init function in:
https://github.com/python/cpython/blob/master/Modules/_ctypes/_ctypes.c#L4335

--
assignee: docs@python
components: Documentation
messages: 347419
nosy: docs@python, shihai1991
priority: normal
severity: normal
status: open
title: Fix a type error in ctypes.rst

___
Python tracker 

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