Re: why is this group being spammed?

2010-07-18 Thread Alf P. Steinbach /Usenet
* be.krul, on 18.07.2010 07:01: why is this group being spammed? It depends a little on what you're asking, e.g. technical versus motivation. But I'll answer about something you probably didn't mean to ask, namely what human trait enables and almost forces that kind of behavior. And I

why is this group being spammed?

2010-07-18 Thread geremy condra
On Sat, Jul 17, 2010 at 10:57 PM, Alf P. Steinbach /Usenet alf.p.steinbach+use...@gmail.com wrote: * be.krul, on 18.07.2010 07:01: why is this group being spammed? It depends a little on what you're asking, e.g. technical versus motivation. But I'll answer about something you probably

Re: Fascinating interview by Richard Stallman at KTH on emacs history and internals

2010-07-18 Thread Lawrence D'Oliveiro
In message bd2d1d84-6090-4898-b7c2-59167fc8e...@c10g2000yqi.googlegroups.com, Nick Keighley wrote: On 16 July, 09:24, Mark Tarver dr.mtar...@ukonline.co.uk wrote: On 15 July, 23:21, bolega gnuist...@gmail.com wrote: http://www.gnu.org/philosophy/stallman-kth.html RMS lecture at KTH

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread David Kastrup
Emmy Noether emmynoeth...@gmail.com writes: 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 does

Re: why is this group being spammed?

2010-07-18 Thread Johannes Kleese
On 18.07.2010 08:09, geremy condra wrote: On Sat, Jul 17, 2010 at 10:57 PM, Alf P. Steinbach /Usenet alf.p.steinbach+use...@gmail.com wrote: in in a social group by sharing that group's behavior and values. This instinct is possibly stronger than the sex drive, e.g., wars are seldom fought

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Nick
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: Code generator and visitor pattern

