[issue10160] operator.attrgetter slower than lambda after adding dotted names ability

2010-10-22 Thread Christos Georgi ou
Χρήστος Γεωργίου (Christos Georgiou) added the comment: A newer version of the patch with the following changes: - single loop in the ag->attr setup phase of attrgetter_new; interning of the stored attribute names - added two more tests of invalid attrgetter parameters (".attr", "attr.") ---

[issue10172] code block has no syntax coloring

2010-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 only (verified); 3.1 and 3.2 are fine. -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-

[issue10160] operator.attrgetter slower than lambda after adding dotted names ability

2010-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: >I am not sure whether I should attach a zip/tar file with both the attachments >(the sample benchmark and the diff); so I'll attach the diff in a further >comment. Uploading separate files with .py, .diff extensions that can be viewed in a browser is indeed

[issue10118] Tkinter does not find font

2010-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 is in security-fix only mode. I am assuming that this is still a problem in 2.7 (and possibly 3.x). It would be good to confirm this. -- nosy: +terry.reedy versions: +Python 2.7 -Python 2.6 ___ Python tracker <

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-22 Thread Case Van Horsen
Case Van Horsen added the comment: I've uploaded a patch against the current svn trunk that: 1) Defines a Py_uhash_t as equivalent to size_t. 2) Correctly defines _PyHASH_MODULUS on Win64. 3) Replaces several PyLong_FromLong with PyLong_FromSsize_t. 4) Change typeobject/wrap_hashfunc to use Py_

[issue6639] turtle: _tkinter.TclError: invalid command name ".10170160"

2010-10-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have come across the same bug. To reproduce, run Demo/turtle/tdemo_round_dance.py and kill the Tk window before the "dance" stops. The mysterious command name ".10170160" is simply the generated name for the canvas widget - '.' + repr(id(self)). S

[issue10175] vs version for win32 compilation of extension modules is undocumented.

2010-10-22 Thread Jeremy Kloth
Jeremy Kloth added the comment: A quick look with Dependency Walker gives me the following: Python 2.4,2.5 -- MSVC .NET 2003 (7.1) Python 2.6,2.7,3.0,3.1 -- MSVC 2008 (9.0) Note these are only for the official python.org builds. Each version can also be built using other MSVC versions. To t

[issue10175] vs version for win32 compilation of extension modules is undocumented.

2010-10-22 Thread R. David Murray
R. David Murray added the comment: If I understand correctly (I'm not a windows user or developer myself), knowing the bits necessary to compile extension modules is not something very many people need to know. If an extension module supports Windows, there will generally be an installer pac

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-22 Thread Case Van Horsen
Case Van Horsen added the comment: I maintain gmpy and it needs to calculate hash values for integers, floats, and rationals. I converted my hash calculations to use Py_ssize_t in a 64-bit Windows enviroment. All my tests pass when I build Python with my previous patch. In hindsight, I think

[issue10175] vs version for win32 compilation of extension modules is undocumented.

2010-10-22 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10175] vs version for win32 compilation of extension modules is undocumented.

2010-10-22 Thread Tom Fogal
New submission from Tom Fogal : I have recently attempted to install a couple third party packages (zope.interface and dulwech, FWIW) and encountered great difficulties. In particular, the setup complained that it could not find "vcvarsall.bat". Even running these setup scripts from a VC++ 2

[issue10174] multiprocessing expects sys.stdout to have a fileno/close method.

2010-10-22 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-10-22 Thread STINNER Victor
STINNER Victor added the comment: > I’m trying to build py3k on posix in a subdir called > sep-build-dir-éric, with locale set to C. Ah yes, this particular use case doesn't work: r85800 should fix it. Please retry. -- ___ Python tracker

[issue10174] multiprocessing expects sys.stdout to have a fileno/close method.

2010-10-22 Thread Simon de Vlieger
New submission from Simon de Vlieger : When I have replaced sys.stdin with my own file-like object and I try to do a multiprocessing.Pool(processes=x) I get errors about sys.stdin not having a fileno or close method. For at least fileno it is described in the docs (http://docs.python.org/libr

[issue10143] Update "os.pathconf" values

2010-10-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10173] Don't pickle TestCase instances in test_multiprocessing

2010-10-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10173] Don't pickle TestCase instances in test_multiprocessing

2010-10-22 Thread Antoine Pitrou
New submission from Antoine Pitrou : unittest.TestCase instances aren't supposed to be picklable, but test_multiprocessing does it anyway (under Windows). Here is a patch. -- components: Tests files: tmp.patch keywords: patch messages: 119407 nosy: asksol, jnoller, pitrou priority: norm

