Terry J. Reedy tjre...@udel.edu added the comment:
Neither the title nor your two posts identify the module you think needs
to be changed. Changing the title to include that might better get
attention from someone who is familiar with that module and could deal
with the request.
--
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar:
The mimetypes module has a built-in default database, and, in addition,
reads mime.types files from a list of standard places (/etc/mime.types
by example)
On Windows, those files usually don't even present; MIME information is
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the patch, Victor!
Looks pretty good at first glance, except that it seems that the UTF-32 to
UTF-16 translation is skipped if HAVE_USABLE_WCHAR_T is defined. Is that
deliberate?
A test would be good, too.
Changes by Martin v. Löwis mar...@v.loewis.de:
--
versions: -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4969
___
___
New submission from Mark Dickinson dicki...@gmail.com:
The x86 gentoo 3.0 and 3.x buildbots have been failing for a while at the test
stage, with:
make: *** [buildbottest] Unknown signal 32
program finished with exit code 2
I noticed a common denominator with these failures, which is that
Mark Dickinson dicki...@gmail.com added the comment:
Another observation is that after test_os has been run, the first test to
actually cause the 'unknown signal' failure always seems to be one that
involves threads (e.g., test_wait3, or test_queue, or test_logging...)
Mark Dickinson dicki...@gmail.com added the comment:
...and there's a related message from Neal Norwitz at:
http://mail.python.org/pipermail/python-3000/2007-August/009944.html
I suspect that
python Lib/test/regrtest.py test_os test_wait3
(possibly with some additional flags to regrtest.py)
STINNER Victor victor.stin...@haypocalc.com added the comment:
Looks pretty good at first glance, except that it seems that the UTF-32 to
UTF-16 translation is skipped if HAVE_USABLE_WCHAR_T is defined. Is that
deliberate?
#ifdef HAVE_USABLE_WCHAR_T
memcpy(unicode-str, w, size *
Mark Dickinson dicki...@gmail.com added the comment:
I understand this code as: sizeof(wchar_t) == sizeof(Py_UNICODE). If I
misunderstood the code, it's a a heap overflow :-)
Yep, sorry. You're right.
A test would be good, too.
PyUnicode_FromWideChar() is not a public API. Should I write
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I was to suggest to use the PATHEXT variable instead of a hardcoded list of
extensions,
but does all this work at all?
For example, I added a opera.bat in my current directory.
a browser named 'opera' was registered, but it did not
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Here is an updated version (zip-64k-3.patch).
Now the condition for writing a ZIP64 end-of-archive depends on the
size of all three values.
Added file: http://bugs.python.org/file12775/zip-64k-3.patch
Martin v. Löwis mar...@v.loewis.de added the comment:
Looks fine to me. Please apply.
--
keywords: -needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3997
___
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4967
___
Marc-Andre Lemburg m...@egenix.com added the comment:
On 2009-01-17 14:00, STINNER Victor wrote:
A test would be good, too.
PyUnicode_FromWideChar() is not a public API. Should I write a function in
_testcapi?
It is a public C API. Regardless of this aspect, we should always
add tests for
Marc-Andre Lemburg m...@egenix.com added the comment:
On 2009-01-17 14:00, STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Looks pretty good at first glance, except that it seems that the UTF-32 to
UTF-16 translation is skipped if HAVE_USABLE_WCHAR_T is
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
Hi Luke,
Initially I start build in cross environment. Later I setup a posix
environment, based on msys and in the last patch is commented which
module has to be build-in for native build.
I'm not surprised that you succeed to build in
Changes by Jean-Paul Calderone exar...@divmod.com:
--
title: inconsistent, perhaps incorrect, behavior with respect to entities
parsed by xml.sax - xml.sax.expatreader.ExpatParser incorrectly silently skips
external character entities in attribute values
New submission from Matthew Barnett pyt...@mrabarnett.plus.com:
I've found that the following 4 Unicode characters/codepoints don't
behave as I'd expect: Dž (U+01C5), Lj (U+01C8), Nj (U+01CB), Dz (U+01F2).
For example, u'\u01C5'.istitle() returns True and
unicodedata.category(u'\u01C5') returns
STINNER Victor victor.stin...@haypocalc.com added the comment:
Updated patch including a test in _testcapi module: create two
PyUnicode objects from wide string (PyUnicode_FromWideChar) and
another from utf-8 (PyUnicode_FromString) and compare the value. Patch
is still for py3k branch and can
Changes by Martin v. Löwis mar...@v.loewis.de:
--
versions: -Python 2.4, Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4971
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
I run my test on py3k on Linux with 32 bits wchar_t:
- 16 bits Py_UNICODE: test is failing without
PyUnicode_FromWideChar() patch
- 32 bits Py_UNICODE: test pass without the patch, so the issue only
impact 16 bits Py_UNICODE
Can
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file:
http://bugs.python.org/file12773/unicode_fromwidechar_surrogate.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4474
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
(with the full patch, all tests pass with 16 or 32 bits Py_UNICODE)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4474
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Committed r68665.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4930
___
New submission from Tarek Ziadé ziade.ta...@gmail.com:
In a program, I naturally wrote:
from ftplib import FTP
with FTP('ftp.somewhere.com') as ftp:
... ftp.login('someone', 'pass')
... ...
Until I realized this class is not equipped with __enter__ and __exit__,
I
Zlm zemari...@gmail.com added the comment:
Hi. I have the same problem, but i'm running Pyhton 2.6.1. I'm using
Windows Vista 32bit SP1.
I installed Python to C:\Program Files\Python\2.6\ and when I try to run
idle from the start menu, it doesn't work.
When I try to run it from the command
Luke Kenneth Casson Leighton l...@lkcl.net added the comment:
roumen, hi,
can you add:
BASECFLAGS=-mthreads $BASECFLAGS
LDFLAGS=-mthreads $LDFLAGS
when compiling with threads, and... a second request: _block_ people
from compiling without mthreads, because there's a bug in wine's
Martin v. Löwis mar...@v.loewis.de added the comment:
I do think this is a bug in the Unicode database. The current approach
(of falling back to uppercase if there is no title case in the Unicode
database) goes back to r17708. However, even the prior version only
contained explicitly the cases
New submission from Michael Newman michael.b.new...@gmail.com:
formatyearpage is returning bytes, not str
Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit
(Intel)] on win
32
Type help, copyright, credits or license for more information.
import calendar
Mark Dickinson dicki...@gmail.com added the comment:
Thanks again for reviewing, Benjamin. nb_long renamed in r68651, merged
to 3.0 (along with a few other long-int cleanups) in r68666.
There seems to be a consensus on deprecating PyNumber_Int. I'll leave
this open until that's taken care
Martin v. Löwis mar...@v.loewis.de added the comment:
zlm, did you chose to install Tcl/Tk when installing Python?
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3881
___
Zlm zemari...@gmail.com added the comment:
Yes, I did.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3881
___
___
Python-bugs-list mailing list
Martin v. Löwis mar...@v.loewis.de added the comment:
Yes, I did.
So do you have a file C:\Programas\Python\2.6\tcl\tcl8.5\init.tcl ?
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3881
___
Zlm zemari...@gmail.com added the comment:
So do you have a file C:\Programas\Python\2.6\tcl\tcl8.5\init.tcl ?
Yes, I have.
Could this problem be related to paths with slashes and backslashes? In
the error log, the first path (the right one) has backslashes, but the
others have slashes.
Martin v. Löwis mar...@v.loewis.de added the comment:
Could this problem be related to paths with slashes and backslashes?
Unlikely. The exact same package works on many other machines, so there
must be something strange with your machine.
Can you run the Sysinternals filemon to find out what
Luke Kenneth Casson Leighton l...@lkcl.net added the comment:
roumen, hi,
can you add:
BASECFLAGS=-mthreads $BASECFLAGS
LDFLAGS=-mthreads $LDFLAGS
when compiling with threads, and... a second request: _block_ people
from compiling without mthreads, because there's a bug in wine's
Jacob jacobe...@gmail.com added the comment:
I don't think it's just his machine (and mine), but i don't think so.
Unfortunealy, i don't have a Windows Vista key ready, else i'd have
testet it on a clean install, but i'll try to install the same package
on the next computer with Vista i stumple
Zlm zemari...@gmail.com added the comment:
Can you run the Sysinternals filemon to find out what files it is
accessing?
I tried Sysinternals ProcessMonitor (equivalent of filemon to Windows
Vista), but the simple act of trying to open IDLE produces thousands of
entries to the log window.
I
Ned Deily n...@acm.org added the comment:
As a workaround, you can copy the missing file from a 2.5 (or earlier)
Python and edit it, if necessary.
sudo
cd /Library/Frameworks/Python.framework/Versions/
cp -p 2.5/Resources/version.plist 2.6/Resources/
Or look at the one in the Apple-supplied
Martin v. Löwis mar...@v.loewis.de added the comment:
I think this situation can be easily
reproduced by installing Pyhton to other than the default path on
Windows Vista.
I could not reproduce it that way. I just installed Python 2.6.1 into
c:\tmp\python26, on Vista SP1 x64 (although I
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
committed with r68667.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4077
___
Jacob jacobe...@gmail.com added the comment:
Okay, i'll try to find a key for Vista in all my drawers, and install a
clean version, try it, and then i'll tell you the result.
I just can't see what could produce the error at our computers.
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch. I'm not sure if I'm missing something here, since it
looks trivial.
--
keywords: +patch
nosy: +pitrou
Added file: http://bugs.python.org/file12777/issue4838.patch
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
Looks fine, please apply.
--
assignee: - pitrou
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4838
___
New submission from Mitchell Model m...@acm.org:
Under Built-in Types in the Library documentation the section on Sequence
Types begins with the paragraph:
There are five sequence types: strings, byte sequences, byte arrays,
lists, tuples, and range objects. (For other containers see the
Antoine Pitrou pit...@free.fr added the comment:
Reopening, some tests have started deterministically failing:
==
ERROR: testAbsoluteArcnames (test.test_zipfile.TestZip64InSmallFiles)
New submission from Terry J. Reedy tjre...@udel.edu:
This unconverted example in the 3.1a doc needs a 'b' for 'bytes' added
before the three input and output string literals.
import base64
encoded = base64.b64encode('data to be encoded') # here
encoded
'ZGF0YSB0byBiZSBlbmNvZGVk' # here
data
New submission from Mitchell Model m...@acm.org:
A quibble about the documentation of sets in the library documentation:
the union and intersection operators are shown with ellipsis, as is the
difference operator. However, they inaccurately refer to both sets in
their documentation. They
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
Added file: http://bugs.python.org/file12779/zip64-alwaystry2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3997
___
Luke Kenneth Casson Leighton l...@lkcl.net added the comment:
workarounds for a couple of wine bugs,
also includes e.g. #4977 64-bit assumptions on 32-bit systems.
Added file: http://bugs.python.org/file12780/f
___
Python tracker rep...@bugs.python.org
Changes by Luke Kenneth Casson Leighton l...@lkcl.net:
Removed file: http://bugs.python.org/file12764/x
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4954
___
Benjamin Peterson benja...@python.org added the comment:
Finally fixed in r68676.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1225107
Mark Dickinson dicki...@gmail.com added the comment:
Here's a patch that deprecates PyNumber_Int in favour of PyNumber_Long:
- move PyNumber_Int definition from abstract.h to intobject.h (and
fix up comments at the top of intobject.h)
- mark PyNumber_Int as deprecated in the c-api docs, with
Benjamin Peterson benja...@python.org added the comment:
I think this had been addressed by PEP 3138 [1].
[1] http://www.python.org/dev/peps/pep-3138/
--
nosy: +benjamin.peterson
resolution: - out of date
status: open - closed
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Applied the zip64-alwaystry2.patch in trunk, waiting for buildbots.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3997
___
Mark Dickinson dicki...@gmail.com added the comment:
From the included patch, I assume you're talking about a failure of
test_pickle.
I'm not seeing any such failure on my (32-bit) system, and the code in
Modules/cPickle.c looks correct to me. I suspect that the problem is that
in your
Mark Dickinson dicki...@gmail.com added the comment:
You might try replacing the strtol call with a call to PyOS_strtol.
Please let us know if this works!
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4977
Changes by Martin v. Löwis mar...@v.loewis.de:
--
nosy: -loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4954
___
___
Python-bugs-list
Changes by Benjamin Peterson benja...@python.org:
--
keywords: +patch
Added file: http://bugs.python.org/file12782/unicode_kwds.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4978
___
John Machin sjmac...@users.sourceforge.net added the comment:
Martin:Considering this note, the simple titlecase of U+01C5 *is*
U+01C4: the titlecase value is omitted, hence it is the same as
uppercase, hence it is U+01C4.
Perhaps we are looking at different files; in the Unicode 5.1
New submission from Max Hailperin m...@gustavus.edu:
The documentation for random.uniform says that random.uniform(a,b)
should return a number strictly less than b, assuming ab. (The result
should be strictly less than a if ab.) Thus both of the following
expressions should always evaluate
Martin v. Löwis mar...@v.loewis.de added the comment:
Perhaps we are looking at different files;
Indeed, I was looking at the 3.2.0 database (assuming that it would be
the same in subsequent versions).
ISTM the problem is that implementing the default-to-uppercase was not
done in
Benjamin Peterson benja...@python.org added the comment:
Kristján, could you merge this change into the Py3k branch, please?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4879
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I couldn't reproduce the problem yet, using your sample.
I tried to compile on Mac OSX (Python 2.5 GCC) and Windows XP (Python
2.5 , MinGW 5.1.4 and SWIG 1.2.3) and it worked well.
The output was right, (the .o file has a space, but the
New submission from Mitchell Model m...@acm.org:
Early in the datamodel document in the Reference documentation is the
statement:
There is currently a single intrinsic mutable sequence type:
This statement is followed by the documentation of Lists and Byte Arrays.
The statement should
Benjamin Peterson benja...@python.org added the comment:
Fixed in r68707.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4981
Benjamin Peterson benja...@python.org added the comment:
Never mind, I meant r68706.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4981
___
___
New submission from William Stevenson yhvh2...@googlemail.com:
AMD64 msi install seemed to work fine when running python3.0 as admin
but fails immediately as any other user.
Command Line output:
C:\Python30python.exe
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Jesse Noller jnol...@gmail.com added the comment:
FYI, there was a small issue in the patch - namely the only way to get the
AttributeError to raise in the Value/Array creation is to not pass in a
lock, True/None or False - the latter three get to a lock/RLock while the
former will have the
Changes by Jesse Noller jnol...@gmail.com:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4449
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesse Noller jnol...@gmail.com added the comment:
FYI, there was a small issue in the patch - namely the only way to get
the
AttributeError to raise in the Value/Array creation is to not pass in a
lock, True/None - the latter two get to a lock/RLock while the
former will have the acquire
Jesse Noller jnol...@gmail.com added the comment:
Checked into trunk in r68708 - I pinged benjamin to see how we're handling
merges right now as this needs to go into py3k
--
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Mitchell Model m...@acm.org:
The first sentence under Sequence Types in the Library stdtypes document
is:
There are five sequence types: strings, byte sequences, byte arrays,
lists, tuples, and range objects
However, subsequent discussion, as well as reality, use the term
Thomas Lee t...@vector-seven.com added the comment:
Brett, any feedback on this one?
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4347
___
___
New submission from Mitchell Model m...@acm.org:
Sorry I didn't notice all the problems I've reported today about this
paragraph at one time so I could have submitted only one report. Anyway,
here's another problem with the first sentence of the Sequence Types
section of the library stdtypes
Mitchell Model m...@acm.org added the comment:
Benjamin Peterson benja...@python.org added the comment:
Fixed in r68707.
Sorry if I missed that. I checked some of the documentation problems I
reported today against an updated subversion copy of 3.0 and 3.1, but I didn't
check all. Got
Benjamin Peterson benja...@python.org added the comment:
On Sat, Jan 17, 2009 at 10:29 PM, Mitchell Model rep...@bugs.python.org wrote:
Mitchell Model m...@acm.org added the comment:
Benjamin Peterson benja...@python.org added the comment:
Fixed in r68707.
Sorry if I missed that. I
New submission from Romeo Victor Dellarocco della...@gmail.com:
Idle hangs when given the name of a nonexistent file. The idle window
briefly appears, then disappears, the process hangs and has to be
terminated.
Platform:
Linux 2.6.22-16-rt #1 SMP PREEMPT RT Mon Nov 24 21:03:25 GMT 2008 i686
Brett Cannon br...@python.org added the comment:
I will take a look when I can.
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4347
___
79 matches
Mail list logo