2010-07-18 Thread Mick Krippendorf
Mark Lawrence wrote: On 17/07/2010 20:38, Mick Krippendorf wrote: If Java were *really* a multiple dispatch language, it wouldn't be necessary to repeat the accept-code for every subclass. Instead a single accept method in the base class would suffice. In fact, with true multiple dispatch VP

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Emmy Noether
On Jul 18, 12:27 am, David Kastrup d...@gnu.org wrote: Emmy Noether emmynoeth...@gmail.com writes: 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

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Emmy Noether
On Jul 18, 1:09 am, Nick 3-nos...@temporary-address.org.uk wrote: 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

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Julian Bradfield
On 2010-07-18, Emmy Noether emmynoeth...@gmail.com wrote: DEFUN (or, For, Sor, 0, UNEVALLED, 0, Eval args until one of them yields non-NIL, then return that value. \n\ The remaining args are not evalled at all.\n\ If all args return NIL, return NIL.) (args) Lisp_Object args; {

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Nick
Emmy Noether emmynoeth...@gmail.com writes: On Jul 18, 1:09 am, Nick 3-nos...@temporary-address.org.uk wrote: 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

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

2010-07-18 Thread Thomas Jollans
On 07/17/2010 04:59 AM, 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

Re: rstrip()

2010-07-18 Thread News123
Mark Lawrence wrote: 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: It's a pity that str.strip() doesn't actually take a set() of length-1 strings, which would make its behavior more

Re: create dynamic instance

2010-07-18 Thread Ray
thanks a lot. I was really stupid. of course I should keep a references to use it later. -- http://mail.python.org/mailman/listinfo/python-list

Re: rstrip()

2010-07-18 Thread Thomas Jollans
On 07/18/2010 01:18 PM, News123 wrote: Mark Lawrence wrote: 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: It's a pity that str.strip() doesn't actually take a set() of length-1 strings,

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Richard Heathfield
Emmy Noether wrote: On Jul 18, 1:09 am, Nick 3-nos...@temporary-address.org.uk wrote: Emmy Noether emmynoeth...@gmail.com writes: On Jul 7, 1:57 pm, bolega gnuist...@gmail.com wrote: In this video, Stall man makes 4 promises to public but stalls on 2nd of them. I have no idea of the rights or

Re: rstrip()

2010-07-18 Thread News123
Thomas Jollans wrote: string.rstrip( [ '-dir' ] ) or as string.rstrip( '-dir' ) The former should certainly raise an exception. '-dir' is not a single character ! Or it should actually strip '-dir', or '-dir-dir', but not 'r--i'... but that's just silly. It's silly with the

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread David Kastrup
Emmy Noether emmynoeth...@gmail.com writes: On Jul 18, 12:27 am, David Kastrup d...@gnu.org wrote: What did you ever do to _deserve_ others working for you? What did we do to deserve him to write that elisp manual of 800+ pages ? NOTHING. So once one gives you something, you demand

Re: why is this group being spammed?

2010-07-18 Thread Chris Rebert
On Sun, Jul 18, 2010 at 12:49 AM, Johannes Kleese j.kle...@arcor.de wrote: On 18.07.2010 08:09, geremy condra wrote: On Sat, Jul 17, 2010 at 10:57 PM, Alf P. Steinbach /Usenet alf.p.steinbach+use...@gmail.com wrote: in in a social group by sharing that group's behavior and values. This

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

2010-07-18 Thread python
Thomas, In slightly related news, I just stumbled upon this: http://catb.org/esr/jargon/html/story-of-mel.html Now of course, he had it tough. Tough??? Well we had it tough. Our computers[1][2] had 0 bytes of RAM and 0 bytes of ROM. We had to hand wire our logic and physically push data

Re: rstrip()

2010-07-18 Thread MRAB
News123 wrote: Thomas Jollans wrote: string.rstrip( [ '-dir' ] ) or as string.rstrip( '-dir' ) The former should certainly raise an exception. '-dir' is not a single character ! Or it should actually strip '-dir', or '-dir-dir', but not 'r--i'... but that's just silly. It's silly with

Re: GNU Emacs Developement Inefficiency (commentary)

2010-07-18 Thread Tom Lord
On Jul 17, 11:11 am, Emmy Noether emmynoeth...@gmail.com wrote: Well, there is a lot of resistance from the emacs community in sharing information. Richard Stallman is a true STALLER of progress. He has held the whole process hostage by not sharing information. He has RENEGED on his promise

Re: [Python-Dev] Function Operators

2010-07-18 Thread Thomas Jollans
On 07/18/2010 05:52 PM, Reid Kleckner wrote: Usual disclaimer: python-dev is for the development *of* python, not *with*. See python-list, etc. Moving to python-list. Please keep discussion there. That said, def declares new functions or methods, so you can't put arbitrary expressions in

Print file via file association using os.system or subprocess? (Windows)

2010-07-18 Thread python
Under Windows: Is there a way to print a file using the file's file extension association using either the os.system or subprocess modules (vs. win32 extensions)? Use case: print PDF or Office documents to default printer without having to distribute win32 extensions. Thanks, Malcolm --

Re: [Python-Dev] Function Operators

2010-07-18 Thread Christopher Olah
Firstly, apologies for posting to the wrong list. Since I was fiddling around with a modification to the language, if the implementation details of something I'd never expect to get accepted, I'd thought python-dev might be appropriate... In retrospect, it is fairly clear that it was the wrong

Re: [Python-Dev] Function Operators

2010-07-18 Thread Terry Reedy
Christopher Olah In mathematical notation, f*g = z-f(g(z)) and f^n = f*f*f... (n times). I often run into situations in python where such operators could result in cleaner code. Python has a general mechanism for composing functions to make new functions: the def statement. z = f*g is a

Re: rstrip()

2010-07-18 Thread News123
MRAB wrote: News123 wrote: Thomas Jollans wrote: string.rstrip( [ '-dir' ] ) or as string.rstrip( '-dir' ) The former should certainly raise an exception. '-dir' is not a single character ! Or it should actually strip '-dir', or '-dir-dir', but not 'r--i'... but that's just silly.

Re: why is this group being spammed?

2010-07-18 Thread sturlamolden
On 18 Jul, 07:01, be.krul be.k...@gmail.com wrote: why is this group being spammed? There used to be bots that issued cancel messages against spam, but I don't think they are actively maintained anymore. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fascinating interview by Richard Stallman at KTH on emacs history and internals

2010-07-18 Thread Kenneth Tilton
Lawrence D'Oliveiro wrote: In message bd2d1d84-6090-4898-b7c2-59167fc8e...@c10g2000yqi.googlegroups.com, Nick Keighley wrote: On 16 July, 09:24, Mark Tarver dr.mtar...@ukonline.co.uk wrote: On 15 July, 23:21, bolega gnuist...@gmail.com wrote: http://www.gnu.org/philosophy/stallman-kth.html

Re: why is this group being spammed?

2010-07-18 Thread Edward A. Falk
In article 334170d5-a336-4506-bda1-279b40908...@k1g2000prl.googlegroups.com, be.krul be.k...@gmail.com wrote: why is this group being spammed? They're *all* being spammed. Why? Because they can, and because Google doesn't care. -- -Ed Falk, f...@despams.r.us.com

Re: why is this group being spammed?

2010-07-18 Thread Edward A. Falk
In article i1u511$b3...@news.eternal-september.org, Alf P. Steinbach /Usenet alf.p.steinbach+use...@gmail.com wrote: Consider, there would be almost no spam if spamming didn't pay. Or if ISPs refused to tolerate it from their customers. -- -Ed Falk, f...@despams.r.us.com

Re: why is this group being spammed?

2010-07-18 Thread Mark Lawrence
On 18/07/2010 23:58, Edward A. Falk wrote: In article334170d5-a336-4506-bda1-279b40908...@k1g2000prl.googlegroups.com, be.krulbe.k...@gmail.com wrote: why is this group being spammed? They're *all* being spammed. Why? Because they can, and because Google doesn't care. I see little or

Re: Print file via file association using os.system or subprocess? (Windows)

2010-07-18 Thread Mark Hammond
On 19/07/2010 3:46 AM, pyt...@bdurham.com wrote: Under Windows: Is there a way to print a file using the file's file extension association using either the os.system or subprocess modules (vs. win32 extensions)? Use case: print PDF or Office documents to default printer without having to

Re: rstrip()

2010-07-18 Thread Ethan Furman
MRAB wrote: [snip] How about 'strip_str', 'lstrip_str' and 'rstrip_str', or something similar? +1 on the names ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list

Re: Print file via file association using os.system or subprocess? (Windows)

2010-07-18 Thread python
Hi Mark, You probably want to use the windows ShellExec function with a 'print' verb. Thanks Mark! And cheers for the great win32api library!! I've included a link[1] on how to do this for anyone searching the archives. Malcolm [1] Print via ShellExecute (prints to the user's default

Re: rstrip()

2010-07-18 Thread python
And don't forget the oft requested strip_tease(). Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Human Rights In An Islamic State

2010-07-18 Thread nais-saudi
Human Rights In An Islamic State Human Rights In An Islamic State 1. The Security Of Life And Property: In the address which the Prophet delivered on the occasion of the Farewell Hajj, he said: Your lives and properties are forbidden to one another till you meet your Lord on the Day of

Difference between import in script and from interpreter

2010-07-18 Thread Edward Diener
In a python script a: from xxx.yyy.zzz import aaa fails with the message: ImportError: No module named xxx.yyy.zzz but from within the python interpreter the same line succeeds. What would be the causes of that ? From within the python interpreter I have looked at sys.path and xxx.yyy.zzz

Re: Difference between import in script and from interpreter

2010-07-18 Thread Steven D'Aprano
On Mon, 19 Jul 2010 00:53:56 -0400, Edward Diener wrote: In a python script a: from xxx.yyy.zzz import aaa fails with the message: ImportError: No module named xxx.yyy.zzz but from within the python interpreter the same line succeeds. What would be the causes of that ? From

[issue9277] test_struct failure on ARM

2010-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Stefan! Fixed (I hope) in r82941 (py3k). Now I'm puzzled about why the test passes for '?'. But let's see what the buildbots do. -- assignee: - mark.dickinson ___ Python tracker

[issue9277] test_struct failure on ARM

2010-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Merged to release31-maint in r82942, release27-maint in r82945, release26-maint in r82946. (And added missing Misc/NEWS entries for this change in r82943, r82944.) -- ___ Python tracker

[issue9277] test_struct failure on ARM

2010-07-18 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - pending versions: +Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9277 ___

[issue9288] Disambiguate :option: and :cmdoption:

2010-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This patch is not really accurate; cmdoption *is* the directive where the link goes to. option is the role to link to them (or not). -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue9279] get rid of pdb.doc

