Python for Non-Programmers

2012-03-06 Thread Mike Müller
Python for Non-Programmers == Python is well suited as a programming languages for people who haven't used any other programming language before. Since there are fewer things to worry about compared to a languages like C, C++ or Java, you get things done faster and

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread Russ P.
On Mar 5, 10:34 pm, Xah Lee xah...@gmail.com wrote: On Mar 5, 9:26 pm, Tim Roberts t...@probo.com wrote: Xah Lee xah...@gmail.com wrote: some additional info i thought is relevant. are int, float, long, double, side-effects of computer engineering? Of course they are.  Such concepts

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread Chiron
On Mon, 05 Mar 2012 17:11:09 -0800, Xah Lee wrote: Yes. Why do you ask? Is this not obvious? Was this a rhetorical question? -- A girl with a future avoids the man with a past. -- Evan Esar, The Humor of Humor -- http://mail.python.org/mailman/listinfo/python-list

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread Chiron
On Mon, 05 Mar 2012 22:34:46 -0800, Xah Lee wrote: while what you said is true, but the problem is that 99.99% of programers do NOT know this. They do not know Mathematica. They've never seen a Could you please offer some evidence to support this claim? Most of the programmers I've ever run

Re: Error with co_filename when loading modules from zip file

2012-03-06 Thread Vinay Sajip
On Mar 6, 2:40 am, Bob Rossi b...@brasko.net wrote: Darn it, this was reported in 2007  http://bugs.python.org/issue1180193 and it was mentioned the logging package was effected. Yikes. I will think about this, but don't expect any quick resolution :-( I think the right fix would be not in

pickle/unpickle class which has changed

2012-03-06 Thread Neal Becker
What happens if I pickle a class, and later unpickle it where the class now has added some new attributes? -- http://mail.python.org/mailman/listinfo/python-list

a interesting Parallel Programing Problem: asciify-string

2012-03-06 Thread Xah Lee
here's a interesting problem that we are discussing at comp.lang.lisp. 〈Parallel Programing Problem: asciify-string〉 http://xahlee.org/comp/parallel_programing_exercise_asciify-string.html here's the plain text. Code example is emacs lisp, but the problem is general. for a bit python relevancy…

Re: Error with co_filename when loading modules from zip file

2012-03-06 Thread Bob Rossi
On Tue, Mar 06, 2012 at 02:38:50AM -0800, Vinay Sajip wrote: On Mar 6, 2:40 am, Bob Rossi b...@brasko.net wrote: Darn it, this was reported in 2007  http://bugs.python.org/issue1180193 and it was mentioned the logging package was effected. Yikes. I will think about this, but

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread Roy Smith
[intentionally violating the followup-to header] In article 7ol5r.29957$zd5.14...@newsfe12.iad, Chiron chiron613.no.sp...@no.spam.please.gmail.com wrote: On Mon, 05 Mar 2012 22:34:46 -0800, Xah Lee wrote: while what you said is true, but the problem is that 99.99% of programers do NOT

Re: pickle/unpickle class which has changed

2012-03-06 Thread Peter Otten
Neal Becker wrote: What happens if I pickle a class, and later unpickle it where the class now has added some new attributes? - If the added attributes' values are immutable, provide defaults as class attributes. - Implement an appropriate __setstate__() method. The easiest would be #

Re: pickle/unpickle class which has changed

2012-03-06 Thread Steven D'Aprano
On Tue, 06 Mar 2012 07:34:34 -0500, Neal Becker wrote: What happens if I pickle a class, and later unpickle it where the class now has added some new attributes? Why don't you try it? py import pickle py class C: ... a = 23 ... py c = C() py pickled = pickle.dumps(c) py C.b = 42 # add a

Re: Error with co_filename when loading modules from zip file

2012-03-06 Thread Peter Otten
Bob Rossi wrote: On Tue, Mar 06, 2012 at 02:38:50AM -0800, Vinay Sajip wrote: On Mar 6, 2:40 am, Bob Rossi b...@brasko.net wrote: Darn it, this was reported in 2007 http://bugs.python.org/issue1180193 and it was mentioned the logging package was effected. Yikes. I will think

Re: pickle/unpickle class which has changed

