Re: Where is a module usually installed?

2010-07-17 Thread Mark Lawrence
On 17/07/2010 03:36, Peng Yu wrote: My Python is installed in the following location. ~/utility/linux/opt/Python-2.6.5/ I then installed SCons (http://www.scons.org/) using the command python setup.py install, which install it at ~/utility/linux/opt/Python-2.6.5/lib/scons-2.0.0.final.0

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Steven D'Aprano
On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote: Is anyone /still/ using Python 2.x? ;-) 2.x?! You were lucky. We lived for three months with Python 1.x in a septic tank. We used to have to get up at six in the morning, write our 1.x code using ed, You got to use ed? Oh, we *dreamed*

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread geremy condra
On Sat, Jul 17, 2010 at 1:03 AM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote: Is anyone /still/ using Python 2.x? ;-) 2.x?!  You were lucky. We lived for three months with Python 1.x in a septic tank. We used to have to get

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Mark Lawrence
On 17/07/2010 03:59, pyt...@bdurham.com wrote: Tim, 2.x?! You were lucky. We lived for three months with Python 1.x in a septic tank. We used to have to get up at six in the morning, write our 1.x code using ed, eat a crust of stale bread, go to work down in machine language, fourteen hours

Sharing: member type deduction for member pointers (Alf's device?)

2010-07-17 Thread Alf P. Steinbach /Usenet
[Cross-posted comp.lang.c++ and comp.lang.python] Consider the following code, from an example usage of some C++ support for Python I'm working on, cppy: code struct Noddy { PyPtr first; PyPtr last; int number; Noddy( PyWeakPtr

Re: Only one forum app in Python?

2010-07-17 Thread Gilles Ganault
On Sat, 10 Jul 2010 18:37:00 +0200, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr wrote: There are almost a dozen of Python forum apps for Django alone, and Python is known as the language with more web frameworks than keywords. So this list at Wikipedia is out-of-date/wrong, and

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Thomas Jollans
On 07/17/2010 10:03 AM, Steven D'Aprano wrote: On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote: Is anyone /still/ using Python 2.x? ;-) 2.x?! You were lucky. We lived for three months with Python 1.x in a septic tank. We used to have to get up at six in the morning, write our 1.x code

Re: Q for Emacs users: code-folding (hideshow)

2010-07-17 Thread Anssi Saari
David Robinow drobi...@gmail.com writes: Really, if you can't be bothered to set your key bindings to something you prefer, then I don't think Emacs is the right tool for you. Uh, I absolutely think Emacs is the right tool for me, but I don't think I've never changed any key bindings in the 20

Re: Q for Emacs users: code-folding (hideshow)

2010-07-17 Thread Teemu Likonen
* 2010-07-16 06:29 (-0700), ernest wrote: I tried the outline-mode and it seemed to work. It can collapse different blocks of code, such as functions, classes, etc. However, I never got used to it because of the bizarre key bindings. I use outline-minor-mode and the code below to make key

Re: Sharing: member type deduction for member pointers (Alf's device?)

2010-07-17 Thread Alf P. Steinbach /Usenet
* Alf P. Steinbach /Usenet, on 17.07.2010 11:50: [Cross-posted comp.lang.c++ and comp.lang.python] [snip] this occurred to me: #define CPPY_GETSET_FORWARDERS( name ) \ ::progrock::cppy::forwardersGetSet( \

Re: Struqtural: High level database interface library

2010-07-17 Thread sturlamolden
On 17 Jul, 07:29, Nathan Rice nathan.alexander.r...@gmail.com wrote: Let’s push things to the edge now with a quick demo of many to many relationship support. For this example we’re going to be using the following XML: Departments     Department         DeptNum123/DeptNum        

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Paul McGuire
On Jul 16, 12:01 pm, Peng Yu pengyu...@gmail.com wrote: I mean to get the man page for '[' like in the following code. x=[1,2,3] But help('[') doesn't seem to give the above usage. ### Mutable Sequence Types ** List objects support additional operations that

Re: Sharing: member type deduction for member pointers (Alf's device?)

2010-07-17 Thread sturlamolden
On 17 Jul, 15:02, Alf P. Steinbach /Usenet alf.p.steinbach +use...@gmail.com wrote: #include progrock/cppy/PyClass.h      // PyWeakPtr, PyPtr, PyModule, PyClass using namespace progrock; namespace {      using namespace cppy;      struct Noddy      {          PyPtr       first;          

Python 3.1.2 and marshal

2010-07-17 Thread raj
Hi, I am using 64 bit Python on an x86_64 platform (Fedora 13). I have some code that uses the python marshal module to serialize some objects to files. However, in moving the code to python 3 I have come across a situation where, if more than one object has been serialized to a file, then while

Re: rstrip()

2010-07-17 Thread News123
Jason Friedman wrote: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. x.vsd-dir.rstrip(-dir) 'x.vs' I expected 'x.vsd' as a return value. This is kind of similiar to the question, that I posted

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Gary Herron
On 07/17/2010 01:03 AM, Steven D'Aprano wrote: On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote: Is anyone /still/ using Python 2.x? ;-) 2.x?! You were lucky. We lived for three months with Python 1.x in a septic tank. We used to have to get up at six in the morning, write our

Re: Python 3.1.2 and marshal

2010-07-17 Thread Thomas Jollans
On 07/17/2010 06:21 PM, raj wrote: Hi, I am using 64 bit Python on an x86_64 platform (Fedora 13). I have some code that uses the python marshal module to serialize some objects to files. However, in moving the code to python 3 I have come across a situation where, if more than one object

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Thomas Jollans
On 07/17/2010 06:38 PM, Gary Herron wrote: On 07/17/2010 01:03 AM, Steven D'Aprano wrote: On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote: Is anyone /still/ using Python 2.x? ;-) http://xkcd.com/353/ There we have the most important difference between Python 2 and 3: in the

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Emile van Sebille
On 7/17/2010 9:38 AM Gary Herron said... and unrelated to the thread but still about python: http://xkcd.com/353/ ActivePython 2.6.1.1 (ActiveState Software Inc.) based on Python 2.6.1 (r261:67515, Dec 5 2008, 13:58:38) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Emile van Sebille
On 7/16/2010 7:08 PM MRAB said... Peng Yu wrote: On Fri, Jul 16, 2010 at 5:42 PM, Terry Reedy tjre...@udel.edu wrote: On 7/16/2010 1:01 PM, Peng Yu wrote: I mean to get the man page for '[' like in the following code. x=[1,2,3] You might find my Python symbol glossary useful.

Re: death of newsgroups (Microsoft closing their newsgroups)

2010-07-17 Thread Emmy Noether
So, if newsgroups die and get replaced by web forums, that would be a move for the better. If they get replaced by mailing lists, that would be a move for the worse. Uday has gotten the valuation of the three communications media - a little wrong. 1/ Newsgroups are international, free and

Re: Struqtural: High level database interface library

2010-07-17 Thread Emile van Sebille
On 7/17/2010 6:25 AM sturlamolden said... On 17 Jul, 07:29, Nathan Ricenathan.alexander.r...@gmail.com wrote: Let’s push things to the edge now with a quick demo of many to many relationship support. For this example we’re going to be using the following XML: Departments Department

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Benjamin Kaplan
On Sat, Jul 17, 2010 at 10:27 AM, Emile van Sebille em...@fenx.com wrote: On 7/17/2010 9:38 AM Gary Herron said... and unrelated to the thread but still about python: http://xkcd.com/353/ ActivePython 2.6.1.1 (ActiveState Software Inc.) based on Python 2.6.1 (r261:67515, Dec 5 2008,

Re: GNU Emacs Developement Inefficiency (commentary)

2010-07-17 Thread Emmy Noether
On Jul 16, 1:41 am, Uday S Reddy udotsdotre...@cs.bham.ac.uk wrote: On 7/16/2010 12:23 AM, Xah Lee wrote: It got closed right away i suppose partly has to do with my unforgiving nature of criticizing and run-in with some GNU emacs developers in gnu.emacs.help and comp.emacs in the past 5

Re: Struqtural: High level database interface library

2010-07-17 Thread Nathan Rice
Oh yes, I'd rather write lines of that rather than pages of SQL in a Python string. (not to mention, avoid some easy to fall into security flaws, not have to worry about porting dialect specific SQL code, etc, etc). Fixed that for you. I can't take the credit for that part though, that magic

Re: GNU Emacs Developement Inefficiency (commentary)

2010-07-17 Thread Emmy Noether
On Jul 16, 2:59 pm, Xah Lee xah...@gmail.com wrote: In comp.emacs Xah Lee xah...@gmail.com wrote: GNU Emacs Developement Inefficiency It [a bug report] got closed right away i suppose partly has to do with my unforgiving nature of criticizing and run-in with some GNU emacs developers in

Re: Is '[' a function or an operator or an language feature?

2010-07-17 Thread Emile van Sebille
On 7/17/2010 10:57 AM Benjamin Kaplan said... Try it in Python 3. Cool. :) Although I wouldn't have been surprised had my monitor levitated. :) Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: GNU Emacs Developement Inefficiency (commentary)

2010-07-17 Thread Emmy Noether
On Jul 15, 4:23 pm, Xah Lee xah...@gmail.com wrote: • GNU Emacs Developement Inefficiency  http://xahlee.org/emacs/GNU_Emacs_dev_inefficiency.html essay; commentary. Plain text version follows. -- GNU Emacs Developement Inefficiency Xah Lee,

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-17 Thread Emmy Noether
On Jul 7, 1:57 pm, bolega gnuist...@gmail.com wrote: Democracy is sick in the US, government monitors your Internethttp://www.youtube.com/watch?v=2BfCJq_zIdkfeature=fvsr Enjoy . In this video, Stall man makes 4 promises to public but stalls on 2nd of them.

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-17 Thread Heikki Toivonen
On 07/16/2010 08:18 AM, Adam Mercer wrote: That version of M2Crypto does not work with OpenSSL 1.0.x because OpenSSL changed APIs. M2Crypto trunk works, as will the next M2Crypto release. So at this time, you should check out M2Crypto from the Subversion repository. See

Re: Code generator and visitor pattern

2010-07-17 Thread Mick Krippendorf
Karsten Wutzke wrote: The visitor pattern uses single-dispatch, that is, it determines which method to call be the type of object passed in. Say, in Python, I have an object o and want to call one of it's methods, say m. Then which of possibly many methods m to call is determined by the type

Re: Code generator and visitor pattern

2010-07-17 Thread Mick Krippendorf
Hello, Am 16.07.2010 09:52, Michele Simionato wrote: [os.path.walk vs os.walk] There is a big conceptual difference between os.path.walk and os.walk. The first works like a framework: you pass a function to it and os.path.walk is in charging of calling it when needed. The second works like a

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-17 Thread David Kastrup
Emmy Noether emmynoeth...@gmail.com writes: On Jul 7, 1:57 pm, bolega gnuist...@gmail.com wrote: Democracy is sick in the US, government monitors your Internethttp://www.youtube.com/watch?v=2BfCJq_zIdkfeature=fvsr Enjoy . In this video, Stall man makes 4 promises to public but stalls

Re: GNU Emacs Developement Inefficiency (commentary)

2010-07-17 Thread Keith Thompson
Emmy Noether emmynoeth...@gmail.com writes: [98 lines deleted] The parent article was posted to comp.emacs and comp.lang.lisp. Why did you cross-post your followup to comp.lang.c, comp.lang.python, and comp.lang.scheme? -- Keith Thompson (The_Other_Keith) ks...@mib.org

Re: rstrip()

2010-07-17 Thread Chris Rebert
On Fri, Jul 16, 2010 at 10:27 AM, MRAB pyt...@mrabarnett.plus.com wrote: Jason Friedman wrote: $ python Python 2.6.4 (r264:75706, Dec  7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. x.vsd-dir.rstrip(-dir) 'x.vs' I expected 'x.vsd'

Re: rstrip()

2010-07-17 Thread MRAB
Chris Rebert wrote: On Fri, Jul 16, 2010 at 10:27 AM, MRAB pyt...@mrabarnett.plus.com wrote: Jason Friedman wrote: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. x.vsd-dir.rstrip(-dir) 'x.vs' I

Re: Code generator and visitor pattern

2010-07-17 Thread Mark Lawrence
On 17/07/2010 20:38, Mick Krippendorf wrote: Karsten Wutzke wrote: The visitor pattern uses single-dispatch, that is, it determines which method to call be the type of object passed in. Say, in Python, I have an object o and want to call one of it's methods, say m. Then which of possibly many

Re: rstrip()

2010-07-17 Thread Mark Lawrence
On 17/07/2010 23:17, MRAB wrote: Chris Rebert wrote: On Fri, Jul 16, 2010 at 10:27 AM, MRAB pyt...@mrabarnett.plus.com wrote: Jason Friedman wrote: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information.

Re: File transfer on network

2010-07-17 Thread Lawrence D'Oliveiro
In message mailman.797.1279235288.1673.python-l...@python.org, MRAB wrote: You could either open and close a connection for each image, or have the client tell the server how many bytes it's going to send, followed by the bytes (my preference would be to send the size as a string ending with,

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-17 Thread Emmy Noether
On Jul 17, 2:49 pm, Cor Gest c...@clsnet.nl wrote: Some entity, AKA David Kastrup d...@gnu.org, wrote this mindboggling stuff: (selectively-snipped-or-not-p) Software is a puzzle and it must be explained to be able to do that, its like a lock There is no unfreedom involved here.  Freedom

Re: 'reload M' doesn't update 'from M inport *'

2010-07-17 Thread Aahz
In article mailman.616.1278927754.1673.python-l...@python.org, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Aahz wrote: In article mailman.488.1278697107.1673.python-l...@python.org, Jean-Michel Pichavant jeanmic...@sequans.com wrote: PS : You're misusing the del statement. It does

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-17 Thread Adam Mercer
On Sat, Jul 17, 2010 at 15:20, Heikki Toivonen hjtoi-better-remove-before-re...@comcast.net wrote: I was actually planning on doing a release by the end of June, but life happened. Maybe by the end of August... Know what whats like :-) I've backported the OpenSSL patches for the MacPorts port

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-17 Thread Emmy Noether
The XEMACS programmers have documented in writing that Richard Matthews Stallman asked them to explain every single line of code. They got exasperated and would explain him blocks. I suspect that they were playing the same game as him - perhaps giving him the same medicine. If he was NEEDY of

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-17 Thread Rui Maciel
Emmy Noether wrote: snip nonsense/ Mackenzie, bring a properly written documentation by FSF for example on emacs of gcc. I want to see where RMS got his ideas ? Did he invent all of them himself ? Is he giving proper references to the sources of the ideas ? Is that plagiarism ? I am sick

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-17 Thread geremy condra
On Sat, Jul 17, 2010 at 5:34 PM, Rui Maciel rui.mac...@gmail.com wrote: Emmy Noether wrote: snip nonsense/ Mackenzie, bring a properly written documentation by FSF for example on emacs of gcc. I want to see where RMS got his ideas ? Did he invent all of them himself ? Is he giving proper

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-17 Thread Stephen Hansen
On 7/17/10 12:09 PM, Emmy Noether wrote: I am sick of such jews/zionists [...] This racist rant may be on-topic for some of the other newsgroups/lists you are cross-posting to, but it is most assuredly not on topic for Python. Also, its just daft. But that's another thing entirely. Reported.

Re: Python 3.1.2 and marshal

2010-07-17 Thread raj
On Jul 17, 10:11 pm, Thomas Jollans tho...@jollans.com wrote: [Snip] So, the contents of the file is identical, but Python 3 reads the whole file, Python 2 reads only the data it uses. This looks like a simple optimisation: read the whole file at once, instead of byte-by-byte, to improve

why is this group being spammed?

2010-07-17 Thread be.krul
why is this group being spammed? -- http://mail.python.org/mailman/listinfo/python-list

Re: why is this group being spammed?

2010-07-17 Thread Chris Rebert
On Sat, Jul 17, 2010 at 10:01 PM, be.krul be.k...@gmail.com wrote: why is this group being spammed? Because that's what happens in unmoderated USENET newsgroups. Cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: why is this group being spammed?

2010-07-17 Thread Ben Finney
be.krul be.k...@gmail.com writes: why is this group being spammed? What kind of answer are you looking for? Are you asking about the motives of spammers, or the technical explanation for how the spam arrives, or something else? -- \ “The best ad-libs are rehearsed.” —Graham

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-07-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Note: Your patch fixes distutils, but in distutils2 dir_util is gone, use of its functions replaced by shutil calls or duplicated code with, I’m afraid, the same isdir/mkdir race condition. I wonder how we could add tests for that instead.

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-07-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: instead of waiting for user reports* -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9281 ___

[issue8136] urllib.unquote decodes percent-escapes with Latin-1

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8136 ___ ___ Python-bugs-list

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: I have fixed some style nits in your patch. It would be nice to have tests for the different control paths in instantiate(). But, I realize that would be a bit annoying. Apart from that, the patch looks good. -- Added

[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9268 ___ ___ Python-bugs-list

[issue9282] Bug in --listfuncs option of trace.py

2010-07-17 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: Running: py3d -m trace -C . --listfuncs trace_target.py Where py3d points to a freshly compiled Python 3 trunk interpreter, results in an error: functions called: Traceback (most recent call last): File

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-17 Thread Sarth Calhoun
Sarth Calhoun whiddersh...@gmail.com added the comment: Have the same problem. Well, tried to install the 10.3 version over my 64-bit installation and that had no effect. Not sure how to get IDLE working. -- nosy: +Sarth.Calhoun ___ Python tracker

[issue9272] CGIHTTPServer poisons os.environ

2010-07-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I don't think a deepcopy of the environment is necessary here. environ.copy() is just fine. Other than that, I agree with Eric. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2010-07-17 Thread Kevin Dwyer
Changes by Kevin Dwyer kevin.p.dw...@gmail.com: -- nosy: +kevindication ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1327971 ___ ___

[issue963906] Unicode email address helper

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue963906 ___ ___

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: @Sarth: Odd, works for me. Using the standard GUI installer on a 64-bit-capable machine running 10.6.4, I first installed the 10.5 2.7 metapackage and verified that both IDLE.app and /usr/local/bin/idle2.7 fail. Then, even without manually deleting

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +l0nwlf, merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list

[issue1685453] email package should work better with unicode

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1685453 ___ ___ Python-bugs-list mailing

[issue9283] buggy repr for os.environ

2010-07-17 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: os.environ has the same repr as os.environb, that is, it looks as though it's a mapping of bytes to bytes, while it's a mapping of str to str. repr(os.environ)[:50] environ({b'TMP': b'/tmp/', b'XAUTHORITY': b'/var/r repr(os.environb)[:50]

[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I wonder if this bug should be reopened. This behavior does not seem right to me: parsing 'merwok' expected ('merwok', '') got ('', 'merwok') parsing 'merwok w...@rusty' expected ('', 'w...@rusty') got ('', 'merwok...@rusty')

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1025395 ___ ___ Python-bugs-list mailing

[issue9282] Bug in --listfuncs option of trace.py

2010-07-17 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: The fix is simple one-liner, so here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file18038/issue9282.1.patch ___ Python tracker rep...@bugs.python.org

[issue7384] curses crash on FreeBSD

2010-07-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: ldd return value check committed in r82927, r82928, r82929 and r82930. Thanks for reporting this! -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman dirk...@ochtman.nl: The fix for issue4050 broke some of my doctests. Minimal test: import doctest, inspect def test(): ''' def x(): pass inspect.getsource(x) 'def x(): pass\\n' ''' doctest.run_docstring_examples(test, globals()) This

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284 ___ ___

[issue1533105] NetBSD build with --with-pydebug causes SIGSEGV

2010-07-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Matt, if you still follow this: Does this problem exist in 2.6/2.7/NetBSD? I think this should be set to pending. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: After chatting with Dirkjan, I misunderstood the impact of the patch. It only occurs when inspect.getsource() is called from a doctest, which isn't a very common situation. -- priority: critical - normal

[issue1659410] Minor AST tweaks

2010-07-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I'm going to close this because these are mostly incompatible changes that are too late. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker

[issue9285] A decorator for cProfile and profile modules

2010-07-17 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: A patch including tests is in attachment. Example usage: from cProfile import profile @profile ... def factorial(n): ... n = abs(int(n)) ... if n 1: ... n = 1 ... x = 1 ... for i in range(1, n+1): ...

[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Mark Sapiro
Mark Sapiro m...@msapiro.net added the comment: parsing 'merwok' expected ('merwok', '') got ('', 'merwok') I think ('', 'merwok') is the correct result. I think most if not all MUAs/MTAs will interpret an address without an '@', albeit invalid, as a local-part in the local domain,

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Here's a test case that doesn't require doctest trickery: import inspect, linecache fn, source = 'test', 'def x(): pass\n' getlines = linecache.getlines def monkey(filename, module_globals=None): if filename == fn: return

[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thank you for the reply. The problem is that parseaddr is designed to not fail IIUC, that’s why it may return empty strings. Client code has to check for these values instead of catching an exception—a mere style issue, weren’t it for the

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Alexandre, I am not sure your change form PyObject_Size(args) to Py_SIZE(args) is correct. As far as I can tell, args come from pickle machine stack without any type checks. The equivalent code in 2.x cPickle uses

[issue9283] buggy repr for os.environ

2010-07-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ezio, it looks like your test for issue 7310 uses exactly the same algorithm as the code itself does, and thus did not detect this breakage. -- nosy: +ezio.melotti, r.david.murray ___ Python

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-07-17 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: This behavior does not seem right to me: parsing 'merwok' expected ('merwok', '') got ('', 'merwok') parsing 'merwok w...@rusty' expected ('', 'w...@rusty') got ('', 'merwok...@rusty') (Generated with a small script just doing a

[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Copied my inquiry and part of your reply in #9286. -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1409460 ___

[issue9287] Cosmetic fix in OtherFileTests.testOpenDir

2010-07-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Hello. In OtherFileTests.testOpenDir(test_file), if we run this test in Lib/test, __file__ becomes test_file.py, so os.path.dirname(__file__) becomes . I think it is better to use os.path.abspath to get valid folder path for

[issue9287] Cosmetic fix in OtherFileTests.testOpenDir

2010-07-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. I have had exceptions in distutils2 tests because of this exact same thing; my fix was to use “os.path.dirname(__file__) or os.curdir”. I’ll change that if people more knowledgeable than me say your fix is better :)

[issue963906] Unicode email address helper

2010-07-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm assigning this to myself so I don't lose it. I'll need to incorporate the intent of the tests and logic into email6. And yes I set 3.3 on purpose...email6 won't be in 3.2 and I don't want to spend the cycles figuring out whether

[issue1681333] email.header unicode fix

2010-07-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Applied the patches to the test files for 2.6.5 without patching header.py and got one failure. FAIL: test_i18nheader_unicode (email.test.test_email.TestRFC2047) I also expected a failure from the equivalent test for test_email_renamed,

[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r82931 with small changes based on comments here and on IRC: 1. Annotations are separated from disassembly by spaces without '|'. 2. Made a small improvement to the annotation alignment algorithm. Excessively

[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-07-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Add Michael Foord to nosy list as he raised #1462106 which refers to #1115886 where msg24154 states fixed this in r54204. Can this be closed? -- nosy: +BreamoreBoy, michael.foord versions: +Python 3.2 -Python 2.7, Python 3.1

[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- resolution: - fixed stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9268

[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-07-17 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: On Python 2.6.5: os.path.splitext('.cshrc') ('.cshrc', '') I believe this can be closed. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The usage of char in bp_bool will not work if char is unsigned. Hopefully that is the cause. -- keywords: +patch nosy: +skrah Added file: http://bugs.python.org/file18041/bp_bool.patch ___

[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___ ___

[issue9012] Separate compilation of time and datetime modules

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am merging in the nosy list from issue9079 after we had a lengthy discussion there and on IRC about the best way to share code between stdlib extension modules. For the issue9079, we decided to bring the shared code

[issue9012] Separate compilation of time and datetime modules

2010-07-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- stage: committed/rejected - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9012 ___

[issue5673] Add timeout option to subprocess.Popen

2010-07-17 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: I don't imagine this is going into 2.7.0 at this point, so I ported the patch to py3k. I also added support to check_output for the timeout parameter and added docs for all of the methods/functions that now take a timeout in the module. The

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-07-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It seems that this has been fixed in the py3k branch (r78942). Now both bytes and unicode are accepted. Can someone check? -- nosy: +amaury.forgeotdarc stage: - needs patch ___ Python

[issue1682942] ConfigParser support for alt delimiters

2010-07-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could the patch be reworked for 3.2? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1682942

[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: 'sizeof y' is obviously wrong now in the memcpy. Next attempt. -- Added file: http://bugs.python.org/file18043/bp_bool2.patch ___ Python tracker rep...@bugs.python.org

[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file18041/bp_bool.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___

[issue1694663] Overloading int.__pow__ does not work

2010-07-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could someone please review this patch to typeobject.c. -- components: +Extension Modules -None nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-07-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Drop 2.7 as that's now gone. See also #6952. -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1699259

  1   2   >