2010-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Done in r82949. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9279 ___

[issue2053] IDLE - standardize dialogs

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: For the record there has been a sizeable thread on python-dev in the last few days regarding IDLE. As a result it is extremely likely that IDLE outstanding issues will be picked up, so please leave this issue open. -- nosy:

[issue4047] test_run_abort triggers CrashReporter on MacOS X

2010-07-18 Thread Martina Oefelein
Martina Oefelein mart...@oefelein.de added the comment: Yes, a warning at the start of the test would at least let the user know that the crash is expected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4047

[issue9277] test_struct failure on ARM

2010-07-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Now I'm puzzled about why the test passes for '?'. Somewhere along the way native_table is used instead of lilendian_table, so np_bool is called. -- status: pending - open ___ Python tracker

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I applied the patch to test_smtplib.py only and all tests passed, surely that's not correct. Removing the explicit test for a non-numeric port in smtplib.py seems strange to me, could someone please explain the rationale behind this. I

[issue2796] Build issues in DragonFly BSD

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I suggest that this is closed if we do not get an answer to Brian's question. -- nosy: +BreamoreBoy status: open - pending ___ Python tracker rep...@bugs.python.org

[issue2813] No float formatting in PyString_FromFormat

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Jean, do you intend taking this issue any further or can it be closed? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2813

