[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2009-10-28 Thread Christoph Gohlke
Christoph Gohlke added the comment: Apparently the msvc9compiler_stripruntimes_regexp2 patch causes problems for MinGW users. The following C program is using the Python C API to import the testpyd extension generated by testpyd.py. When compiled with MinGW, the program fails with "ImportError:

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-28 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file15214/windows symlink draft 14.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: This patch (15) implements ntpath.samefile, which corrects the regression in test_shutil. By my tests, this corrects all regressions caused by this patch except for those in test_posixpath.py previously mentioned. I believe these failing tests are due to the f

[issue7199] Doc: Logging level order seems inconsistent

2009-10-28 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into trunk, release26-maint, py3k. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6906] Tkinter sets an unicode environment variable on win32

2009-10-28 Thread Tim Hatch
Tim Hatch added the comment: I'm running the exact same version as Gabriel (on Windows 7, 32 bit) from the python.org installer, and have the same behavior as Michał. Checking FixTk.py it appears that on Vista and above, it calls the Win32 API GetFinalPathNameByHandleW to expand symbolic links,

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Committed Adam's patch in r75928. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-28 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- dependencies: +UnicodeEncodeError - I can't even see license ___ Python tracker ___ ___ Python-bugs-l

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please just add your test case to the bottom of the trunk... -- ___ Python tracker ___ ___ Python

[issue6834] use different mechanism for pythonw on osx

2009-10-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ned: I'm planning to use the attached version of pythonw, or a slightly updated one, for 2.7 and 3.2. This version will not be used for 2.6.5 or 3.1.2 due to backward compatibility constraints. I will look into the OSX launching issues though, it was my inte

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2009-10-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with Ned that neither ~/.local nor /etc are a good fit for OSX, sadly enough I wasn't paying attention when ~/.local was added as python already had a per-user directory on OSX: ~/Library/Python. The common unix directories are often not a good pick

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2009-10-28 Thread Frank Wierzbicki
Changes by Frank Wierzbicki : -- nosy: +fwierzbicki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7169] zipfile leaves a file handle open if file is zero size

2009-10-28 Thread R. David Murray
R. David Murray added the comment: The 2.6 branch was frozen except for critical issues during the release process for 2.6.3 and then 2.6.4. Now that 2.6.4 is out, the bug fix can be backported. -- nosy: +r.david.murray ___ Python tracker

[issue6834] use different mechanism for pythonw on osx: universal builds always run 64-bit on OS X 10.6

2009-10-28 Thread Robin
Changes by Robin : -- nosy: +robince ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue6834] use different mechanism for pythonw on osx: universal builds always run 64-bit on OS X 10.6

2009-10-28 Thread Ned Deily
Changes by Ned Deily : -- versions: +Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7169] zipfile leaves a file handle open if file is zero size

2009-10-28 Thread Ryan Leslie
Ryan Leslie added the comment: Yes, I think this fix should have been included in the 2.6 branch. I subscribed Amaury to look into that when I last updated. -- ___ Python tracker ___

[issue6834] use different mechanism for pythonw on osx: universal builds always run 64-bit on OS X 10.6

2009-10-28 Thread Ned Deily
Ned Deily added the comment: For people searching the bug tracker, I've modified the title of the issue to make it clearer that there is a problem here on OS X 10.6 Snow Leopard with multiple architecture builds. As Ronald mentions above, the effect of using the pythonw "launcher" on 10.6 as

[issue7231] Windows installer does not add \Scripts folder to the path

2009-10-28 Thread sorin
New submission from sorin : I observed that Windows installer is able to add only the Python installation folder to the path. In addition to this it should add the Scrips folder because many python tools are installing scripts inside it, scripts that the user cannot us unless he add this direct

[issue7224] One obvious way to do interning

2009-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I agree, _PySet_Add name can be improved upon, but I don't want to paint this particular bikeshed until it is clearer what if anything will be done with this idea. If we add PySet_Intern API, then it would be natural to expose it as set.intern rather t

[issue6511] zipfile: Invalid argument when opening zero-sized files

2009-10-28 Thread skelker
skelker added the comment: Is this going to make its way into a 2.6 release? -- nosy: +skelker ___ Python tracker ___ ___ Python-bugs-

[issue7169] zipfile leaves a file handle open if file is zero size

2009-10-28 Thread skelker
skelker added the comment: That would be great. Perhaps that should be discussed in 6511. I'll make a note there. Steve Kelker (952)882-4381 (or x4381) -- ___ Python tracker

[issue7169] zipfile leaves a file handle open if file is zero size

2009-10-28 Thread Brian Curtin
Brian Curtin added the comment: Since the issue exists in 2.6 and is only currently fixed on trunk and beyond, shouldn't the 6511 fix make it's way backwards into 2.6.x? -- nosy: +brian.curtin ___ Python tracker __

[issue7230] test_hotshot fails on solaris

2009-10-28 Thread Zsolt Cserna
New submission from Zsolt Cserna : On sparc/solaris 5.8, test_hotshot fails: csern...@localhost:/tmp/python2.6$ LD_LIBRARY_PATH=/tmp/python2.6 ./python -E -tt ./Lib/test/regrtest.py -v -l test_hotshot test_hotshot test_addinfo (test.test_hotshot.HotShotTestCase) ... ok test_bad_sys_path (test.t

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-10-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: A regression occured in 2.6.3 on the compiler option. This is fixed in 2.6.4, you should upgrade your system in order to see it fixed. -- ___ Python tracker __

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-10-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: A regression occured in 2.6.3 on the compiler option. This is fixed in 2.6.4, you should upgrade your system in order to see it fixed. -- ___ Python tracker __

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-10-28 Thread Eric BREHAULT
Eric BREHAULT added the comment: Hello, I get the same error with Python 2.6.3 (and gcc 3.4.5): E:\downloads\pycairo-1.8.8>python setup.py build --compiler=mingw32 cairo >= 1.8.8 detected creating pycairo.pc creating src/config.h running build running build_ext building 'cairo._cairo' extension

[issue7227] Shell Support for installation of Python Packages (.EGG)

2009-10-28 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue7227] Shell Support for installation of Python Packages (.EGG)

