ANN: PyGUI 2.1.1

2009-11-19 Thread Greg Ewing
PyGUI 2.1.1 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This is an emergency bugfix release to repair some major breakage in the gtk version. Also corrects some other problems. What is PyGUI? -- PyGUI is a cross-platform GUI toolkit designed to be

PyCon Posters deadline looms: Nov. 30

2009-11-19 Thread Catherine Devlin
The deadline for PyCon poster proposals is coming up soon - November 30! This year PyCon is introducing Poster Sessions. Poster sessions provide an alternative presentation mechanism that facilitates more one-on-one communication between the presenter and the audience. Poster sessions are

Python 3.1 cx_Oracle 5.0.2 ImportError: DLL load failed: The specified module could not be found.

2009-11-19 Thread André
Hello, I'm trying to get Python 3.1 and cx_Oracle 5.02 (cx_Oracle-5.0.2-10g.win32-py3.0.msi) to connect to an Oracle 11.1.0.7.0 database via OraClient10g 10.2.0.3.0 with Pydev 1.5.1.1258496115 in Eclipse 20090920-1017 on Windows XP SP 3 v2002. The import cx_Oracle line appears as an unresolved

Re: is there any FIX message handle modules in Python?

2009-11-19 Thread Simon Hibbs
On 19 Nov, 05:25, alex23 wuwe...@gmail.com wrote: On Nov 19, 3:21 pm, Stephen.Wu 54wut...@gmail.com wrote: FIX message is the Financial information Exchange protocol messages... any 3rd libs we have? You mean like this one that was the first result when I googled 'python financial

Re: python gui builders

2009-11-19 Thread sturlamolden
On 18 Nov, 20:19, Dave Cook davec...@nowhere.net wrote: If it's an issue for your project, I suggest wxPython.  It's cross-platform, fairly complete, and extensible.  But the API is clunky compared to Qt. Not if we use wxFormBuilder 3.1. -- http://mail.python.org/mailman/listinfo/python-list

Communication between python and wxWidgets.. Help needed...

2009-11-19 Thread Jebagnana Das
Hi Friends, I want to thank you all for doing a great job.. I seek your suggestions and valuable guidance regarding two things. 1) I'm using python 3.1.1 and wxWidgets for GUI development in my project .. I want to have a half-duplex communication between widgets and python(say

Re: non-copy slices

2009-11-19 Thread tbourden
No I'm well aware that there is no deep copy of the objects and the lists only keep references to the objects and in essence they have the same objects in there. But this doesn't mean they are the same list. Modifications to slices are not written back to the original list. x = range(5) y =

Re: getting properly one subprocess output

2009-11-19 Thread Jean-Michel Pichavant
Nobody wrote: On Wed, 18 Nov 2009 12:25:14 +0100, Jean-Michel Pichavant wrote: I'm currently inspecting my Linux process list, trying to parse it in order to get one particular process (and kill it). I ran into an annoying issue: The stdout display is somehow truncated (maybe a terminal

Re: non-copy slices

2009-11-19 Thread Daniel Stutzbach
On Wed, Nov 18, 2009 at 9:00 PM, Rami Chowdhury rami.chowdh...@gmail.comwrote: I'm not sure you're understanding the point others have been making. A list item is merely another reference to an existing object -- it doesn't copy the object in any way. It still has to copy the reference,

Re: non-copy slices

2009-11-19 Thread Ethan Furman
Please don't top post. :) tbour...@doc.ic.ac.uk wrote: On Thu, Nov 19, 2009 at 3:00 AM, Rami Chowdhury rami.chowdh...@gmail.com mailto:rami.chowdh...@gmail.com wrote: I'm not sure you're understanding the point others have been making. A list item is merely another reference to an

Re: A Good Mailer

2009-11-19 Thread Victor Subervi
On Wed, Nov 18, 2009 at 6:30 PM, Nick Stinemates n...@stinemates.orgwrote: On Wed, Nov 18, 2009 at 03:27:11PM -0400, Victor Subervi wrote: Hi; I need a good mailer that will enable me to mail email from web forms. smtplib Suggestions? silly example.. #!/usr/bin/env python import

Re: non-copy slices

2009-11-19 Thread Rami Chowdhury
On Thu, 19 Nov 2009 02:39:42 -0800, tbour...@doc.ic.ac.uk wrote: Second and more importantly it's the performance penalty from allocating a large number of lists produced from the slices and the copy of the references. Ah, I see what you were getting at -- thanks for clarifying. On Thu,

