[issue26731] subprocess on windows leaks stdout/stderr handle to child process when stdout/stderr overridden

2016-04-10 Thread Sai

Sai added the comment:

You can workaround this problem by adding a middleman process that sets 
close_fds=True:

### childworkaround.py #
import os
import subprocess

with open(os.devnull, 'w') as devnull:
script = "import subprocess; import sys; subprocess.Popen(sys.argv[1:], 
close_fds=True)"
proc = subprocess.Popen(['python', '-c', script, 'python', 'resident.py'], 
stdout=devnull, stderr=devnull, stdin=devnull)

--

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



[issue34420] Complete your registration to Python tracker -- keysnSwaZe6PtikiEZf4bdIXIiuwFyFZFxp

2018-08-17 Thread sai arjun


New submission from sai arjun :

I have received the email.

Sent from Mail for Windows 10

From: Python tracker
Sent: 16 August 2018 17:08
To: venkkar...@yahoo.com
Subject: Complete your registration to Python tracker -- 
keysnSwaZe6PtikiEZf4bdIXIiuwFyFZFxp

To complete your registration of the user "arjun" with
Python tracker, please do one of the following:

- send a reply to rep...@bugs.python.org and maintain the subject line as is 
(the
reply's additional "Re:" is ok),

- or visit the following URL:

https://bugs.python.org/?@action=confrego&otk=snSwaZe6PtikiEZf4bdIXIiuwFyFZFxp

--
messages: 323657
nosy: arjun
priority: normal
severity: normal
status: open
title: Complete your registration to Python tracker -- 
keysnSwaZe6PtikiEZf4bdIXIiuwFyFZFxp

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



[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-09-25 Thread Sai Krishna

Changes by Sai Krishna :


--
nosy: +saikrishna17394

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



[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error

2022-04-04 Thread Kaushal Sai v


Change by Kaushal Sai v :


--
nosy: vkaushalsai
priority: normal
severity: normal
status: open
title: if we write a line of code like i wrote keys = pygame.key.get_pressed() 
is showing error
versions: Python 3.11

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



[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error

2022-04-05 Thread Kaushal Sai v


Change by Kaushal Sai v :


--
status: open -> pending

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



[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error

2022-04-05 Thread Kaushal Sai v


Change by Kaushal Sai v :


--
assignee:  -> terry.reedy
components: +IDLE
nosy: +terry.reedy
status: pending -> open
versions: +Python 3.10 -Python 3.11

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



[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v


Change by Kaushal Sai v :


--
title: if we write a line of code like i wrote keys = pygame.key.get_pressed() 
is showing error -> if we write a line of code like i wrote keys = 
pygame.key.get_pressed() is showing error called unexpected indent

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



[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v


Kaushal Sai v  added the comment:

the error mesessage is tha unexpected incident

--
components: +Windows -IDLE
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

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



[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v


Change by Kaushal Sai v :


--
status: open -> pending

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



[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v


Change by Kaushal Sai v :


--
status: pending -> open
Added file: https://bugs.python.org/file50719/python problem.PNG

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



[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v


Change by Kaushal Sai v :


--
components: +IDLE

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



[issue42438] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-11-22 Thread Vuyyuru Sai Nithish


Change by Vuyyuru Sai Nithish :


--
nosy: nithish
priority: normal
severity: normal
status: open
title: Fatal Python error: init_fs_encoding: failed to get the Python codec of 
the filesystem encoding
type: crash
versions: Python 3.9

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



[issue42438] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-11-22 Thread Vuyyuru Sai Nithish


New submission from Vuyyuru Sai Nithish :

Im using django on an virtual env, when im trying to use pandas it was giving 
me and error message(IDE: VScode) i.e, module error: pandas was not found. I 
reinstalled python from 3.8.2 to 3.9 and now in my virtual environment it was 
giving an error that Django is not installed, and when I checked django in 
virtual env this is displayed

(test) C:\Users\saini\Envs>django-admin --version
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = 'c:\users\saini\envs\test\scripts\python.exe'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'c:\\users\\saini\\envs\\test\\scripts\\python.exe'
  sys.base_prefix = ''
  sys.base_exec_prefix = ''
  sys.executable = 'c:\\users\\saini\\envs\\test\\scripts\\python.exe'
  sys.prefix = ''
  sys.exec_prefix = ''
  sys.path = [
'c:\\users\\saini\\envs\\test\\scripts\\python38.zip',
'.\\DLLs',
'.\\lib',
'c:\\users\\saini\\appdata\\local\\programs\\python\\python38',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the 
filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x0790 (most recent call first):


--

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



[issue32074] Might be a wrong implementation

2017-11-19 Thread Sai Bhargava Ramu

New submission from Sai Bhargava Ramu :

https://docs.python.org/2/library/itertools.html#itertools.combinations

#The behaviour of combinations function in documentation is different and I 
think identation is missing with `else`
#I didn't get the logic right is point out anything further. This might not be 
a real issue

--
assignee: docs@python
components: Documentation
files: combinations.py
messages: 306499
nosy: Sai Bhargava Ramu, docs@python
priority: normal
severity: normal
status: open
title: Might be a wrong implementation
type: behavior
versions: Python 3.5
Added file: https://bugs.python.org/file47273/combinations.py

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



[issue22124] Rotating items of list to left

2014-08-02 Thread Sai Krishna G

New submission from Sai Krishna G:

Hi, I am trying to rotate list of 3 to left
for this I am trying to define this function
def rotate_left3(nums)

#argument nums is list
for example
rotate_left3([1, 2, 3])
I am expecting value [2,3,1] in return. I have written the following code
a = nums
a[0]=nums[1]
a[1]=nums[2]
a[2]=nums[0]
return a #this is returning [2,3,2] instead of [2,3,1]
however if I assign
a = [0,0,0] #or any other value other than directly assigning nums
the code works perfectly

--
components: Windows
files: rotate_left3.py
messages: 224586
nosy: Sai.Krishna.G
priority: normal
severity: normal
status: open
title: Rotating items of list to left
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file36215/rotate_left3.py

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



[issue43710] Access violations in C extension modules on Python 3.9.3

2021-05-03 Thread PAKKURTHI MOHAN SAI KRISHNA


Change by PAKKURTHI MOHAN SAI KRISHNA :


--
assignee:  -> terry.reedy
components: +IDLE -Extension Modules, Windows
nosy: +terry.reedy

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



[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread PAKKURTHI MOHAN SAI KRISHNA


Change by PAKKURTHI MOHAN SAI KRISHNA :


--
components: +macOS
nosy: +ned.deily, ronaldoussoren
status: pending -> open

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



[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread PAKKURTHI MOHAN SAI KRISHNA


Change by PAKKURTHI MOHAN SAI KRISHNA :


--
components: +Installation -macOS
nosy:  -ned.deily, ronaldoussoren

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



[issue44020] test_ssl fails in the macos CI

2021-05-03 Thread PAKKURTHI MOHAN SAI KRISHNA


Change by PAKKURTHI MOHAN SAI KRISHNA :


--
components: macOS
nosy: christian.heimes, mohansai, ned.deily, pablogsal, ronaldoussoren
priority: normal
severity: normal
status: open
title: test_ssl fails in the macos CI
type: behavior
versions: Python 3.10

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



[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul


New submission from Tangellapalli Sai Hanuma Rahul :

Feature Request:

Where we can use custom Names for separate threads submitted in 
ThreadPoolExecutor. 

It achieves by sending the name string to _work_queue of ThreadPoolExecutor and 
then in _worker function modifies the name of the current thread (through name 
property).

--
components: Library (Lib)
files: test.py
hgrepos: 409
messages: 405496
nosy: RahulARanger
priority: normal
severity: normal
status: open
title: Custom Name for ThreadPoolExecutor
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9
Added file: https://bugs.python.org/file50419/test.py

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



[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul


Change by Tangellapalli Sai Hanuma Rahul :


--
hgrepos: +410
keywords: +patch
pull_requests: +27619
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29359

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



[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul


Change by Tangellapalli Sai Hanuma Rahul :


--
hgrepos:  -410

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



[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul


Change by Tangellapalli Sai Hanuma Rahul :


--
versions:  -Python 3.10, Python 3.11

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



[issue45689] Custom Name for ThreadPoolExecutor

2021-11-07 Thread Tangellapalli Sai Hanuma Rahul


Tangellapalli Sai Hanuma Rahul  added the comment:

ThreadPool handles tasks concurrently through Threads so users need not worry 
about the creation/deletion of Threads, it uses reuses threads whenever 
possible and it can handle any tasks. 

However, it should be possible for users to at least name/rename according to 
the tasks that the user submits into the ThreadPool.

Advantages:
* Good for Debugging (so user can know which thread has caused the issue)
* threadName attribute in logging's LogRecord can now use custom Name provided 
to the Task.

Until now thread_name_prefix parameter allows us to name the threads but those 
are not particular to the Task.

Price

previously one could write .submit(function_name, *args, **kwargs)
but now one should write 
.submit(function_name, name_of_thread, *args, **kwargs)
name_of_thread can be None

--

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



[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-08 Thread Tangellapalli Sai Hanuma Rahul


Tangellapalli Sai Hanuma Rahul  added the comment:

There is a new function submit_with_name in _base.Executor that can accept name 
parameters before args and kwargs, submit can continue to be used as before.

submit internally calls submit_with_name with name as None. Calling 
submit_with_name in Executor causes a NotImplementedError, it was only 
implemented in ThreadPoolExecutor, but it could be implemented in any Executor

--

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



[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Tangellapalli Sai Hanuma Rahul


Tangellapalli Sai Hanuma Rahul  added the comment:

In summary;
==

Current Problem:
--
 
ThreadPoolExecutor handles all threads-related activities so the user needs to 
just submit tasks and set max_workers and other Executor settings if necessary. 
If ThreadPoolExecutor allowed us to name/rename threads, that would be great.

Of Course, there's a workaround that requires the user to change the name of 
the current Thread inside the Task, but that requires the user to access the 
current thread which I believe is not the goal of Thread Pool Executor.

Request;
--

Changes Made:
~~~
In this Pull request, _work_queue puts tuple of Future Object and name (name 
can be None).  i.e, typing.Tuple[_base.Future, typing. Optional[str]] which was 
just a _base.Future before.

So, inside the _worker function,
When it gets the elements and If its name is None, it will either use the 
thread_name_prefix or custom Name of task that was used before. else it sets 
the name of the current Thread with the given name.

Problems it solves
~

Currently, ThreadExecutor uses thread_name_prefix + index number for the 
Internal Thread which is not enough for debugging when we try to submit 
different types of Tasks (types here mean general callable). 

So, using this Optional Feature which allows users to submit tasks with names 
it allows them to easily find issues using the name of Thread either in Logger 
or in the debugger.

--

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



[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Tangellapalli Sai Hanuma Rahul


Tangellapalli Sai Hanuma Rahul  added the comment:

Yes, it's true, it's so naive method, Contextvars! may be inside the Future 
Object?

--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

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