[issue36701] module 'urllib' has no attribute 'request'

2019-04-22 Thread Piyush
New submission from Piyush : The current way to use one of `urllib.request` APIs is like this: ``` import urllib.request urllib.request.urlretrieve ``` Can we change this to: ``` import urllib urllib.request.urlretrieve ``` This will require adding 1 line at https://github.com/python/cpython

[issue43342] Error while using Python C API

2021-02-27 Thread Piyush Patel
New submission from Piyush Patel : Hi, I am facing a very strange issue. I am working on a C++ application which embeds a python. As per documentation i have the dependencies added from python (/libs and /include directories) to C++ application. I am using Py_RunString() to run simple python

[issue43342] Error while using Python C API

2021-02-27 Thread Piyush Patel
Piyush Patel added the comment: So upon further investigation, it seems all the built-in functions are not working. def func(): max(10,20) this code errors out saying "name 'max' is not defined" so when python installation is in custom location or parent folder na

[issue43342] Error while using Python C API

2021-03-01 Thread Piyush Patel
Piyush Patel added the comment: Hi Thanks for your time. Just wanted to add that earlier I used PyImport_AddModule(""__main__"). but now I used PyImport_ImportModule(""__main__") resolved the issue for me regardless of installation path it worked. Thanks

[issue41656] Sets are storing elements in sorted order.

2020-08-28 Thread Piyush Pravin
New submission from Piyush Pravin : In documentation it is written that " Sets are unordered collection", but actually it is storing the elements in sorted order. -- assignee: docs@python components: Documentation files: dndndgndghbdgngdndgngtn.PNG messages: 376037 nosy: d

[issue34013] Inconsistent SyntaxError for print

2018-07-01 Thread Piyush Hajare
Piyush Hajare <4piyushhaj...@gmail.com> added the comment: I'm interested to solve this issue -- nosy: +piyushhajare ___ Python tracker <https://bugs.python.