[issue11629] Reference implementation for PEP 397

2011-03-22 Thread Mark Hammond
New submission from Mark Hammond : A tracking bug for the reference implementation of PEP397 - A Python launcher for Windows. -- assignee: mhammond components: Documentation files: pep-0397-reference.py messages: 131723 nosy: mhammond priority: normal severity: normal status: open title

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as "universal"

2011-03-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: Issue11485 is related to this. As Ned noted Ned and I will look into this. -- ___ Python tracker ___

[issue11622] Documentation

2011-03-22 Thread Roberto De Renzi
Roberto De Renzi added the comment: Thank you, Eric. My comment was not intended either as a bug (I thought it was the wrong place to post it, but coud not find any better) or a help request. It is just a suggestion. We non professional progammers happen to be writing code for some time, the

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> It would be nice if it were enabled by default for fatal errors >> (and asserts perhaps?). > > That would mean that the module should be a builtin module, or that it is > always loaded in

[issue11625] Typo in collections.abc docs

2011-03-22 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11630] refleak in test_import

2011-03-22 Thread Antoine Pitrou
New submission from Antoine Pitrou : Introduced by ef2b6305d395. -- assignee: haypo messages: 131727 nosy: haypo, pitrou priority: normal severity: normal status: open title: refleak in test_import type: resource usage versions: Python 3.3 ___ Python

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Martin: I wouldn't worry too much about replacing a "Mutex" with a "Semaphore". There is no reason to believe that they behave in any way different scheduling wise, and if they did, then any python code that this would affect would be extremely poorl