2012-03-06 Thread Peter Otten
Steven D'Aprano wrote: On Tue, 06 Mar 2012 07:34:34 -0500, Neal Becker wrote: What happens if I pickle a class, and later unpickle it where the class now has added some new attributes? Why don't you try it? py import pickle py class C: ... a = 23 ... py c = C() py pickled =

python simple web server

2012-03-06 Thread queency jones
hello pythonist i'm developing using the simple / basic http server i got very bad performance regarding to request time . 9 sec for each request replay. i tried to test this with this: python -m SimpleHTTPServer 8080 but no better. any sugestions ? that i can use ? my final goal is to serv 5

Help me with weird logging problem

2012-03-06 Thread J
Hi, I'm trying to add a couple log handlers to a program. The end goal is to log things at INFO or above to console, and if a -v option is set to ALSO log everything at DEBUG or above to a file. However, while I DO get the log file created, and log messages are appearing there, Debug messages

Re: Help me with weird logging problem

2012-03-06 Thread Vinay Sajip
On Mar 6, 4:09 pm, J dreadpiratej...@gmail.com wrote: Any idea what I'm doing wrong? Levels can be set on loggers as well as handlers, and you're only setting levels on the handlers. The default level on the root logger is WARNING. A logger checks its level first, and only if the event passes

Monthly Python Meeting in Madrid (Spain)

2012-03-06 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Next Thursday, 8th March. http://www.python-madrid.es/post/reunion-marzo-2012-python-madrid/ - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ j...@jcea.es - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabber

Re: pickle/unpickle class which has changed

2012-03-06 Thread Neal Becker
Peter Otten wrote: Steven D'Aprano wrote: On Tue, 06 Mar 2012 07:34:34 -0500, Neal Becker wrote: What happens if I pickle a class, and later unpickle it where the class now has added some new attributes? Why don't you try it? py import pickle py class C: ... a = 23 ... py c

Re: Help me with weird logging problem

2012-03-06 Thread J
On Tue, Mar 6, 2012 at 11:19, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: On Mar 6, 4:09 pm, J dreadpiratej...@gmail.com wrote: Any idea what I'm doing wrong? Levels can be set on loggers as well as handlers, and you're only setting levels on the handlers. The default level on the root logger

Re: pickle/unpickle class which has changed

2012-03-06 Thread Peter Otten
Neal Becker wrote: Peter Otten wrote: Steven D'Aprano wrote: On Tue, 06 Mar 2012 07:34:34 -0500, Neal Becker wrote: What happens if I pickle a class, and later unpickle it where the class now has added some new attributes? Why don't you try it? py import pickle py class C: ...

Re: What's the best way to write this regular expression?

2012-03-06 Thread Chris Rebert
On Tue, Mar 6, 2012 at 2:43 PM, John Salerno johnj...@gmail.com wrote: I sort of have to work with what the website gives me (as you'll see below), but today I encountered an exception to my RE. Let me just give all the specific information first. The point of my script is to go to the

Re: What's the best way to write this regular expression?

2012-03-06 Thread John Salerno
On Tuesday, March 6, 2012 4:52:10 PM UTC-6, Chris Rebert wrote: On Tue, Mar 6, 2012 at 2:43 PM, John Salerno johnj...@gmail.com wrote: I sort of have to work with what the website gives me (as you'll see below), but today I encountered an exception to my RE. Let me just give all the

Re: What's the best way to write this regular expression?

2012-03-06 Thread John Salerno
Anything that allows me NOT to use REs is welcome news, so I look forward to learning about something new! :) I should ask though...are there alternatives already bundled with Python that I could use? Now that you mention it, I remember something called HTMLParser (or something like that)

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread Calvin Kim
On 03/06/2012 01:34 AM, Xah Lee wrote: while what you said is true, but the problem is that 99.99% of programers do NOT know this. They do not know Mathematica. They've never seen a language with such feature. The concept is alien. This is what i'd like to point out and spread awareness. I can

Re: What's the best way to write this regular expression?

2012-03-06 Thread John Salerno
On Tuesday, March 6, 2012 5:05:39 PM UTC-6, John Salerno wrote: Anything that allows me NOT to use REs is welcome news, so I look forward to learning about something new! :) I should ask though...are there alternatives already bundled with Python that I could use? Now that you mention

Re: What's the best way to write this regular expression?

