[issue7001] turtle.py bug-fixes, backported from 3.1 [issue5923]

2009-09-25 Thread R. David Murray
R. David Murray added the comment: Gregor, just to make sure I understand, these patches need to be applied to trunk (2.7) as well as 2.6, correct? -- assignee: -> r.david.murray nosy: +r.david.murray priority: -> normal stage: -> commit review type: -> behavior versions: +Python 2.

[issue7003] finish documentation of user local paths

2009-09-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- components: +Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue7003] finish documentation of user local paths

2009-09-25 Thread Benjamin Peterson
New submission from Benjamin Peterson : This appears at the end of the site documentation: XXX Update documentation XXX document python -m site –user-base –user-site It should be remedied. -- assignee: christian.heimes messages: 93153 nosy: benjamin.peterson, christian.heimes severity:

[issue7002] help me to set variables - 64 bit

2009-09-25 Thread Brett Cannon
Brett Cannon added the comment: You probably need to set the -arch value in your CPPFLAGS. But this is not a Python bug. If you need further help please ask at comp.lang.python/python-list. -- nosy: +brett.cannon resolution: -> invalid status: open -> closed

[issue7002] help me to set variables - 64 bit

2009-09-25 Thread Ashish
New submission from Ashish : Hello, I am compiling python 2.6.2 and 3.1. I tried to compile 64 bit ( ELF 64-bit )python but it gets 32 bit ( ELF 32-bit ). bash-3.00$ sudo file /usr/local/Python-2.6.2/bin/python /usr/local/Python-2.6.2/bin/python: ELF 32-bit MSB executable, PowerPC or cisco 450

[issue6989] Compile error for Python-2.6.2 on Solaris

2009-09-25 Thread Ashish
Ashish added the comment: Issue seems to be resolved. Please close the issue. Thanks a lot Mark for your cooperation, support and Guideline. :-) -- status: open -> closed ___ Python tracker __

[issue6071] no longer possible to hash arrays

2009-09-25 Thread Jan Hosang
Jan Hosang added the comment: The patch breaks five unit tests from other modules, I'll look into it. -- ___ Python tracker ___ ___ Py

[issue6071] no longer possible to hash arrays

2009-09-25 Thread Jan Hosang
Jan Hosang added the comment: I added the two functions for the new buffer API. Having an exported memory view needs some handling elsewhere, so the array does not change. I also added tests for checking that behaviour. Mainly I copypasted code from py3k which involved redirecting to array_r

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-09-25 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for the bug report and for the fix; committed to trunk in rev. 75066. I modified the patch slightly to declare the 'knp' variable in the 'else' block, and both the unctrl()/keyname() sections use the variable. -- ___

[issue6790] httplib and array do not play together well

2009-09-25 Thread Kirk McDonald
Kirk McDonald added the comment: Here is a patch special-casing array.array in httplib.HTTPConnection.send in Python 2.6. -- keywords: +patch nosy: +KirkMcDonald Added file: http://bugs.python.org/file14978/issue6790-python2.6.diff ___ Python tracke

[issue6790] httplib and array do not play together well

2009-09-25 Thread Kirk McDonald
Kirk McDonald added the comment: And here is a patch removing the array.array.read and .write methods in 2.7. -- Added file: http://bugs.python.org/file14979/issue6790-python2.7.diff ___ Python tracker ___

[issue6971] Add the SIO_KEEPALIVE_VALS option to socket.ioctl

2009-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Will you merge to py3k? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7000] optional second argument of string.capwords not documented

2009-09-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> low resolution: -> accepted title: optional second argument of string.keywords not documented -> optional second argument of string.capwords not documented ___

[issue7001] turtle.py bug-fixes, backported from 3.1 [issue5923]

2009-09-25 Thread Gregor Lingl
Gregor Lingl added the comment: !! This patch should be applied if and only if the corresponding one of turtle.py is applied !! -- nosy: +georg.brandl, loewis Added file: http://bugs.python.org/file14977/turtleDemo_262_263.diff ___ Python tracker

[issue7001] turtle.py bug-fixes, backported from 3.1 [issue5923]

