[ANN] Announcing MV3D 0.75!

2012-04-15 Thread Michael Handverger
We are very happy to announce the release of version 0.75 of MV3D! This was mainly a bug-fixing release with more than 65 bugs squashed. Also, in this release, MV3D gained support for Linux with the Ogre3D renderer along with Mac OS X with the Panda3D renderer. This means that MV3D's client,

Re: How to get a package pip installable?

2012-04-15 Thread Fayaz Yusuf Khan
nbvf...@gmail.com wrote: (test)chris@amnesia:~$ pip install django-easydump Downloading/unpacking django-easydump Could not find any downloads that satisfy the requirement django-easydump No distributions at all found for django-easydump Storing complete log in /Users/chris/.pip/pip.log

No such file or directory: 'c:\\windows\\temp\\test'

2012-04-15 Thread contro opinion
in my computer C:\Python27python Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win 32 Type help, copyright, credits or license for more information. 1. f=open(r'c:\windows\temp\test','r') Traceback (most recent call last): File stdin, line 1, in module IOError:

File traversing

2012-04-15 Thread Nibin V M
Hello, First of all..I am very new to python with no background in development area! :) Ok, here is my problem.I have opened a file and I need to check each line of that file. I have done it with a while loop. res_own_file = open('/bah') res_own_list = res_own_file.readline()

Re: Python Gotcha's?

2012-04-15 Thread Bryan
Steven D'Aprano wrote: Bryan wrote: Python 3(K) likes to use the same '.py' file extension as its incompatible predecessors, And so it should. We disagree. Not surprising in a gotcha's thread. and in some/many/most *nix implementations, it likes to install in the same place. I won't

Re: No such file or directory: 'c:\\windows\\temp\\test'

2012-04-15 Thread Almar Klein
IOError: [Errno 2] No such file or directory: 'c:\\windows\\temp\\test.txt' would you mind telling me what's wrong ? I think the file that you try to open does not exists :) Please be more specific. What are you trying to achieve, and are you absolutely sure that such a file exist? Almar

Re: Python Gotcha's?

2012-04-15 Thread Chris Angelico
On Sun, Apr 15, 2012 at 7:23 PM, Bryan bryanjugglercryptograp...@yahoo.com wrote: Yes, that was just silly of me to write that. All I want is a new general convention for the most-likely-to-work invocation that won't break with the change: #!/usr/bin/env python for Python 2 versus, for

Re: File traversing

2012-04-15 Thread Chris Angelico
On Sun, Apr 15, 2012 at 7:15 PM, Nibin V M nibi...@gmail.com wrote: res_own_file = open('/bah') res_own_list = res_own_file.readline() res_tot_list=[] while res_own_list:   res_own_list=res_own_list.strip()   res_own_list=res_own_list.replace(' ', '')   res_name=res_own_list.split(':')  

Re: No such file or directory: 'c:\\windows\\temp\\test'

2012-04-15 Thread Chris Angelico
On Sun, Apr 15, 2012 at 7:13 PM, contro opinion contropin...@gmail.com wrote: in my computer C:\Python27python Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win 32 Type help, copyright, credits or license for more information. 1.

Re: Naming future objects and their methods

2012-04-15 Thread Almar Klein
Hi Stefan, What do you think would be a natural way to name the future returned by `put_bytes` and possibly the `was_sent` method attached to it? Can you even come up with nice naming rules for futures and their methods? :-) I think the intended way to get notified when a future is done is

Re: Python Gotcha's?

2012-04-15 Thread Mark Lawrence
On 15/04/2012 10:23, Bryan wrote: My perspective is simply different from yours. I'm not the one who installs python on most of the boxes where I work or play. There's little consistency, so I love conventions that usually work. I'd like to advocate for Python 3, but the default install on

Re: f python?

2012-04-15 Thread Seymour J.
In 87aa2iz3l1@kuiper.lan.informatimago.com, on 04/11/2012 at 05:32 PM, Pascal J. Bourguignon p...@informatimago.com said: You're confused. C doesn't have arrays. Lisp has arrays. C only has vectors Neither C nor any other programming language has vectors ;-) That C calls its vectors

Whither paramiko?

2012-04-15 Thread Bryan
Paramiko is a Python library for SSH (Secure Shell). Over about the last year, I've grown dependent upon it. Its home page is still easy to search up, but the links to its mailing list and repository don't work. Paramiko depends on PyCrypto, and not so long ago that dependency was the stated

Re: Naming future objects and their methods