[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT

2011-03-22 Thread Rainer Schaaf
Rainer Schaaf added the comment: fixing this for the next version of course would be acceptable. As I can use the extension (not setting Py_LIMITED_API) even with 3.2.0 it is not a big problem. I only loose the benefit of Py_LIMITED_API and will have to release another version of the binding

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-22 Thread STINNER Victor
STINNER Victor added the comment: Le mardi 22 mars 2011 à 09:01 +, Marc-Andre Lemburg a écrit : > Perhaps you could consider adding a similar approach (raising > an exception instead of writing a traceback) to the module. > We could then port our code to use your module, which is > more adva

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2011-03-22 Thread Kristoffer Nilsson
New submission from Kristoffer Nilsson : Running Windows 7 Enterprise 64 bit, and Python 7.2.1 64 bit Python failed to read and send UDP packages when ran in cmd.exe. This is not the case when ran with IDLE. Example; two simple programs. First one listening to a UDP port sock = socket.socket(

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Sbt: I re-read the code and while I still maintain that the evaluation in line 50 is meaningless, I agree that the worst that can happen is an incorrect timeout. It is probably harmless because this state is only encountered for timeout==0, and it is

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > Le mardi 22 mars 2011 à 09:01 +, Marc-Andre Lemburg a écrit : >> Perhaps you could consider adding a similar approach (raising >> an exception instead of writing a traceback) to the modul

[issue11630] refleak in test_import

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3114f26d5d54 by Victor Stinner in branch 'default': Issue #11630, issue #3080: Fix refleak introduced by ef2b6305d395 http://hg.python.org/cpython/rev/3114f26d5d54 -- nosy: +python-dev ___ Python tracker

[issue11630] refleak in test_import

2011-03-22 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11632] difflib.unified_diff loses context

2011-03-22 Thread Brice Videau
New submission from Brice Videau : unified_diff seems to lose the context when comparing the 2 files contained in the attached archive using this script : import difflib b1 = open("out1.short","r").read().splitlines(True) b2 = open("out2.short","r").read().splitlines(True) compare = difflib.uni

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
New submission from anatoly techtonik : print() function for some reason buffers output on Windows if end!='\n'. In attached examples "Processing.. " string is shown in Python 3.2 only after the actual processing is finished, while in Python 2.6 it is shown before. -- files: printtest

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file21334/printtest2.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread STINNER Victor
STINNER Victor added the comment: printtest2.py displays directly "Processing.. " on Windows, but not on Linux. It looks like stdout is not buffered on Windows, which looks like a bug to bug :-) I think that it is safer to always call sys.stdout.flush() to ensure that your message is directly

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: >From my perspective it is a regression on Windows and a bug in Linux version >of Python 2.x, which unfortunately can not be fixed, because of 2.x release >process. If the fact that print statement doesn't output anything when called is not a bug - then s

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread STINNER Victor
STINNER Victor added the comment: > From my perspective it is a regression on Windows and a bug in Linux > version of Python 2.x, which unfortunately can not be fixed, > because of 2.x release process. Line buffering is used by default on most operating systems (ok, maybe not Windows, which lo

[issue11627] segfault raising an arbitrary object as an exception

2011-03-22 Thread Nick Coghlan
Nick Coghlan added the comment: Note that this test code: def raise_(): raise MyException self.assertRaises(TypeError, raise_) can be simplified to: with self.assertRaises(TypeError): raise MyException in all currently maintained branches. ---

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: How about making print() user-friendly with flushing after every call, and if you want explicitly want speed - use buffered sys.stdout.write/flush()? -- ___ Python tracker ___

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread STINNER Victor
STINNER Victor added the comment: > How about making print() user-friendly with flushing after every call, > and if you want explicitly want speed - use buffered > sys.stdout.write/flush()? This is exactly the -u option of Python 2: use it if you would like a completly unbuffered sys.stdout in

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: You must realize that the most common use case for print(..., end!='\n') is when you want to notify user about intermediate progress of a very long operation. Making documentation for simple print() statement overloaded with low level buffering details ma

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread sbt
sbt added the comment: krisvale wrote: So, I suggest a change in the comments: Do not claim that the value is never an underestimate, and explain how falsely returning a WAIT_TIMEOUT is safe and only occurs when the lock is heavily contented. Sorry for being so nitpicky but having this

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread sbt
Changes by sbt : Removed file: http://bugs.python.org/file21335/locktimeout3.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread sbt
sbt added the comment: krisvale wrote: So, I suggest a change in the comments: Do not claim that the value is never an underestimate, and explain how falsely returning a WAIT_TIMEOUT is safe and only occurs when the lock is heavily contented. Sorry for being so nitpicky but having this

[issue11622] Documentation

2011-03-22 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file21331/roberto_derenzi.vcf ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11287] Add context manager support to dbm modules

2011-03-22 Thread Ray.Allen
Ray.Allen added the comment: patch updated. -- Added file: http://bugs.python.org/file21337/issue_11287.diff ___ Python tracker ___ _

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as "universal"

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Thanks for taking care of this. I’ll be here to review distutils-related changes, if any are needed. -- assignee: tarek -> ronaldoussoren ___ Python tracker ___

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: > The "Remote hg repo" field was just empty when I made my latest comment Looks like this field is always empty: its goal is to add a repo, just like the File field is always empty unless you add a file. The existing files and repositories are however listed un

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as "universal"