2009-09-25 Thread Gregor Lingl
New submission from Gregor Lingl : Among the changes of turtle.py from Python 3.0 to Python 3.1 there were three bugfixes. Those bugs appear also in the Python 2.6 version of turtle.py imho these should be fixed for Python 2.6.3 The appended diffs contain the (backported) fixes of these bugs, (

[issue6999] TypeError in pathfix.py

2009-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch! Fixed in r75062. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5023] Segfault in datetime.time.strftime("%z")

2009-09-25 Thread Philipp Gortan
Philipp Gortan added the comment: I can reproduce this problem with Gentoo Hardened and gcc version 3.4.6 (Gentoo Hardened 3.4.6-r2 p1.6, ssp-3.4.6-1.0, pie-8.7.10) when gdb-ing through the datetimemodule.c, and displaying the "tuple" variable in time_strftime, I can see that the pointer gets

[issue7000] optional second argument of string.keywords not documented

2009-09-25 Thread Mitchell Model
New submission from Mitchell Model : string.capwords has an optional second argument, sep, which is not documented -- assignee: georg.brandl components: Documentation messages: 93139 nosy: MLModel, georg.brandl severity: normal status: open title: optional second argument of string.keywo

[issue6968] numpy extensions to distutils... are a source of improvements for distutils

2009-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Closing since the main purpose has been accomplished and there is otherwise no particular endpoint. -- nosy: +tjreedy status: open -> closed ___ Python tracker

[issue6071] no longer possible to hash arrays

2009-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I tried to implement the new buffer API, but as soon as I add > bf_getbuffer/bf_releasebuffer to PyBufferProcs writing an array to a file > breaks: You should take a look at the array module in py3k, it supports the new buffer API. With a bit of luck, the t

[issue6999] TypeError in pathfix.py

2009-09-25 Thread Andrew McNabb
Changes by Andrew McNabb : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6990] threading.local subclasses don't cleanup their state and it gets recycled

2009-09-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6998] Bug in Tutorial (introduction.rst)

2009-09-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r75059 (py3k) and r75060 (release31-maint), thanks! -- resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-09-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll make this a release blocker, but I agree a test would be useful to have. Let's try to get this in for 2.6.3. -- nosy: +barry priority: -> release blocker ___ Python tracker

[issue6999] TypeError in pathfix.py

2009-09-25 Thread Andrew McNabb
New submission from Andrew McNabb : Tools/scripts/pathfix.py crashes with a TypeError: Traceback (most recent call last): File "Tools/scripts/pathfix.py", line 149, in main() File "Tools/scripts/pathfix.py", line 54, in main if recursedown(arg): bad = 1 File "Tools/scripts/pathfix

[issue6997] python26 compiled on snow leopard x86_64

2009-09-25 Thread Dylan
Dylan added the comment: Thanks! compiled cleanly @/opt/local build is active. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6998] Bug in Tutorial (introduction.rst)

2009-09-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> low resolution: -> accepted ___ Python tracker ___ _

[issue6998] Bug in Tutorial (introduction.rst)

2009-09-25 Thread Michael Markert
New submission from Michael Markert : There is a `print` statement in line 225 of introduction.rst instead of a print function, rendering the snippet buggy in Python3. -- assignee: georg.brandl components: Documentation messages: 93132 nosy: cofi, georg.brandl severity: normal status: op

[issue6997] python26 compiled on snow leopard x86_64

2009-09-25 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for this. Fixes to allow Python to build on Snow Leopard have already been applied to the svn repository, and will be included in the soon-to-appear Python 2.6.3 release. If you have time, please do check out the svn source and verify that it builds

[issue6997] python26 compiled on snow leopard x86_64

2009-09-25 Thread Dylan
Dylan added the comment: oops forgot to mention i realized it was defaulted to /usr/local so i tried compiling the same configuration except adding --prefix=/opt/local built fine try using sudo DEFAULT_ARCH=x86_64 MACOSX_DEPLOYMENT_TARGET=10.6 ./configure --with-universal-archs=64-bit --pref

[issue6993] importing of "time" module is terribly slow

2009-09-25 Thread Nikolay Dyankov
Nikolay Dyankov added the comment: OK, I found the reason and it is the very fact of using /dev/random which would block if there aren't enough random numbers in queue. Maybe dns-python should be using /dev/urandom instead (though there might be reasons for not doing so). The mystery is reveale

[issue6997] python26 compiled on snow leopard x86_64

