[issue17106] assertion error in IO reading text file as binary

2013-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are patches for 3.2 and 2.7. Note that due to unicode-str autoconversions 2.7 not always raises TypeError (sometimes it can do nor raise an exception, sometimes it raises UnicodeEncodeError). 2.7 tests are not so strong as 3.x tests. -- Added

[issue17106] assertion error in IO reading text file as binary

2013-02-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17106

[issue17106] assertion error in IO reading text file as binary

2013-02-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17106

[issue17114] Python IDLE GUI does not open in Ubuntu 12.04

2013-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you please provide your config-highlight.cfg? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17114

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds tests for testing how Python values converted when passed to Tkinter and back. This patch was a part of issue16840, but other issues need this tests. -- assignee: serhiy.storchaka components: Tests, Tkinter files

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 2.7 Added file: http://bugs.python.org/file28947/tkinter_test_passing_values-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17118

[issue17119] Integer overflow when passing large string to Tkinter

2013-02-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Second argument of Tcl_NewUnicodeObj() which specifies a number of characters has type int. When a large string with more than INT_MAX characters passed to Tkinter this value will overflow. If this parameter is negative, all characters up to the first

[issue17119] Integer overflow when passing large string to Tkinter

2013-02-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Add tests for testing Python-Tcl interaction ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17119

[issue7358] cStringIO not 64-bit safe

2013-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Suggested workaround: use io.BytesIO instead of cStringIO. Well, maybe we can replace cStringIO by io.BytesIO in cPickle (and other places). comments on the patch... in short: your patch is changing an ABI and isn't suitable for a maintenance release

[issue7358] cStringIO not 64-bit safe

2013-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for review and enlightenment Gregory. Here is an updated patch which doesn't change an ABI. -- Added file: http://bugs.python.org/file28951/cStringIO64_2.patch ___ Python tracker rep...@bugs.python.org

[issue17122] Fix and cleanup test_functools

2013-02-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Since changeset fcfaca024160 (issue12428) subclassing of partial actually is not tested (subclassed partial overwritten in setUp() method). The proposed patch fixes this and some other minor issues and cleanup the code. -- assignee

[issue17114] Python IDLE GUI does not open in Ubuntu 12.04

2013-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Run IDLE from command line and you will see: configparser.DuplicateOptionError: While reading from .../.idlerc/config-highlight.cfg [line 29]: option 'cursor-foreground' in section 'Rajesh_Python_Settings' already exists Your configuration is wrong. Just

[issue17114] Python IDLE GUI does not open in Ubuntu 12.04

2013-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ConfigParser is more strong by default since 3.2. Here is a simple patch which made IDLE more tolerant for such kind of user errors. -- assignee: - serhiy.storchaka keywords: +patch stage: needs patch - patch review Added file: http

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not have possibility and desires blind-repair a test on alien platform, so just temporarily disable a new test in Lib/ctypes/test/test_returnfuncptrs.py on Windows. If someone has a desire to fix it fell free to do this. I do not close this issue

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-02-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: serhiy.storchaka - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083

[issue16903] subprocess.Popen.communicate with universal_newlines=True doesn't accept strings on 3.2

2013-02-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16903

[issue17077] Fix test_tools hangs

2013-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed changeset 4be538a058a8. Thank you for the patch. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue2175] Expat sax parser silently ignores the InputSource protocol