[issue10093] Warn when files are not explicitly closed

2010-10-22 Thread Brett Cannon
Brett Cannon added the comment: But this is meant to be an optional warning; users will never see it. Me as a developer, I would like to know when I leave a file open as that is a waste of resources, plus with no guarantee of everything being flushed to disk. Besides, the context manager for

[issue10093] Warn when files are not explicitly closed

2010-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I wonder why you think a warning is needed if files aren't closed explicitly. The fact that they get closed on garbage collection is one of the nice features of Python and has made programming easy for years. Explicitly having to close files may have som

[issue9935] Faster pickling of instances

2010-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: The difference has to do with the result of __reduce__: With the patch: >>> open("LICENSE").__reduce_ex__(3) (, (,), {'mode': 'r'}, None, None) Without: >>> open("LICENSE").__reduce_ex__(3) (, (,), None, None, None) -- ___

[issue9935] Faster pickling of instances

2010-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: The commit broke the Windows buildbots because (un)pickling a TextIOWrapper now raises an exception: >>> f = open("LICENSE") >>> pickle.dumps(f) b'\x80\x03c_io\nTextIOWrapper\nq\x00)\x81q\x01}q\x02X\x04\x00\x00\x00modeq\x03X\x01\x00\x00\x00rq\x04sb.' >>> g = p

[issue10093] Warn when files are not explicitly closed

2010-10-22 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Oct 22, 2010 at 12:49, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> After thinking about what warning to go with, I take back my python-dev >> suggestion of ResourceWarning and switch to DebugWarning. > > So what is your advice now? >

[issue10093] Warn when files are not explicitly closed

2010-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > After thinking about what warning to go with, I take back my python-dev > suggestion of ResourceWarning and switch to DebugWarning. So what is your advice now? I've thought about the DebugWarning name myself and I think it's a rather bad name, because many

[issue9935] Faster pickling of instances

2010-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85797. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue5936] Add MSI suport for uninstalling individual versions

2010-10-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: It possible to script MSI, so that one could write a tool that manages all MSI files that have the multi-version feature, and add and remove them to Python installation in batches. Alternatively, it would also be possible to integrate this into the Python i

[issue10115] Support accept4() for atomic setting of flags at socket creation

2010-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've removed the accept4() call in the meantime (in r85796), so that this issue can be re-classified as a feature request. -- priority: critical -> normal title: accept4 can fail with errno 90 -> Support accept4() for atomic setting of flags at socket

[issue5639] Support TLS SNI extension in ssl module

2010-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed with docs in r85793. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10156] Initialization of globals in unicodeobject.c

2010-10-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: About the patch: why should _PyUnicode_Init() try to call _PyUnicode_InitGlobals() again? -- ___ Python tracker ___

[issue10155] Add fixups for encoding problems to wsgiref

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: Your patch adds a new handler, which is arguably a new feature that has to be rejected in a bugfix branch. -- nosy: +eric.araujo versions: +Python 3.1 ___ Python tracker ___

[issue10090] python -m locale fails on OSX

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +locale.normalize strips "-" from UTF-8, which fails on Mac ___ Python tracker ___ ___ Pyth

[issue10126] test_distutils failure with --enable-shared

2010-10-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I believe all known failures in 2.7, 3.1, and 3.2 both with and without --enable-shared are now fixed. Let's see what the buildbots say. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue10106] missing packages

2010-10-22 Thread S S
S S added the comment: finally was able to figure it out. i had another product installed, which uses python 2.4 that product during installation put PYTHONHOME into system variable environment. as soon as i either change that PYTHONHOME to my latest python path c:\python26 everything starts

[issue10171] Ugly buttons in some Tkinter objects in Windows

2010-10-22 Thread Rafe Kettler
Changes by Rafe Kettler : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1649329] Support for non-filesystem-based catalogs in gettext

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: The specific problem of gettext+eggs seems to be solved by this project: https://pypi.python.org/pypi/EggTranslations/ Since the egg format is not retained in distutils2, I don’t think any support for it should be added in the stdlib. FWIW, I like the use of fi

[issue10126] test_distutils failure with --enable-shared

2010-10-22 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: eric.araujo -> barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue808129] Change --changelog to accept files

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: The feature freeze does apply. Tarek has started a standalone project to build RPMs; I suggest you transfer this bug to https://bitbucket.org/tarek/pypi2rpm/ Happy hacking! -- resolution: -> rejected stage: -> committed/rejected status: open -> closed

