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
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17106
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: serhiy.storchaka -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6083
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
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
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
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
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
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
Serhiy Storchaka added the comment:
Ping.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12983
___
___
Python-bugs-list mailing list
Unsubscribe
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
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
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
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
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
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
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
Serhiy Storchaka added the comment:
Ping.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17043
___
___
Python-bugs-list mailing list
Unsubscribe
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10557
___
___
Python-bugs
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
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
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13355
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11640
___
___
Python-bugs
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
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
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
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
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17149
___
___
Python-bugs-list
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17141
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
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
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
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
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
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
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
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
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
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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17156
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
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
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
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
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
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
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
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
801 - 900 of 25750 matches
Mail list logo