Python Will Not Send Email!!

2009-11-19 Thread Victor Subervi
Hi; I created this testMail.py file as root: #!/usr/bin/env python import smtplib session = smtplib.SMTP(localhost) subject = Hello, header = Subject: %s \r\nContent-type: text/html; charset=utf-8\r\n\r\n message = world! email_from = vic...@is.awesome email_to = [em...@myhost.com]

Re: Python Will Not Send Email!!

2009-11-19 Thread Victor Subervi
On Thu, Nov 19, 2009 at 11:28 AM, Victor Subervi victorsube...@gmail.comwrote: Hi; I created this testMail.py file as root: #!/usr/bin/env python import smtplib session = smtplib.SMTP(localhost) subject = Hello, header = Subject: %s \r\nContent-type: text/html; charset=utf-8\r\n\r\n

Re: python and web pages

2009-11-19 Thread Gerhard Häring
Daniel Dalton wrote: Hi, Here is my situation: I'm using the command line, as in, I'm not starting gnome or kde (I'm on linux.) I have a string of text attached to a variable,. So I need to use one of the browsers on linux, that run under the command line, eg. lynx, elinks, links, links2

make two tables having same orders in both column and row names

2009-11-19 Thread Ping-Hsun Hsieh
Hi, I would like to compare values in two table with same column and row names, but with different orders in column and row names. For example, table_A in a file looks like the follows: AA100 AA109 AA101 AA103 AA102 BB1 2 9 2.3 1 28 BB3 12 9 2.3

Re: Writing a Carriage Return in Unicode

2009-11-19 Thread Doug
Hi! Thanks for clearing this up!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Communication between python and wxWidgets.. Help needed...

2009-11-19 Thread Jonas Geiregat
Op 19-nov-09, om 09:42 heeft Jebagnana Das het volgende geschreven: Hi Friends, I want to thank you all for doing a great job.. I seek your suggestions and valuable guidance regarding two things. 1) I'm using python 3.1.1 and wxWidgets for GUI development in my project

Re: Python Will Not Send Email!!

2009-11-19 Thread Carsten Haese
Victor Subervi wrote: Hi; I created this testMail.py file as root: #!/usr/bin/env python import smtplib session = smtplib.SMTP(localhost) subject = Hello, header = Subject: %s \r\nContent-type: text/html; charset=utf-8\r\n\r\n message = world! email_from = vic...@is.awesome email_to =

Re: non-copy slices

2009-11-19 Thread Themis Bourdenas
On Thu, Nov 19, 2009 at 2:44 PM, Ethan Furman et...@stoneleaf.us wrote: Please don't top post. :) So shallow copy == new label created for existing object. So is your desired behavior to write back to the original list if your sub-list is modified? In other words, you are creating a

Re: mechanize login problem with website

2009-11-19 Thread elca
elca wrote: Hello I'm making auto-login script by use mechanize python. Before I was used mechanize with no problem, but http://www.gmarket.co.kr in this site I couldn't make it . whenever i try to login always login page was returned even with correct gmarket id , pass, i can't

Re: Communication between python and wxWidgets.. Help needed...

2009-11-19 Thread Dave Angel
Jonas Geiregat wrote: Op 19-nov-09, om 09:42 heeft Jebagnana Das het volgende geschreven: Hi Friends, I want to thank you all for doing a great job.. I seek your suggestions and valuable guidance regarding two things. 1) I'm using python 3.1.1 and wxWidgets for GUI

Re: make two tables having same orders in both column and row names

2009-11-19 Thread Emile van Sebille
On 11/18/2009 12:57 PM Ping-Hsun Hsieh said... Hi, I would like to compare values in two table with same column and row names, but with different orders in column and row names. For example, table_A in a file looks like the follows: AA100 AA109 AA101 AA103 AA102 BB1 2 9

Re: Python-list Digest, Vol 74, Issue 245

2009-11-19 Thread Threader Slash
On Thu, Nov 19, 2009 at 7:05 PM, python-list-requ...@python.org wrote: -- -- From: Threader Slash threadersl...@gmail.com To: python-list@python.org Date: Thu, 19 Nov 2009 14:51:27 +1100 Subject: Qt Python radiobutton: activate event Hi Guys, I am trying to get the

Re: Python Will Not Send Email!!

2009-11-19 Thread Kev Dwyer
On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: Hello Victor, There are some pages on the internet that suggest that this problem my be caused by a module named email.py (or email.pyc) in your pythonpath. If you try import smtplib in the interpreter do you get this error message?