2012-03-06 Thread Ian Kelly
On Tue, Mar 6, 2012 at 4:05 PM, John Salerno johnj...@gmail.com wrote: Anything that allows me NOT to use REs is welcome news, so I look forward to learning about something new! :) I should ask though...are there alternatives already bundled with Python that I could use? Now that you

Re: What's the best way to write this regular expression?

2012-03-06 Thread John Salerno
On Tuesday, March 6, 2012 5:05:39 PM UTC-6, John Salerno wrote: Anything that allows me NOT to use REs is welcome news, so I look forward to learning about something new! :) I should ask though...are there alternatives already bundled with Python that I could use? Now that you mention

Re: What's the best way to write this regular expression?

2012-03-06 Thread John Salerno
Thanks. I'm thinking the choice might be between lxml and Beautiful Soup, but since BS uses lxml as a parser, I'm trying to figure out the difference between them. I don't necessarily need the simplest (html.parser), but I want to choose one that is simple enough yet powerful enough that I won't

Re: What's the best way to write this regular expression?

2012-03-06 Thread Steven D'Aprano
On Tue, 06 Mar 2012 15:05:39 -0800, John Salerno wrote: Anything that allows me NOT to use REs is welcome news, so I look forward to learning about something new! :) I should ask though...are there alternatives already bundled with Python that I could use? Now that you mention it, I

Re: What's the best way to write this regular expression?

2012-03-06 Thread John Salerno
Also, you're still double-posting. Grr. I just reported it to Google, but I think if I start to frequent the newsgroup again I'll have to switch to Thunderbird, or perhaps I'll just try switching back to the old Google Groups interface. I think the issue is the new interface. Sorry. --

RE: What's the best way to write this regular expression?

2012-03-06 Thread Prasad, Ramit
Also, you're still double-posting. Grr. I just reported it to Google, but I think if I start to frequent the newsgroup again I'll have to switch to Thunderbird, or perhaps I'll just try switching back to the old Google Groups interface. I think the issue is the new interface. Sorry.

Re: pickle/unpickle class which has changed

2012-03-06 Thread Gelonida N
Hi Peter, A related question. Is there anyhing like a built in signature which would help to detect, that one tries to unpickle an object whose byte code has changed? The idea is to distinguish old and new pickled data and start some 'migration code' fi required The only thing, that I

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread Westley Martínez
On Tue, Mar 06, 2012 at 04:29:10PM -0500, Calvin Kim wrote: On 03/06/2012 01:34 AM, Xah Lee wrote: while what you said is true, but the problem is that 99.99% of programers do NOT know this. They do not know Mathematica. They've never seen a language with such feature. The concept is alien.

Re: What's the best way to write this regular expression?

2012-03-06 Thread Terry Reedy
On 3/6/2012 6:05 PM, John Salerno wrote: Anything that allows me NOT to use REs is welcome news, so I look forward to learning about something new! :) I should ask though...are there alternatives already bundled with Python that I could use? lxml is +- upward compatible with xml.etree in the

Re: What's the best way to write this regular expression?

2012-03-06 Thread Terry Reedy
On 3/6/2012 6:57 PM, John Salerno wrote: Also, you're still double-posting. Grr. I just reported it to Google, but I think if I start to frequent the newsgroup again I'll have to switch to Thunderbird, or perhaps I'll just try switching back to the old Google Groups interface. I think the

Re: What's the best way to write this regular expression?