2013-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch, which made xml.sax.xmlreader and related utilities to support character stream. A lot of new tests added (including Yitz Gale's tests from issue1483). Some old tests fixed (they were used text stream as byte stream, this doesn't work

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 'Mon Jan 1 -01:00:00 2011\n' This is obviously wrong because trailing '\n' was not dropped. The issue is not about what is more wrong. The issue is about Python crash. At least we should add a warning in the documentation that incorrect data may crash

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A new patch uses asctime_s() on Windows (this crash was observed only on Windows). This should prevent a crash. In additional it drops '\n' from a result even if the result is longer than usually (this happened on Linux when an invalid time is used

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28958/asctime_s.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16137

[issue12983] byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12983 ___ ___ Python-bugs-list mailing list Unsubscribe

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I missed existing test_tcl. Patches updated, now they add new tests into test_tcl. -- Added file: http://bugs.python.org/file28959/tkinter_test_passing_values_2.patch Added file: http://bugs.python.org/file28960/tkinter_test_passing_values-2.7_2

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28946/tkinter_test_passing_values.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17118

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28946/tkinter_test_passing_values.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17118

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28947/tkinter_test_passing_values-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17118

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28959/tkinter_test_passing_values_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17118

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28960/tkinter_test_passing_values-2.7_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17118

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28961/tkinter_test_passing_values_2.patch Added file: http://bugs.python.org/file28962/tkinter_test_passing_values-2.7_2.patch ___ Python tracker rep...@bugs.python.org

[issue17043] Invalid read in test_codecs

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17043 ___ ___ Python-bugs-list mailing list Unsubscribe

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Senthil, Antoine, anyone, what you think about this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16723

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for comments, Victor. Here is an updated patch. -- Added file: http://bugs.python.org/file28963/asctime_s_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16137

[issue10557] Malformed error message from float()

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10557 ___ ___ Python-bugs

[issue17073] Integer overflow in sqlite module

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are tests for some bugs. -- assignee: - serhiy.storchaka Added file: http://bugs.python.org/file28965/sqlite_int_overflow_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue16203] Proposal: add re.fullmatch() method

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I did not analyze the patch deeply, only left on Rietveld comments on first sight. Need to update the documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16203

[issue14263] switch_index_if_fails fails on py2

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should it be closed? -- nosy: +serhiy.storchaka status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263

[issue12177] re.match raises MemoryError

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue9669. -- nosy: +serhiy.storchaka resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - regexp: zero-width matches in MIN_UNTIL ___ Python

[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In general it looks good to me. But we can get rid of Python file and use only os.open/os.write/os.close. Here is an updated patch which carefully close a file descriptor and remove a file even if write or close failed. Amir Szekely, can you please submit

[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In general it looks good to me. But we can get rid of Python file and use only os.open/os.write/os.close. Here is an updated patch which carefully close a file descriptor and remove a file even if write or close failed. Amir Szekely, can you please submit

[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- Removed message: http://bugs.python.org/msg181470 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16800

[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2013-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28967/fix_tempfile_leaving_files_behind_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16800

[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here are patches for 2.7 and 3.2 (there are some peculiarities, i.e. in exception handling). -- Added file: http://bugs.python.org/file28968/fix_tempfile_leaving_files_behind_2-2.7.patch Added file: http://bugs.python.org/file28969

[issue2840] Expat parser locks XML source file if ContentHandler raises an exception

2013-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue15388. Parser doesn't close an input source's stream if an exception raised. -- nosy: +serhiy.storchaka resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - SAX parse (ExpatParser

[issue17122] Fix and cleanup test_functools

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17122

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16723

[issue13541] HTTPResponse (urllib) has no attribute read1 needed for TextIOWrapper

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue12591 added support of raw streams without read1() in io.TextIOWrapper(). -- nosy: +serhiy.storchaka resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should this issue be closed? -- nosy: +serhiy.storchaka status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8194

[issue11311] StringIO.readline(0) returns incorrect results

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +IO keywords: +easy nosy: +serhiy.storchaka stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11311

[issue6532] thread.get_ident() should return unsigned value

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6532

[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308

[issue12596] cPickle - stored data differ for same dictionary

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12596

[issue13355] random.triangular error when low = high=mode

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355

[issue17141] random.vonmisesvariate() hangs for large kappa

2013-02-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: random.vonmisesvariate(0, 1e16) hangs. -- components: Library (Lib) messages: 181511 nosy: rhettinger, serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: random.vonmisesvariate() hangs for large kappa type

[issue13355] random.triangular error when low = high=mode

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list

[issue13355] random.triangular error when low = high=mode

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355

[issue14012] Misc tarfile fixes

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch is desynchronized from current sources. -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14012

[issue13234] os.listdir breaks with literal paths

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I added minor comments in Rietveld. Santoso Wijaya, can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib/ -- nosy: +serhiy.storchaka versions: +Python 3.4

[issue11311] StringIO.readline(0) returns incorrect results

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a very simple patch. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file28974/StringIO_readline0.patch ___ Python tracker rep...@bugs.python.org http

[issue13355] random.triangular error when low = high=mode

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now it is here. -- Added file: http://bugs.python.org/file28975/random_triangular.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355

[issue6532] thread.get_ident() should return unsigned value

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch, which made all thread id to be unsigned. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file28976/thread_id_unsigned.patch ___ Python tracker rep

[issue13355] random.triangular error when low = high=mode

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: One minor comment: I'd prefer it if the second test were elif low == high:, since that more obviously guards against the division by zero. It is written deliberately. What if low == high != mode? -- ___ Python

[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 3.x which adds checks for size overflow (only on 64-bit platform). -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file28977/marshal_overflow.patch

[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch for 2.7. -- Added file: http://bugs.python.org/file28978/marshal_overflow-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308

[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: (And as a matter of principle, INT_MAX isn't really right here: an int might be only 16 bits long on  some strange platforms...). AFAIK Python doesn't support such platforms (and C standard requites at least 32-bit ints). However there are strange

[issue10355] SpooledTemporaryFile's name property is broken

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which implements properties for which it has a sense and remove if there is no sense. -- assignee: - serhiy.storchaka components: +Library (Lib) keywords: +patch nosy: +ncoghlan, serhiy.storchaka stage: needs patch - patch review

[issue10355] SpooledTemporaryFile's name property is broken

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28981/SpooledTemporaryFile_properties-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10355

[issue13355] random.triangular error when low = high=mode

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An exception is better than a garbage result. But I agree, triangular() currently is not protectet against a situation when mode is not in low--high range. -- ___ Python tracker rep...@bugs.python.org http

[issue11714] threading.Semaphore does not use try...finally

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. 3.x patch a little desynchronized but it is easy to update it. I'll commit it if Antoine have no objections. Thomas Rachel, can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib

[issue11763] assertEqual memory issues with large text inputs

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I left comments on Rietveld. Tests needed. -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11763

[issue11640] Shelve references globals in its __del__ method

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11640 ___ ___ Python-bugs

[issue17147] BytesIO should be mentioned in SpooledTemporaryFile documentation

2013-02-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently only StringIO is mentioned (which was inherited from Python 2). -- assignee: docs@python components: Documentation, Library (Lib) files: SpooledTemporaryFile_document_BytesIO.patch keywords: patch messages: 181563 nosy: docs@python

[issue1423] wave sunau aifc 16bit errors

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file18919/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1423

[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps you could add a bigmem test for this? (assuming you have enough memory somewhere to test it) I think this is possible. I now have some experience in the writing of bigmem tests. ;) -- ___ Python

[issue16203] Proposal: add re.fullmatch() method

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't comment right now, but I am going inspect thoroughly re internals. This is a new feature and we have enough time before 3.4 freeze. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, that's not true: see Annex E of the standard, where the minimum for INT_MAX is declared to be 32767. My fault. Do I have to support such a case in the code? -- ___ Python tracker rep...@bugs.python.org http

[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps we should change signatures of w_string() and r_string() -- replace int by at least long. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308

[issue17149] random.vonmisesvariate() returns a value only on the half-circle

2013-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list

[issue17149] random.vonmisesvariate() returns a value only on the half-circle

2013-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: random.vonmisesvariate(mu, kappa) returns a value in the range (mu%2pi)-pi/2 to (mu%2pi)+pi/2 for kappa 1e-6. For kappa = 1e-6 it returns an uniform random value over the range 0 to 2*pi. -- components: Library (Lib) messages: 181588 nosy

[issue17141] random.vonmisesvariate() hangs for large kappa

2013-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an implementation which is more precise for small and large kappa, doesn't hang for large kappa, and even a little faster. It is mathematically totally equivalent to existing, but use more accurate calculations. -- keywords: +patch Added

[issue17141] random.vonmisesvariate() hangs for large kappa

2013-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17141

[issue12596] cPickle - stored data differ for same dictionary

2013-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is surprising that the pickled representation of 1-element dict varies from run to run. -- components: +Extension Modules -None ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12596

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are 6 different ways to get a function (see comment around PyCFuncPtr_new() in Modules/_ctypes/_ctypes.c). The other tests just use other ways. I'm more carefully read ctype code and found my mistake. Need to import my_strchr, and not strchr

[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe lru_cache() should have a key argument so you can specify a specialized key function. It would be interesting to look at the microbenchmarking results. -- ___ Python tracker rep...@bugs.python.org http

[issue12596] cPickle - stored data differ for same dictionary

2013-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is most probable that the difference is caused by the string interning. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12596

[issue17047] Fix double double words words

2013-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Terry, do you want to provide a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17047 ___ ___ Python

[issue17114] Python IDLE GUI does not open in Ubuntu 12.04

2013-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just wait a few weeks to release of 3.2.4 and it's appearance in your distribution. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17114

[issue17114] Python IDLE GUI does not open in Ubuntu 12.04

2013-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17114

[issue17118] Add tests for testing Python-Tcl interaction

2013-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17118

[issue17073] Integer overflow in sqlite module

2013-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17073

[issue16564] email.generator.BytesGenerator fails with bytes payload

2013-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: import io, email bytesdata = b'\xfa\xfb\xfc\xfd\xfe\xff' msg = email.mime.application.MIMEApplication(bytesdata, _encoder=encoders.encode_7or8bit) s = io.BytesIO() g = email.generator.BytesGenerator(s) g.flatten(msg) Traceback (most recent call last

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28992/pygettext.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156

[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I was wrong. I missed that z is in range -1..1. Original report is invalid, random.vonmisesvariate() always returns a value on the full circle. However there is some inconsistency. For small kappa (= 1e-6) result range is 0 to 2pi, for other kappa

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 3.x, which correctly detects input file encoding and correctly escapes non-ascii output files if -E specified (and only if it specified). For 2.7 we should just negate an argument for make_escapes. -- components: +Unicode nosy

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 2.7. pygettext doesn't try to detect input encoding and transparently works with bytes, but it no longer escapes non-ascii bytes if -E is not specified. -- versions: +Python 2.7 Added file: http://bugs.python.org/file29002

[issue17047] Fix double double words words

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I cannot find python-gdb.py. This is a copy of Tools/gdb/libpython.py. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17047

[issue16686] audioop overflow issues

2013-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I fixed yet one bug in avgpp() and remove my XXX comment. *All* audioop functions are unsafe regarding unaligned access. I'll open a new issue for this. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue16686] audioop overflow issues

2013-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: *All* audioop functions are unsafe regarding unaligned access. Actually this is not true because currently audioop functions work only with bytes (and str, see issue16685) and not with arbitrary memoryview

[issue17147] BytesIO should be mentioned in SpooledTemporaryFile documentation

2013-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for corrections Éric. -- assignee: docs@python - serhiy.storchaka resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Default encoding on Python 3 is UTF-8. You should declare your encoding at the top of file if it differs from UTF-8 or ASCII (i.e. # -*- coding: euc-jp -*-). Otherwise Python will reject your file (for Shift_JIS and EUC-JP) or produce incorrect result

<    4   5   6   7   8   9   10   11   12   13   >