2009-09-25 Thread Dylan
New submission from Dylan : Hi guys, I consider myself self-taught average geek. after a long time trying many things to get python2.6.2 to build with macports it fails every time until i used this specific argument in the work folder below cd /opt/local/var/macports/build/_opt_local_var_macpo

[issue6993] importing of "time" module is terribly slow

2009-09-25 Thread Nikolay Dyankov
Nikolay Dyankov added the comment: Stupid me :)) I must have really missed that. Still I don't understand why the read call takes 10 seconds to complete. -- status: pending -> open ___ Python tracker _

[issue6991] logging encoding failes some situation

2009-09-25 Thread Naoki INADA
Naoki INADA added the comment: OK, I agree. Thank you for your answer. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue6991] logging encoding failes some situation

2009-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: It's not about logging - your first example (foo.py) didn't have any logging code in it. The problem is caused only when someone doesn't understand how Unicode and codecs.open works, and logging can't fix this. The rule is: If you use a stream without encoding an

[issue6991] logging encoding failes some situation

2009-09-25 Thread Naoki INADA
Naoki INADA added the comment: OK, you're right. But logging is very basic feature and used very wide modules. "All logging code should use unicode string" is right but difficult. And logging may be used for debbuging usually. So I think logging should write log as safe as possible. When log.er

[issue6995] Python 3.1 interpreter Fatal Error on windows with unknown encoding cp720

2009-09-25 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of Issue1616979, which has been accepted and applied. -- nosy: +r.david.murray priority: -> normal resolution: -> duplicate stage: -> committed/rejected status: open -> closed title: Python 3.1 interpreter crashes on windows -> P

[issue6996] Python 2.6.2 & 3.1.1 Installer

2009-09-25 Thread Deepak Parashar
Deepak Parashar added the comment: Thanks , let me give a try , will keep you posted for the status. Again Thanks , -- ___ Python tracker ___ ___

[issue6996] Python 2.6.2 & 3.1.1 Installer

2009-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Actually i was looking forward to install the Python on Xeon CPU based > Windows 64 BIt Machine , any idea of the link if the installer i can > download. Actually, the AMD64 version should work perfectly on 64-bit Intel CPUs. (it's also known as x86-64) --

[issue6996] Python 2.6.2 & 3.1.1 Installer

2009-09-25 Thread Deepak Parashar
Deepak Parashar added the comment: Actually i was looking forward to install the Python on Xeon CPU based Windows 64 BIt Machine , any idea of the link if the installer i can download. -- ___ Python tracker _

[issue6996] Python 2.6.2 & 3.1.1 Installer

2009-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Installers (including 64-bit Windows, aka AMD64) are available on http://python.org/download/. If your platform isn't supported, please be more specific about it. -- nosy: +pitrou resolution: -> invalid status: open -> closed _

[issue6996] Python 2.6.2 & 3.1.1 Installer

2009-09-25 Thread Deepak Parashar
New submission from Deepak Parashar : Need Python 2.6.2 & 3.1.1 Installer for Windows 64 Bit (for Pentium / Intel CPU) -- components: Installation, Windows messages: 93118 nosy: deepakp severity: normal status: open title: Python 2.6.2 & 3.1.1 Installer type: resource usage versions: Py

[issue6995] Python 3.1 interpreter crashes on windows

2009-09-25 Thread bahaelaila7
New submission from bahaelaila7 : python3.1 (both amd64 and 32-bit edition) crash whenever i try to start python.exe. i've tried that on many windows editions, XP, Vista, Seven,,, for each, 64 and 32 bits editions , virtually and normally...always get the same error, as shown in http://

[issue6990] threading.local subclasses don't cleanup their state and it gets recycled

2009-09-25 Thread Philip Jenvey
Philip Jenvey added the comment: Also I've tagged this as a (potential) security issue. E.g. if a web app were affected, one user could potentially access another's data. I actually noticed it in the Beaker sessioning/caching middleware (used by Pylons and other web frameworks). Though it onl

[issue6990] threading.local subclasses don't cleanup their state and it gets recycled

2009-09-25 Thread Philip Jenvey
Philip Jenvey added the comment: Great, though I think it still needs to deallocated: Index: Modules/threadmodule.c === --- Modules/threadmodule.c (revision 75050) +++ Modules/threadmodule.c (working copy) @@ -244,7 +244,

[issue6991] logging encoding failes some situation

2009-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: Your second example (logging_error.py) fails for the same reason - you're writing a byte-string to a stream which is expecting Unicode. The error occurs in logging only it tries encoding as UTF-8 as a last-ditch attempt - and that only happens because of an earlier

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-09-25 Thread Skip Montanaro
Skip Montanaro added the comment: Thanks. I don't know how to use Reitveld. What am I supposed to do with that? S -- ___ Python tracker ___ ___

[issue6991] logging encoding failes some situation

2009-09-25 Thread Naoki INADA
Naoki INADA added the comment: Another sample. Traceback (most recent call last): File "C:\usr\Python2.6\lib\logging\__init__.py", line 790, in emit stream.write(fs % msg.encode("UTF-8")) UnicodeDecodeError: 'ascii' codec can't decode byte 0xaa in position 0: ordinal not in range(128) Th

[issue6994] enumerate dosctring has a typo

2009-09-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r75055 (trunk), r75056 (release26-maint), r75057 (py3k) and r75058 (release31-maint), thanks! -- resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue6993] importing of "time" module is terribly slow