2009-10-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: The .egg format and easy_install are not part of by Distutils. You can try to propose your .egg shell support to Pip, Distribute 0.6.x or Setuptools 0.6x projects. -- resolution: -> rejected ___ Python tracker

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2009-10-28 Thread Ned Deily
Ned Deily added the comment: I don't think there's a misunderstanding. By "putting", I meant "reading" or "writing". IMO, /etc is not the place on OS X to be looking for python-related configuration files, certainly not for framework installs. Likewise for ~/.python and ~/.local. Unfortun

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2009-10-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ned Deily wrote: > > Ned Deily added the comment: > > /etc is definitely not the right place to put files for OS X framework > builds; if necessary, an etc directory could be added under the > framework version directory as a sibling of bin and lib. It

[issue7229] Manual entry for time.daylight can be misleading

2009-10-28 Thread Tomas Kubes
New submission from Tomas Kubes : Hello, it is not obvious that the time.daylight data item reports nonzero values even when DST is currently not being used (ie. in winter) but the active timezone has DST defined for some other parts of the year. Current manual entry can be misleadingly interpr

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2009-10-28 Thread Ned Deily
Ned Deily added the comment: /etc is definitely not the right place to put files for OS X framework builds; if necessary, an etc directory could be added under the framework version directory as a sibling of bin and lib. It's also very un-OS X like to be putting things into ~/.python and ~/.

[issue7227] Shell Support for installation of Python Packages (.EGG)

2009-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek components: +Distutils -Demos and Tools nosy: +tarek priority: -> normal ___ Python tracker ___ ___

[issue7224] One obvious way to do interning

2009-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: A simple way to try and see a difference would be to import lot of modules. By the way, you shouldn't call it _PySet_Add(), it would cause confusion with the existing PySet_Add(). _PySet_Intern() would be fine. -- nosy: +pitrou ___

[issue6186] test_thread occasionally reports unhandled exceptions on OS X

2009-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ned points out that it may be a duplicate of #7194, which has been fixed. Can you test with the current trunk or 2.6 branch? -- nosy: +pitrou ___ Python tracker ___

[issue7194] test_thread is flaky

2009-10-28 Thread Ned Deily
Ned Deily added the comment: Duplicate of Issue6186? -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue4908] adding a get_metadata in distutils

2009-10-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: This patch will be applied for the part that makes DistributionMetadata load files. The other part is waiting for PEP 376. -- priority: -> normal resolution: -> accepted versions: +Python 3.2 -Python 3.1 ___ Python t

[issue7192] webbrowser.get("firefox") does not work on Mac with installed Firefox

2009-10-28 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-b

[issue7117] Backport py3k float repr to trunk

2009-10-28 Thread Eric Smith
Eric Smith added the comment: r75913: Fix _json.c to use PyOS_string_to_double. Change made after consulting with Bob Ippolito. This completes the removal of calls to PyOS_ascii_strtod. -- ___ Python tracker _

[issue5243] Missing dependency in distutils build

2009-10-28 Thread Patrick Gerken
Patrick Gerken added the comment: Hi Tarek, I think clib stuff is installed in the right python directory and the ext install step then just finds them. To reproduce the issue, run the "old" easy_install in a virtualenv. easy_install ReportLab It will then fail because of the missing library

[issue7212] Retrieve an arbitrary element from a set without removing it

2009-10-28 Thread Willi Richert
Willi Richert added the comment: No particular reason, besides that it is ripped off of pop(). Your solution (omitting "register") gives the same performance. Looks cleaner, of course. The patch tries to provide a clean way of "for x in some_set: break", as explained above. See the recent pyth

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry for confusion. I shouldn't have said last 3 lines in msg94601. :-( -- ___ Python tracker ___ __

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Aargh. You're right, of course. PyString_FromFormatV needs to be updated, or avoided in this case. I'll look at this later today. -- assignee: -> mark.dickinson ___ Python tracker

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. I'm just going to fix Modules/io/_iomodule.h for now. But I agree that it might make sense to have a PY_FORMAT_OFF_T or PY_FORMAT_LONG_LONG in pyport.h, especially if uses of off_t become more widespread in the codebase. I also notice there are som

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I was late again...? Hmm, I thought Python tracker told me that somebody else modified this issue. Anyway, printf can use both "%I64" and "%I64d" for signed 64bit integer, but should use "%I64u" for unsigned 64bit integer AFAIK. But PyErr_Format actually cal

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Oh, I was late. I agree with msg94605. printf("%I64d\n", 1I64 << 40); /* 1099511627776 */ So if PyErr_Format (actually, PyString_FromFormatV) will support PY_LONG_LONG, I think we can use same technique as PY_FORMAT_SIZE_T like #define PY_FORMAT_LONG_LONG

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: So PY_PRIdOFF should be "I64d"? Or just "I64"? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: MSVC6 uses __int64 as 64bit integer, and printf uses "I64" as its specifier. -- ___ Python tracker ___ __

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: The 'long long' define should have been PY_LONG_LONG. I don't know what the appropriate substitute for "%lld" is, though. -- ___ Python tracker __

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for reporting this. Do you know what the right conversion specifier is for print(f)ing something of long long type in MSVC? -- ___ Python tracker _

[issue4750] tarfile keeps excessive dir structure in compressed files

2009-10-28 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- components: -Distutils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.