[issue2813] No float formatting in PyString_FromFormat

2010-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'll take a look at this. -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2813 ___

[issue9277] test_struct failure on ARM

2010-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Somewhere along the way native_table is used instead of lilendian_table, so np_bool is called. Hmm. This doesn't alleviate my confusion. :) The relevant part of test_struct looks like: for prefix in tuple(!=)+('',): # other

[issue2927] expose html.parser.unescape

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Trying to run the test and I get:- c:\py3k\Lib..\PCbuild\python_d.exe test\test_htmlparser.py File test\test_htmlparser.py, line 326 escaped = upThere#146;s the Cocirc;te/p ^

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-18 Thread Dmitry Jemerov
New submission from Dmitry Jemerov intelliy...@gmail.com: On Windows, mimetypes initialization reads the list of MIME types from the Windows registry. It assumes that all characters are Latin-1 encoded, and fails when it's not the case, with the following exception: Traceback (most recent

[issue2931] optparse: various problems with unicode and gettext

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Alexy, there would be a much better chance of getting this accepted if you could supply a patch file that also included unit tests. -- nosy: +BreamoreBoy, aronacher versions: +Python 3.1, Python 3.2 -Python 2.6

[issue3022] mailbox module, two small fixes

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Anyone interested in taking this forward? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3022

[issue3068] IDLE - Add an extension configuration dialog

2010-07-18 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +tjreedy versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3068 ___

[issue3073] Cookie.Morsel breaks in parsing cookie values with whitespace

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Anyone with knowledge of cookies and/or regexes who could review this? The patch isn't that big and includes unit tests. Note also Trent's offer to check it in and patch py3k. -- nosy: +BreamoreBoy versions: +Python 3.2

[issue9277] test_struct failure on ARM