2012-04-15 Thread Michael Torrie
On 04/14/2012 04:22 PM, Stefan Schwarzer wrote: However, I'm not comfortable with the combination of the names of the future and its method. After all, not the `put_result` was sent, but the data that was the argument in the `put_bytes` call. Maybe `data_was_sent` is better than `was_sent`,

Writing Android application using GPS data with Python

2012-04-15 Thread Noam Peled
I want to write an Android application using Python. I've found 2 options for that: kivy and SL4A. In kivy, at least for now, I can't use the GPS data. Anyone knows if I can get the GPS data using SL4A with Python? As I understood, one can write commercial apps using kivy. On the other hand,

Re: Python Gotcha's?

2012-04-15 Thread Steven D'Aprano
On Sun, 15 Apr 2012 02:23:27 -0700, Bryan wrote: Steven D'Aprano wrote: Bryan wrote: Python 3(K) likes to use the same '.py' file extension as its incompatible predecessors, And so it should. We disagree. Not surprising in a gotcha's thread. Yes, but I have reasons for disagreeing,

Re: Python Gotcha's?

2012-04-15 Thread Curt
On 2012-04-15, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: We disagree. Not surprising in a gotcha's thread. Yes, but I have reasons for disagreeing, which you trimmed out of your response. If you have reasons for thinking that a separate file extension for Python 3 is a

Re: Writing Android application using GPS data with Python

2012-04-15 Thread Boris FELD
You can try appaccelerator, it seems to support python and you should be able to access geolocalisation (according to wikipedia: https://en.wikipedia.org/wiki/Appcelerator_Titanium) Le 15 avril 2012 16:44, Noam Peled peled.n...@gmail.com a écrit : I want to write an Android application using

Re: f python?

2012-04-15 Thread Ian Kelly
On Sat, Apr 14, 2012 at 8:57 PM, Shmuel Metz spamt...@library.lspace.org.invalid wrote: In 87aa2iz3l1@kuiper.lan.informatimago.com, on 04/11/2012   at 05:32 PM, Pascal J. Bourguignon p...@informatimago.com said: You're confused. C doesn't have arrays.  Lisp has arrays. C only has vectors

Re: Newbie python questions...

2012-04-15 Thread rusi
On Apr 15, 7:47 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sat, 14 Apr 2012 11:25:57 -0700, vmars316 wrote: win7HomePremium: Greetings, 1) I installed portablePython(pP) here: C:\Users\vmars\Python3  ?Does that look ok? Sure, why not? 2) I would like to

Re: Newbie python questions...

2012-04-15 Thread rusi
On Apr 14, 11:25 pm, vmars316 vmars...@gmail.com wrote: win7HomePremium: Greetings, 1) I installed portablePython(pP) here: C:\Users\vmars\Python3  ?Does that look ok? A brief look at portable python's website indicates that its meant for running off usb sticks (ie without installation) If

Re: Naming future objects and their methods

2012-04-15 Thread Laurent Pointal
Stefan Schwarzer wrote: Hello, I wrote a `Connection` class that can be found at [1]. A `Connection` object has a method `put_bytes(data)` which returns a future [2]. The data will be sent asynchronously by a thread attached to the connection object. The future object returned by

Re: Python Gotcha's?

2012-04-15 Thread Steven D'Aprano
On Sun, 15 Apr 2012 15:30:39 +, Curt wrote: On 2012-04-15, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: We disagree. Not surprising in a gotcha's thread. Yes, but I have reasons for disagreeing, which you trimmed out of your response. If you have reasons for thinking

Re: Python Gotcha's?

2012-04-15 Thread Bryan
Steven wrote: Yes, but I have reasons for disagreeing, which you trimmed out of your response. If you have reasons for thinking that a separate file extension for Python 3 is a good idea, you are keeping it to yourself. On Windows the file extension determines what executable opens the file.

escaping

2012-04-15 Thread Kiuhnm
This is the behavior I need: path = path.replace('\\', '') msg = . {} .. '{}' .. {} ..format(a, path, b) Is there a better way? Kiuhnm -- http://mail.python.org/mailman/listinfo/python-list

Re: escaping

2012-04-15 Thread Steve Howell
On Apr 15, 2:07 pm, Kiuhnm kiuhnm03.4t.yahoo.it wrote: This is the behavior I need:      path = path.replace('\\', '')      msg = . {} .. '{}' .. {} ..format(a, path, b) Is there a better way? A little more context would help. The quadruple-toothpick idiom predates Python. It's a

Re: Naming future objects and their methods