2009-09-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > "No code is being executed" Hmm, in dns.entropy module (I found the code there: http://www.dnspython.com/docs/1.7.1/html/dns.entropy-pysrc.html ) line 89 says "pool = EntropyPool()", and the __init__ function opens and reads bytes from /dev/random. This

[issue6994] enumerate dosctring has a typo

2009-09-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> low resolution: -> accepted ___ Python tracker ___ _

[issue6994] enumerate dosctring has a typo

2009-09-25 Thread Natalia B. Bidart
New submission from Natalia B. Bidart : Current docstring states: Return an enumerate object. iterable must be an other object that supports iteration. It should be: Return an enumerate object. iterable must be another object that supports iteration. -- assignee: georg.brandl compone

[issue6993] importing of "time" module is terribly slow

2009-09-25 Thread Nikolay Dyankov
New submission from Nikolay Dyankov : The behaviour described below is not always reproduced. The attached test script simply tries to import a couple of dns-python modules, which in turn import other ones. No code is being executed. You expect it to exit for less than a second but it does not.

[issue6971] Add the SIO_KEEPALIVE_VALS option to socket.ioctl

2009-09-25 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Due to lack of comments, and the straight-forwardness of this change, I committed it to the trunk in revision 75054 -- resolution: -> accepted status: open -> closed ___ Python tracker

[issue6991] logging encoding failes some situation

2009-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: There seems to be a problem with your foo.py. In it, you are writing a byte-string to a stream returned from codecs.open. I don't think this is correct: you should be writing a Unicode string to that stream, which will convert to bytes using the stream's encoding,

[issue6992] multiple authors in setup.by

2009-09-25 Thread anatoly techtonik
New submission from anatoly techtonik : setup.py should allow to specify multiple authors in package description. -- assignee: tarek components: Distutils messages: 93105 nosy: tarek, techtonik severity: normal status: open title: multiple authors in setup.by ___

[issue6991] logging encoding failes some situation

2009-09-25 Thread Naoki INADA
Naoki INADA added the comment: Please see and execute an attached foo.py. In Python 2.6.2, this cause following error: >python foo.py Traceback (most recent call last): File "foo.py", line 3, in f.write('\xaa') File "C:\usr\Python2.6\lib\codecs.py", line 686, in write return self.w

[issue6991] logging encoding failes some situation

2009-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks, but I'm not sure I understand the reasoning. stream.write(unicode_string) should not do decode() internally, though of course it would do encode(). Can you explain a little more (with an illustrative example) what problem you are trying to solve, and attach

[issue6991] logging encoding failes some situation

2009-09-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6991] logging encoding failes some situation

2009-09-25 Thread Naoki INADA
Changes by Naoki INADA : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue4434] Embedding into a shared library fails

2009-09-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Does it help if you add the --whole-archive option when linking with the static library? As explained there: http://www.lysium.de/blog/index.php?/archives/222-Lost-static-objects-in-static-libraries-with-GNU-linker-ld.html This way your main program will c

[issue6990] threading.local subclasses don't cleanup their state and it gets recycled

2009-09-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Thanks for the excellent test case! Is seems enough to remove the statement "Py_CLEAR(self->key);" from local_clear(). self->key is a string which cannot cause cycles (and is not visited in local_traverse()); now local_dealloc() does its job. Index: threa