2011-03-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I haven't put much thought in a solution yet, but at this point I'd go for three changes: 1) Give a clear warning when python was configured for i386/ppc and Xcode4 is installed (instead of giving a vague compiler crash due to crapping out on ppc code

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread Eli Bendersky
New submission from Eli Bendersky : The comment string above the implementation of _PyBytes_FromStringAndSize in Objects/bytesobject.c starts with: /* For both PyBytes_FromString() and PyBytes_FromStringAndSize(), the parameter `size' denotes number of characters to allocate, not count

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread STINNER Victor
STINNER Victor added the comment: Could you write a patch to fix this comment? -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs

[issue11625] Typo in collections.abc docs

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset a56cd7aeac5e by Raymond Hettinger in branch '2.7': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/a56cd7aeac5e -- nosy: +python-dev ___ Python tracker __

[issue11625] Typo in collections.abc docs

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3aec82018a18 by Raymond Hettinger in branch '3.1': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/3aec82018a18 New changeset 461e5c60fbdf by Raymond Hettinger in branch '3.2': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/461e5c6

[issue11625] Typo in collections.abc docs

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10694] zipfile.py end of central directory detection not robust

2011-03-22 Thread bcroq
Changes by bcroq : -- nosy: +bcroq ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[issue10694] zipfile.py end of central directory detection not robust

2011-03-22 Thread Bertrand Croq
Bertrand Croq added the comment: The last patch (manually applied to Python 2.6) fixed the problem with a ZIP file used in my project. -- ___ Python tracker ___ ___

[issue10694] zipfile.py end of central directory detection not robust

2011-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: We are talking about different things here: - When python is run from a console, sys.stdout is line buffered. sys.stdout.write() flushes if there is a carriage return. No need to change anything here. - print() could call file.flush() if file.isatty(),

[issue11629] Reference implementation for PEP 397

2011-03-22 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11635] concurrent.futures uses polling

2011-03-22 Thread Antoine Pitrou
New submission from Antoine Pitrou : concurrent.futures uses polling in its worker threads and processes (with a timeout of 0.1). It means that: 1) this prevents CPUs to enter low power states durably 2) it incurs latency when calling shutdown() on an executor (this seems to be the main source o

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks okay. On the first lines for set_merge() where there is: key = entry->key; also do: hash = entry->key; so that the two get handled in a parallel fashion. Thanks for doing the backporting. -- assignee: rhettinger -> eric.araujo _

[issue11244] Negative tuple elements produce inefficient code.

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11636] fh is not defined in npyio.py fromregex

2011-03-22 Thread William Dawson
New submission from William Dawson : NameError: global name 'fh' is not defined File "/Users/williamdawson/Programs/fat_wip.py", line 263, in header_gal = readheader(gal_cat) File "/Users/williamdawson/Programs/tools.py", line 96, in readheader [('column',numpy.int16),('name','S10')]) File

[issue11636] fh is not defined in npyio.py fromregex

2011-03-22 Thread Brian Curtin
Brian Curtin added the comment: You should report this to whoever makes npyio.py -- nosy: +brian.curtin resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2011-03-22 Thread Santoso Wijaya
Santoso Wijaya added the comment: > this will lock I should expect so! recvfrom is a blocking method. The interpreter will block on said socket until (if recvfrom) data arrives from the remote end of the socket. sendto is non-blocking, though. And it works for me: Python 2.7.1 (r271:86832,

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt -Devin Jeanpierre versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bu

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-03-22 Thread Anton Benard
Changes by Anton Benard : -- nosy: +abenard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-22 Thread Brett Cannon
Brett Cannon added the comment: Doc changes seem fine to me. -- assignee: brett.cannon -> eric.araujo ___ Python tracker ___ ___ Pyth

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2011-03-22 Thread Kristoffer Nilsson
Kristoffer Nilsson added the comment: Ah, bad formulation by me. While testing I had both the same machine and external machine sending UDP packages to the port I was listening to. The listening server would not receive anything on 64/64bit (unless running from IDLE). The reverse try, runnin

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-03-22 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset d50a71994f51 by Raymond Hettinger in branch 'default': Issue #11333: Add __slots__ to the collections ABCs. http://hg.python.org/cpython/rev/d50a71994f51 -- nosy: +python-dev ___ Python tracker

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Daniel. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Pyt

[issue11397] os.path.realpath() may produce incorrect results

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- components: +Library (Lib) -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread Eli Bendersky
Eli Bendersky added the comment: Sure, I just wanted confirmation from another dev that it's indeed an error and I'm not missing anything. I suppose the fix is just replace "for both PyBytes_FromString() and PyBytes_FromStringAndSize()" with just "for PyBytes_FromStringAndSize()". I'll comm

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Agreed. Which .py files would be appropriate? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2011-03-22 Thread Santoso Wijaya
Santoso Wijaya added the comment: I can't reproduce this. I'm also running 64-bit Python on 64-bit Windows 7 and socket operations are fine for me. -- ___ Python tracker ___ __

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 22, 2011 at 2:55 PM, Éric Araujo wrote: .. > Agreed.  Which .py files would be appropriate? Lib/turtledemo/about_turtle.txt - seems to belong to turtle.py Lib/turtledemo/about_turtledemo.txt -> turtledemo/__init__.py and Lib/turtledemo/dem

[issue11093] test_future - rename not-unittest files to make regrtest.NOTTESTS an empty set

2011-03-22 Thread Sandro Tosi
Sandro Tosi added the comment: Reattaching patch generated (against 3.2) with diff --git to preserve the rename operation. -- Added file: http://bugs.python.org/file21339/test_future_diffgit.patch ___ Python tracker

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 22, 2011 at 3:14 PM, Alexander Belopolsky wrote: .. > Lib/turtledemo/about_turtle.txt - seems to belong to turtle.py In fact, it looks like turtle docstring is already a copy (or almost a copy) of Lib/turtledemo/about_turtle.txt. Instead of

[issue11287] Add context manager support to dbm modules

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Looks good. Would someone else like to review too? I don’t know C, and there may be PEP 343 subtleties that I have missed. -- keywords: +needs review nosy: +ncoghlan stage: -> commit review ___ Python tracker

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: -> feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bug

[issue1214675] module warnings lacks a remove filter function

2011-03-22 Thread Guido van Rossum
Guido van Rossum added the comment: Closing. We now have a context manager based solution for saving, changing and restoring warning filters. http://docs.python.org/library/warnings.html#testing-warnings (I just came across this issue looking for such a solution. :-) -- nosy: +gvanro

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +patch Added file: http://bugs.python.org/file21340/issue10291.diff ___ Python tracker ___

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2011-03-22 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Extension Modules, Windows -Library (Lib) nosy: +brian.curtin stage: -> needs patch type: -> behavior ___ Python tracker ___ _

[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT

2011-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I fear I don't understand exactly what is meant here. For me it was enough to > get the linker error telling me it is not working. Suppose 3.2.1 adds this function, which then means that your extension builds fine. However, it won't run on 3.2.0, so you mig

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2011-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Kristoffer: are you using a personal firewall software? These filters often filter traffic out depending on what process is receiving it, so you may want to turn the firewall off (or explicitly configure it to allow this port to be open). -- nosy: +

[issue11628] cmp_to_key generated class should use __slots__

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 136298326897 by Raymond Hettinger in branch '2.7': Issue #11628: cmp_to_key should use__slots__. http://hg.python.org/cpython/rev/136298326897 -- ___ Python tracker _

[issue11595] Miscellaneous bugs in cfg_to_args() utility function

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Another bug: the extracted author_email value is wrong. -- ___ Python tracker ___ ___ Python-bugs-list

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread STINNER Victor
STINNER Victor added the comment: PyObject * PyBytes_FromString(const char *str) { register size_t size; ... size = strlen(str); ... } PyBytes_FromString() does compute the input string size using strlen(). -- ___ Python tracker

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11635] concurrent.futures uses polling

2011-03-22 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11637] Add cwd to sys.path for hooks

2011-03-22 Thread Éric Araujo
New submission from Éric Araujo : When pysetup is run in a project directory, this dir is not on sys.path, so hooks modules in the dir can’t be found. -- assignee: tarek components: Distutils2 keywords: easy messages: 131778 nosy: alexis, eric.araujo, tarek priority: normal severity: no

[issue11552] Confusing error message when hook module cannot be loaded

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: It’s strange because we do have tests for the function. Can you look at them and find any error? -- ___ Python tracker ___ _

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: The patch contains one unrelated code change. I think the docstrings should not go as is but be cleaned up to match docstrings conventions. I’ve also spotted some phrasing issues. -- ___ Python tracker

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file21317/fix-set-crashers-2.7.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
New submission from RonnyPfannschmidt : i passed in a unicode value as version by accident, resulted in: Traceback (most recent call last): File "/home/ronny/.local/venvs/clean/bin/pysetup", line 7, in execfile(__file__) File "/home/ronny/Projects/distutils2/distutils2/pysetup", line 5,

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: What is the version? Can you also include the setup.cfg file? -- ___ Python tracker ___ ___ Python-bu

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: I assume you meant “hash = entry->hash”, not “entry->key”. Updated patch attached. -- Added file: http://bugs.python.org/file21341/fix-set-crashers-2.7.diff ___ Python tracker _

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: BTW, set_add_entry still uses entry->hash. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
RonnyPfannschmidt added the comment: here the file that passed in the unicode string via hook note that all of the passed characters are actually ascii -- Added file: http://bugs.python.org/file21342/hgdistver.py ___ Python tracker

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
Changes by RonnyPfannschmidt : Added file: http://bugs.python.org/file21343/setup.cfg ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
RonnyPfannschmidt added the comment: actually its enough to have the version_hook set the version to u'0.0' -- ___ Python tracker ___ ___

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 22, 2011 at 5:15 PM, Éric Araujo wrote: >.. > The patch contains one unrelated code change. > Yes, I noticed that, but it may not be that unrelated. Of course the two changes need to be committed separately, but the pop-under issue (issue115

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
Changes by RonnyPfannschmidt : Added file: http://bugs.python.org/file21344/hgdistver.py ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: > I would rather keep code and documentation changes separate. I don’t follow; my comment about bad phrasing was about the text added to the docstrings. > Not that we have any strict docstrings conventions. :-) Not enforced, but still useful to follow: PEP 257.

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: The revised patch looks good. Please make the same change for set_add_entry. If the tests run, go ahead and apply. -- ___ Python tracker ___

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 22, 2011 at 5:29 PM, Éric Araujo wrote: .. >> I would rather keep code and documentation changes separate. > I don’t follow; my comment about bad phrasing was about the text added to the > docstrings. The text added to docstrings was copied

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
New submission from Santoso Wijaya : For example, the function `fileConfig` is listed in the documentation [1] as `logging.fileConfig`. This was a surprise for me when trying it gave me an AttributeError. Only after reading the source code that I found out this function is defined in the `logg

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT

2011-03-22 Thread Rainer Schaaf
Rainer Schaaf added the comment: OK now I got it. Yes for others this would be "very" helpful. Specially as the Py_LIMITED_API promises to solve the changing API issue on windows and Parse_Tuple is one of the main API's used in extensions this would be helpful I guess. I personally decided

[issue11640] Shelve references globals in its __del__ method

2011-03-22 Thread Peter Davies
New submission from Peter Davies : Shelf.__setitem__ (which is called from __del__ when writeback is enabled) references globals. This was causing exceptions on interpreter shutdown (due to another exception) for me. I have attached a patch which stores the relevant globals in the Shelf objec

[issue10225] Fix doctest runable examples in python manual

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: These are fine except for the changes to collections.py. Please leave the deployed code for named tuple as-is. Doctest may have issues with trailing whitespace, but that is doctest's problem, not named tuple's. -- assignee: rhettinger -> belopols

[issue1479611] speed up function calls

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50cc60852a76 by Raymond Hettinger in branch '2.7': Issue 10988: fix description of super's descriptor call. http://hg.python.org/cpython/rev/50cc60852a76 -- nosy: +python-dev ___ Python tracker

[issue11629] Reference implementation for PEP 397

2011-03-22 Thread Craig McQueen
Changes by Craig McQueen : -- nosy: +cmcqueen1975 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e3c46a3dce8 by Raymond Hettinger in branch '3.1': Issue 10988: fix description of super's descriptor call. http://hg.python.org/cpython/rev/3e3c46a3dce8 New changeset 40698c68a32c by Raymond Hettinger in branch '3.2': Issue 10988: fix description

  1   2   >