Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:
I suceeded to reproduce this issue with coLinux + UltraVNC on Win2000.
Yes, py3k claimed utf-8 error, so I tried trunk. Here is result.
*** event.keycode: 8
*** event.state: 0
*** event.char: ''
*** event.keycode: 16
*** event.state:
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:
I did little modification to tkintertest.py. Please use this line.
my_print(*** event.char: , repr(event.char))
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1028
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Yes, it's better to simply call str() on the exception. I was confused
by the fact that UnicodeError is a simple exception, with a single
message, unlike UnicodeDecodeError which has more attributes.
About the patch:
- The test does not
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
I have studied this some time ago. The xx module comes each time from a
different file (in a directory created with tempfile.mkdtemp).
Every instance of the module creates a new entry in the static
extensions dictionary in
Mark Dickinson [EMAIL PROTECTED] added the comment:
Looks good. Thanks, Raymond.
Minor typos: numberic - numeric
the expression ``x in y`` equivalent to -
the expression ``x in y`` is equivalent to
___
Python tracker [EMAIL PROTECTED]
New submission from Erick Tryzelaar [EMAIL PROTECTED]:
I'm running into a similar problem as Jean-Paul in:
http://bugs.python.org/issue4223
But the patch in it doesn't work for me. My issue is also with files
compiled already with python3.0, but then being accessed from a
different location
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
The refleak in test_pickle comes from unpickler_read(). The attached
patch corrects it.
Added file: http://bugs.python.org/file12090/pickle-leak2.patch
___
Python tracker [EMAIL PROTECTED]
New submission from Aaron Brady [EMAIL PROTECTED]:
Nested 'BigEndianStructure' fails in 2.5 and 2.6.:
TypeError: This type does not support other endian
Example and traceback in attached file.
--
assignee: theller
components: ctypes
files: ng36.py
messages: 76171
nosy: castironpi,
Guilherme Polo [EMAIL PROTECTED] added the comment:
You are missing the point on using Tcl_CreateObjCommand, I didn't mean
to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because
if you are going to convert everything to unicode then there is no point
in using
Kristján Valur Jónsson [EMAIL PROTECTED] added the comment:
Just a thought here:
Maybe it would be better just to change socket._fileobject to always
use a minimum of 8k readbuffer for readline() just as read() already
does. The read() documentation states that recv(1) is very
inefficient,
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
The problem is that on Windows (and cygwin) you cannot unlink a .pyd
that is currently loaded in memory.
I tried to use ctypes and call FreeLibrary. Now the .pyd can be removed,
but the interpreter crashes when it comes to free the
Christian Heimes [EMAIL PROTECTED] added the comment:
Good analysis Amaury! The new patch for build ext uses a single temp dir.
--
nosy: +loewis
Added file: http://bugs.python.org/file12092/issue4373_build_ext2.patch
___
Python tracker [EMAIL
Stephan Raue [EMAIL PROTECTED] added the comment:
when i crosscompile Python 2.6 with Patch cross-2.6-0.7.diff which is
based on cross-2.5.1.patch i become follow error:
ld -s -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes -I. -IInclude -I./Include
Changes by Hirokazu Yamamoto [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file12089/adhok.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1028
___
Guilherme Polo [EMAIL PROTECTED] added the comment:
I'm sorry if it sounded like I were bashing you, I was just pointing out
my view of the patch -- you didn't need to remove it. The patch I
submitted here can also be improved (although it works), but I'm
leaving it as a possible idea for
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:
You are missing the point on using Tcl_CreateObjCommand, I didn't mean
to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because
if you are going to convert everything to unicode then there is no
point in using
Guilherme Polo [EMAIL PROTECTED] added the comment:
Hirokazu Yamamoto added the comment:
You are missing the point on using Tcl_CreateObjCommand, I didn't mean
to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because
if you are going to convert everything to unicode then there
STINNER Victor [EMAIL PROTECTED] added the comment:
Duplicate issue: see #4372. Anyway, an you write a patch?
--
nosy: +haypo
resolution: - duplicate
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4372
Changes by STINNER Victor [EMAIL PROTECTED]:
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4372
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor [EMAIL PROTECTED] added the comment:
The application is a web service with postgresql backend, so it
heavily uses pyexpat and pygresql in a threaded environment.
pyexpat or pygresql is maybe not thread safe. To catch such error, you
have to use Valgrind. And to use Valgrind,
Changes by Barry A. Warsaw [EMAIL PROTECTED]:
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3741
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Barry A. Warsaw [EMAIL PROTECTED]:
--
priority: deferred blocker - release blocker
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3799
___
Changes by Barry A. Warsaw [EMAIL PROTECTED]:
--
priority: deferred blocker - release blocker
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4373
___
Changes by Barry A. Warsaw [EMAIL PROTECTED]:
--
priority: deferred blocker - release blocker
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2306
___
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
Deferring until 3.0 final is out.
--
nosy: +barry
priority: release blocker - deferred blocker
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4303
Changes by Skip Montanaro [EMAIL PROTECTED]:
--
nosy: +skip.montanaro
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2306
___
___
Python-bugs-list
Skip Montanaro [EMAIL PROTECTED] added the comment:
damn... my cc to [EMAIL PROTECTED] didn't work. Here's the recap
(message to python-checkins):
me ... I thought Guido was of the opinion that the 3.0 version
should
me be able to read dumb dbms written by earlier Python versions
Changes by Skip Montanaro [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file12096/mydb3read.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3799
___
Guido van Rossum [EMAIL PROTECTED] added the comment:
I think the ability to read old files is essential. The ability to
write them is a mer nice-to-have.
On Fri, Nov 21, 2008 at 7:36 AM, [EMAIL PROTECTED] wrote:
me ... I thought Guido was of the opinion that the 3.0 version should
me
Guido van Rossum [EMAIL PROTECTED] added the comment:
Reading old dumbdbm files is essential. Writing them is not.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3799
___
New submission from David W. Lambert [EMAIL PROTECTED]:
http://docs.python.org/dev/3.0/howto/functional.html
Gone:
itertools.ifilter
itertools.imap
itertools.izip
changed:
itertools.ifilterfalse -- itertools.filterfalse
strange?
functools.reduce is described, but not with
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
This is already corrected by r66922 (issue3391), but the patches are
different and there are some things I don't like in the present
implementation:
- in idle_showwarning, the file argument is ignored and always
replaced by
Andrew Inglis [EMAIL PROTECTED] added the comment:
Are there any updates for this issue? I am having the same problem, or,
lack of feature, with SequenceMatcher. Gabriel, Differ doesn't seem to
have the functionality, or an easy way to patch it to get the
functionality, that Christian is talking
New submission from Kevin Watters [EMAIL PROTECTED]:
After releasing a Py_DEBUG build to some users who were experiencing
problems, I noticed a pattern in some of the crash reports I got back:
msvcr90d!_wassert+0xb64
python25_d!FILE_TIME_to_time_t_nsec+0xac
Akira Kitada [EMAIL PROTECTED] added the comment:
Yes, that change was not merged into 2.5 branch.
I Hope it's not yet been too late for 2.5.3.
I confirmed this fixes the problem on FreeBSD 4.11.
___
Python tracker [EMAIL PROTECTED]
Brett Cannon [EMAIL PROTECTED] added the comment:
So the use of pickle is not fair as that doesn't round-trip if you
simply write out a file because py3k pickle doesn't like classic classes
and the new-style classes want copy_reg which is not in existence in
py3k since it was renamed. See
Changes by Brett Cannon [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file12099/mydb2write.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3799
___
Changes by Brett Cannon [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file12100/mydb3read.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3799
___
___
Changes by Brett Cannon [EMAIL PROTECTED]:
--
resolution: accepted -
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3799
___
___
Python-bugs-list
Skip Montanaro [EMAIL PROTECTED] added the comment:
Brett In other words I think my solution works and pickle is the
Brett trouble-maker in all of this.
I can buy that. Should pickle map copy_reg to copyreg? Is that the
only incompatibility?
Actually, it seems this ticket should be
Brett Cannon [EMAIL PROTECTED] added the comment:
On Fri, Nov 21, 2008 at 10:32, Skip Montanaro [EMAIL PROTECTED] wrote:
Skip Montanaro [EMAIL PROTECTED] added the comment:
Brett In other words I think my solution works and pickle is the
Brett trouble-maker in all of this.
I can buy
Skip Montanaro [EMAIL PROTECTED] added the comment:
One doc nit: There is still reference to ``gdbm`` and Dbm (or dbm) objects
when they should probably use ``dbm.gnu`` and ``dbm.ndbm``, respectively.
I'm confused by the encoding=Latin-1 args to _io.open for dbm.dumb. I
thought the default
Changes by STINNER Victor [EMAIL PROTECTED]:
--
nosy: -haypo
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3799
___
___
Python-bugs-list mailing list
Brett Cannon [EMAIL PROTECTED] added the comment:
On Fri, Nov 21, 2008 at 11:01, Skip Montanaro [EMAIL PROTECTED] wrote:
Skip Montanaro [EMAIL PROTECTED] added the comment:
One doc nit: There is still reference to ``gdbm`` and Dbm (or dbm) objects
when they should probably use ``dbm.gnu``
New submission from Kevin Fitch [EMAIL PROTECTED]:
from functools import partial
from copy import deepcopy
p = partial(Hello world.replace, world)
p(mom)
p2 = deepcopy(p)
The output I get is:
Hello mom
Followed by:
type 'exceptions.TypeError' Traceback (most recent call last)
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
You almost gave the answer in your question - the FILE_TIME is about to be
converted to a time_t greater than 2**31.
in posixmodule.c::FILE_TIME_to_time_t_nsec(), a comment says:
/* XXX Win32 supports time stamps past 2038; we currently
New submission from Kevin Fitch [EMAIL PROTECTED]:
codeText =
class foo(object): pass
class bar(object):
baz = foo()
def doExec(text):
exec text
### This works:
# Although if I do this before the doExec below, then the
# doExec doesn't fail.
# exec codeText
### But this does not:
Miki Tebeka [EMAIL PROTECTED] added the comment:
I agree you can get around this with defining __cmp__, however same goes
to sort and it was added anyway.
My take on it is that sometimes I need to find something in a big list
of objects, and I don't like to do DSU and not add __cmp__ to the
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
The attached patch corrects the problem: since VS2008 time_t is a 64bit
integer; now os.stat() can return times after 2038 on Windows.
This prevents the crash, but the functionality is far from complete:
os.utime() at least should
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
I agree that it is confusing; in short: a bare exec() does not play well with
closures;
This is a consequence of the python execution model, and is unlikely to change.
Here, the class 'foo' is stored in the function's local variables.
Benjamin Peterson [EMAIL PROTECTED] added the comment:
This new patch address review issues.
Added file: http://bugs.python.org/file12102/use_PyObject_Str_and_test3.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4367
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Fixed in r63718 (trunk) and r63719 (2.6)
Thanks for the report!
--
nosy: +amaury.forgeotdarc
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
New submission from Martina Oefelein [EMAIL PROTECTED]:
test_dbm_dumb fails due to what appears to be a character encoding issue
on Mac OS X:
Majestix:Python-3.0rc3 martina$
DYLD_FRAMEWORK_PATH=/Users/martina/Downloads/Python-3.0rc3: ./python.exe
-E -bb ./Lib/test/regrtest.py -l
Martina Oefelein [EMAIL PROTECTED] added the comment:
Example of verbose output (other testcases are similar):
==
ERROR: test_dumbdbm_creation (test.test_dbm_dumb.DumbDBMTestCase)
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
nosy: +brett.cannon
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4382
___
___
Python-bugs-list
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Everything looks good.
(20 lines of a complex test for two simple lines of code that nobody
will ever run... unit tests is a religion)
--
keywords: -needs review
resolution: - accepted
___
Benjamin Peterson [EMAIL PROTECTED] added the comment:
On Fri, Nov 21, 2008 at 4:21 PM, Amaury Forgeot d'Arc
[EMAIL PROTECTED] wrote:
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Everything looks good.
Thanks for the review. Fixed in r67320.
(20 lines of a complex test for
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
resolution: accepted - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4367
___
Martina Oefelein [EMAIL PROTECTED] added the comment:
The Mac Roman encoding comes into play, because _commit opens _dirfile
without explicitly specifying an encoding. io.open then gets the
encoding via locale.getpreferredencoding, which returns mac-roman:
Majestix:Python-3.0rc3 martina$
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]:
When IDLE cannot connect to its subprocess, it tries to display the
socket.error. But since python 3.0 the exception variable is cleared
after the except: block and unavailable for the displaying code.
Exception in thread SockThread:
Brett Cannon [EMAIL PROTECTED] added the comment:
Issue 3799 already has a patch that specifies the encoding upon opening
the file so this should be fixed by final. Can you test the patch
(specify_open_encoding.diff) and let me know if that solves your
problem, Martina?
--
dependencies:
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
The patch is good and does simplify things: the py3k conversion to
unicode may have some advantages sometimes!
I suggest to also remove the remaining two occurrences of
frameEncoding in configDialog.py. This will suppress the extra
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Looks good.
--
nosy: +benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4383
___
Terry J. Reedy [EMAIL PROTECTED] added the comment:
| but then it works with:
| b'f' in 'foo'
| True
Not True in 3.0rc3. Same message as you quoted:
'in string' requires string as left operand, not bytes
bytes + string fails too
--
nosy: +tjreedy
STINNER Victor [EMAIL PROTECTED] added the comment:
It's not a bug. base64 is a codec to encode *bytes* and characters.
You have to encode your unicode string to bytes using a charset
Example (utf-8):
from base64 import b64encode, b64decode
b64encode(u'a\xe9'.encode(utf-8))
'YcOp'
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Thanks for the fast review, fixed in r67323
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4383
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
priority: - normal
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4380
___
___
Python-bugs-list
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
assignee: - alexandre.vassalotti
nosy: +alexandre.vassalotti
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4374
___
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
The test could be skipped for the pure-python version of pickle: after
all, it just tests that the interpreter does not segfault...
A simpler change is to change the expected exception into Exception.
--
nosy:
New submission from Brett Cannon [EMAIL PROTECTED]:
It would be nice if the logging package provided a replacement for
warnings.showwarning() so that all warning redirect to the logging package.
--
components: Library (Lib)
keywords: easy
messages: 76221
nosy: brett.cannon
priority:
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Thanks for the suggestions. Done in r67324 and r67311.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4371
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
assignee: - vsajip
nosy: +vsajip
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4384
___
___
Terry J. Reedy [EMAIL PROTECTED] added the comment:
This module provides data encoding and decoding as specified in RFC
3548. This standard defines the Base16, Base32, and Base64 algorithms
for encoding and decoding arbitrary binary strings into text strings
that can be safely sent by email,
Changes by Terry J. Reedy [EMAIL PROTECTED]:
--
resolution: fixed - invalid
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4329
___
___
Python-bugs-list
New submission from Nick Coghlan [EMAIL PROTECTED]:
The memory layout of PyType object's changes in Py3k from the
*compiler's* point of view. This means PyObject_HEAD_INIT can no longer
be used to initialise PyVarObject type definitions.
However, the documentation doesn't point this out (or
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]:
The changes following r67300 introduced the .mode and .name attributes on all
the file-like objects returned by the open() function.
This also changed the mode returned by a file opened in binary mode: it was
rb, now it is r. The
New submission from Terry J. Reedy [EMAIL PROTECTED]:
Binascii b2a_xxx functions accept 'binary data' and return ascii-encoded
bytes. The corresponding a2b_xxx functions turn the ascii-encoded bytes
back to 'binary data' (bytes). If the binary data is bytes, these
should be inverses of each
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Amaury, thanks for getting the tests to pass. Applied in r67325.
--
resolution: - accepted
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4386
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
I think the best way to fix this is to add sanity checks similar to the
ones in _pickle. The checks are obviously useless in pickle.py, but I
think it is simpler than to try to skip tests, and it gives a nicer
error message to people who
Terry J. Reedy [EMAIL PROTECTED] added the comment:
Dict views and range objects are *iterables* because they are based on
reusable information. Map, filter, and similar objects are *iterators*
because they are based on iterables that could be once-through
iterators. The built-in function
Terry J. Reedy [EMAIL PROTECTED] added the comment:
Just a reminder that __cmp__ is gone in 3.0.
I presume bisect, like sort, only requires __lt__ and perhaps __eq__,
though I can find no doc of either.
--
nosy: +tjreedy
___
Python tracker [EMAIL
Terry J. Reedy [EMAIL PROTECTED] added the comment:
In rc3 also: The problem is partial update:
DESCRIPTION
Public module variables:
whitespace -- a string containing all characters considered whitespace
lowercase -- a string containing all characters considered lowercase
82 matches
Mail list logo