2012-04-15 Thread Cameron Simpson
On 15Apr2012 00:22, Stefan Schwarzer sschwar...@sschwarzer.net wrote: | I wrote a `Connection` class that can be found at [1]. A | `Connection` object has a method `put_bytes(data)` which | returns a future [2]. The data will be sent asynchronously | by a thread attached to the connection object.

Re: escaping

2012-04-15 Thread Terry Reedy
On 4/15/2012 5:07 PM, Kiuhnm wrote: This is the behavior I need: path = path.replace('\\', '') Is there a better way? For one-time use, and given that you cannot un-double with the r prefix, not that I know of. For using the substrings multiple times, name them. s = r'abc\cd\ef' bs =

Re: f python?

2012-04-15 Thread Terry Reedy
On 4/15/2012 12:16 PM, Ian Kelly wrote: On Sat, Apr 14, 2012 at 8:57 PM, Shmuel Metz spamt...@library.lspace.org.invalid wrote: In87aa2iz3l1@kuiper.lan.informatimago.com, on 04/11/2012 at 05:32 PM, Pascal J. Bourguignonp...@informatimago.com said: You're confused. C doesn't have

Re: No such file or directory: 'c:\\windows\\temp\\test'

2012-04-15 Thread Terry Reedy
On 4/15/2012 5:13 AM, contro opinion wrote: f=open(r'c:\windows\temp\test','r') f=open('c:\\windows\\temp\\test','r') Your life will be much happier is you use forward slashes for filenames in Python programs. f = open('c:/windows/temp/test', 'r') You only need backslashes when

Re: f python?

2012-04-15 Thread Ian Kelly
On Sun, Apr 15, 2012 at 4:49 PM, Terry Reedy tjre...@udel.edu wrote: On 4/15/2012 12:16 PM, Ian Kelly wrote: On Sat, Apr 14, 2012 at 8:57 PM, Shmuel  Metz spamt...@library.lspace.org.invalid  wrote: In87aa2iz3l1@kuiper.lan.informatimago.com, on 04/11/2012   at 05:32 PM, Pascal J.

Re: Python Gotcha's?

2012-04-15 Thread Terry Reedy
On 4/15/2012 4:01 PM, Bryan wrote: On Windows the file extension determines what executable opens the file. Running both Python 2 and Python 3 on Windows is painful where it doesn't need to be. I'd like to encourage my users to check out Python 3, but installing it on Windows will take over the

Re: Python Gotcha's?

2012-04-15 Thread Mark Lawrence
On 15/04/2012 21:01, Bryan wrote: Steven wrote: Yes, but I have reasons for disagreeing, which you trimmed out of your response. If you have reasons for thinking that a separate file extension for Python 3 is a good idea, you are keeping it to yourself. On Windows the file extension

Re: Python Gotcha's?

2012-04-15 Thread David Robinow
On Sun, Apr 15, 2012 at 4:01 PM, Bryan bryanjugglercryptograp...@yahoo.com wrote: On Windows the file extension determines what executable opens the file. Running both Python 2 and Python 3 on Windows is painful where it doesn't need to be. I'd like to encourage my users to check out Python 3,

Re: f python?

2012-04-15 Thread Terry Reedy
On 4/15/2012 6:59 PM, Ian Kelly wrote: On Sun, Apr 15, 2012 at 4:49 PM, Terry Reedytjre...@udel.edu wrote: On 4/15/2012 12:16 PM, Ian Kelly wrote: On Sat, Apr 14, 2012 at 8:57 PM, Shmuel Metz spamt...@library.lspace.org.invalidwrote: In87aa2iz3l1@kuiper.lan.informatimago.com, on

Re: Python Gotcha's?

2012-04-15 Thread Andrew Berg
On 4/15/2012 3:01 PM, Bryan wrote: I'd like to encourage my users to check out Python 3, but installing it on Windows will take over the '.py' extension and break stuff that currently works. Have you tried telling your users to tell the installer not to do that? IIRC, it's a simple checkbox

Re: escaping