[issue4459] bdist_rpm should enable --fix-python by default

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: FYI, this is fixed in the new bdist_rpm2 command: https://bitbucket.org/tarek/pypi2rpm/changeset/ce6626df0225 -- ___ Python tracker ___ __

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: Building in the same directory works. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1692592] Stripping debugging symbols from compiled C extensions

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> tarek components: +Distutils2 -Distutils nosy: +eric.araujo, tarek stage: unit test needed -> patch review versions: +3rd party -Python 3.2 ___ Python tracker ___

[issue4673] Distutils should provide an uninstall command

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +distutils removing old files, deleting unneeded old files from installed location. ___ Python tracker ___ _

[issue5342] distutils removing old files, deleting unneeded old files from installed location.

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 -Distutils nosy: +eric.araujo versions: +3rd party -Python 3.2 ___ Python tracker ___ _

[issue1371826] distutils is silent about multiple -I/-L/-R

2010-10-22 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1371826] distutils is silent about multiple -I/-L/-R

2010-10-22 Thread Skip Montanaro
Skip Montanaro added the comment: I would prefer the gcc-like behavior. I realize there are constraints on making changes in distutils1, so what you propose sounds fine to me. -- nosy: +skip.montanaro ___ Python tracker

[issue10156] Initialization of globals in unicodeobject.c

2010-10-22 Thread Stefan Krah
Stefan Krah added the comment: I've verified the leak manually. The cause is that global variables in unicodeobject.c, e.g. free_list, are used before _PyUnicode_Init() is called. Later on _PyUnicode_Init() sets these variables to NULL, losing the allocated memory. Here is an example of the ear

[issue9912] Fail when vsvarsall.bat produces stderr

2010-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Éric Araujo wrote: > > Éric Araujo added the comment: > > I’d replace “created stderr” with “printed on stderr”, but otherwise > msvc9_log.diff looks good. > > distutils is feature-frozen, but I think any changes that help debugging are > good. Tarek,

[issue9912] Fail when vsvarsall.bat produces stderr

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 stage: needs patch -> patch review versions: +3rd party -Python 3.3 ___ Python tracker ___

[issue9912] Fail when vsvarsall.bat produces stderr

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: I’d replace “created stderr” with “printed on stderr”, but otherwise msvc9_log.diff looks good. distutils is feature-frozen, but I think any changes that help debugging are good. Tarek, do you agree? -- ___ Python t

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: I’m trying to build py3k on posix in a subdir called sep-build-dir-éric, with locale set to C. I get these errors: gcc [...] -DSVNVERSION="\"`LC_ALL=C svnversion ..`\"" -o Modules/getbuildinfo.o ../Modules/getbuildinfo.c svn: Error converting entry in directory

[issue10172] code block has no syntax coloring

2010-10-22 Thread Winston C. Yang
New submission from Winston C. Yang : The following code block in http://docs.python.org/tutorial/errors.html has no syntax coloring: import sys try: f = open('myfile.txt') s = f.readline() i = int(s.strip()) except IOError as (errno, strerror): print "I/O error({0}): {1}".form

[issue10171] Ugly buttons in some Tkinter objects in Windows

2010-10-22 Thread R. David Murray
Changes by R. David Murray : -- nosy: +gpolo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10164] Add an assertBytesEqual to unittest and use it for bytes assertEqual

2010-10-22 Thread R. David Murray
Changes by R. David Murray : -- title: Add an assertBytesMultiLineEqual to unittest and use it for bytes assertEqual -> Add an assertBytesEqual to unittest and use it for bytes assertEqual ___ Python tracker

[issue9289] test_long_key(test_winreg) fails on win2k + py2.x

2010-10-22 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I committed in r85790(release27-maint). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed title: Skip test_long_key(test_winreg) on win2k + py2.x -> test_long_key(test_winreg) fails on win2k + py2.x _

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-22 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I created test branch "branches/py3k-stat-on-windows" and committed the new patch in r85789. This achieves msg119108. I tested this on Windows7 buildbot where symlink support exists, it seems working correct. http://www.python.org/dev/buildbot/all/builders/x8

[issue4032] distutils cannot recognize ".dll.a" as library on cygwin

2010-10-22 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Can you port that patch? I don't have cygwin installed now. -- ___ Python tracker ___ ___ Python-

[issue4032] distutils cannot recognize ".dll.a" as library on cygwin

2010-10-22 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I used to create the patch http://bugs.python.org/file11597/experimental_distutils.patch in #1706863, but cygwin guys wanted this code implemented in CCygwinCompiler class (See #2445). I think #2445 should be resolved before. -- dependencies: +Use T

