New submission from Claudiu.Popa:
Given the following code, tracemalloc crashes with:
"Floating point exception: 8 (core dumped)"
import tracemalloc
tracemalloc.start(10)
import io
io.StringIO()
The culprit is this line "assert(nelem <= PY_SIZE_MAX / elsize);" from
tr
Claudiu.Popa added the comment:
An alternative to this approach would be to catch the error in __init__ and
close the socket there.
--
___
Python tracker
<http://bugs.python.org/issue21
New submission from Claudiu.Popa:
Hello!
I noticed that test_smtplib raises a ResourceWarning, tracking this to this
piece of code:
self.assertRaises(smtplib.SMTPResponseException, smtplib.SMTP,
HOST, self.port, 'localhost', 3)
What happens is that `SMTP.ge
Claudiu.Popa added the comment:
It's actually better to close the socket in __init__ in this case.
--
Added file: http://bugs.python.org/file35466/issue21641.patch
___
Python tracker
<http://bugs.python.org/is
New submission from Claudiu.Popa:
To be precise, when running test_urllib on a machine with a local FTP server,
but with a set of credentials different than the ones used by
test_urllib.urlopen_HttpTests.test_ftp_nonexisting. In this case, ftpwrapper
from urllib.request will succesfully
New submission from Claudiu.Popa:
Running asyncio tests on Windows will give a ResourceWarning. The attached
patch fixes this problem.
[1/1] test_asyncio
D:\Projects\cpython\lib\test\test_asyncio\test_events.py:233: ResourceWarning:
unclosed
gc.collect()
D:\Projects\cpython\lib\test
New submission from Claudiu.Popa:
Hello!
Working with Shelf instances in the interactive console is cumbersome because
you can't have an instant feedback when running the following:
>>> from shelve import Shelf
>>> s = Shelf({})
>>> s['a'] = 1
>&
Claudiu.Popa added the comment:
Thanks, Serhiy. Here's the new version of the patch. Hope that the warning
message is clear enough.
--
Added file: http://bugs.python.org/file35544/issue18039_1.patch
___
Python tracker
<http://bugs.py
Claudiu.Popa added the comment:
Can we close this? The feature already landed in Python 3.4.
--
___
Python tracker
<http://bugs.python.org/issue17457>
___
___
Claudiu.Popa added the comment:
Any type of feedback will be appreciated.
--
___
Python tracker
<http://bugs.python.org/issue19840>
___
___
Python-bugs-list mailin
Claudiu.Popa added the comment:
Since issue15745 hasn't been fixed yet, would be okay to skip these tests when
the test suite runs from a ZFS container? Currently, these failures are a
nuissance when running the test suite.
--
___
Python tr
Claudiu.Popa added the comment:
Thanks for the reviews, Serhiy. Here's the new version of the patch.
--
Added file: http://bugs.python.org/file35549/issue18039_2.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Here's a patch that marks those tests as expected failures if the source
checkout is inside a zfs container. It uses `df -t zfs`, it was the easiest way
I could find to detect that we are running from a zfs container.
--
keywords: +patch
Added
Claudiu.Popa added the comment:
Thanks, David. The new version of the patch is attached.
--
Added file: http://bugs.python.org/file35554/issue19840_1.patch
___
Python tracker
<http://bugs.python.org/issue19
Changes by Claudiu.Popa :
Added file: http://bugs.python.org/file3/issue18039_3.patch
___
Python tracker
<http://bugs.python.org/issue18039>
___
___
Python-bugs-list m
New submission from Claudiu.Popa:
Hello.
Here's a short patch for dbm.dumb, which uses in various places the `with`
statement for opening and closing files. Thanks.
--
components: Library (Lib)
files: dbm_with_open.patch
keywords: patch
messages: 220335
nosy: Claudiu
Claudiu.Popa added the comment:
This doesn't seem to be the case for Python 3.4. Also, _ast.arguments didn't
have "lineno" and "col_offset" attributes neither in Python 2. But the _arg.arg
nodes have those attributes, as seen in this example.
>>> from
Changes by Claudiu.Popa :
--
nosy: +Claudiu.Popa
___
Python tracker
<http://bugs.python.org/issue16512>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Claudiu.Popa :
--
versions: +Python 3.5 -Python 3.4
___
Python tracker
<http://bugs.python.org/issue16512>
___
___
Python-bugs-list mailing list
Unsub
Claudiu.Popa added the comment:
Using \xff\xd8 sounds good to me.
--
___
Python tracker
<http://bugs.python.org/issue16512>
___
___
Python-bugs-list mailin
Claudiu.Popa added the comment:
Serhiy, at the first glance, that repr doesn't make sense to me, thus it seems
a little difficult to comprehend.
--
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Here's the new version. I added a few replies on the Rietveld.
--
Added file: http://bugs.python.org/file31744/sre_repr2.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Added the new version.
--
Added file: http://bugs.python.org/file31746/sre_repr3.patch
___
Python tracker
<http://bugs.python.org/issue17
Claudiu.Popa added the comment:
Hello. I attached a simple patch for the urlencode case. I'll try to make one
for parse_qs(l) as well.
--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file31782/urllib.patch
___
P
Claudiu.Popa added the comment:
Added patch for parse_qsl as well.
--
Added file: http://bugs.python.org/file31785/urllib_null_value.patch
___
Python tracker
<http://bugs.python.org/issue18
Claudiu.Popa added the comment:
No problem, David, working on these patches is just an occasion for me to learn
more and be useful at the same time.
--
___
Python tracker
<http://bugs.python.org/issue18
Claudiu.Popa added the comment:
Hello, here's a basic patch. Currently, the header info is printed by default,
while the source can be retrieved by using --source (although I would prefer
them to be switched, the source should be shown by default and the header info
only when requested
Claudiu.Popa added the comment:
Hello. The 'File objects' section was removed in Python 3, with this issue
http://bugs.python.org/issue7508, but not the topic from pydoc.py. As I
understand, there is no point in having this, because there isn't a `file` type
anymore.
The a
New submission from Claudiu.Popa:
Hello. The following seems a little weird:
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit
(Intel)] on win32
>>> m = memoryview(b'123')
>>> list(m[::-1])
[51, 50, 49]
>>> list(reversed(m))
Trac
Claudiu.Popa added the comment:
So, in the following case, len shouldn't return 4, but the number of items?
Also, is it ok to assume that the number of items is
((*shape)[0] * ... * (*shape)[ndims-1])?
>>> x = np.array([[1, 2, 3], [4, 5, 6], [4,5,6], [4,4,4]], np.int32)
>
Changes by Claudiu.Popa :
--
nosy: +Claudiu.Popa
___
Python tracker
<http://bugs.python.org/issue17473>
___
___
Python-bugs-list mailing list
Unsubscribe:
Claudiu.Popa added the comment:
For multidimensional arrays it doesn't seem to work (yet).
>>> x = numpy.array([[1,2,3], [4,5,6]])
>>> list(reversed(x))
[array([4, 5, 6]), array([1, 2, 3])]
>>> x.data
>>> list(reversed(x.data))
Traceback (most
Claudiu.Popa added the comment:
Hello. Attached patch which uses the new inspect.unwrap, added in
http://hg.python.org/cpython/rev/2aa6c1e35b8a.
--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file31902/inspect_getsource.patch
Claudiu.Popa added the comment:
Could anyone review this patch, please?
--
___
Python tracker
<http://bugs.python.org/issue17442>
___
___
Python-bugs-list mailin
Changes by Claudiu.Popa :
--
nosy: +Claudiu.Popa
___
Python tracker
<http://bugs.python.org/issue19146>
___
___
Python-bugs-list mailing list
Unsubscribe:
Claudiu.Popa added the comment:
> I already thought of that, but that doesn't work: the iterator version
> would return the stack in the wrong order (note the .reverse() call in the
> code).
Then, couldn't this:
stack = list(_extract_stack_iter(_get_st
Claudiu.Popa added the comment:
Serhiy, are there any left issues with my latest patch? It would be nice if we
could get this into 3.4.
--
___
Python tracker
<http://bugs.python.org/issue17
Claudiu.Popa added the comment:
Added the new patch, which addresses Serhiy's comments.
Also, this approach fails when bytes are involved:
>>> import re
>>> re.search(b"a", b"a")
Assertion failed: (PyUnicode_Check(op)), function _PyUnicode_CheckConsi
Claudiu.Popa added the comment:
Latest patch attached.
--
Added file: http://bugs.python.org/file32144/sre_repr5.patch
___
Python tracker
<http://bugs.python.org/issue17
Claudiu.Popa added the comment:
I could use self->pattern->logical_size, but it seems that I still need the
call to getstring for bytes & co, to obtain the view to the underlying buffer
(otherwise the group0 part from the repr will contain random bytes). I didn't
find a simpler
Claudiu.Popa added the comment:
Working on a patch for this.
--
nosy: +Claudiu.Popa
___
Python tracker
<http://bugs.python.org/issue19282>
___
___
Python-bug
Claudiu.Popa added the comment:
Here's a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file32203/dbm.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Attached patch checks that the db is actually closed after the `with`. Also, I
noticed that dbm.dumb doesn't behave like the rest of the variants, as seen in
the following:
>>> import dbm.dumb as d
>>> db = d.open('test.dat'
Claudiu.Popa added the comment:
Added patch based on Serhiy's, which addresses your comments. It drops the
group count and renames group0 to `match`.
--
Added file: http://bugs.python.org/file32216/sre_repr6.patch
___
Python tracker
New submission from Claudiu.Popa:
There are two small typos in statistics.rst.
--
assignee: docs@python
components: Documentation
files: typos.patch
keywords: patch
messages: 200480
nosy: Claudiu.Popa, docs@python
priority: normal
severity: normal
status: open
title: Typo in
Claudiu.Popa added the comment:
Attached an attemptive patch.
--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file32322/reversed_proxy.patch
___
Python tracker
<http://bugs.python.org/issue19
Claudiu.Popa added the comment:
Nick, could you review this, please? It would be nice if we can flesh it out
and add it to 3.4.
--
___
Python tracker
<http://bugs.python.org/issue17
Claudiu.Popa added the comment:
Here's the updated version according to your comments. Because there is no need
for show_info() and info(), the current class is not a subclass of Bytecode (as
I implied from your first message). After issue19378 is fixed, we could change
the line_offset
New submission from Claudiu.Popa:
The actual error:
==
FAIL: test_exceptions_propagate (test.test_py_compile.PyCompileTests)
--
Traceback (most recent call
New submission from Claudiu.Popa:
This problem occurred in issue19282. Basicly, dbm.dumb is not consistent with
dbm.gnu and dbm.ndbm when the database is closed, as seen in the following:
>>> import dbm.dumb as d
>>> db = d.open('test.dat', 'c')
>&g
Changes by Claudiu.Popa :
--
keywords: +patch
Added file: http://bugs.python.org/file32347/dbm_dumb.patch
___
Python tracker
<http://bugs.python.org/issue19
Claudiu.Popa added the comment:
Yes, you can create files in a read-only directory if you are root, that's why
os.chmod(directory, stat.S_IREAD is redundant there.
--
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
There is issue19385 for the inconsistency of dbm.dumb, with a patch.
--
___
Python tracker
<http://bugs.python.org/issue19
Claudiu.Popa added the comment:
Here's the new version which addresses your last comment. Regarding the first
issue, I don't believe that the result will be as readable (but I agree with
you that it will be better). For instance, `items` will probably look like this:
try:
Changes by Claudiu.Popa :
Added file: http://bugs.python.org/file32453/dbm_dumb1.patch
___
Python tracker
<http://bugs.python.org/issue19385>
___
___
Python-bugs-list m
Claudiu.Popa added the comment:
And the patch.
--
keywords: +patch
Added file: http://bugs.python.org/file32455/dbm_dumb_open.patch
___
Python tracker
<http://bugs.python.org/issue18
Claudiu.Popa added the comment:
Here's a patch which adds support for the `n` value of the flag. It makes the
dbm consistent across implementations and it's thus more reliable.
Also, attached a script which replicates the problem for Windows (where
dbm.dumb is used).
My outpu
Claudiu.Popa added the comment:
Hello. Patch attached.
--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file32473/logging.patch
___
Python tracker
<http://bugs.python.org/issue18
Claudiu.Popa added the comment:
Added documentation and the chown parameter for the friends of FileHandler.
Should tests be added for those classes as well or is it enough to test
FileHandler?
--
Added file: http://bugs.python.org/file32474/logging.patch
Changes by Claudiu.Popa :
Added file: http://bugs.python.org/file32475/logging.patch
___
Python tracker
<http://bugs.python.org/issue18345>
___
___
Python-bugs-list mailin
Claudiu.Popa added the comment:
Sure, thanks for the review, it's really insightful regarding API design. I
will try to contribute an example for the cookbook later this day.
--
___
Python tracker
<http://bugs.python.org/is
Changes by Claudiu.Popa :
--
nosy: +Claudiu.Popa
___
Python tracker
<http://bugs.python.org/issue15745>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Claudiu.Popa:
time.strptime leaks an IndexError, as seen in the following traceback.
[root@clnstor /tank/libs/cpython]# ./python
Python 3.4.0a4+ (default:0aa2aedc6a21+, Nov 5 2013, 17:10:42)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd8
Type "help",
New submission from Claudiu.Popa:
Various exceptions raised by configparser module leaks implementation detail,
by chaining KeyErrors, as seen below:
Python 3.4.0a4+ (default:0aa2aedc6a21+, Nov 5 2013, 17:10:42)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd8
Type "help",
Claudiu.Popa added the comment:
Michael, is any chance for this to go into Python 3.4? I would love to make any
changes necessary in order for this to happen.
--
___
Python tracker
<http://bugs.python.org/issue17
Claudiu.Popa added the comment:
Hello. Here's a preliminary patch.
--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file32596/resource.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Cool, thanks!
--
___
Python tracker
<http://bugs.python.org/issue19282>
___
___
Python-bugs-list mailing list
Unsubscribe:
Claudiu.Popa added the comment:
Attached new patch, which addresses Ezio's comments on Rietveld.
--
Added file: http://bugs.python.org/file32664/unittest-17457-2.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Hello! Here's a preliminary implementation, with tests for collections ABC. It
doesn't have any docs yet, though. I chose the name verify_full_api, but I'm ok
with check_methods as well.
--
keywords: +patch
nosy: +Claudiu.Popa
versio
New submission from Claudiu.Popa:
When issue17087 was accepted, the documentation wasn't changed to reflect the
new changes. The attached patch fixes this, replacing the old <_sre.Match
object ...> with the deterministic repr of the match object.
--
assignee: docs@python
Claudiu.Popa added the comment:
Eric, thank you for your comment! I modified the patch to check for __path__
instead, is this a safe enough check for this use case? Since ModuleSpec isn't
landed yet, I didn't use your __spec__ example.
--
Added file: http://bugs.python.org
Claudiu.Popa added the comment:
Ping, please review. I guess it is minimal enough to get into 3.4.
--
___
Python tracker
<http://bugs.python.org/issue18
Claudiu.Popa added the comment:
Hi. Since Python 3.2, compileall functions supports the optimization level
through the `optimize` parameter. I guess you are using Python2.7 or so? Also,
there's a note in compileall's documentation regarding the command line switch
for the optimiza
Claudiu.Popa added the comment:
Nick, what's your opinion on my latest patch?
--
___
Python tracker
<http://bugs.python.org/issue17916>
___
___
Python-bugs-l
Claudiu.Popa added the comment:
Here's a patch which adds support for controlling the maxlevels on command
line. Currently, compileall uses a binary choice, either we don't process
subdirectories or we process at most 10 subdirectories. This seems to be the
case since its inc
Changes by Claudiu.Popa :
--
versions: +Python 3.4 -Python 2.7, Python 3.3
___
Python tracker
<http://bugs.python.org/issue19628>
___
___
Python-bugs-list mailin
Claudiu.Popa added the comment:
Thanks, Nick! Attached the new version, I hope that I did it right this time.
--
Added file: http://bugs.python.org/file32762/dis_tb_3.patch
___
Python tracker
<http://bugs.python.org/issue17
Changes by Claudiu.Popa :
--
nosy: +Claudiu.Popa
___
Python tracker
<http://bugs.python.org/issue18864>
___
___
Python-bugs-list mailing list
Unsubscribe:
Claudiu.Popa added the comment:
Hello! Attached patch which uses ModuleSpec, tested with
http://hg.python.org/features/pep-451/ repo.
--
Added file: http://bugs.python.org/file32771/unittest_discovery_spec2.patch
___
Python tracker
<h
Claudiu.Popa added the comment:
Added patch which addresses Eric's comments. It contains a situation which I'm
not so happy, mostly due to not knowing in depth (or at least at a comfortable
level) the import mechanics: in the AttributeError except handler, if the spec
can't be
Changes by Claudiu.Popa :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue19545>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Claudiu.Popa:
Hello. I attached a minimal patch which fixes the re.compile display in
documentation, after issue13592 was closed.
--
assignee: docs@python
components: Documentation
files: sre_re.patch
keywords: patch
messages: 204402
nosy: Claudiu.Popa, docs@python
Claudiu.Popa added the comment:
Sorry for the delay. Here's a minimal doc patch. I don't excel at writing
documentation, it's not quite my strong point, so feel free to modify anything
you seem fit.
--
Added file: http://bugs.python.org/file32842/
Claudiu.Popa added the comment:
Here's a simple patch which adds this flag. It has no tests, because I noticed
that there are no tests for per-platform flags in test_socket.py (only for CAN,
RDS and general flags).
--
keywords: +patch
nosy: +Claudiu.Popa
Added file:
Claudiu.Popa added the comment:
It was used by pydoc.py until 2006, when it was removed with this commit:
Changeset:
37821 (3135648026c4) Second phase of refactoring for runpy, pkgutil, pydoc, and
setuptools.
Is it worth to fix this?
--
nosy: +Claudiu.Popa
New submission from Claudiu.Popa:
Hi!
test_touch_common fails when using 8.3-STABLE FreeBSD 8.3-STABLE and Python
3.4.0b1 (default:a0ec33efa743+, Nov 30 2013, 10:36:58).
Here are the tracebacks:
==
FAIL: test_touch_common
Claudiu.Popa added the comment:
Hello! Here's a simple patch which makes sqlite.Row to act like a real sequence.
--
keywords: +patch
nosy: +Claudiu.Popa
versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file32902/sqlite1.
Claudiu.Popa added the comment:
I believe it's similar, both test_os and test_pathlib fails when executed from
within a ZFS container. I checked, I did a fresh checkout of Python inside a
normal directory and run the tests there, they ran without pro
Changes by Claudiu.Popa :
--
nosy: +Claudiu.Popa
___
Python tracker
<http://bugs.python.org/issue19840>
___
___
Python-bugs-list mailing list
Unsubscribe:
Claudiu.Popa added the comment:
Hi. Here's a patch which adds `copy_function` parameter to `shutil.move`.
--
keywords: +patch
Added file: http://bugs.python.org/file32917/shutil.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Hello. Here's a patch for `expanduser()`.
--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file32919/pathlib.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
I guess not, the documentation already states that Row tries to mimic a tuple
in most of its features. Probably a MISC/News entry is required.
--
___
Python tracker
<http://bugs.python.org/issue10
Claudiu.Popa added the comment:
Thanks, Vajrasky! Here's an updated patch.
--
Added file: http://bugs.python.org/file32968/sqlite2.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Thanks, Vajrasky! Here's the new version of the patch.
--
Added file: http://bugs.python.org/file32980/pathlib1.patch
___
Python tracker
<http://bugs.python.org/is
Claudiu.Popa added the comment:
Should this be tagged for Python 3.5?
--
___
Python tracker
<http://bugs.python.org/issue19343>
___
___
Python-bugs-list mailin
New submission from Claudiu.Popa:
In the first note from urllib.rst, there is a reference to urllib being
replaced by urllib2 in Python 3, which is False.
--
assignee: docs@python
components: Documentation
files: urllib2.patch
keywords: patch
messages: 205359
nosy: Claudiu.Popa, docs
Claudiu.Popa added the comment:
Hi. I left a comment on Rietveld.
--
nosy: +Claudiu.Popa
___
Python tracker
<http://bugs.python.org/issue19925>
___
___
Python-bug
Claudiu.Popa added the comment:
Hello!
Here's a draft patch. It adds a new *processes* parameter to *compile_dir* and
a new command line parameter as well.
--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file33079/compileall_v1.
New submission from Claudiu.Popa:
I was surprised that in the following __init__ is actually called once per test
function, although nothing in documentation implied so.
a.py
--
import unittest
class A(unittest.TestCase):
def __init__(self, *args, **kwargs):
print('called
Claudiu.Popa added the comment:
"Each instance of the TestCase will only be used to run a single test method,
so a new fixture is created for each test."
Yes, this seems to be, but it is not clear what fixture means in this context
(as in "the preparation needed to perform one
101 - 200 of 271 matches
Mail list logo