2012-03-06 Thread Roy Smith
In article 12783654.1174.1331073814011.JavaMail.geo-discussion-forums@yner4, John Salerno johnj...@gmail.com wrote: I sort of have to work with what the website gives me (as you'll see below), but today I encountered an exception to my RE. Let me just give all the specific information

Why this recursive import fails?

2012-03-06 Thread INADA Naoki
I have 4 py files like below. Two __init__.py is empty file. $ find foo -name *.py foo/lib/lib.py foo/lib/__init__.py foo/__init__.py foo/foo.py $ cat foo/lib/lib.py from __future__ import absolute_import print('lib.py', __name__) from .. import foo #import foo.foo $ cat foo/foo.py from

Tools for refactoring/obfuscation

2012-03-06 Thread Javier
I am looking for an automated tool for refactoring/obfuscation. Something that changes names of functions, variables, or which would merge all the functions of various modules in a single module. The closest I have seen is http://bicyclerepair.sourceforge.net/ Does somebody know of something that

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread rusi
On Mar 6, 6:11 am, Xah Lee xah...@gmail.com wrote: some additional info i thought is relevant. are int, float, long, double, side-effects of computer engineering? It is a bit naive for computer scientists to club integers and reals as mathematicians do given that for real numbers, even

Get tkinter text to the clipboard

2012-03-06 Thread bugzilla-mail-box
How can I get something from tkinter gui to another program ? tkinter on python 3.2 on kde4 -- http://mail.python.org/mailman/listinfo/python-list

help: confused about python flavors....

2012-03-06 Thread amar Singh
Hi, I am confused between plain python, numpy, scipy, pylab, matplotlib. I have high familiarity with matlab, but the computer I use does not have it. So moving to python. What should I use? and the best way to use it. I will be running matlab-like scripts sometimes on the shell prompt and

Re: help: confused about python flavors....

2012-03-06 Thread Steven D'Aprano
On Tue, 06 Mar 2012 20:06:37 -0800, amar Singh wrote: Hi, I am confused between plain python, numpy, scipy, pylab, matplotlib. Python is a programming language. It comes standard with many libraries for doing basic mathematics, web access, email, etc. Numpy is a library for doing

Re: What's the best way to write this regular expression?

2012-03-06 Thread John Salerno
After a bit of reading, I've decided to use Beautiful Soup 4, with lxml as the parser. I considered simply using lxml to do all the work, but I just got lost in the documentation and tutorials. I couldn't find a clear explanation of how to parse an HTML file and then navigate its structure. The

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-06 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: This behavior is intentional - positional arguments must be sequential, not broken up with optional (flag) arguments between. So this is a documentation bug. Allowing positional arguments to be broken up with optional (flag) arguments

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-06 Thread Vlastimil Brom
Vlastimil Brom vlastimil.b...@gmail.com added the comment: Sorry for mixing the different problems, these were somehow things I noticed at once in the new python version, but I should have noticed the different domains myself. I still might not understand the term crash properly - I just meant

[issue13183] pdb skips frames after hitting a breakpoint and running step

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13183 ___ ___

[issue14196] Unhandled exceptions in pdb return value display

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14196 ___ ___

[issue12913] Add a debugging howto

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12913 ___ ___

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2012-03-06 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10369 ___

[issue6715] xz compressor support

2012-03-06 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I had intended to wait until the code had been tested on all of the buildbots before closing it. However, it's taking a while to get xz-utils installed on the last few bots, so it doesn't make sense to keep the issue open for this.

[issue5689] Support xz compression in tarfile module

2012-03-06 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5689 ___ ___

[issue14206] multiprocessing.Queue documentation is lacking important details

2012-03-06 Thread sbt
sbt shibt...@gmail.com added the comment: What you were told on IRC was wrong. By default the queue *does* have infinite size. When a process puts an item on the queue for the first time, a background thread is started which is responsible for writing items to the underlying pipe. This

[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-06 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Then I'm abusing this ticket to say: thanks for verifying this. I would still like to sweep this fact under the rug. :) Could you have a look at the documentation patch and see if it's clearer? -- keywords: +patch Added file:

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-03-06 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: BTW, the issue 6488 is still opened. I did not check if there's something left to do before to close it. The fundamental problem issue #6488 was opened for still exists - the docs use the term path without defining it. This should be

[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset da2aaced21bd by Stefan Krah in branch 'default': Issue #14181: Improve clarity in the documentation for the multi-purpose http://hg.python.org/cpython/rev/da2aaced21bd --

[issue1641544] rlcompleter tab completion in pdb

2012-03-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1641544 ___ ___

[issue14181] Support getbuffer redirection scheme in memoryview

2012-03-06 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: OK, for me the view-obj issues are done. The new tests indicate that we can silently keep backwards compatibility for view-obj==NULL, but I suppressed that fact in the documentation because it's already complicated enough. Perhaps we

[issue14208] No way to recover original argv with python -m

2012-03-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +brett.cannon, eric.araujo, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14208 ___

[issue13719] bdist_msi upload fails

2012-03-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m working on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___ ___

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2012-03-06 Thread James Pickering
New submission from James Pickering jamespi...@googlemail.com: If you run pkgutil.iter_zipimport_modules with a prefix parameter, and the module in question is a package, then the prefix parameter is ignored. The most visible symptom of this is when running pkgutil.walk_packages for a

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-06 Thread guilherme-pg
guilherme-pg guilherme.p.g...@gmail.com added the comment: I uploaded an incomplete patch that might address the issue so it can be discussed. This patch introduces 'greedy_star', a new constructor parameter to ArgumentParser that makes * positional arguments behave as expected in the test

[issue14210] add filename completion to pdb

2012-03-06 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: This would be extra nice because I would not have to fill in the entire path manually when I'm setting a b(reak). -- components: Library (Lib) messages: 155020 nosy: tshepang priority: normal severity: normal status: open

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: Can't this be triggered by non-malicious code that just happened to have a python comparison and get hit with a thread switch? I'm not sure how often it happens, but today it would not be visible to the user; after the patch, users will see a

[issue13860] PyBuffer_FillInfo() return value

2012-03-06 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- dependencies: -bytearray_getbuffer: unnecessary code resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - adapt sphinx-quickstart for windows ___ Python

[issue13860] PyBuffer_FillInfo() return value

2012-03-06 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- superseder: adapt sphinx-quickstart for windows - bytearray_getbuffer: unnecessary code ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13860

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Can't this be triggered by non-malicious code that just happened to have a python comparison and get hit with a thread switch? The issue was triggered without threads.If the __eq__ method of the objects used for keys use C functions

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Jim Jewett wrote: Jim Jewett jimjjew...@gmail.com added the comment: Can't this be triggered by non-malicious code that just happened to have a python comparison and get hit with a thread switch? So, they are writing to a dict in one thread

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: If the __eq__ method of the objects used for keys use C functions releasing the GIL, you may trigger the issue. Oh, I mean: trigger the issue with threads. I hope that your objects don't call C functions like open() in their __eq__()

[issue14211] Don't rely on borrowed _PyType_Lookup() reference in PyObject_GenericSetAttr()

2012-03-06 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: PyObject_GenericSetAttr() doesn't keep a reference to the descriptor: Python does crash if the descriptor is destroyed while the attribute is set. Attached patch keeps a reference to the desriptor to avoid the crash. A smililar was

[issue14211] Don't rely on borrowed _PyType_Lookup() reference in PyObject_GenericSetAttr()

2012-03-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14211 ___ ___ Python-bugs-list

[issue14211] Don't rely on borrowed _PyType_Lookup() reference in PyObject_GenericSetAttr()

2012-03-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +Interpreter Core versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14211 ___

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Tue, Mar 6, 2012 at 8:56 AM, Mark Shannon rep...@bugs.python.org wrote: Mark Shannon m...@hotpy.org added the comment: Jim Jewett wrote: Jim Jewett jimjjew...@gmail.com added the comment: Can't this be triggered by non-malicious code

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: On Tue, Mar 6, 2012 at 11:56 AM, Mark Shannon wrote: Jim Jewett: Can't this be triggered by non-malicious code that just happened to have a python comparison and get hit with a thread switch? So, they are writing to a dict in one thread

[issue14212] Segfault when using re.finditer over mmap

2012-03-06 Thread Maciej Fijalkowski
New submission from Maciej Fijalkowski fij...@gmail.com: Example to get a segfault attached. Crashes under python3 as well. -- files: x.py messages: 155028 nosy: fijall priority: normal severity: normal status: open title: Segfault when using re.finditer over mmap type: crash versions:

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Tue, Mar 6, 2012 at 9:43 AM, Jim Jewett rep...@bugs.python.org wrote: Jim Jewett jimjjew...@gmail.com added the comment: On Tue, Mar 6, 2012 at 11:56 AM, Mark Shannon wrote: Jim Jewett: Can't this be triggered by non-malicious code

[issue14213] python33.dll not removed on uninstallation

2012-03-06 Thread Vinay Sajip
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: I built an MSI for Python 3.3 on Windows 7 and installed from it - the resulting installation seems to work OK in that it passes all tests except test_tcl (intermittent failure). However, when I uninstall, python33.dll is left behind in

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: (1) I think this module would benefit greatly from a map explaining what each file does, and perhaps from some reorganization. As best I can yet tell, there are about ~130 files, over a dozen directories, but the only ones that directly

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___ ___ Python-bugs-list

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: That pythonw suddenly closes is a separate issue: if pythonw attempts to write to stderr, it crashes. To get your example to run in pythonw.exe, try pythonw.exe Lib\idlelib\idle.py 2 out.txt I think the behavior of pythonw terminating when

[issue14212] Segfault when using re.finditer over mmap

2012-03-06 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: It segfaults because it attempts to access the buffer of an mmap that has been closed. It would be certainly be more friendly if it checked whether the mmap was still open and, if not, raised an exception instead. -- nosy:

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Jim, thanks for taking a look at this. Jim Jewett rep...@bugs.python.org wrote: (1) I think this module would benefit greatly from a map explaining what each file does, and perhaps from some reorganization. Just MAP.txt in the

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-03-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1112c2f602b3 by Vinay Sajip in branch '2.7': Closes #14158: We now track test_support.TESTFN cleanup, and test_mailbox uses shutil.rmtree for simpler code. http://hg.python.org/cpython/rev/1112c2f602b3 --

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: STINNER Victor rep...@bugs.python.org wrote: How can I help to integrate this module into CPython? It would be fantastic if you could take a look at _decimal.c, for example to find some incompatibilities between _decimal.c and

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: On Tue, Mar 6, 2012 at 1:05 PM, Guido van Rossum Jim Jewett: ...  If they're just adding new keys, or even deleting other (== NOT the one being looked up) keys, why should that keep them from finding the existing, unchanged keys? ... The

[issue14213] python33.dll not removed on uninstallation

2012-03-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I guess this is a misconfiguration for your system. This DLL is reference-counted, and you must have arranged the reference count to be 1 somehow. Inspect the MSI log for details. -- ___ Python

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Interesting that the behavior is intentional, yet it accepts positional parameters either before, or after, or between optional (flag) parameters. This seems to me to be a case where proper documentation of the intention would have led

[issue14213] python33.dll not removed on uninstallation

2012-03-06 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Yes, the refcount was 1 after uninstallation - possibly it's been like that for a long time. I'll close the issue, but one thing occurs to me - isn't the DLL's version resource updated when you rebuild? Why wouldn't the newer version in an

[issue14213] python33.dll not removed on uninstallation

2012-03-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The version number is not changed on every rebuild, only when patchlevel.h changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14213

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-06 Thread Florian M
Florian M florian.mladit...@googlemail.com added the comment: I wrote some documentation with the information I found on http://wiki.python.org/moin/PullDom and some custom examples. -- nosy: +flomm Added file: http://bugs.python.org/file24750/xml.dom.pulldom.rst

[issue14208] No way to recover original argv with python -m

2012-03-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14208 ___

[issue14214] test_concurrent_futures hangs

2012-03-06 Thread Miki Tebeka
New submission from Miki Tebeka miki.teb...@gmail.com: Running make test on 3.3a source tree on Ubuntu 11.10 (64bit) hangs at test_concurrent_futures -- components: Tests messages: 155043 nosy: tebeka priority: normal severity: normal status: open title: test_concurrent_futures hangs

[issue14208] No way to recover original argv with python -m

2012-03-06 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: This is closely related to PEP 395, since multiprocessing currently hits the same issue in trying to figure out the correct setting for sys.argv0. I quite like the sys.__argv__ idea for preserving the *exact* underlying command line (Alex

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The scripts for generating code would preferably go in a Tools/decimal directory. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: On Tue, Mar 6, 2012 at 3:07 PM, Stefan Krah Jim Jewett rep...@bugs.python.org wrote: (1)  I think this module would benefit greatly from a map explaining      what each file does, and perhaps from some reorganization. Just MAP.txt in the

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Speaking of inline, the inline keyword will have to go because it's not C89. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-06 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Thanks, Florian - I will review the patch. At first sight it looks much better than what exists. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14202

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2012-03-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: I think the latest patch is indeed cleaner. -- nosy: +Jim.Jewett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13897 ___

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: But we could check if the compiler supports the inline keyword and use it if available. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652

[issue14215] http://www.python.org/dev/peps/ title is python.org

2012-03-06 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: The http://www.python.org/dev/peps browser title is python.org I suggest it should be changed to PEP Index. -- messages: 155051 nosy: ramchandra.apte priority: normal severity: normal status: open title:

  1   2   >