2012-04-15 Thread Steven D'Aprano
On Sun, 15 Apr 2012 23:07:36 +0200, Kiuhnm wrote: This is the behavior I need: path = path.replace('\\', '') msg = . {} .. '{}' .. {} ..format(a, path, b) Is there a better way? This works for me: a = spam b = ham path = rC:\a\b\c\d\e.txt msg = . %s .. %r .. %s . % (a,

How to execute/run a *.py file, win7, py3.2..?

2012-04-15 Thread vmars316
Greetings, windows7, portablePython3.2: What if i wanted to send myProg.py to a friend to RUN (who has python installed). Isn't there a way just to doubleClick on myProg.py, to get it into the interpret/RUN? Could i RUN a myProg.o ? There must be a way to initiate the RUNning of a myProg.py

Re: How to execute/run a *.py file, win7, py3.2..?

2012-04-15 Thread Andrew Berg
On 4/15/2012 11:30 PM, vmars316 wrote: Isn't there a way just to doubleClick on myProg.py, to get it into the interpret/RUN? Use the standard installer from python.org if you want to do things with the registry. The standard installer sets up the registry for you so that the interpreter will be

Re: How to execute/run a *.py file, win7, py3.2..?

2012-04-15 Thread Dave Angel
On 04/16/2012 12:30 AM, vmars316 wrote: Greetings, windows7, portablePython3.2: What if i wanted to send myProg.py to a friend to RUN (who has python installed). Isn't there a way just to doubleClick on myProg.py, to get it into the interpret/RUN? Could i RUN a myProg.o ? There must be a

sort by column a csv file case insensitive

2012-04-15 Thread Lee Chaplin
Hi all, I am trying to sort, in place, by column, a csv file AND sort it case insensitive. I was trying something like this, with no success: import csv import operator def sortcsvbyfield(csvfilename, columnnumber): with open(csvfilename, 'rb') as f: readit = csv.reader(f) thedata =

Re: sort by column a csv file case insensitive

2012-04-15 Thread Dave Angel
On 04/16/2012 01:11 AM, Lee Chaplin wrote: Hi all, I am trying to sort, in place, by column, a csv file AND sort it case insensitive. I was trying something like this, with no success: Could you perhaps qualify that no success bit? Do you mean it didn't output a file, or that the file

Re: How to execute/run a *.py file, win7, py3.2..?

2012-04-15 Thread Steven D'Aprano
On Sun, 15 Apr 2012 21:30:48 -0700, vmars316 wrote: Greetings, windows7, portablePython3.2: What if i wanted to send myProg.py to a friend to RUN (who has python installed). If your friend has Python installed, then double-clicking the .py file should work fine. Isn't there a way just

Re: Python Gotcha's?

2012-04-15 Thread Steven D'Aprano
On Sun, 15 Apr 2012 13:01:54 -0700, Bryan wrote: Steven wrote: Yes, but I have reasons for disagreeing, which you trimmed out of your response. If you have reasons for thinking that a separate file extension for Python 3 is a good idea, you are keeping it to yourself. On Windows the file

Re: How to execute/run a *.py file, win7, py3.2..?

2012-04-15 Thread alex23
On Apr 16, 2:30 pm, vmars316 vmars...@gmail.com wrote: windows7, portablePython3.2: Is there a reason why you're using Portable Python over the standard install? What if i wanted to send myProg.py to a friend to RUN (who has python installed). Isn't there a way just to doubleClick on

Re: Python Gotcha's?

2012-04-15 Thread alex23
On Apr 16, 3:34 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: The situation is worse on Windows, as Windows doesn't support hash-bang syntax. But that is being looked at now: http://www.python.org/dev/peps/pep-0397/ which should make supporting multiple Python versions

[issue3982] support .format for bytes

2012-04-15 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___ Python-bugs-list

[issue12081] Remove distributed copy of libffi

2012-04-15 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: In any case, it should be OK to remove libffi_arm_wince? Is WinCE supported? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12081

[issue1508475] transparent gzip compression in urllib

2012-04-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1508475 ___

[issue3493] No Backslash (\) in IDLE 1.2.2

2012-04-15 Thread Peter Nielsen
Peter Nielsen peter.ev...@gmail.com added the comment: Hello there Yes, I am afraid the problem persists. I have downloaded version 3.2.3 of python 32 bit. In terminal in OSX 10.7.3, you can use the keys ALT + SHIFT and 7 to get the \ but in the Idle application there is no way to do that.

[issue1508475] transparent gzip compression in urllib

2012-04-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: What if the gzip module is not available? I think, with transparent decompression should delete headers Content-Encoding (to free the user from re-decompression) and Content-Length (which is wrong). --

[issue3493] No Backslash (\) in IDLE 1.2.2

2012-04-15 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Peter: I'm sorry that I didn't make it clearer in my reply that you need to use the 64-bit/32-bit python.org installers (available for OS X 10.6 and above), not the 32-bit-only installers. The 32-bit-only-installers are linked with Tcl/Tk 8.4 since

[issue14507] Segfault with starmap and izip combo

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: You are creating a 10 level nested structure of iterators. It is no wonder that you exhaust the stack space of the interpreter. You would get the same with any iterator combination, nothing special with zip and starmap here.

[issue11750] Mutualize win32 functions

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: (fixed wsock32.lib in revision ab0aff639cfb) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11750 ___

[issue14574] SocketServer doesn't handle client disconnects properly

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I think this needs serious consideration. There needs to be an socket error case cleanup path that releases resources but ignores further socket errors. -- ___ Python tracker

[issue10576] Add a progress callback to gcmodule

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 88f8ef5785d7 by Kristján Valur Jónsson in branch 'default': Issue #10576: Add a progress callback to gcmodule http://hg.python.org/cpython/rev/88f8ef5785d7 -- nosy: +python-dev

[issue10576] Add a progress callback to gcmodule

2012-04-15 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10576 ___

[issue14507] Segfault with starmap and izip combo

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Kristján, we already have provisions to avoid stack overflows, instead bailing out with a RuntimeError. So this is a bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14507

[issue13889] str(float) and round(float) issues with FPU precision

2012-04-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Slightly reworked patch. I plan to apply this shortly. - Use ~(_MCW_PC | _MCW_RC) rather than (_MCW_DN | ...), since this seems more future proof: there's a possibility that more flags could be added later. - Put the usual do { ... }

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please re-upload this as a unified diff? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4130 ___

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Alex Leach
Changes by Alex Leach beamesle...@gmail.com: Added file: http://bugs.python.org/file25221/ffi64.c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4130 ___

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a patch that rectifies this situation, albeit in a somewhat 'hacky' manner. It works by injecting a monitoring 'tp_free' call into the type during the basedealloc call, which sets a flag if it was called with the object,

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2012-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9303 ___

[issue12081] Remove distributed copy of libffi

2012-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12081 ___ ___ Python-bugs-list

[issue12081] Remove distributed copy of libffi

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think we have ever supported WinCE (which is apparently named Windows Embedded Compact 7 nowadays). It only provides a subset of the Win32 API so the current tree may not even compile. -- nosy: +brian.curtin, loewis, pitrou

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: The RuntimeError: maximum recursion depth exceeded message is normally only triggered by pure Python recursion, so I would not have expected it here, but there should be some sort of graceful MemoryError or somesuch rather than a

[issue11750] Mutualize win32 functions

2012-04-15 Thread sbt
sbt shibt...@gmail.com added the comment: New patch. Compared to the previous one: * socket functions have been moved from _windows to _multiprocessing * _windows.vcpoj has been removed (so _windows is part of pythoncore.vcproj) * no changes to pcbuild.sln needed * removed reference to

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Another, less hacky but more intrusive, way would be to change the signature of tp_dealloc in a backwards compatible way: typedef void (*destructor)(PyObject *, int *destroyed); The destructor can then set the flag pointed to by

[issue11750] Mutualize win32 functions

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch. Compared to the previous one: * socket functions have been moved from _windows to _multiprocessing * _windows.vcpoj has been removed (so _windows is part of pythoncore.vcproj) * no changes to pcbuild.sln needed * removed

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Hmm, substituting PyIter_Next() didn't help. There isn't much else being done in starmap.next, just a call to: result = PyObject_Call(lz-func, args, NULL); I'm now wondering if starmap() is tickling a bug in PyObject_Call,

[issue13889] str(float) and round(float) issues with FPU precision

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dfc9a98a5fef by Mark Dickinson in branch '3.2': Issue #13889: On MSVC builds, set FPU control word at runtime for all string - float conversions. Patch by Samuel Iseli and Stefan Krah.

[issue13889] str(float) and round(float) issues with FPU precision

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bf3b77722c9f by Mark Dickinson in branch '2.7': Issue #13889: On MSVC builds, set FPU control word at runtime for all string - float conversions. Patch by Samuel Iseli and Stefan Krah.

[issue14573] json iterencode can not handle general iterators

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's more of a feature request than a bug. By definition JSON can only represent a small subset of Python's types. Also, if you encode an iterator as a JSON list, you will get back a Python list when decoding the JSON representation, so it

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread Christian Clauss
New submission from Christian Clauss ccla...@bluewin.ch: BUGS: certain diacritical marks can and should be capitalized... str.upper() does not .replace('à', 'À').replace('ä', 'Ä').replace('è', 'È').replace('é', 'É').replace('ö', 'Ö').replace('ü', 'Ü'), etc. str.lower() does not

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm now wondering if starmap() is tickling a bug in PyObject_Call, perhaps memory being allocated but not checked for NULL or somesuch. The issue is that the code paths involved here circumvent recursion checking, so the stack blows up.

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It works fine if you use unicode. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: a = map(add, a, b) also crashes this. a = chain(a, b) also. If, by provisions you speak of sys.max_recursion_depth, that is only invoked when executing python code. What's happening here is just simple c recursion trough

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: a = map(add, a, b) also crashes this. a = chain(a, b) also. If, by provisions you speak of sys.max_recursion_depth, that is only invoked when executing python code. There's nothing that prevents it from protecting C code. --

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread Christian Clauss
Christian Clauss ccla...@bluewin.ch added the comment: On Apr 15, 2012, at 4:43 PM, R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: It works fine if you use unicode. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected

[issue13496] bisect module: Overflow at index computation

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 35a3a7e0d66d by Mark Dickinson in branch '3.2': Issue 13496: Fix bisect.bisect overflow bug for large collections. http://hg.python.org/cpython/rev/35a3a7e0d66d New changeset 1a9252280f07 by Mark Dickinson in branch

[issue13496] bisect module: Overflow at index computation

2012-04-15 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13496 ___

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: In addition to R. David's remark, it also works fine in a German locale. In general, you cannot know whether the byte '\xe4' denotes 'ä' or some other letter. For example, in KOI8-R, it denotes Д, instead, which already is an upper-case

[issue13889] str(float) and round(float) issues with FPU precision

2012-04-15 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13889 ___

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14507 ___ ___ Python-bugs-list

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2012-04-15 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8212 ___ ___ Python-bugs-list

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4130 ___ ___ Python-bugs-list

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: [Kristján] a = map(add, a, b) also crashes this. ... What's happening here is just simple c recursion trough function pointers, ending in stack overflow, ... Thanks for the analysis. ISTM, this bug report is getting less and

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The existing sys.max_recursion_depth was put in as a defense against the relatively common mistake of users writing a recursive function and getting the termination code wrong. I don't think that logic would apply to intentionally deeply

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Or you can port your program to Python 3 to avoid such issues :-) -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14587

