[issue45770] SyntaxError: 'await' outside function" in "asyncio-task.html#waiting-primitives" code snippets

2021-11-09 Thread Jose Ville
New submission from Jose Ville : https://docs.python.org/3/library/asyncio-task.html#asyncio.wait has the following two code snippets both of which fail with ""SyntaxError: 'await' outside function" when I run them in Python 3.9.7 Snippet 1: ``` async def foo():

[issue45769] SyntaxError: 'await' outside function" in "asyncio-task.html#waiting-primitives" code snippets

2021-11-09 Thread Jose Ville
New submission from Jose Ville : https://docs.python.org/3/library/asyncio-task.html#asyncio.wait has the following two code snippets both of which fail with ""SyntaxError: 'await' outside function" when I run them in Python 3.9.7 Snippet 1: ``` async def foo():

[issue45768] SyntaxError: 'await' outside function" in "asyncio-task.html#waiting-primitives" code snippets

2021-11-09 Thread Jose Ville
New submission from Jose Ville : https://docs.python.org/3/library/asyncio-task.html#asyncio.wait has the following two code snippets both of which fail with ""SyntaxError: 'await' outside function" when I run them in Python 3.9.7 Snippet 1: ``` async def foo():

[issue45751] "SyntaxError: 'await' outside function" in "asyncio-task.html#waiting-primitives" code snippets

2021-11-08 Thread Jose Ville
New submission from Jose Ville : https://docs.python.org/3/library/asyncio-task.html#asyncio.wait has the following two code snippets both of which fail with ""SyntaxError: 'await' outside function" when I run them in Python 3.9.7 Snippet 1: ``` async def foo():

[issue45750] "SyntaxError: 'await' outside function" in "asyncio-task.html#waiting-primitives" code snippets

2021-11-08 Thread Jose Ville
New submission from Jose Ville : https://docs.python.org/3/library/asyncio-task.html#asyncio.wait has the following two code snippets both of which fail with ""SyntaxError: 'await' outside function" when I run them in Python 3.9.7 Snippet 1: ``` async def foo():

[issue42922] Enlace a descripción de función 'dir' faltante

2021-01-13 Thread Jose MONTES PEREZ
New submission from Jose MONTES PEREZ : En la tabla de enlaces a funciones de la página: https://docs.python.org/es/3/library/functions.html no existe un link a la función 'dir' tal como: https://docs.python.org/es/3/library/functions.html#dir en su lugar está duplicado el enlace a

[issue41469] Problem with serial communication

2020-08-03 Thread Jose Gabriel
New submission from Jose Gabriel : I was doing a small serial communication system using pyserial. when I done the script on a .py file, it not worked. but when I opened the python console and writed line by line the same code of the .py file, it worked. the .py file: import serial ser

[issue38661] Changes to tkinter result in (unexpected) widget map call return changes wrt. 3.7

2019-11-01 Thread Jose Salvatierra
New submission from Jose Salvatierra : Hello! I've encountered what might be a bug. Up till now we had some working code that did this: ``` maps = self.style.map('TCombobox') if maps: self.style.map('DateEntry', **maps) ``` Modifying a custom style to mimic the

[issue34777] urllib.request accepts anything as a header parameter for some URLs

2018-09-28 Thread Jose Gama
Jose Gama added the comment: Yes, I agree, it's not a bug.This note might help other people who run into the same questions, particularly with error handling.Thank you! On Friday, September 28, 2018, 7:21:03 AM GMT+2, Karthikeyan Singaravelan wrote: Karthikeyan Singaravelan

[issue34777] urllib.request accepts anything as a header parameter for some URLs

2018-09-27 Thread Jose Gama
Jose Gama added the comment: Thank you for the quick reply. You are correct about the difficulties of using a universally accepted list.This is one example that generates errors on the server side. Just for the record. #!/usr/bin/env python3 from urllib.request import Request, urlopenfrom

[issue34777] urllib.request accepts anything as a header parameter for some URLs

2018-09-23 Thread Jose Gama
New submission from Jose Gama : It is possible to use urllib.request defining a header that can be junk in some cases and still get the contents without any warning or error. The behavior depends on the URL and also on the header. -- components: IO files: header-illegal.py messages

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-20 Thread Jose Angel Acosta
Jose Angel Acosta added the comment: I'm so sorry to see my proposal just derived in personal attacks. The problem here is the core who "owns" python, admited a change to the Language documentation on whats should be considered a political or cultural bias w/o consid

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-15 Thread Jose Angel Acosta
New submission from Jose Angel Acosta : A request have been srecentrly uddenly committed to avoid Slave/Master wording in python code, I think the "issue"was not enough peer-reviewed, me having slave roots from my african and jewish heritage I dont consider this matter an Issu

[issue31576] problem in math

2017-09-25 Thread ANEESH JOSE
ANEESH JOSE added the comment: Thankyou for the information . -- ___ Python tracker <https://bugs.python.org/issue31576> ___ ___ Python-bugs-list mailin

[issue31576] problem in math

2017-09-25 Thread ANEESH JOSE
New submission from ANEESH JOSE: We know that the answer of sin 90 is 1. But In Python's library math,the value of it is around 0.83... My program is as follows: import math a=math.sin(90) print(a) #Output obtained is 0.83. Hope you guys solve this on the next update or nearby I hope it