Re: make two tables having same orders in both column and row names

2009-11-19 Thread Simon Forman
On Wed, Nov 18, 2009 at 3:57 PM, Ping-Hsun Hsieh hsi...@ohsu.edu wrote: Hi, I would like to compare values in two table with same column and row names, but with different orders in column and row names. For example, table_A in a file looks like the follows: AA100   AA109   AA101   AA103  

Re: hex

2009-11-19 Thread Rhodri James
On Thu, 19 Nov 2009 02:29:59 -, hong zhang henryzhan...@yahoo.com wrote: List, I want to input hex number instead of int number. in type=int in following, parser.add_option(-F, --forcemcs, dest=force_mcs, type=int, default=0, help=index of 11n mcs table. Default: 0.) How can I do

Re: non-copy slices

2009-11-19 Thread Ethan Furman
Themis Bourdenas wrote: On Thu, Nov 19, 2009 at 2:44 PM, Ethan Furman et...@stoneleaf.us mailto:et...@stoneleaf.us wrote: So shallow copy == new label created for existing object. So is your desired behavior to write back to the original list if your sub-list is modified? In

[issue6816] Provide CPython command line functionality via runpy module

2009-11-19 Thread Chris Withers
Changes by Chris Withers ch...@simplistix.co.uk: -- nosy: -cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list

[issue1488943] difflib.Differ() doesn't always add hints for tab characters

2009-11-19 Thread Phillip Hellewell
Phillip Hellewell ssho...@gmail.com added the comment: Please apply the patch ASAP. This bug is affecting downstream product viewvc in a very adverse way. See http://viewvc.tigris.org/issues/show_bug.cgi?id=436 It's sad that I spent several hours tracking down this bug only to find out that

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Steve Krenzel
New submission from Steve Krenzel sgk...@gmail.com: The struct module has a calcsize() method which reports the size of the data for a specified format string. In some instances, to the best of my knowledge, this is wrong. To repro: from struct import calcsize calcsize(ci) 8 calcsize(ic) 5

[issue5862] multiprocessing 'using a remote manager' example errors and possible 'from_address' code leftover

2009-11-19 Thread Alexander Dutton
Changes by Alexander Dutton d...@alexdutton.co.uk: -- nosy: +alexdutton ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5862 ___ ___

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It's a padding issue, having to do with putting values at the correct word boundaries. -- nosy: +eric.smith resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker

[issue1859] textwrap doesn't linebreak on \n

2009-11-19 Thread Tom Lynn
Tom Lynn tl...@users.sourceforge.net added the comment: This bug should be re-opened, since there is definitely a bug here. I think the patch was incorrectly rejected. If I can expand palfrey's example: from textwrap import * T = TextWrapper(replace_whitespace=False, width=75) text = '''\

[issue7353] Why was Include/intobject.h removed in 3.1?

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: However, that header file was removed in this commit: http://svn.python.org/view?view=revrevision=71697 Hmm. That was me. with this message: Issue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1. That's the

[issue7353] Why was Include/intobject.h removed in 3.1?

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I didn't mean to assign this to Georg. Apologies. -- assignee: georg.brandl - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7353 ___

[issue6454] Add example keyword argument to optparse constructor