[issue11750] Mutualize win32 functions

2012-04-15 Thread sbt
sbt shibt...@gmail.com added the comment: I think the module would be better named _win32, since that's the name of the API (like POSIX under Unix). Changed in new patch. Also, it seems there are a couple of naming inconsistencies renaming (e.g. the overlapped wrapper is named

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Indeed, this type of confusion is a large part of the motivation behind Python3. You might try posting to the python-list mailing list asking for help if for some reason you are required to use python2 for your program. --

[issue14585] Have test_import run more importlib tests

2012-04-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: This also means that the importlib.test.import_.util.importlib_only decorators are probably all useless. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14585

[issue8900] IDLE crashes if Preference set to At Startup - Open Edit Window

2012-04-15 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Implicit relative imports are not related to this issue. Can someone please review the given patch? -- stage: - patch review ___ Python tracker rep...@bugs.python.org

[issue11750] Mutualize win32 functions

2012-04-15 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: pythoncore.vcproj) * no changes to pcbuild.sln needed * removed reference to 'win32_functions.c' in setup.py I think the module would be better named _win32, since that's the name of the API (like POSIX under Unix). While there are many

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: [Raymond: I presume you meant that C iterators have not been a problem in the wild and have done fine.] The RuntimeError message maximum recursion depth exceeded is not exactly correct. As Kristján implied in his first message, what has been

[issue14339] Optimizing bin, oct and hex

2012-04-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: A few comments: (1) The patch appears to assume that a Unicode string created with PyUnicode_New(size, 127) will have 'kind' PyUnicode_1BYTE_KIND. While this might be true in the current implementation, I don't know whether this is

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It happens to be that recursive calls are the easiest way to do that, but Python makes it somewhat easy to dynamically generate thousands of different callables making thousands of non-recursive nested calls. That's a rather pointless

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-04-15 Thread Daniel Harding
Daniel Harding dhard...@gmail.com added the comment: I have attached a series of patches with (hopefully) provide more robust fix for this issue, against the Python 3.3 branch. It handles both bytes and str objects, paths that do not actually exist on the filesystem, and removal of the

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch to fix the caps-lock issue with Windows key bindings in config-keys.def. -- keywords: +patch Added file: http://bugs.python.org/file25226/windows_caps_lock.patch ___ Python

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12387 ___

  1   2   >