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():
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():
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():
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():
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():
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
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
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
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
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
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
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
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
ANEESH JOSE added the comment:
Thankyou for the information .
--
___
Python tracker
<https://bugs.python.org/issue31576>
___
___
Python-bugs-list mailin
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
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
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
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
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
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
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:
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
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
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
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
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])
--
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'
...
>>&
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
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
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
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
31 matches
Mail list logo