[issue17487] wave.Wave_read.getparams should be more user friendly

2013-03-20 Thread Popa Claudiu
Popa Claudiu added the comment: Updated the patch with test for .getparams. -- Added file: http://bugs.python.org/file29499/wave_17487.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17487

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-03-19 Thread Popa Claudiu
New submission from Popa Claudiu: wave.Wave_read/Wave_write.getparams returns a tuple with various info about the wav file, when it could return a namedtuple, that can be manipulated in a richer way. I attached a patch. It doesn't have any tests, mainly because .getparams isn't tested at all

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

2013-03-18 Thread Popa Claudiu
New submission from Popa Claudiu: There is a problem with unittest discovering and namespace packages. Given the following folder structure, where a namespace package X lies, the following command fails with the following error: -testbug - flufl (namespace package with some tests

[issue14508] gprof2html is broken

2012-04-06 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. I've attached the new version of the patch. I used with statement in add_escapes and the test was rewritten according to David's suggestion. -- Added file: http://bugs.python.org/file25139/gprof.patch

[issue14492] pdeps.py has_key

2012-04-05 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. Here is the new patch. There was a few more problems: 1. in process, fp wasn't closed 2. in process, m_import.match(line) = 0 could fail if the regular expression didn't matched on that line I've included the tests, too

[issue14508] gprof2html is broken

2012-04-05 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: Tools/gprof2html.py uses file to open a file. Also, the opened file passed to add_escapes was never closed. There's a test included in the patch. -- components: Demos and Tools files: gprof.patch keywords: patch messages: 157580

[issue14490] abitype.py wrong raise format

2012-04-04 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: In Tools/abitype.py an exception is raised using the old format: raise Exception, '%s has no PyVarObject_HEAD_INIT' % name The attached patch fixes this problem. -- components: Demos and Tools files: abitype.patch keywords: patch

[issue14491] fixcid.py is using instead of !=

2012-04-04 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: Tools/fixcid.py uses instead of !=. The attached patched fixes this issue. -- components: Demos and Tools files: fixcid.patch keywords: patch messages: 157470 nosy: Popa.Claudiu priority: normal severity: normal status: open title

[issue14492] pdeps.py has_key

2012-04-04 Thread Popa Claudiu
Changes by Popa Claudiu pcmantic...@gmail.com: -- components: +Demos and Tools versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14492

[issue14492] pdeps.py has_key

2012-04-04 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: Tools/pdeps.py is using has_key for a dictionary. The attached patch fixes this issue. -- files: pdeps.patch keywords: patch messages: 157471 nosy: Popa.Claudiu priority: normal severity: normal status: open title: pdeps.py

[issue14491] fixcid.py is using instead of !=

2012-04-04 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. I added a test for fixcid.py regression. -- nosy: +r.david.murray Added file: http://bugs.python.org/file25121/fixcid_test.patch ___ Python tracker rep...@bugs.python.org http

[issue14490] abitype.py wrong raise format

2012-04-04 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Oh, ok then. That makes the last file added in 14491 irrelevant. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490

[issue14496] Wrong name in idlelib/tabbedpages.py

2012-04-04 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: In the file from the subject, page_name was used instead of tab_name, increasing the chances of a NameError exception. I didn't find any tests for IDLE, so there are no tests attached. -- components: IDLE files: idlelib.patch

[issue14496] Wrong name in idlelib/tabbedpages.py

2012-04-04 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Yes. 1. inherit from TabbedPageSet 2. pass tabs keyword to the internal TabSet instance 3. when the GUI started, enter a page with the same name found in tabs list. NameError will be raised at this point. I'm curios if this script is used

[issue14482] multiprocessing.connection.Listener fails with invalid address on Windows

2012-04-03 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: This is related to http://bugs.python.org/issue14151. When using an AF_UNIX address with multiprocessing.connection.Listener or Client, the following error will occur, due to the fact that AF_UNIX is not present in socket module

[issue14151] multiprocessing.connection.Listener fails with invalid address

2012-04-01 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Here are the two diffs. Hope they are good this time. -- Added file: http://bugs.python.org/file25090/connection.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14151

[issue14151] multiprocessing.connection.Listener fails with invalid address

2012-04-01 Thread Popa Claudiu
Changes by Popa Claudiu pcmantic...@gmail.com: Added file: http://bugs.python.org/file25091/test_multiprocessing.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14151

[issue14151] multiprocessing.connection.Listener fails with invalid address

2012-02-28 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: In multiprocessing.connection, when using a Windows named pipe on a Unix platform, the following error will occur. This should not happen, the format of the address should be validated somehow before. The following error will occur

[issue13537] Namedtuple instances can't be pickled in a daemonized process

2011-12-06 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: On Unix world, in a daemonized process, any namedtuple instance can't be pickled, failing with error: _pickle.PicklingError: Can't pickle class X: attribute lookup __main__.t failed. This can't be reproduced with the attached code. If I

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. This happens with this version of IDLE too: Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win32. I could write a patch if I knew where to start

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: I found the culprit. I wrote b\x in IDLE and the window immediatly disappeared. Then, to traceback the problem, I started a python shell and typed the following lines. It seems that in showsyntaxerror, value is different that what

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: I've attached a patch, hope it is ok. -- keywords: +patch Added file: http://bugs.python.org/file23151/idle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9871

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Changes by Popa Claudiu pcmantic...@gmail.com: Removed file: http://bugs.python.org/file23151/idle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9871

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Wrong patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9871 ___ ___ Python-bugs-list

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Changes by Popa Claudiu pcmantic...@gmail.com: Added file: http://bugs.python.org/file23152/idle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9871

[issue12920] inspect.getsource fails to get source of local classes

2011-09-10 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: I forgot to mention that I executed this code directly in IDLE. It seems to work perfectly on command line though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12920

[issue12920] inspect.getsource fails to get source of local classes

2011-09-09 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Yes. On Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32, the result for the following lines: import inspect class A: pass inspect.getsource(A) is: Traceback (most recent call last): File E:/Scripts

[issue12920] Inspect.getsource fails to get source of local classes

2011-09-06 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: inspect.getsource called with a class defined in the same file fails with TypeError: module '__main__' (built-in) is a built-in class, although the documentation says that: The argument may be a module, class, method, function, traceback

[issue12676] Bug in http.client

2011-08-01 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: There appears to be used a variable that is not defined in HTTPConnection.send method. The approximate line is 781. How to reproduce: import http.client import urllib.parse c = urllib.parse.urlencode({user:claudiu, password:1}) c

[issue10005] Postgresql calls undefined method in __str__

2010-10-01 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: In postgresql library, client3.py, the __str__ method defined in Connection close calls the undefined method self.exception_string as in the following line of code: excstr = ''.join(self.exception_string(type(self.exception

[issue10005] Postgresql calls undefined method in __str__

2010-10-01 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: I meant Connection class calls the.. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10005

[issue9871] IDLE dies when using some regex

2010-09-16 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: Hello. While trying to find a way for extracting strange characters in an ascii file, I stumbled upon some strange behaviour of IDLE, which exits without warning after running the following regex: re.findall(b\x.{2}, bsdds\xd8

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-08-18 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. As it seems, untabify.py opens the file using the builtin function open, making the call error-prone when encountering non-ascii character. The proper handling should be done by using open from codecs library, specifying the encoding

[issue8975] Bug in cookiejar

2010-06-11 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: Hello. This is my first report, sorry if I won't do it right. I found a bug in cookielib, which looks like this(a traceback): C:\Python31\lib\http\cookiejar.py:1586: UserWarning: http.cookiejar bug! Traceback (most recent call last

[issue8975] Bug in cookiejar

2010-06-11 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: CHttp.__init__(self,1,proxy = shared.setts.currentGoogleProxy) self.timeout = shared.setts.cGglHttpTimeout self.proxy = globShare.currentGoogleProxy[globShare.currentGoogleIndex