Re: Trying to parse a HUGE(1gb) xml file

2010-12-21 Thread Stefan Behnel
Adam Tauno Williams, 20.12.2010 20:49: On Mon, 2010-12-20 at 11:34 -0800, spaceman-spiff wrote: This is a rather long post, but i wanted to include all the details everything i have tried so far myself, so please bear with me read the entire boringly long post. I am trying to parse a ginormous

Re: Redundant importing of modules

2010-12-21 Thread bruno.desthuilli...@gmail.com
On 21 déc, 03:03, Steve Holden st...@holdenweb.com wrote: On 12/20/2010 8:36 PM, Jshgwave wrote: When writing a function that uses a module such as NumPy, it is tempting to include the statement import numpy or import numpy as np in the definition of the function, in case the  function is

Re: Trying to parse a HUGE(1gb) xml file

2010-12-21 Thread Stefan Behnel
spaceman-spiff, 20.12.2010 21:29: I am sorry i left out what exactly i am trying to do. 0. Goal :I am looking for a specific element..there are several 10s/100s occurrences of that element in the 1gb xml file. The contents of the xml, is just a dump of config parameters from a packet switch(

how to inter-working on process in window

2010-12-21 Thread haloha
Hi all how do i send an ESC key into a process on window i already get a pid of process but i dont know how to send ESC key into process Please help Ha -- http://mail.python.org/mailman/listinfo/python-list

Re: On 07/13/2010 02:18 PM, Adam Mercer wrote:That version of M2Crypto does not

2010-12-21 Thread Robert Schuon
I was getting the same error trying to build M2Crypto 0.20.2 for Python 2.5 on a Win 7 laptop, so I pulled down the trunk, and it did build properly using minGW and Swig. However, when I try to python setup.py install, python simply gives the same complaint that python was built in visual

Re: Modifying an existing excel spreadsheet

2010-12-21 Thread Jon Clements
On Dec 20, 9:56 pm, Ed Keith e_...@yahoo.com wrote: I have a user supplied 'template' Excel spreadsheet. I need to create a new excel spreadsheet based on the supplied template, with data filled in. I found the tools herehttp://www.python-excel.org/, 

Re: Bug in fixed_point?!

2010-12-21 Thread Robert Kern
On 12/20/10 10:03 PM, C Barrington-Leigh wrote: I cannot figure out what I'm doing wrong. The following does not return a fixed point: from scipy import optimize xxroot= optimize.fixed_point(lambda xx: exp(-2.0*xx)/2.0, 1.0, args=(), xtol=1e-12, maxiter=500) print ' %f solves fixed point, ie

Re: class inheritance

2010-12-21 Thread Ethan Furman
JLundell wrote: On Saturday, March 13, 2010 9:03:36 AM UTC-8, Jonathan Lundell wrote: I've got a subclass of fractions.Fraction called Value; it's a mostly trivial class, except that it overrides __eq__ to mean 'nearly equal'. However, since Fraction's operations result in a Fraction, not a

Re: help with link parsing?

2010-12-21 Thread Jon Clements
On Dec 20, 7:14 pm, Littlefield, Tyler ty...@tysdomain.com wrote: Hello all, I have a question. I guess this worked pre 2.6; I don't remember the last time I used it, but it was a while ago, and now it's failing. Anyone mind looking at it and telling me what's going wrong? Also, is there a

[RELEASED] Python 3.2 beta 2

2010-12-21 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the second beta preview release of Python 3.2. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x

seeking pygtk bindings for gtkdatabox

2010-12-21 Thread GrayShark
Hello, a search for the python bindings for gtkdatabox lead no where. Anyone know of who is maintaining/working/siting such a package? Thanks in advance. Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread John Nagle
On 12/20/2010 11:45 PM, Ian Kelly wrote: On 12/20/2010 11:34 PM, John Nagle wrote: SOAPpy is way out of date. The last update on SourceForge was in 2001. 2007, actually: http://sourceforge.net/projects/pywebsvcs/files/ And there is repository activity within the past 9 months. Still, point

Scanning directories for new files?

2010-12-21 Thread Matty Sarro
Hey everyone. I'm in the midst of writing a parser to clean up incoming files, remove extra data that isn't needed, normalize some values, etc. The base files will be uploaded via FTP. How does one go about scanning a directory for new files? For now we're looking to run it as a cron job but

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread Anurag Chourasia
Thanks for the response all. I tried exploring suds (which seems to be the current) and i hit problems right away. I will now try urllib or httplib. I have asked for help in the suds forum. Hope somebody replies. When i try to create a client, the error is as follows. from suds.client import

Re: Scanning directories for new files?

2010-12-21 Thread Jon Clements
On Dec 21, 7:17 pm, Matty Sarro msa...@gmail.com wrote: Hey everyone. I'm in the midst of writing a parser to clean up incoming files, remove extra data that isn't needed, normalize some values, etc. The base files will be uploaded via FTP. How does one go about scanning a directory for new

Re: Scanning directories for new files?

2010-12-21 Thread Stefan Sonnenberg-Carstens
Am 21.12.2010 20:17, schrieb Matty Sarro: Hey everyone. I'm in the midst of writing a parser to clean up incoming files, remove extra data that isn't needed, normalize some values, etc. The base files will be uploaded via FTP. How does one go about scanning a directory for new files? For now

Re: Scanning directories for new files?

2010-12-21 Thread Martin Gregorie
On Tue, 21 Dec 2010 14:17:40 -0500, Matty Sarro wrote: Hey everyone. I'm in the midst of writing a parser to clean up incoming files, remove extra data that isn't needed, normalize some values, etc. The base files will be uploaded via FTP. How does one go about scanning a directory for new

Re: If/then style question

2010-12-21 Thread Francesco
I'd bet you would stress your point Steven! But you don't need to persuade me, I do already agree. I just meant to say that, when the advantage is little, there's no need to rewrite a working function. And that with modern CPUs, if tests take so little time, that even some redundant one is not

Re: Scanning directories for new files?

2010-12-21 Thread GrayShark
On Tue, 21 Dec 2010 14:17:40 -0500, Matty Sarro wrote: Hey everyone. I'm in the midst of writing a parser to clean up incoming files, remove extra data that isn't needed, normalize some values, etc. The base files will be uploaded via FTP. How does one go about scanning a directory for new

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread Ian Kelly
On 12/21/2010 12:10 PM, John Nagle wrote: The original SOAPpy was at http://sourceforge.net/projects/soapy/files/ but was apparently abandoned in 2001. Someone else picked it up and moved it to http://sourceforge.net/projects/pywebsvcs/files/SOAP.py/ These are unrelated projects, AFACT.

Re: Python 3.2 beta 2

2010-12-21 Thread Luis M . González
I wonder if Unladen Swallow is still being considered for merger with Python 3.3. Is it? On Dec 21, 4:18 pm, Georg Brandl ge...@python.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the second beta preview release of

Re: Python 3.2 beta 2

2010-12-21 Thread Martin v. Loewis
Am 21.12.2010 22:56, schrieb Luis M. González: I wonder if Unladen Swallow is still being considered for merger with Python 3.3. Is it? 3.2 isn't even released yet, and 3.3 will appear 18 months after it (so in Summer 2012). It's much too early to tell. OTOH, to answer you literal question:

Funny __future__ imports

2010-12-21 Thread Daniel da Silva
from __future__ import space_shuttle DeprecationWarning: will be removed in next release Post yours! -- http://mail.python.org/mailman/listinfo/python-list

Re: True lists in python?

2010-12-21 Thread Arnaud Delobelle
Duncan Booth duncan.bo...@invalid.invalid writes: I guess you might be able to do it with a double-linked list provided that when traversing the list you always keep two nodes around to determine the direction. e.g. instead of asking for node6.nextNode() you ask for

Specialisation / Interests

2010-12-21 Thread Jon Clements
Hi all, Was thinking tonight (now this morning my time): What would we consider the long time posters on c.l.p consider what they respond to and offer serious advice on. For instance: - Raymond Hettinger for algo's in collections and itertools - MRAB for regex's (never seen him duck a post

Re: [python-committers] [RELEASED] Python 3.2 beta 2

2010-12-21 Thread Nick Coghlan
On Wed, Dec 22, 2010 at 6:18 AM, Georg Brandl ge...@python.org wrote: Since PEP 3003, the Moratorium on Language Changes, is in effect, there are no changes in Python's syntax and built-in types in Python 3.2. Minor nit - we actually did tweak a few of the builtin types a bit (mostly the stuff

Re: Funny __future__ imports

2010-12-21 Thread MRAB
On 21/12/2010 22:17, Daniel da Silva wrote: from __future__ import space_shuttle DeprecationWarning: will be removed in next release Post yours! from __future__ import time_machine ImportError: time_machine in use by import -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny __future__ imports

2010-12-21 Thread Emile van Sebille
On 12/21/2010 6:38 PM MRAB said... On 21/12/2010 22:17, Daniel da Silva wrote: from __future__ import space_shuttle DeprecationWarning: will be removed in next release Post yours! from __future__ import time_machine ImportError: time_machine in use by import from __future__ import

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread John Nagle
On 12/21/2010 11:26 AM, Anurag Chourasia wrote: Thanks for the response all. I tried exploring suds (which seems to be the current) and i hit problems right away. I will now try urllib or httplib. I have asked for help in the suds forum. Hope somebody replies. When i try to create a client,

Re: Bug in fixed_point?!

2010-12-21 Thread C Barrington-Leigh
On Dec 21, 9:36 am, Robert Kern robert.k...@gmail.com wrote: When you do, please provide the information that Terry Reedy asked for. Sorry; quite right. For completeness I'll post here as well as over on scipy. Here's the actual code: - from scipy import optimize from math

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

2010-12-21 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: Hi KevinH, sorry if I gave the wrong impression that you must submit a patch before anyone will look at the bug. I thought you wanted to provide a patch for this. If you only want to report a bug that is ok, thanks for that. I have confirmed your

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

2010-12-21 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: Sorry, forgot to add: README.zip should have a \r\n at the end. Actually I just zipped up README, ran echo \r\n README.zip and put it in Lib/test. -- ___ Python tracker rep...@bugs.python.org

[issue10715] uninformative error message

2010-12-21 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: Removed file: http://bugs.python.org/file20126/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715 ___

[issue10715] uninformative error message

2010-12-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Because you're sending email as HTML, the message shows up both as plain text and as an attachment. It's the attachments that are being removed. If you could, please stop sending HTML email. -- ___

[issue10715] uninformative error message

2010-12-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Here's a code snippet that shows the problem: import subprocess subprocess.Popen(['foo']) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.5/subprocess.py, line 593, in __init__ errread, errwrite)

[issue10715] Command name missing from exception in subprocess.Popen

2010-12-21 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- title: uninformative error message - Command name missing from exception in subprocess.Popen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715

[issue10715] Command name missing from exception in subprocess.Popen

2010-12-21 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715 ___ ___ Python-bugs-list

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@fedoraproject.org: Removed file: http://bugs.python.org/file19451/0001-Curly-brace-expansion-in-glob.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584 ___

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: Same patch, but rebased to the current trunk so it still applies. -- Added file: http://bugs.python.org/file20128/0001-Curly-brace-expansion-in-glob.patch.old ___ Python tracker

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: This is the right patch, sorry for all the mail spam. :-/ -- Added file: http://bugs.python.org/file20129/0001-Curly-brace-expansion-in-glob.patch ___ Python tracker rep...@bugs.python.org

[issue10724] socket.close close telnet with RST

2010-12-21 Thread sean216
sean216 taoyuan-...@163.com added the comment: Note that in your sample capture, I don't see any invalid sequence/ack number. please check telnet_unnormal RST.pcap in No. 1600-1602,the 1602 RST meseage is the invalid sequence/ack number 172. -- status: closed - open

[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-12-21 Thread Steven Bethard
Changes by Steven Bethard steven.beth...@gmail.com: -- stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9355 ___

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2010-12-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Yep, I believe that fix should work. Now to find the time to write some tests... -- nosy: +bethard stage: - unit test needed versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue10475] hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD

2010-12-21 Thread OBATA Akio
OBATA Akio ob...@lins.jp added the comment: This patch is also required for DragonFly, or libpython will not linked against libpthread and broken library. -- nosy: +obache ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10475

[issue10747] Include version info in Windows shortcuts

2010-12-21 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: This issue is to propose specific wording to Martin for inclusion of version details in the Windows shortcuts. This is to make the shortcuts easier to use when the hierarchical menu information is lost for any reason (e.g frequently used

[issue10715] Command name missing from exception in subprocess.Popen

2010-12-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This has already been fixed in 3.2: Python 3.2b2 (py3k:87413, Dec 21 2010, 07:09:13) [GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2 Type help, copyright, credits or license for more information. import subprocess subprocess.Popen(['foo'])

[issue10715] Command name missing from exception in subprocess.Popen

2010-12-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: That change was just a tweak. The real change was in r86593. It references issue 4925, of which this is a duplicate. I'm closing this, if you want to follow the issue add yourself to 4925. -- resolution: - duplicate stage: needs patch

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-12-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This is committed to 2.7 and 3.2 (using the old name assertItemsEqual in 2.7). As we're well into the beta cycle I don't think we can change the name in 3.2. The current failure output is very nice for comparing sequences like [1, 2, 3]

[issue5879] multiprocessing - example pool of http servers fails on windows socket has no attribute fromfd

2010-12-21 Thread Mher Movsisyan
Mher Movsisyan mher.movsis...@gmail.com added the comment: py3k does support socket.fromfd on Windows (#1378) -- nosy: +mher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5879 ___

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is a patch that adds: faccessat, fchmodat, fchownat, fstatat, futimesat, linkat, mkdirat, mknodat, openat, readlinkat, renameat, symlinkat, unlinkat, utimensat and mkfifoat. Each function has documentation and a unit test and

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Ian Stevens
New submission from Ian Stevens iancstev...@gmail.com: The zipfile documentation (http://docs.python.org/library/zipfile.html) states: If the file is created with mode 'a' or 'w' and then close()d without adding any files to the archive, the appropriate ZIP structures for an empty archive

[issue10724] socket.close close telnet with RST

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Regardless, Python doesn't generate the tcp/ip sequence numbers, the OS socket library does, so this is not a bug in Python. If you follow the code link I posted you will see that, other than Python internal bookkeeping, the only thing

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This has been fixed in Python 2.7.1 (which the online docs refer to). I assume that you're using 2.6 or an earlier version. As for the code in SVN, the trunk is currently not in use; development happens in the release27-maint, release31-maint

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Ian Stevens
Ian Stevens iancstev...@gmail.com added the comment: Yes, I'm using 2.6. If this is not the expected behaviour in 2.6, the doc should reflect that with a New in version 2.7 note. -- ___ Python tracker rep...@bugs.python.org

[issue10733] plistlib rejects strings containing control characters

2010-12-21 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree with Martin that this is a tricky one. The file is problematic because it is invalid XML[1], however Apple's tools are perfectly happy to proces the file and as Mitchell notes plistlib exists to interoperate with Apple's plist

[issue10475] hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Does it work properly if CC and CXX are not defined by the user? (probably a naïve question, sorry) -- nosy: +pitrou stage: - patch review type: - behavior versions: +Python 3.1, Python 3.2 ___

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed it should probably be a release blocker. I guess it has to do with (not) following symlinks, right? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10743

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: unit test needed - patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4761 ___

[issue10742] memoryview.readonly attribute is not documented

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10742 ___ ___

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: We usually don't do this for bugfixes, but here it makes sense I guess. r87414. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10748 ___

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, let's make this one. Tarek to the rescue! -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10743

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Will do tonight -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10743 ___ ___

[issue1243654] Faster output if message already has a boundary

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed test and fix in r87415, r87416, r87417. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1243654 ___

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the patch. A couple of comments: - the C code is misindented in some places (using 8 spaces rather than 4) - you should use support.unlink consistently in the tests (rather than sometimes os.unlink or posix.unlink) - when cleaning up

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2010-12-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10744 ___ ___

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Adding a warning sounds like a good idea. Is it reasonable to include a recommended cross-platform approach in the platform doc, like either the sys.maxsize test or the struct.calsize(P) test (which is used as a default fallback in

[issue10749] lots of warnings when generating logging docs

2010-12-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: make html in the Doc directory and then: [...] /home/antoine/py3k/__svn__/Doc/howto/logging.rst:507: WARNING: duplicate object description of logging.logging.Formatter.__init__, other instance in

[issue10749] lots of warnings when generating logging docs

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10749 ___ ___ Python-bugs-list

[issue10749] lots of warnings when generating logging docs

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Will vanish after a full rebuild; the duplicate detection is a bit buggy in Sphinx when the documents are read in the wrong order. -- nosy: +georg.brandl resolution: - wont fix status: open - closed

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2010-12-21 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10744 ___ ___ Python-bugs-list mailing

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm committing a doc update in r87421 with a suggestion to use sys.maxsize. I'll let Marc-André decide how to deal with the rest of the patch. -- ___ Python tracker rep...@bugs.python.org

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

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: High is not near high enough to get noticed before the release :) -- nosy: +georg.brandl priority: high - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10694

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2010-12-21 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10746 ___ ___ Python-bugs-list mailing

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: In the new patch, issue10254b.diff, I've added a test that would crash unpatched code: unicodedata.normalize('NFC', 'C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸Ç') Segmentation fault Martin, I still feel uneasy about the

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10746 ___ ___ Python-bugs-list

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This really looks backwards: f = open(LICENSE, rb) f.name = bar Traceback (most recent call last): File stdin, line 1, in module AttributeError: attribute 'name' of '_io.BufferedReader' objects is not writable f.raw = None __main__:1:

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file20132/io_roattrs.patch ___ Python tracker rep...@bugs.python.org

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is an updated patch which: - fixes badly indented C code - uses support.unlink consistently - cleans up tests better using finally -- Added file: http://bugs.python.org/file20133/i4761_v2.patch

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/12/21 Antoine Pitrou rep...@bugs.python.org: Antoine Pitrou pit...@free.fr added the comment: Here is a patch. I assume you can put test_readonly_attributes in CommonBufferTests? --

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mardi 21 décembre 2010 à 20:36 +, Benjamin Peterson a écrit : Benjamin Peterson benja...@python.org added the comment: 2010/12/21 Antoine Pitrou rep...@bugs.python.org: Antoine Pitrou pit...@free.fr added the comment: Here is a

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Ah, I see. LGTM then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10750 ___ ___

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The docs shouldn't use [ to denote optional args. Rather, optional arguments can just be shown by their defaults. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you, committed in r87427 (3.2), r87428 (3.1) and r87429 (2.7). -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9584] Allow curly brace expansion

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the research and the updated patch. Unfortunately as a feature request this is going to have to wait for 3.3 since we missed the pre-beta window. -- versions: +Python 3.3 -Python 3.2

[issue4871] zipfile can't decrypt

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thinking about this some more, it seems like the chance that someone is using bytearray to pass a password to zipfile is vanishingly small, especially since in non-optimized mode setpassword would have rejected it. So I think that this

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: Thanks for the research and the updated patch. Unfortunately as a feature request this is going to have to wait for 3.3 since we missed the pre-beta window. Ok. This is my first patch to Python, so I'm not sure what I should do

[issue9584] Allow curly brace expansion

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Nope, you've got it. After the final release of Python 3.2, please post to the issue to remind us about it, and someone will commit the patch. (For future Python releases we expect that the delays in our ability to commit feature

[issue4871] zipfile can't decrypt

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed in r87430 (with message word order change), backported to 3.1 in r87431. Making the parallel change to 2.7 would be likely to break working code, IMO. -- resolution: - fixed stage: commit review - committed/rejected

[issue9285] A decorator for cProfile and profile modules

2010-12-21 Thread Lukas Lueg
Lukas Lueg lukas.l...@gmail.com added the comment: +1 -- nosy: +ebfe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9285 ___ ___ Python-bugs-list

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

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Xuanji: thanks for taking a crack at the test. Rather than adding another data file to the test directory, how about creating a zipfile using the zipfile module in the test, closing it, opening it as a file, writing the /r/n to it, and

[issue10751] WSGIREF - REMOTE_USER and REMOTE-USER collision

2010-12-21 Thread Alex Raitz
New submission from Alex Raitz alex.ra...@gmail.com: Clients can overwrite 'REMOTE_USER' header variable value with an arbitrary 'Remote-User' value by specifying the later after the former. This has tricky implications when a proxy server is being used, namely that if the proxy passes a

[issue10751] WSGIREF - REMOTE_USER and REMOTE-USER collision

2010-12-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +pje ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10751 ___ ___ Python-bugs-list

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2010-12-21 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: I noticed that despite ActivePerl being installed, `os.popen(...).close()` returned 1 (see find_working_perl in build_ssl.py), while in actuality that command executed successfully with return code 0; I verified this by using the

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - ocean-city nosy: +loewis, ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10752 ___

[issue10747] Include version info in Windows shortcuts

2010-12-21 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10747 ___ ___

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-21 Thread Timothy Gates
New submission from Timothy Gates tim.ga...@gmail.com: Consider the URL making use of the RFC1808 param syntax... http://www/path;cookie=1234 The entire section '/path;cookie=1234' is passed in as PATH_INFO and so under the request_uri implementation it will be quoted import wsgiref

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Presumably all that is needed is to add ';' to 'safe' in the call that encodes PATH_INFO? -- nosy: +orsenthil, pje, r.david.murray versions: -Python 3.3 ___ Python tracker

[issue8754] ImportError: quote bad module name in message

2010-12-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I set LANG and LC_ALL to C and tried to import a module with a non-ASCII name: $ ./python -m échec™♥ python: No module named '\udcc3\udca9chec\udce2\udc84\udca2\udce2\udc99\udca5' Is that a good enough test? I guess the “__main__

[issue10475] hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD

2010-12-21 Thread Nicolas Joly
Nicolas Joly nj...@pasteur.fr added the comment: I do not tested it extensively, but seems so. nj...@petaure [temp/python27] ./python Python 2.7.1+ (release27-maint:87432M, Dec 22 2010, 01:10:26) [GCC 4.1.3 20080704 prerelease (NetBSD nb2 20081120)] on netbsd5 Type help, copyright, credits or

[issue10724] socket.close close telnet with RST

2010-12-21 Thread sean216
Changes by sean216 taoyuan-...@163.com: Removed file: http://bugs.python.org/file20091/normal RST and fin.pcap ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10724 ___

  1   2   >