[issue21639] tracemalloc crashes with floating point exception when using StringIO

2014-06-02 Thread Claudiu.Popa
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

[issue21641] smtplib leaves open sockets around if SMTPResponseException is raised in __init__

2014-06-02 Thread Claudiu.Popa
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

[issue21641] smtplib leaves open sockets around if SMTPResponseException is raised in __init__

2014-06-02 Thread Claudiu.Popa
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

[issue21641] smtplib leaves open sockets around if SMTPResponseException is raised in __init__

2014-06-03 Thread Claudiu.Popa
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

[issue21648] urllib urlopener leaves open sockets for FTP connection

2014-06-03 Thread Claudiu.Popa
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

[issue21651] asyncio tests ResourceWarning

2014-06-03 Thread Claudiu.Popa
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

[issue21670] Add repr to shelve.Shelf

2014-06-05 Thread Claudiu.Popa
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 >&

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-09 Thread Claudiu.Popa
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

[issue17457] Unittest discover fails with namespace packages and builtin modules

2014-06-09 Thread Claudiu.Popa
Claudiu.Popa added the comment: Can we close this? The feature already landed in Python 3.4. -- ___ Python tracker <http://bugs.python.org/issue17457> ___ ___

[issue19840] The is no way to tell shutil.move to ignore metadata

2014-06-09 Thread Claudiu.Popa
Claudiu.Popa added the comment: Any type of feedback will be appreciated. -- ___ Python tracker <http://bugs.python.org/issue19840> ___ ___ Python-bugs-list mailin

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-06-10 Thread Claudiu.Popa
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

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Claudiu.Popa
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

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-06-10 Thread Claudiu.Popa
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

[issue19840] The is no way to tell shutil.move to ignore metadata

2014-06-10 Thread Claudiu.Popa
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

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Claudiu.Popa
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

[issue21729] Use `with` statement in dbm.dumb

2014-06-12 Thread Claudiu.Popa
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

[issue10445] _ast py3k : add lineno back to "args" node

2014-06-12 Thread Claudiu.Popa
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

[issue16512] imghdr doesn't support jpegs with an ICC profile

2014-06-12 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue16512> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16512] imghdr doesn't support jpegs with an ICC profile

2014-06-12 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue16512> ___ ___ Python-bugs-list mailing list Unsub

[issue16512] imghdr doesn't support jpegs with an ICC profile

2014-06-12 Thread Claudiu.Popa
Claudiu.Popa added the comment: Using \xff\xd8 sounds good to me. -- ___ Python tracker <http://bugs.python.org/issue16512> ___ ___ Python-bugs-list mailin

[issue17087] Improve the repr for regular expression match objects

2013-09-13 Thread Claudiu.Popa
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

[issue17087] Improve the repr for regular expression match objects

2013-09-13 Thread Claudiu.Popa
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

[issue17087] Improve the repr for regular expression match objects

2013-09-13 Thread Claudiu.Popa
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

[issue18857] urlencode of a None value uses the string 'None'

2013-09-15 Thread Claudiu.Popa
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

[issue18857] urlencode of a None value uses the string 'None'

2013-09-15 Thread Claudiu.Popa
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

[issue18857] urlencode of a None value uses the string 'None'

2013-09-16 Thread Claudiu.Popa
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

[issue18626] Make "python -m inspect " meaningful

2013-09-16 Thread Claudiu.Popa
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

[issue18918] help('FILES') finds no documentation

2013-09-18 Thread Claudiu.Popa
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

[issue19078] Allow reversed(memoryview), like memoryview[::-1]

2013-09-23 Thread Claudiu.Popa
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

[issue19078] Allow reversed(memoryview), like memoryview

2013-09-25 Thread Claudiu.Popa
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) >

[issue17473] -m is not universally applicable

2013-09-26 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue17473> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19078] Allow reversed(memoryview), like memoryview

2013-09-28 Thread Claudiu.Popa
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

[issue1764286] inspect.getsource does not work with decorated functions

2013-09-29 Thread Claudiu.Popa
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

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2013-10-02 Thread Claudiu.Popa
Claudiu.Popa added the comment: Could anyone review this patch, please? -- ___ Python tracker <http://bugs.python.org/issue17442> ___ ___ Python-bugs-list mailin

[issue19146] Improvements to traceback module

2013-10-02 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue19146> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19146] Improvements to traceback module

2013-10-02 Thread Claudiu.Popa
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

[issue17087] Improve the repr for regular expression match objects

2013-10-16 Thread Claudiu.Popa
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

[issue17087] Improve the repr for regular expression match objects

2013-10-16 Thread Claudiu.Popa
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

[issue17087] Improve the repr for regular expression match objects

2013-10-16 Thread Claudiu.Popa
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

[issue17087] Improve the repr for regular expression match objects

2013-10-16 Thread Claudiu.Popa
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

[issue19282] dbm is not a context manager

2013-10-18 Thread Claudiu.Popa
Claudiu.Popa added the comment: Working on a patch for this. -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue19282> ___ ___ Python-bug

[issue19282] dbm is not a context manager

2013-10-18 Thread Claudiu.Popa
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

[issue19282] dbm.open should be a context manager

2013-10-18 Thread Claudiu.Popa
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'

[issue17087] Improve the repr for regular expression match objects

2013-10-18 Thread Claudiu.Popa
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

[issue19304] Typo in statistics.rst

2013-10-19 Thread Claudiu.Popa
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

[issue19359] reversed() does not work with weakref.proxy of sequences

2013-10-23 Thread Claudiu.Popa
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

[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-10-24 Thread Claudiu.Popa
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

[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-10-24 Thread Claudiu.Popa
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

[issue19384] test_py_compile fails with OSError on FreeBSD for root user

2013-10-24 Thread Claudiu.Popa
New submission from Claudiu.Popa: The actual error: == FAIL: test_exceptions_propagate (test.test_py_compile.PyCompileTests) -- Traceback (most recent call

[issue19385] dbm.dumb should be consistent when the database is closed

2013-10-24 Thread Claudiu.Popa
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

[issue19385] dbm.dumb should be consistent when the database is closed

2013-10-24 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- keywords: +patch Added file: http://bugs.python.org/file32347/dbm_dumb.patch ___ Python tracker <http://bugs.python.org/issue19

[issue19384] test_py_compile fails with OSError on FreeBSD for root user

2013-10-24 Thread Claudiu.Popa
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

[issue19282] dbm.open should be a context manager

2013-10-28 Thread Claudiu.Popa
Claudiu.Popa added the comment: There is issue19385 for the inconsistency of dbm.dumb, with a patch. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19385] dbm.dumb should be consistent when the database is closed

2013-11-01 Thread Claudiu.Popa
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:

[issue19385] dbm.dumb should be consistent when the database is closed

2013-11-01 Thread Claudiu.Popa
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

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2013-11-01 Thread Claudiu.Popa
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

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2013-11-01 Thread Claudiu.Popa
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

[issue18345] logging: file creation options with FileHandler and friends

2013-11-03 Thread Claudiu.Popa
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

[issue18345] logging: file creation options with FileHandler and friends

2013-11-03 Thread Claudiu.Popa
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

[issue18345] logging: file creation options with FileHandler and friends

2013-11-03 Thread Claudiu.Popa
Changes by Claudiu.Popa : Added file: http://bugs.python.org/file32475/logging.patch ___ Python tracker <http://bugs.python.org/issue18345> ___ ___ Python-bugs-list mailin

[issue18345] logging: file creation options with FileHandler and friends

2013-11-04 Thread Claudiu.Popa
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

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2013-11-05 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue15745> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19545] time.strptime exception context

2013-11-10 Thread Claudiu.Popa
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",

[issue19546] configparser leaks implementation detail

2013-11-10 Thread Claudiu.Popa
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",

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-10 Thread Claudiu.Popa
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

[issue19343] Expose FreeBSD-specific APIs in resource module

2013-11-13 Thread Claudiu.Popa
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

[issue19282] dbm.open should be a context manager

2013-11-16 Thread Claudiu.Popa
Claudiu.Popa added the comment: Cool, thanks! -- ___ Python tracker <http://bugs.python.org/issue19282> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-17 Thread Claudiu.Popa
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

[issue9731] Add ABCMeta.has_methods and tests that use it

2013-11-17 Thread Claudiu.Popa
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

[issue19639] Improve re match objects display

2013-11-18 Thread Claudiu.Popa
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

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-18 Thread Claudiu.Popa
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

[issue18615] sndhdr.whathdr could return a namedtuple

2013-11-19 Thread Claudiu.Popa
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

[issue19671] Option to select the optimization level on compileall

2013-11-20 Thread Claudiu.Popa
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

[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-11-21 Thread Claudiu.Popa
Claudiu.Popa added the comment: Nick, what's your opinion on my latest patch? -- ___ Python tracker <http://bugs.python.org/issue17916> ___ ___ Python-bugs-l

[issue19628] maxlevels -1 on compileall for unlimited recursion

2013-11-21 Thread Claudiu.Popa
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

[issue19628] maxlevels -1 on compileall for unlimited recursion

2013-11-21 Thread Claudiu.Popa
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

[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-11-21 Thread Claudiu.Popa
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

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue18864> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-22 Thread Claudiu.Popa
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

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-22 Thread Claudiu.Popa
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

[issue19545] time.strptime exception context

2013-11-23 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue19545> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19778] Change re.compile display

2013-11-25 Thread Claudiu.Popa
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

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-25 Thread Claudiu.Popa
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/

[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread Claudiu.Popa
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:

[issue19821] pydoc.ispackage() could be more accurate

2013-11-28 Thread Claudiu.Popa
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

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2013-11-30 Thread 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

[issue10203] sqlite3.Row doesn't support sequence protocol

2013-11-30 Thread Claudiu.Popa
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.

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2013-11-30 Thread Claudiu.Popa
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

[issue19840] The is no way to tell shutil.move to ignore metadata

2013-12-01 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue19840> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19840] The is no way to tell shutil.move to ignore metadata

2013-12-01 Thread Claudiu.Popa
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

[issue19776] Provide expanduser() on Path objects

2013-12-01 Thread Claudiu.Popa
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

[issue10203] sqlite3.Row doesn't support sequence protocol

2013-12-03 Thread Claudiu.Popa
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

[issue10203] sqlite3.Row doesn't support sequence protocol

2013-12-03 Thread Claudiu.Popa
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

[issue19776] Provide expanduser() on Path objects

2013-12-05 Thread Claudiu.Popa
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

[issue19343] Expose FreeBSD-specific APIs in resource module

2013-12-05 Thread Claudiu.Popa
Claudiu.Popa added the comment: Should this be tagged for Python 3.5? -- ___ Python tracker <http://bugs.python.org/issue19343> ___ ___ Python-bugs-list mailin

[issue19906] Typo in urllib documentation

2013-12-06 Thread Claudiu.Popa
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

[issue19925] Add unit test for spwd module

2013-12-07 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hi. I left a comment on Rietveld. -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue19925> ___ ___ Python-bug

[issue16104] Use multiprocessing in compileall script

2013-12-10 Thread Claudiu.Popa
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.

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2013-12-10 Thread Claudiu.Popa
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

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2013-12-10 Thread Claudiu.Popa
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

<    1   2   3   >