[issue31401] Dynamic compilation that uses function in comprehension fails when compiled inside function

2017-09-09 Thread Jose Cambronero
Jose Cambronero added the comment: Woops, sorry about that, makes sense. Below an example (same idea as the files): ``` Python 3.6.2 (default, Sep 9 2017, 13:27:06) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin Type "help", "copyright", "credi

[issue31401] Dynamic compilation that uses function in comprehension fails when compiled inside function

2017-09-08 Thread Jose Cambronero
New submission from Jose Cambronero: Execution fails with NameError when trying to dynamically compile a Python program that uses a function in a comprehension, and the code is compiled inside a function call, rather than as a global statement. Using the attached files to reproduce (in

[issue29108] Python 3.6.0 multiprocessing map_async callback

2016-12-29 Thread Jose Miguel Colella
Jose Miguel Colella added the comment: Hello David, Thanks for your response. Improvements to the documentation could clear this misunderstanding. I had initially believed that after transforming with the function passed to the map, it would use the callback on each of the result arguments

[issue29108] Python 3.6.0 multiprocessing map_async callback

2016-12-29 Thread Jose Miguel Colella
Jose Miguel Colella added the comment: The result is: Here: [1, 4, 9] [1, 4, 9] -- ___ Python tracker <http://bugs.python.org/issue29108> ___ ___ Python-bug

[issue29108] Python 3.6.0 multiprocessing map_async callback

2016-12-29 Thread Jose Miguel Colella
New submission from Jose Miguel Colella: Hello I am trying to use the callback for the map_async method for Pool, but have found a bug. In the below code, only the print statement is carried out, the return is completely ignored. Is this working as designed or is this a bug? from

[issue26596] numpy.all np.all .all

2016-03-20 Thread Jose
New submission from Jose: the numpy.all function does not work. I created A = np.random.random((10,1)) np.all(A)<1 gives me False, which is wrong! and B = 2 * A np.all(B)<2 gives me True, which is correct! also np.sum(A) < 10, gives me True, which is correct! -- components:

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-10-26 Thread Jose M. Alcaide
Jose M. Alcaide added the comment: My previous comment was incorrect, sorry. I thought that this issue was fixed in time for the release of Python 3.5, but it wasn't (fix was committed on Sep 26, two weeks after 3.5's release). My

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-10-23 Thread Jose M. Alcaide
Jose M. Alcaide added the comment: This issue continues unfixed. After uninstalling ActiveTcl 8.5.18 and then installing ActiveTcl 8.5.17, IDLE completion and call tips work again. Tested with Python 3.5 and 3.4.1. -- nosy: +jmas ___ Python

[issue17458] Automatic type conversion from set to frozenset

2013-03-18 Thread Jose Antonio Martin H
New submission from Jose Antonio Martin H: Is it possible to consider the automatic type conversion from set to frozenset whenever a set is declared inside a set, as the key of a Counter and as the key of a Dict? Tha is, the case when a set is used but a hashable object is requested. Having

[issue16359] can't print figures 08 and 09

2012-10-29 Thread jose gregorio fernandez trincado
New submission from jose gregorio fernandez trincado: In [2]: 09 File "", line 1 09 ^ SyntaxError: invalid token Using str() produce SyntaxError too. The same for 08. Figures like 01 and 02 produce the appropriate output. Hardware: Lenovo 3000 N200, 80Gb of HD, 4Gb of RAM

[issue10863] zlib.compress() fails with string

2011-01-08 Thread Jose-Luis Fernandez-Barros
Jose-Luis Fernandez-Barros added the comment: Thanks for your answer. Error remains at development "The Python Standard Library", secction 12. Data Compression and Archiving http://docs.python.org/dev/py3k/library/zlib.html#module-zlib zlib.compress(string[, level]) --

[issue10863] zlib.compress() fails with string

2011-01-07 Thread Jose-Luis Fernandez-Barros
New submission from Jose-Luis Fernandez-Barros : On "The Python Tutorial", section 10.9. Data Compression http://docs.python.org/py3k/tutorial/stdlib.html#data-compression >>> import zlib >>> s = 'witch which has which witches wrist watch' ... >>&

[issue7073] Python 2.6.3 final windows installer installs a release candidate

2009-10-06 Thread Jose Antonio Martin H
New submission from Jose Antonio Martin H : Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)] on win32 That is the python that is installed with the python 2.6.3 installer. -- components: Installation messages: 93667 nosy: jamartinh severity: normal status

[issue6476] MSVCRT's spawnve/spawnvpe are not thread safe

2009-07-13 Thread Jose Fonseca
Jose Fonseca added the comment: Perhaps. I'm not a scons developer -- just an user -- and I don't know what versions of python far back in time they want support, but it appears it would make sense to use subprocess where available indeed. I already I've filled an issue wit

[issue6476] MSVCRT's spawnve/spawnvpe are not thread safe

2009-07-13 Thread Jose Fonseca
New submission from Jose Fonseca : MSVCRT's implementation of _spawnve, _spawnvpe, or any version that takes an environ as paramater is not thread-safe, because it stores a temporary environment string into a global variable. _spawnve, _spawnvpe, and friends call a function named _cenvarg

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-07-17 Thread Jose Antonio Martin H
Jose Antonio Martin H <[EMAIL PROTECTED]> added the comment: I have the same problem, i have patched the file and now it works ok. -- nosy: +jamartinh ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho