[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2021-09-01 Thread Artem
Artem added the comment: See this issue on 3.9.6 No SSL, but plain sockets. This seems to appear when writer.write/writer.drain was cancelled, and writer.close/writer.wait_closed called after this. -- nosy: +aeros, seer versions: +Python 3.9

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2021-08-12 Thread Artem
Artem added the comment: Python 3.9.6 Linux same issue. -- nosy: +seer versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue38856> ___ ___

[issue44697] Memory leak when asyncio.open_connection raise

2021-07-26 Thread Artem
Artem added the comment: Checked on 3.9.6 - still leaking. Strange stuff, but if I write except OSError as e: del self instead of except OSError as e: pass leak is disappearing. -- versions: +Python 3.9 -Python 3.6 ___ Python tracker

[issue44697] Memory leak when asyncio.open_connection raise

2021-07-22 Thread Artem
Change by Artem : -- nosy: +bquinlan ___ Python tracker <https://bugs.python.org/issue44697> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue44697] Memory leak when asyncio.open_connection raise

2021-07-21 Thread Artem
New submission from Artem : I write some short example. import resource import asyncio class B: def __init__(self, loop): self.loop = loop self.some_big_data = bytearray(1024 * 1024) # 1Mb for memory bloating async def doStuff(self): if not await

[issue41316] tarfile: Do not write full path in FNAME field

2020-07-17 Thread Artem Bulgakov
Artem Bulgakov added the comment: Hi. My PR doesn't remove the possibility to add tree into tar file. It only fixes header for GZIP compression. Any data after this header is not affected. You can test it by creating two archives with the same data but one with my patch and the s

[issue41316] tarfile: Do not write full path in FNAME field

2020-07-16 Thread Artem Bulgakov
Change by Artem Bulgakov : -- keywords: +patch pull_requests: +20646 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21511 ___ Python tracker <https://bugs.python.org/issu

[issue41316] tarfile: Do not write full path in FNAME field

2020-07-16 Thread Artem Bulgakov
New submission from Artem Bulgakov : tarfile sets FNAME field to the path given by user: Lib/tarfile.py:424 It writes full path instead of just basename if user specified absolute path. Some archive viewer apps like 7-Zip may process file incorrectly. Also it creates security issue because

[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Artem Tepanov
Artem Tepanov added the comment: Thx, after upgrade to: Python 3.8.1rc1 (tags/v3.8.1rc1:b00a2b5, Dec 10 2019, 01:13:53) [MSC v.1916 64 bit (AMD64)] on win32 All works fine, ...but Could you "pushing the person" which responsible for Web-Site please?, because I got Interpreter

[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Artem Tepanov
Artem Tepanov added the comment: Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> while False: ... if False: ...

[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Artem Tepanov
Artem Tepanov added the comment: Using cmd: C:\Users\ATepanov>python -V Python 3.8.0 C:\Users\ATepanov>python C:\Users\ATepanov\Desktop\Outside_The_Loop.py File "C:\Users\ATepanov\Desktop\Outside_The_Loop.py", line 3 break ^ SyntaxError: 'break' outside loo

[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Artem Tepanov
New submission from Artem Tepanov : Why I can't execute this code: while False: if False: break print('WTF?') When I use repl.it or PyCharm on my work (Python 3.7) all works fine, yes I know this code looks silly, but it is a legal expression. About CPython

[issue37811] [FreeBSD, OSX] Socket module: incorrect usage of poll(2)

2019-08-13 Thread Artem Khramov
Change by Artem Khramov : -- components: +FreeBSD, IO, Library (Lib), macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker <https://bugs.python.org/issue37

[issue37811] [FreeBSD, OSX] Socket module: incorrect usage of poll(2)

2019-08-10 Thread Artem Khramov
Change by Artem Khramov : -- keywords: +patch pull_requests: +14931 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15202 ___ Python tracker <https://bugs.python.org/issu

[issue37811] [FreeBSD, OSX] Socket module: incorrect usage of poll(2)

2019-08-10 Thread Artem Khramov
New submission from Artem Khramov : FreeBSD implementation of poll(2) restricts timeout argument to be either zero, or positive, or equal to INFTIM (-1). Unless otherwise overridden, socket timeout defaults to -1. This value is then converted to milliseconds (-1000) and used as argument to

[issue34386] Expose a dictionary of interned strings in sys module

2018-08-12 Thread Artem Golubin
Artem Golubin added the comment: Thank you, I agree. I can't come up with practical use cases other than my curiosity. Is it possible to somehow expose the dictionary in the debug build of Python? Currently, there is no way to access it from the interpreter even with c

[issue34386] Expose a dictionary of interned strings in sys module

2018-08-12 Thread Artem Golubin
New submission from Artem Golubin : Python provides an ability to intern strings (sys.intern). It would be useful to expose a read-only dictionary of interned strings to the Python users so we can see what kind of strings are interned. It takes minimal changes since internally it's j

[issue33661] urllib may leak sensitive HTTP headers to a third-party web site

2018-06-18 Thread Artem Smotrakov
Artem Smotrakov added the comment: If I am not missing something, section 6.4 of RFC 7231 doesn't explicitly discuss that all headers should be sent. I wish it did :) I think that an Authorization header for host A may make sense for host B if both A and B use the same database with

[issue33661] urllib may leak sensitive HTTP headers to a third-party web site

2018-05-27 Thread Artem Smotrakov
Artem Smotrakov added the comment: Hi Ivan, Yes, unfortunately specs don't say anything about this scenario. > once you have given your credentials to a server, it is free to do whatever > it wants with them. I hope servers don't share this opinion :) > So, your prop

[issue33661] urllib may leak sensitive HTTP headers to a third-party web site

2018-05-27 Thread Artem Smotrakov
New submission from Artem Smotrakov : After discussing it on secur...@python.org, it was decided to disclose it. Here is the original report: Hello Python Security Team, Looks like urllib may leak sensitive HTTP headers to third parties when handling redirects. Let's conside

[issue29802] A possible null-pointer dereference in struct.s_unpack_internal()

2017-03-12 Thread Artem Smotrakov
Changes by Artem Smotrakov : -- keywords: +patch Added file: http://bugs.python.org/file46723/_struct_cache.patch ___ Python tracker <http://bugs.python.org/issue29

[issue29802] A possible null-pointer dereference in struct.s_unpack_internal()

2017-03-12 Thread Artem Smotrakov
New submission from Artem Smotrakov: Attached struct_unpack_crash.py results to a null-pointer dereference in s_unpack_internal() function of _struct module: ASAN:SIGSEGV = ==20245==ERROR: AddressSanitizer: SEGV on unknown address

[issue29598] Write unit tests for pdb module

2017-02-19 Thread Artem Muterko
New submission from Artem Muterko: I want to write unit tests for pdb module of stdlib. Should I create one pull request for entire module or should I split work into several pull requests? -- ___ Python tracker <http://bugs.python.org/issue29

[issue29598] Write unit tests for pdb module

2017-02-19 Thread Artem Muterko
Changes by Artem Muterko : -- components: Tests nosy: Artem Muterko priority: normal severity: normal status: open title: Write unit tests for pdb module versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue29

[issue27826] Null-pointer dereference in tuplehash() function

2016-08-21 Thread Artem Smotrakov
Changes by Artem Smotrakov : -- keywords: +patch Added file: http://bugs.python.org/file44184/tuplehash.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27826] Null-pointer dereference in tuplehash() function

2016-08-21 Thread Artem Smotrakov
New submission from Artem Smotrakov: A null-pointer dereference may happen while deserialization incorrect data with marshal.loads() function. Here is a test which reproduces this (see also attached marshal_tuplehash_null_dereference.py): import marshal value = ( # tuple1

[issue21613] Installer for mac doesn't store the installation location

2014-05-30 Thread Artem Ustinov
New submission from Artem Ustinov: I'm trying to automate the Python uninstallation on mac but I've found that the actual installation location is not stored for Python packages. That location is required since the pkgutil keeps track of installed files (if you run $ pkgut

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-11-20 Thread Artem Ustinov
Artem Ustinov added the comment: It does the trick with optionals but not the positionals. How the positional arguments can be removed/hidden? -- ___ Python tracker <http://bugs.python.org/issue19

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-11-13 Thread Artem Ustinov
Artem Ustinov added the comment: What is the way to 'hide' the argument from being parsed? E.g. we have self.parser.add_argument('foo') in parent class, how can we modify it in child class so that it would not to appear in --help strings and not populated

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-11-01 Thread Artem Ustinov
Artem Ustinov added the comment: Paul, essentialy, what i looking for is to replace the 'help' string of the inherited argument with the new one. If you say it could be changed without any effect so what would be the proper way to do it using argpa

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-10-31 Thread Artem Ustinov
Artem Ustinov added the comment: Explicitly substitute, excuse me On 31 Oct 2013 20:11, "Artem Ustinov" wrote: > > Artem Ustinov added the comment: > > We need argparse to raise an error for conflicting options and that's why > we need to implicitly substitute an

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-10-31 Thread Artem Ustinov
Artem Ustinov added the comment: We need argparse to raise an error for conflicting options and that's why we need to implicitly substitute an option when we need it On 31 Oct 2013 19:54, "R. David Murray" wrote: > > R. David Murray added the comment: > > Doe

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2013-10-31 Thread Artem Ustinov
New submission from Artem Ustinov: In order to migrate from optparse to argparse we need to have an ability to substitute anguments, e.g. remove and then create. In our framework we use the command line utility base class and then inherit the particular tools from it. The parser in base class

[issue19018] Heapq.merge suppreses IndexError from user generator

2013-09-14 Thread Artem Fokin
Artem Fokin added the comment: Which branch should I add a unit-test to? Here is a patch that adds a unit-test to the current one. -- keywords: +patch Added file: http://bugs.python.org/file31760/unittest_patch.diff ___ Python tracker <h

[issue19018] Heapq.merge suppreses IndexError from user generator

2013-09-14 Thread Artem Fokin
Artem Fokin added the comment: Oh, it seems that in current cpython branch this problem is fixed by checking condition _len(h) > 1: http://hg.python.org/cpython/file/1dc925ee441a/Lib/heapq.py#l373 But is it possible to fix it for the previous branc

[issue19018] Heapq.merge suppreses IndexError from user generator

2013-09-14 Thread Artem Fokin
Changes by Artem Fokin : -- versions: -3rd party, Python 2.6, Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue19018> ___ ___ Python-bug

[issue19018] Heapq.merge suppreses IndexError from user generator

2013-09-14 Thread Artem Fokin
New submission from Artem Fokin: Suppose we have the following code: from heapq import merge def iterable(): lst = range(10) for i in xrange(20): yield lst[i] it1, it2= iterable(), iterable() print list(merge(it1, it2)) # no IndexError

[issue13264] Monkeypatching using metaclass

2011-10-25 Thread Artem Tomilov
New submission from Artem Tomilov : from abc import ABCMeta class Meta(ABCMeta): def __instancecheck__(cls, instance): # monkeypatching class method cls.__subclasscheck__ = super(Meta, cls).__subclasscheck__ return super(Meta, cls).__instancecheck__(instance

[issue7618] optparse library documentation has an insignificant formatting issue

2010-01-01 Thread Artem
New submission from Artem : In optparse documentation, in the end of first chapter there is an example which shows how optparse can print usage summary for user. In the last row of this example text color is accidentally changed from black to blue. Most probably the source of this issue is