[issue5936] Add MSI suport for uninstalling individual versions

2010-10-22 Thread Steven Bethard
Steven Bethard added the comment: > Would you have to do this for every installed distribution? > Seems cumbersome. Well, the feature not being implemented yet, it's hard to tell what it would do. ;-) But I think the simplest approach would actually yield a dialog where you simply check off t

[issue10126] test_distutils failure with --enable-shared

2010-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: You broke many 2.7, 3.1 and 3.x buildbots. -- priority: high -> critical resolution: fixed -> status: closed -> open ___ Python tracker ___ __

[issue1371826] distutils is silent about multiple -I/-L/-R

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: Skip, do you agree with my proposal (no behavior change in d1, better behavior in d2) or do you think it could be confusing? -- ___ Python tracker

[issue1128] msilib.Directory.make_short only handles file names with a single dot in them

2010-10-22 Thread Christoph Gohlke
Christoph Gohlke added the comment: The revised patch for issue7639 now generates better short names for file names containing spaces, '+', and leading '.'. http://bugs.python.org/file19334/msilib.diff Test cases that could be added to MsilibTest.test_makeshort(): TEST : test TES~1

[issue5936] Add MSI suport for uninstalling individual versions

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: “For example, if you installed a new version of Python, this would allow you to add your already installed pure Python modules to this Python installation by just going to Add/Remove Programs and selecting the feature for the new version.” Would you have to do thi

[issue5926] bdist_msi - add support for minimum Python version for pure Python packages

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: distutils is frozen, new features land into distutils2 (http://bitbucket.org/tarek/distutils2/). Do you want to work on a patch? -- components: +Distutils2 -Distutils nosy: +eric.araujo stage: -> needs patch versions: +3rd party -Python 3.2 ___

[issue4032] distutils cannot recognize ".dll.a" as library on cygwin

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg113008 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4032] distutils cannot recognize ".dll.a" as library on cygwin

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: Can you produce a patch? (Removing Terry from nosy at his request) -- components: +Distutils2 nosy: +eric.araujo -terry.reedy versions: +3rd party, Python 3.2 ___ Python tracker

[issue9167] argv double encoding on OSX

2010-10-22 Thread STINNER Victor
STINNER Victor added the comment: FYI, you should use ascii() instead of a.encode(\"utf8\") to dump arguments. It's easier to check '\u2603' than b'\xe2\x98\x83' for me :-) So the bug is fixed in Python 3.2, great! I was thinking that we need a test for that, but then I remembered that I alre

[issue1274324] 'setup.py install' fail on linux from read-only storage

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> eric.araujo nosy: -terry.reedy versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue7726] Remove required metadata warnings for sdist

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg113019 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7726] Remove required metadata warnings for sdist

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: I don’t think warnings should be removed, at least not by default. They’re warnings, not errors, which is IMO a nice compromise between accepting anything and requiring that rules be followed. We could add an option like --no-warnings in distutils2, but I’m wo

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-10-22 Thread STINNER Victor
STINNER Victor added the comment: > $ LC_ALL=C ./python > Fatal Python error: Py_Initialize: Unable to get the locale encoding > SystemError: NULL result without error in PyObject_Call > Abandon What is your Python version? I fixed Python 3.2, but I don't plan to fix Python 3.1 for this proble

[issue7639] bdist_msi fails on files with long names

2010-10-22 Thread Christoph Gohlke
Christoph Gohlke added the comment: Creating bdist_msi installers with files such as 'aixc++' (containing '+'), '.buildinfo' (starting with '.'), and 'py.~1.5.~' (containing '~') currently also fails, even with the proposed patch. The revised patch should fix these cases and further improves

[issue3902] distutils does not create __init__.py for packages containing extension modules

2010-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg113049 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue3902] distutils does not create __init__.py for packages containing extension modules

2010-10-22 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. To the best of my knowledge, distutils never generates Python files, and the docs for ext_modules or ext_package don’t imply __init__.py will be generated. IOW, for “pkg.foo”, you’re supposed to have pkg/__init__.py and pkg/foo.c. I thi

[issue10147] Python Documentation bugs

2010-10-22 Thread Boštjan Mejak
Boštjan Mejak added the comment: All the words that Georg Brandl fixed for this issue are okay as they stand. Please leave them as they are written. Thank you. On Fri, Oct 22, 2010 at 1:19 AM, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > Éric Araujo wrote: > > > >