2010-07-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark Dickinson rep...@bugs.python.org wrote: Somewhere along the way native_table is used instead of lilendian_table, so np_bool is called. Hmm. This doesn't alleviate my confusion. :) I suppose I sounded a bit like the Oracle of

[issue3119] pickle.py is limited by python's call stack

2010-07-18 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Sean has stated that the patch seems fine, what needs to be done to take this forward? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3119

[issue9110] contextlib.ContextDecorator

2010-07-18 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I've uploaded a new patch with additions to the docs. Let me know if it is ok or if you have any suggested amendments. -- Added file: http://bugs.python.org/file18049/contextlib_docs.patch

[issue9277] test_struct failure on ARM

2010-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah yes; I missed that bit of PyInit__struct; thank you! Setting to pending; I'll close once the buildbots have reported back (it might take some days for the ARM buildbots to catch up). Many thanks for the diagnosis. -- status:

[issue9110] contextlib.ContextDecorator

2010-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied, with small changes, in r82951. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9110 ___

[issue9292] Dead code in Modules/pyexpat.c

2010-07-18 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: There's some dead code in xmlparse_ParseFile() in Modules/pyexpat.c: the file pointer fp is always NULL, and as such the following code can never get entered into: if (fp) { bytes_read = fread(buf, sizeof(char), BUF_SIZE,

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-07-18 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: I noticed that the directions from mathworks are no longer correct. The only optional feature is a 64 bit SQL server. Yet I still can't get it to work correctly. Does MS no longer provide the compiler in their free editions? --