2009-11-19 Thread Marcin Kasperski
Marcin Kasperski marcin.kasper...@mekk.waw.pl added the comment: I found this bug while looking for suggestions how to add examples to the optparse help call, but I feel there is a better and more general solution - just provide some minimal formatting for description: treat empty line as

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Retro
Retro vinet...@gmail.com added the comment: I suggest renaming the class from BadZipfile to BadZipFile. We have a class named LargeZipFile. It would make sence to have the previously mentioned class named as BadZipFile then. What is your verdict on that? --

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: What Eric said. You can see the padding explicitly in the results of struct.pack: struct.pack(ci, '*', 0x12131415) # 8-byte result, 3 padding bytes '*\x00\x00\x00\x15\x14\x13\x12' struct.pack(ic, 0x12131415, '*') # 5-byte result, no

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2009-11-19 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: % /sbin/ldconfig -p | grep GL libGLU.so.1 (libc6) = /usr/lib/libGLU.so.1 libGLEW.so.1.5 (libc6) = /usr/lib/libGLEW.so.1.5 libGL.so.1 (libc6, Système d'exploitation ABI : Linux 2.4.20) = /usr/lib/libGL.so.1 the regexp fails to parse

[issue5833] readline update

2009-11-19 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: msg94560 should read backported to the 2.6 branch. can we close the report? -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5833

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The old name could be deprecated and replaced by the right one, but as Eric Smith mentioned on #python-dev, the class with the old name can't be removed because - even if unlikely - the object might exist in a pickle. So we can either live

[issue7353] cporting docs recommend using Include/intobject.h, which was removed in 3.1?

2009-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You didn't. Doc bugs are automatically assigned to Georg by the tracker. -- nosy: +r.david.murray priority: - normal stage: - needs patch title: Why was Include/intobject.h removed in 3.1? - cporting docs recommend using

[issue7353] cporting docs recommend using Include/intobject.h, which was removed in 3.1?

2009-11-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: -r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7353 ___ ___

[issue5833] readline update

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can we close the report? Well there's something else in the original patch, although I don't care about it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5833

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Reopening for possible doc clarification. Suggestions welcome! -- assignee: - mark.dickinson components: +Documentation, Extension Modules -Library (Lib) keywords: +easy priority: - low resolution: invalid - stage:

[issue7357] tarfile doesn't detect disk full error on extraction

2009-11-19 Thread Eli Venter
New submission from Eli Venter even...@jcvi.org: tarfile doesn't seem to return any error or raise any exception when an extraction fills up the disk, making it hard to use safely. Both extractall and extract suffer from this problem. I'm using CentOS 5.2 and python 2.6.2. --

[issue7358] cPickle crash on failed assertion

2009-11-19 Thread Ryan Shaw
New submission from Ryan Shaw ryan.s...@stanfordalumni.org: def save_object(r, key, m): r.set(key, cPickle.dumps(m)) [4] save_object(r, 'cluster', cluster) python: ./Modules/cStringIO.c:419: O_cwrite: Assertion `oself-pos + l 2147483647' failed. Aborted Linux 2.6.30.9-96.fc11.x86_64 #1

[issue1859] textwrap doesn't linebreak on \n

2009-11-19 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I think the code originally wasn't meant to support this feature (honor embedded newlines when replace_whitespace=False). I'm thinking that we could add it though. Maybe Mark is interested in getting this into 2.7 and 3.2? I imagine it

[issue7358] cPickle crash on failed assertion

2009-11-19 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: What are the types and values of cluster and r? Can you reproduce this in a self-contained script? -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7358

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Retro
Retro vinet...@gmail.com added the comment: I am merely speaking of renaming the class name from BadZipfile to BadZipFile. class BadZipFile(exceptions.Exception): # etc. Only the name is fixed at class definition. I am aiming for that in this bug report. And then every other BadZipfile

[issue7359] mailbox cannot modify mailboxes in system mail spool

2009-11-19 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: no change in behaviour in 2.6 the mailbox module in python 2.5 cannot modify mboxes in read-only directories, e.g. the system mail spool. This is because mailbox._singlefileMailbox.flush() tries to write the modified mailbox to a temporary

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: [forwarded from http://bugs.debian.org/451733] the mailbox._singlefileMailbox class is not safe with concurrent access, because mailbox._singlefileMailbox.flush() replaces the underlying file with a new copy by constructing a temporary file

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: Added file: http://bugs.python.org/file15364/mailbox-race.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7360 ___

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: It might be doable for Python and its stdlib, but all the programs and modules that are using the old name will start raising errors if they don't find the old name anymore. If the old name is deprecated for at least one Python version (e.g.

[issue7357] tarfile doesn't detect disk full error on extraction

2009-11-19 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: The TarFile constructor (as well as tarfile.open) takes an errorlevel keyword argument. See http://docs.python.org/dev/library/tarfile.html#tarfile-objects I quote: If errorlevel is 0, all errors are ignored when using TarFile.extract().

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: assertTrue() also accepts a 'msg' argument where to explain what went wrong in case of failure [1]. [1]: http://docs.python.org/library/unittest.html#unittest.TestCase.assertTrue -- ___ Python

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: the mailbox._singlefileMailbox class is not safe with concurrent access, because mailbox._singlefileMailbox.flush() replaces the underlying file with a new copy by constructing a temporary file and then renaming it. This breaks all other class

[issue3783] dbm.sqlite proof of concept

2009-11-19 Thread Runar Tenfjord
Runar Tenfjord runar.tenfj...@gmail.com added the comment: By utilizing triggers on inserts and deletes it is possible to keep track of the size and speed up __len__ by 10 x. SQL: CREATE TABLE IF NOT EXISTS info (key TEXT UNIQUE NOT NULL, value INTEGER NOT NULL); INSERT OR IGNORE INTO

[issue3783] dbm.sqlite proof of concept

2009-11-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3783 ___

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-19 Thread Erik Carstensen
Erik Carstensen sandb...@virtutech.com added the comment: Also, assertTrue has an alias failUnless which I personally find more descriptive (I don't know if either form is preferred for inclusion in Python though). -- ___ Python tracker

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, sorry: I don't think this class aims at being safe against concurrent access, so having it fail loudly is a good thing. I now understand that the problem is that it doesn't fail loudly. That's what I get for replying too quickly. Still, I

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: failUnless is deprecated in Python3.1 [1]. The assert* methods are preferred over the fail* ones that are now deprecated. [1]: http://docs.python.org/3.1/library/unittest.html#unittest.TestCase.failUnless --

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, the doc is quite clear about it: « Be very cautious when modifying mailboxes that might be simultaneously changed by some other process. The safest mailbox format to use for such tasks is Maildir; try to avoid using single-file formats

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +1 for a TypeError too. -- nosy: +pitrou priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5080 ___

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

2009-11-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5080 ___ ___ Python-bugs-list

[issue7085] strptime problem

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I committed a fix in r76403 (trunk), r76404 (2.6), r76405 (3.2), 76406 (3.1) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7144] imp.load_module in thread causes core dump on OSX 10.6

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've just committed a fix for this issue in all 4 active branches (2.6, 2.7, 3.1 and 3.2) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2009-11-19 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: I'm curious: Which output do you get from: 'LANG=C /sbin/ldconfig -p | fgrep GL' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7356

[issue7180] pydoc -k can generate AttributeError on Mac OS X

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The problem occurs in two occassions: 1) python was configured/built without the Carbon bindings (such as the copy that Apple ships) 2) python was build in 64-bit mode In both cases Carbon.File does not have an FSSpec type. Luckily

[issue7358] cPickle crash on failed assertion

2009-11-19 Thread Ryan Shaw
Ryan Shaw ryan.s...@stanfordalumni.org added the comment: r is the Redis python client. cluster is a large cluster tree along the lines of the cluster_node class found here: http://jesolem.blogspot.com/2009/04/hierarchical-clustering-in-python.html --

[issue7179] Unportable test(1) construct

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Fixed the postflight issue in r76407 (trunk), r76408 (2.6), r76409 (3.2) and r76410 (3.1). -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue7358] cPickle crash on failed assertion

2009-11-19 Thread Ryan Shaw
Ryan Shaw ryan.s...@stanfordalumni.org added the comment: I can't reproduce this in a self-contained script. Pickling a smaller cluster object and storing it in Redis works fine. The cluster object that caused the crash was large, a binary tree with 5000 leaves holding the results of a

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Retro
Retro vinet...@gmail.com added the comment: I made a patch which fixes the BadZipfile issue. Please take a look and decide whether you'll toss it or use it. Maybe it'll come handy some other time in the future. -- keywords: +patch Added file:

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2009-11-19 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: $ LANG=C /sbin/ldconfig -p | fgrep GL libGLU.so.1 (libc6) = /usr/lib/libGLU.so.1 libGLEW.so.1.5 (libc6) = /usr/lib/libGLEW.so.1.5 libGL.so.1 (libc6, OS ABI: Linux 2.4.20) = /usr/lib/libGL.so.1 --

[issue7117] Backport py3k float repr to trunk

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Short float repr is now enabled in r76379. Misc/NEWS entries added/updated in r76411. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7117

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Steve Krenzel
Steve Krenzel sgk...@gmail.com added the comment: Just for clarification, why does ci get padded but ic doesn't? While I agree that updating the documentation would help clarify, perhaps either everything should be padded to word boundaries or nothing should. It is weird behavior that ic !=

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It's basically because nothing comes after it. If you put something after it, such as a zero length integer, you'll see: from struct import calcsize calcsize(ci) 8 calcsize(ic) 5 calcsize(ic0i) 8 --

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Just for clarification, why does ci get padded but ic doesn't? Because no padding is necessary in the second case: both the integer and the character already start at a position that's a multiple of 4---the integer at position 0 and the

[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: One of the buildbots suffered a test_multiprocessing failure, which itself is not such an unusual thing. But the error that was subsequently thrown looks like it might point to a place where importlib's error handling could be improved.

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm half-convinced that struct.pack *should* ideally add trailing padding in the same situation that C does, for consistency with C. Then calcsize would match C's sizeof. If you're writing or reading a struct from C, it's probably

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2009-11-19 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: I assume the patch is fine, would you like to apply it? Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7356 ___

[issue444582] Finding programs in PATH, addition to os

2009-11-19 Thread Andy Buckley
Changes by Andy Buckley a...@insectnation.org: -- nosy: +andybuckley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list

[issue7362] Incorrect error message with def((x)=0)

2009-11-19 Thread James Lingard
New submission from James Lingard j...@aristanetworks.com: def f((x)=0): pass gives the following incorrect error message: SyntaxError: non-default argument follows default argument def f((x)): pass is treated exactly the same as def f(x): pass, so it would seem sensible for the same to be

[issue7362] Incorrect error message with def((x)=0)

2009-11-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76416. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7362

[issue7353] cporting docs recommend using Include/intobject.h, which was removed in 3.1?

2009-11-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Hmm, I wish intobject.h hadn't been removed so soon. I'm not really sure how a file of #defines could suffer bitrot. This point is probably moot, though because there's little point in having its presence skip a version. I suppose sticking

[issue7363] Inconsisten Indentation In SocketServer Docs

2009-11-19 Thread Yuv Gre
New submission from Yuv Gre ubershme...@gmail.com: A bit nitpicky but there are 3 spaces instead of 4 in the docs. This is relevant to py3k and trunk. http://docs.python.org/library/socketserver.html#socketserver-udpserver- example -- assignee: georg.brandl components: Documentation

[issue7364] Traceback contains incorrect line number for duplicate argument in lambda definition

2009-11-19 Thread James Lingard
New submission from James Lingard j...@aristanetworks.com: The following python file: lambda a, a: 0 when executed gives the following backtrace: File /tmp/test.py, line 0 SyntaxError: duplicate argument 'a' in function definition Note that the line number is 0, not 1. (It's always

[issue7364] Traceback contains incorrect line number for duplicate argument in lambda definition

2009-11-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76423. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7364

[issue7365] grp and pwd should treat uid and gid as unsigned

2009-11-19 Thread Ed Plese
New submission from Ed Plese e...@edplese.com: Both Linux and Solaris define uid_t and gid_t as unsigned integers. The pwd and grp modules cast these to signed long values that are then converted with PyInt_FromLong. For large values, greater than 2 ** 32 - 1, the result is correct when Python

[issue5683] Speed up cPickle's pickling generally

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Are you still willing to work on this? -- versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5683 ___

[issue7359] mailbox cannot modify mailboxes in system mail spool

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The same remark as in issue7360, that is it is not robust at all to overwrite the file rather than doing an atomic rename from a temporary file. The only possible exception would be if you only /append/ to the mbox file (and that's assuming all

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7360 ___ ___ Python-bugs-list mailing

[issue6594] json C serializer performance tied to structure depth on some systems

2009-11-19 Thread Valentin Kuznetsov
Valentin Kuznetsov vkuz...@gmail.com added the comment: Hi, I just found this bug and would like to add my experience with performance of large JSON docs. I have a few JSON docs about 180MB in size which I read from data-services. I use python2.6, run on Linux, 64- bit node w/ 16GB of RAM and

[issue6594] json C serializer performance tied to structure depth on some systems

2009-11-19 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: Did you try the trunk of simplejson? It doesn't work quite the same way as the current json module in Python 2.6+. Without the data or a tool to produce data that causes the problem, there isn't much I can do to help. --

[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I will obviously have a look, but why the heck is test_multiprocessing calling importlib? Is it meant to do that? Or is this part of the -j flag for regrtest? -- assignee: - brett.cannon ___ Python

[issue444582] Finding programs in PATH, addition to os

2009-11-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list

[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: And it looks like the error was triggered from a malformed .pyc file that was truncated. Guess I need to be more careful with that possibility. =) -- ___ Python tracker rep...@bugs.python.org

[issue7311] Bug on regexp of HTMLParser

2009-11-19 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Re: the BTW -- and should be entity-escaped when used in attribute values inside tag attributes... (but are probably seldom found as part of tag attribute values) But the example you showed is not an attribute in a tag, but rather text

[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This was on a buildbot, and regrtest -j isn't used there, but in any case it wouldn't affect importlib as far as I know. From the traceback it looks like multiprocessing is just doing an import. --

  1   2   >