[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-07-18 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Some of them currently raise IOError. Fortunately, UnsupportedOperation inherits from IOError, which means compatibility can be preserved. Contrast: open(LICENSE).write(bar) Traceback (most recent call last): File stdin, line 1, in module

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-07-18 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: HAHA DISREGARD THAT, WRONG DOWNLOAD. However, the C++ compiler `is` now installed by default. P.S: that second ValueError? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511

[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-07-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Another kind of unsupported operation is non-absolute seeking on a TextIOWrapper: open(LICENSE).seek(1, 1) Traceback (most recent call last): File stdin, line 1, in module IOError: can't do nonzero cur-relative seeks --

[issue6643] Throw away more radioactive locks that could be held across a fork in threading.py

2010-07-18 Thread Reid Kleckner
Changes by Reid Kleckner r...@mit.edu: -- assignee: - rnk keywords: +needs review -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6643 ___

[issue6642] returning after forking a child thread doesn't call Py_Finalize

2010-07-18 Thread Reid Kleckner
Changes by Reid Kleckner r...@mit.edu: -- assignee: - rnk dependencies: +Throw away more radioactive locks that could be held across a fork in threading.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6642

[issue9294] Dead code in Objects/object.c

2010-07-18 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: internal_print() is called from only one place, with the `nesting` argument wired to 0, therefore the following chunk of code in internal_print() never gets a chance to be executed: if (nesting 10) {

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I noticed test_close_open_print_buffered(test_file) sometimes crashes on release26-maint branch. This is most problamatic part in my python2.6 test survey on VC6 + Win2K. Here is stacktrace. _write_lk(int 6, const void *

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-07-18 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: Waiting until the portability hacks for gettimeofday make it into core Python. -- dependencies: +Make gettimeofday available in time module ___ Python tracker rep...@bugs.python.org

[issue9294] Dead code in Objects/object.c

2010-07-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9294 ___ ___ Python-bugs-list mailing

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I saw value of local variable *thread* was 5384 and internal buffer's address was 0x102618c8 (sorry, this is another stacktrace which differs from previous one) thread(5384) func(file_close): enter thread(5384)

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___ ___ Python-bugs-list mailing

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I saw value of local variable *thread* was 5384 and internal buffer's address was 0x102618c8 (sorry, this is another stacktrace which differs from previous one) thread(5384) func(file_close): enter thread(5384)

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file18051/py26_debug_threaded_close.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9295 ___

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I created a patch to workaround this crash. But I saw another problamatic phenomenon Error without exception set. I confirmed PyErr_Occurred() returns TRUE when leaving file_close() on error, but I gave up.

[issue2927] expose html.parser.unescape

2010-07-18 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: It's using the old Python 2 unicode string literal syntax. It also doesn't keep to 80 cols. I'd also rather continue using a lazily initialized dict instead of catching a KeyError for apos;. I also feel that with the changes to Unicode in py3k,

[issue8265] test_float fails on ARM Linux EABI with soft floating point

2010-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The test_float failure is still extant. Here's the output of gcc -v on this buildbot, for use in any gcc bug report: Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.4-6'

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The proposed resolution is wrong. As the comment says, there is a specific reason why f-fp is NULLed at this point. It appears that maybe MSVCRT is not entirely thread-safe with respect to buffered file I/O. Perhaps the test can simply be

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-18 Thread Doug Hellmann
New submission from Doug Hellmann doug.hellm...@gmail.com: Under Python 2.6 the json encoder raised a TypeError when it encountered dictionary keys that were not strings. Under 2.7, that exception has changed to a ValueError, but the documentation still says it raises TypeError. I'm not

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-18 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: The attached file json_skipkeys.py illustrates the problem. -- Added file: http://bugs.python.org/file18053/json_skipkeys.py ___ Python tracker rep...@bugs.python.org

[issue8265] test_float fails on ARM Linux EABI with soft floating point

2010-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Added some test code to the configure script in r82957; if the corresponding configure test fails, this snippet can be used in the gcc bug report. -- ___ Python tracker rep...@bugs.python.org

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-18 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: Looking into the code, I see in _json.c that a ValueError is raised by encoder_listencode_dict() on line 2150, but in the pure-Python implementation in json/encoder.py a TypeError is raised by _make_iterencode() on line 376. --

[issue6627] threading.local() does not work with C-created threads

2010-07-18 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list

[issue1902] Test

2010-07-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is a link: (http://www.python.org) -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1902 ___

[issue1902] Test

2010-07-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: And another think: http://www.microsoft.com/VS(1234.foo).aspx -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1902 ___

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Maybe I am wrong, but when another thread calls File.close(), there is no system call on the code path, so I think still crash can happen nevertheless system call is thread safe. --

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Maybe I am wrong, but when another thread calls File.close(), there is no system call on the code path, There is, and that's precisely what's the various tests test for. (closing a file from a thread while it's being used from another thread)

[issue2813] No float formatting in PyString_FromFormat

2010-07-18 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Mark L, No, I do not intend to take this issue further. Rather the opposite, it should probably be paired down based on the recent comments. Specifically, use PyOS_double_to_string, remove support for long double and perhaps more. Also,

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Hmm, correct me if following understanding is wrong somewhere... 1. File.close() is actually file_close(), and is calling close_the_file(). 2. Returns immediately because local_fp == f-f_fp is already NULL. The return value is

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I forgot to mention that I didn't see any Error without exception set by my last patch. I agree f-f_fp = NULL; is needed there. ;-) -- ___ Python tracker rep...@bugs.python.org

[issue5872] New C API for declaring Python types

2010-07-18 Thread Reid Kleckner
Changes by Reid Kleckner r...@mit.edu: -- nosy: +rnk versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5872 ___ ___

[issue2053] IDLE - standardize dialogs

2010-07-18 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file10140/IDLE_standardize_dialogs.080429.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2053 ___

[issue2053] IDLE - standardize dialogs

2010-07-18 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file10556/IDLE_standardize_dialogs.080609.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2053 ___

[issue4938] Pdb cannot access doctest source in postmortem

2010-07-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky stage: - needs patch type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4938

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, correct me if following understanding is wrong somewhere... 1. File.close() is actually file_close(), and is calling close_the_file(). 2. Returns immediately because local_fp == f-f_fp is already NULL. The return value is None. I

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-07-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Does the following patch solve your issue? Index: Python/ceval.c === --- Python/ceval.c (révision 82959) +++ Python/ceval.c (copie de travail) @@ -1763,6 +1763,8 @@

  1   2   >