ANN: eGenix PyRun - One file Python Runtime 1.0.0

2012-07-02 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 1.0.0 An easy-to-use single file relocatable Python run-time - available for Windows, Mac OS X

Re: code review

2012-07-02 Thread Steven D'Aprano
On Sun, 01 Jul 2012 21:50:29 -0400, Devin Jeanpierre wrote: On Sun, Jul 1, 2012 at 9:28 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Technically, in Python is left-associative: a b c first evaluates a, not b or c. But it is left-associative under the rules of comparison

hello everyone! i'm a new member from China

2012-07-02 Thread levi nie
i love python very much.it's powerful,easy and useful. i got it from Openstack.And i'm a new guy on python. Can i ask some stupid questions in days? haha... -- http://mail.python.org/mailman/listinfo/python-list

Re: hello everyone! i'm a new member from China

2012-07-02 Thread Peter Otten
levi nie wrote: i love python very much.it's powerful,easy and useful. i got it from Openstack.And i'm a new guy on python. Welcome! Can i ask some stupid questions in days? haha... Sure, but we cannot guarantee that the answer will be stupid, too ;) --

Re: hello everyone! i'm a new member from China

2012-07-02 Thread Chris Angelico
On Mon, Jul 2, 2012 at 12:48 AM, levi nie levinie...@gmail.com wrote: i love python very much.it's powerful,easy and useful. i got it from Openstack.And i'm a new guy on python. Can i ask some stupid questions in days? haha... Of course you can. Everyone else does! :) Just remember to give it

Re: code review

2012-07-02 Thread Steven D'Aprano
On Mon, 02 Jul 2012 12:04:29 +1000, Chris Angelico wrote: Chained comparisons in the Python sense may be rare in computer languages, but it is the standard in mathematics and hardly needs to be explained to anyone over the age of twelve. That is a terrible indictment on the state of

Re: code review

2012-07-02 Thread Chris Angelico
On Mon, Jul 2, 2012 at 6:11 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: c first_word second_word == third_word x I'm sure I don't have to explain what that means -- that standard chained notation for comparisons is obvious and simple. In Python, you write it the normal

Is Django v1.3 documentation the newest version?

2012-07-02 Thread levi nie
Is Django v1.3 documentation the newest version? i use the Django book 2.0. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Django v1.3 documentation the newest version?

2012-07-02 Thread Jonathan Harris
Hello It isn't Having been frustrated with out of date books, specifically the Apress published 'Definitive Guide To Django', I've downloaded the Kindle edition of Django 1.4 documentation It's a good tutorial J On Mon, Jul 2, 2012 at 11:00 AM, levi nie levinie...@gmail.com wrote: Is Django

Re: how to use tkinter in python3.2?

2012-07-02 Thread contro opinion
apt-get install tk-dev cd ./python3.2.3 ./cpnfigure make make install ok root@ocean:/home/tiger/Python-3.2.3# python3.2 Python 3.2.3 (default, Jul 2 2012, 21:23:34) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. import tkinter haha,think Serhiy

ANN: eGenix PyRun - One file Python Runtime 1.0.0

2012-07-02 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 1.0.0 An easy-to-use single file relocatable Python run-time - available for Windows, Mac OS X

how to solve this tclerror?

2012-07-02 Thread contro opinion
i want to install a software, please see the manul page 2 http://www.openfiling.info/wp-content/upLoads/data/ArelleUsersManual.pdf when i input the command to install Arelle : tiger@ocean:~$ cd /home/tiger/Arelle tiger@ocean:~/Arelle$ python3.2 arelleGUI.pyw Traceback (most recent call

Re: how to solve this tclerror?

2012-07-02 Thread contro opinion
i solve it myself 1.download tile-0.8.4.0.tar.gz 2. ./configure 3. make 4 make install tiger@ocean:~$ cd /home/tiger/Arelle tiger@ocean:~/Arelle$ python3.2 arelleGUI.pyw i get what i want ,haha. 2012/7/2 contro opinion contropin...@gmail.com i want to install a software,

Re: code review

2012-07-02 Thread Thomas Jollans
On 07/02/2012 02:43 AM, Steven D'Aprano wrote: On Sun, 01 Jul 2012 09:35:40 +0200, Thomas Jollans wrote: This is simply wrong. The comparisons are not acting as binary operators. Of course they are. Take this chained comparison: Technically, yes - two-input operations are happening.

Re: code review

2012-07-02 Thread Thomas Jollans
On 07/02/2012 03:28 AM, Steven D'Aprano wrote: We *really did have* somebody arguing that chained comparisons are Bad because you can't stick parentheses around bits of it without changing the semantics. That was an actual argument, not a straw-man. Ahem. It may have been sub-optimally

Re: hello everyone! i'm a new member from China

2012-07-02 Thread rdsteph
On Jul 2, 12:50 am, Peter Otten __pete...@web.de wrote: levi nie wrote: i love python very much.it's powerful,easy and useful. i got it from Openstack.And i'm a new guy on python. Welcome! Can i ask some stupid questions in days? haha... Sure, but we cannot guarantee that the answer

Re: 2to6 ?

2012-07-02 Thread Thomas Heller
Am 27.06.2012 20:06, schrieb Terry Reedy: On 6/27/2012 10:36 AM, Thomas Heller wrote: Is there a tool, similar to 2to3, which converts python2 code to code using six.py, so that it runs unchanged with python2 *and* python 3? Others have expressed a similar wish, but I do not know that anyone

Re: code review

2012-07-02 Thread Terry Reedy
On 7/2/2012 1:20 AM, Dennis Lee Bieber wrote: Obviously, someone coming over from VB or R or any other single language x who hasn't read the Python reference is going to be surprised as something or other. So what. The manuals, including the tutorial, are there for a reason. The main

WxSlider Mouse Wheel Resolution

2012-07-02 Thread Wanderer
Is there a way to set the mouse wheel resolution for the wxPython wx.Slider? I would like to use the graphic slider for coarse control and the mouse wheel for fine control. Right now the mouse wheel makes the slider jump ten counts and I would like it to be a single count. Thanks --

Re: how to solve this tclerror?

2012-07-02 Thread Terry Reedy
On 7/2/2012 10:14 AM, contro opinion wrote: i solve it myself 1.download tile-0.8.4.0.tar.gz Or install the latest tcl/tk 8.5(.11), which includes tile/tkk and bug fixes, instead of the rather old 8.4.?. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: code review

2012-07-02 Thread Rick Johnson
On Jul 2, 3:20 am, Chris Angelico ros...@gmail.com wrote: On Mon, Jul 2, 2012 at 6:11 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: c first_word second_word == third_word x I'm sure I don't have to explain what that means -- that standard chained notation for

Re: code review

2012-07-02 Thread Chris Angelico
On Tue, Jul 3, 2012 at 1:57 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: Poor Chris. That's because you've been brainwashed into believing you must spoon feed your interpreter to get your code working correctly. Stop applying these naive assumptions to Python code. Python knows when

Re: code review

2012-07-02 Thread Rick Johnson
On Jun 30, 9:06 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sun, 01 Jul 2012 00:05:26 +0200, Thomas Jollans wrote: Yes. My sole point, really, is that normally, one would expect these two expressions to be equivalent: a b c (a b) c Good grief. Why would you

Re: code review

2012-07-02 Thread Chris Angelico
On Tue, Jul 3, 2012 at 1:16 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: py 1 + 3 * 4 should ALWAYS equal 16! With parenthesis only used for grouping: py a + (b*c) + d Which seems like the most consistent approach to me. Oh yes, absolutely consistent. Consistency. It's a CR 1/2

Re: when normal parallel computations in CPython will be implemented at last?

2012-07-02 Thread John Nagle
On 7/1/2012 10:51 AM, dmitrey wrote: hi all, are there any information about upcoming availability of parallel computations in CPython without modules like multiprocessing? I mean something like parallel for loops, or, at least, something without forking with copying huge amounts of RAM each

Re: code review

2012-07-02 Thread Rick Johnson
On Jul 2, 11:42 am, Chris Angelico ros...@gmail.com wrote: Rick, do you realize that you have to spoon-feed the interpreter with spaces/tabs when other interpreters just KNOW to drop back an indentation level when you close a brace? Yes. And significant white space is my favorite attribute of

Re: when normal parallel computations in CPython will be implemented at last?

2012-07-02 Thread Stefan Behnel
Dan Stromberg, 01.07.2012 21:28: On Sun, Jul 1, 2012 at 11:58 AM, Thomas Jollans wrote: On 07/01/2012 08:44 PM, Dan Stromberg wrote: IronPython, sadly, lacks a python standard library. Beg pardon?

Re: code review

2012-07-02 Thread Thomas Jollans
On 07/02/2012 08:22 PM, Rick Johnson wrote: Agreed. I wish we had one language. One which had syntactical directives for scoping, blocks, assignments, etc, etc... BLOCK_INDENT_MARKER - \t BLOCK_DEDENT_MARKER - \n STATEMENT_TERMINATOR - \n ASSIGNMENT_OPERATOR - := CONDITIONAL_IF_SPELLING -

Re: code review

2012-07-02 Thread Ian Kelly
On Sat, Jun 30, 2012 at 2:50 PM, Thomas Jollans t...@jollybox.de wrote: Which of the two comparisons is done first anyway? In the face of ambiguity, refuse the temptation to guess. I would consider that a pro, not a con, because the C-like way is much worse in this regard. Using operator

Re: 2to6 ?

2012-07-02 Thread Terry Reedy
On 7/2/2012 11:02 AM, Thomas Heller wrote: Am 27.06.2012 20:06, schrieb Terry Reedy: On 6/27/2012 10:36 AM, Thomas Heller wrote: Is there a tool, similar to 2to3, which converts python2 code to code using six.py, so that it runs unchanged with python2 *and* python 3? Others have expressed a

Re: code review

2012-07-02 Thread Rick Johnson
On Jul 2, 2:06 pm, Thomas Jollans t...@jollybox.de wrote: On 07/02/2012 08:22 PM, Rick Johnson wrote: Agreed. I wish we had one language. One which had syntactical directives for scoping, blocks, assignments, etc, etc... BLOCK_INDENT_MARKER - \t BLOCK_DEDENT_MARKER - \n

Re: WxSlider Mouse Wheel Resolution

2012-07-02 Thread Rick Johnson
On Jul 2, 10:45 am, Wanderer wande...@dialup4less.com wrote: Is there a way to set the mouse wheel resolution for the wxPython wx.Slider? I would like to use the graphic slider for coarse control and the mouse wheel for fine control. Right now the mouse wheel makes the slider jump ten counts

Re: WxSlider Mouse Wheel Resolution

2012-07-02 Thread Rick Johnson
On Jul 2, 3:45 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: [...]   MouseWheel - cb(MEDIUM)   MouseWheel+ControlKey - cb(FINE)   MouseWheel+ShiftKey - cb(COURSE) Of course some could even argue that three levels of control are not good enough; for which i wholeheartedly agree! A REAL

Re: code review

2012-07-02 Thread Chris Angelico
On Tue, Jul 3, 2012 at 5:06 AM, Thomas Jollans t...@jollybox.de wrote: On 07/02/2012 08:22 PM, Rick Johnson wrote: Agreed. I wish we had one language. One which had syntactical directives for scoping, blocks, assignments, etc, etc... BLOCK_INDENT_MARKER - \t BLOCK_DEDENT_MARKER - \n

helping with unicode

2012-07-02 Thread self.python
it's a simple source view program. the codec of the target website is utf-8 so I read it and print the decoded -- #-*-coding:utf8-*- import urllib2 rf=urllib2.urlopen(rhttp://gall.dcinside.com/list.php?id=programming;) print

Re: code review

2012-07-02 Thread Steven D'Aprano
On Tue, 03 Jul 2012 02:55:48 +1000, Chris Angelico wrote: On Tue, Jul 3, 2012 at 1:16 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: py 1 + 3 * 4 should ALWAYS equal 16! With parenthesis only used for grouping: py a + (b*c) + d Which seems like the most consistent approach to me.

Re: ANN: eGenix PyRun - One file Python Runtime 1.0.0

2012-07-02 Thread Simon Cropper
On 02/07/12 23:52, eGenix Team: M.-A. Lemburg wrote: ANNOUNCING eGenix PyRun - One file Python Runtime Version 1.0.0 An easy-to-use single file relocatable

Re: helping with unicode

2012-07-02 Thread Andrew Berg
On 7/2/2012 7:49 PM, self.python wrote: Traceback (most recent call last): File C:wrong.py, line 8, in module print rf.read().decode('utf-8') UnicodeEncodeError: 'cp949' codec can't encode character u'u1368' in position

Re: helping with unicode

2012-07-02 Thread MRAB
On 03/07/2012 01:49, self.python wrote: it's a simple source view program. the codec of the target website is utf-8 so I read it and print the decoded -- #-*-coding:utf8-*- import urllib2

Re: code review

2012-07-02 Thread Chris Angelico
On Tue, Jul 3, 2012 at 10:57 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 03 Jul 2012 02:55:48 +1000, Chris Angelico wrote: Oh yes, absolutely consistent. Consistency. It's a CR 1/2 monster found on page 153 of the 3.5th Edition Monster Manual. GvR is fond of

Re: helping with unicode

2012-07-02 Thread Terry Reedy
On 7/2/2012 8:49 PM, self.python wrote: it's a simple source view program. the codec of the target website is utf-8 so I read it and print the decoded which re-encodes before printing -- #-*-coding:utf8-*- import urllib2

Re: helping with unicode

2012-07-02 Thread Terry Reedy
On 7/2/2012 8:49 PM, self.python wrote: it's a simple source view program. the codec of the target website is utf-8 so I read it and print the decoded which re-encodes before printing -- #-*-coding:utf8-*- import urllib2

Re: code review

2012-07-02 Thread John O'Hagan
On Tue, 3 Jul 2012 11:22:55 +1000 Chris Angelico ros...@gmail.com wrote: On Tue, Jul 3, 2012 at 10:57 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Perhaps the world would be better off if mathematicians threw out the existing precedence rules and replaced them with a

New member from India

2012-07-02 Thread anuj kumar
Hello Everyone, Warm greetings to all of you... I have to learn Python.So i recently join the python mailing list .Can you please send me some sample programs from where i can start. Thanks, Anuj -- http://mail.python.org/mailman/listinfo/python-list

Tkinter and Chess problems

2012-07-02 Thread Lalitha Prasad K
Dear All Recently I have been playing with Tkinter. I wrote two scripts to solve well known chess problems: eight queens and knight's tour. Both are available here: https://github.com/LalithaPrasad/PythonScripts All are welcome to download and improve them if required. Hope to rewrite them using

[ANN]: asyncoro: Framework for asynchronous, concurrent, distributed programming

2012-07-02 Thread Giridhar Pemmasani
Hi, I would like to announce asyncoro (http://asyncoro.sourceforge.net), a Python framework for developing concurrent, distributed programs with asynchronous completions and coroutines. asyncoro features include   * Asynchronous (non-blocking) sockets   * Efficient polling mechanisms epoll,

Re: New member from India

2012-07-02 Thread Chris Angelico
On Tue, Jul 3, 2012 at 1:36 PM, anuj kumar anujkumar...@gmail.com wrote: Hello Everyone, Warm greetings to all of you... I have to learn Python.So i recently join the python mailing list .Can you please send me some sample programs from where i can start. Welcome! Start here...

Re: code review

2012-07-02 Thread Steven D'Aprano
On Tue, 03 Jul 2012 12:25:59 +1000, John O'Hagan wrote: On Tue, 3 Jul 2012 11:22:55 +1000 Chris Angelico ros...@gmail.com wrote: On Tue, Jul 3, 2012 at 10:57 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Perhaps the world would be better off if mathematicians threw out

Dictless classes

2012-07-02 Thread Steven D'Aprano
You can create instances without a __dict__ by setting __slots__: py class Dictless: ... __slots__ = ['a', 'b', 'c'] ... py Dictless().__dict__ Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'Dictless' object has no attribute '__dict__' But the class

How can i do python form post request?

2012-07-02 Thread gmspro
form.html: form action=p.py method=post  input type=text id=id_text name=name_text /  input type=submit id=id_submit name=name_submit / /form p.py: #!/usr/bin/python #what to write here... Both files are put in /var/www/ , now from http://localhost/form.html, if i click the submit button

Re: code review

2012-07-02 Thread rusi
On Jul 3, 7:25 am, John O'Hagan resea...@johnohagan.com wrote: I agree to some extent, but as a counter-example, when I was a child there a subject called Weights and Measures which is now redundant because of the Metric system. I don't miss hogsheads and fathoms at all. Music is another

Re: code review

2012-07-02 Thread Ben Finney
rusi rustompm...@gmail.com writes: Similar for standardized languages: Python's indentation is nice -- except when you have to embed it into say, html If you can't write a ‘pre’ element for pre-formatted text, you don't have HTML URL:http://www.w3.org/TR/html401/struct/text.html#h-9.3.4. --

Re: Dictless classes

2012-07-02 Thread alex23
On Jul 3, 3:03 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: I don't have a use-case for this. But I have some code which assumes that every class will have a __dict__, and I wonder whether that is a safe assumption. Remember the recent thread on using a different

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-02 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Serihy: for the followlinks patch, how about we plan ahead: I give you feedback for just the code (if there is any), and then I take over the patch and do the doc rewrite that I will find irresistable. --

[issue15178] Doctest should handle situations when test files are not readable

2012-07-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think that sounds reasonable. The message should say files in all three cases', since the individual test file summary method will be similar but talking about numbers of tests. -- ___

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-02 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: On 30/06/2012 06:45, Daniel Lenski wrote: My preferred solution would be to replace the binary delete argument of the current NamedTemporaryFile implementation with finer-grained options: delete=False # don't delete

[issue15239] Abandoned Tools/unicode/mkstringprep.py

2012-07-02 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: If it produces different output today, we should investigate why. Lib/stringprep.py differs from updated Tools/unicode/mkstringprep.py output only by additional entity 0x130:'i\u0307' in b3_exceptions. In 3.2 and lower '\u0130'.lower()

[issue7897] Support parametrized tests in unittest

2012-07-02 Thread Borja Ruiz Castro
Borja Ruiz Castro br...@alienvault.com added the comment: Hi Murray! I use a lot od parametrized tests. I usually use the ENV to pass these parameters and/or a custon configuration file. What is your approach to parametrize all the test stuff? Regards, Borja. On 31 May 2012 03:57, R. David

[issue7897] Support parametrized tests in unittest

2012-07-02 Thread Borja Ruiz Castro
Borja Ruiz Castro br...@alienvault.com added the comment: Sorry, I failed to mention that I use Testify to launch all my tests! On 2 July 2012 13:23, Borja Ruiz Castro rep...@bugs.python.org wrote: Borja Ruiz Castro br...@alienvault.com added the comment: Hi Murray! I use a lot od

[issue15223] datetime instances lack __module__ attribute

2012-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: In PyPy, datetime.py is a pure Python module (similar to the one in 3.x, but without the _datetime acceleration module). So comparison with CPython is not relevant here. In CPython, __module__ is not an attribute of the type, but a

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-02 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: I wrote in an earlier message that a file opened with O_TEMPORARY must be reopened with O_TEMPORARY. This is not quite accurate. Using O_TEMPORARY causes the FILE_SHARE_DELETE sharing mode to be used, and a file currently opened with

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-02 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Storchaka: change of plan. Since doc changes are much lower risk than code changes, how about we go with your existing patch and I'll fix up the docs separately. So, please make the relevant code changes I proposed on Rietveld (adding *,

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-02 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Here's a patch. I read the implementation to find out what it does, then documented it. Happily it does the sane thing. -- keywords: +patch Added file: http://bugs.python.org/file26230/larry.atexit.1.diff

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here's a patch. I read the implementation to find out what it does, then documented it. Happily it does the sane thing. Is it tested for? -- ___ Python tracker rep...@bugs.python.org

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-02 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: So, please make the relevant code changes I proposed on Rietveld (adding *, everywhere was it iirc) and resubmit and we can get that in. I'll give you a code-only review of the other patch too--I'll start on that now. Here is a

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What's the urge to make parameters keyword-only? Also, copyfile() shouldn't change signature. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15202

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file26232/symlinks-to-follow_symlinks-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15202 ___

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file26233/symlinks-to-follow_symlinks-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15202 ___

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-02 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: What's the urge to make parameters keyword-only? If anyone uses these functions with a new symlinks parameter in 3.3b1, he will get loud error (follow_symlinks == not symlinks). Also, copyfile() shouldn't change signature. Why not?

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Also, copyfile() shouldn't change signature. Why not? Seems like I have misread the docs. Apparently the symlinks parameter was added in 3.3. -- ___ Python tracker rep...@bugs.python.org

[issue15122] Add an option to always rewrite single-file mailboxes in-place.

2012-07-02 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: This might be the only way to fix #1599254, see http://bugs.python.org/issue1599254#msg30590. If another program is waiting on the fcntl lock (and doesn't use dotlocking), as soon as mailbox.py closes the original file (to replace it with a

[issue15030] PyPycLoader can't read cached .pyc files

2012-07-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Changeset b7463ec1980c has the fix and test update (went with a simple solution for the tests which uses the mock to verify). Thanks to Ronan and Marc for helping out! -- dependencies: -Split .pyc parsing from module loading

[issue15210] importlib.__init__ checks for the wrong exception when looking for _frozen_importlib

2012-07-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 818db871d29a by Brett Cannon in branch 'default': Issue #15210: If _frozen_importlib is not found in sys.modules by http://hg.python.org/cpython/rev/818db871d29a -- nosy: +python-dev

[issue15210] importlib.__init__ checks for the wrong exception when looking for _frozen_importlib

2012-07-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15210

[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-07-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: +Implement imp.get_tag() using sys.implementation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15056 ___

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See #9788 for previous discussion. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15233 ___

[issue15166] Implement imp.get_tag() using sys.implementation

2012-07-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b36bed82c9d0 by Brett Cannon in branch 'default': Issue #15166: Re-implement imp.get_tag() using sys.implementation. http://hg.python.org/cpython/rev/b36bed82c9d0 -- nosy: +python-dev

[issue15166] Implement imp.get_tag() using sys.implementation

2012-07-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I ended up applying Eric's patch from #14797 and then comparing against Jeff's patch here since Eric's cleaned up the C code. Thanks to both for the work! -- resolution: - fixed stage: needs patch - committed/rejected status: open -

[issue15166] Implement imp.get_tag() using sys.implementation

2012-07-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I meant issue #13959 for Eric's patch; wrong tab. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15166 ___

[issue2345] Using an exception variable outside an 'except' clause should raise a Py3K warning

2012-07-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2345 ___

[issue2345] Using an exception variable outside an 'except' clause should raise a Py3K warning

2012-07-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: out of date - wont fix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2345 ___ ___

[issue4011] Create DAG for PEP 101

2012-07-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Is this still worth doing, Georg? Or should we make Larry do it? =) -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4011 ___

[issue11207] Pythong seg fault with PIL/numpy

2012-07-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11207 ___ ___ Python-bugs-list

[issue2876] Write UserDict fixer for 2to3

2012-07-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Closing since 2.7 is already out the door. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2876

[issue14070] Idea: Add a flag to reload from source, e.g. reload(module, ignore_pyc=True)

2012-07-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Never heard back from OP. -- resolution: - works for me status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14070 ___

[issue15240] ctype Structure keeps reference to function pointers

2012-07-02 Thread Vincent Pelletier
New submission from Vincent Pelletier plr.vinc...@gmail.com: When storing a ctype function pointer in a ctype structure field, a reference remains even when that field is overwritten with some values: - None - None cast into a function pointer But the reference is somehow removed when

[issue15214] Warn against removing elements from a list (or seq) while iterating

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Maybe there is a section in the documentation that could be enhanced to make readers expect this behavior? (reference for list or tutorial) -- nosy: +eric.araujo title: list.startswith() and list.remove() fails to catch consecutive

[issue15240] ctype Structure keeps reference to function pointers

2012-07-02 Thread Vincent Pelletier
Vincent Pelletier plr.vinc...@gmail.com added the comment: Trying to generate a graph on several python and several uncommented lines, I see that my test case is incomplete. Time to review my copy. -- resolution: - invalid status: open - closed ___

[issue15163] pydoc displays __loader__ as module data

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attached patch does the trick. (Also removes extra whitespace in three lines and groups the ignored names by topic for ease of reading.) No test fails before or after the patch; there are some pydoc tests that check full text or HTML output,

[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This strikes me as a bugfix that does not get backported because code might depend on the bug. If the policy for exception messages, such as it is, documented somewhere? I don’t know if it’s written anywhere, but the rule I follow is that

[issue15163] pydoc displays __loader__ as module data

2012-07-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15163 ___ ___ Python-bugs-list

[issue15240] ctype Structure keeps reference to function pointers

2012-07-02 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15240 ___ ___ Python-bugs-list mailing list

[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-07-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If the policy for exception messages, such as it is, documented somewhere? I think we are quite free to change exception messages, as long as the change is motivated. They are not part of the API definitions, and people shouldn't rely on them

[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good. Left some comments on Rietveld and +1 to Antoine’s note about quotes :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15180

[issue15205] distutils dereferences symlinks on Mac OS X but not on Linux

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: As I said in the other bug, symlinks handling in not fully specified: some functions (like copy_file and copy_tree) have arguments to control copy/link/symlink, but the higher-level commands don’t expose that choice to the user. At present I

[issue8876] distutils should not assume that hardlinks will work

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: AFAICT using hard links only serves to save up a little time and disk space; it seems to me that always copying would solve one or two bugs at a small cost (not so small for large projects, I don’t know). Could this impact setup scripts?

[issue15205] distutils dereferences symlinks on Mac OS X but not on Linux

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (Hm OK “del os.link” is definitely a hack :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15205 ___

[issue8876] distutils should not assume that hardlinks will work

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Of course the conservative fix would be to try linking as of now and do a copy when an exception is caught, as was proposed. FTR python.org link to the thread mentioned: http://mail.python.org/pipermail/distutils-sig/2005-August/004954.html

[issue8876] distutils should not assume that hardlinks will work

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: samtygier’s patch to implement the fallback-to-copy idea looks good. Not sure if an automated test would be written, but samtygier says it was manually tested. -- components: -Distutils2 keywords: +needs review stage: needs patch -

[issue15003] make PyNamespace_New() public

2012-07-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Suggest closing or marking “remind” and see if people use / request / reimplement SimpleNamespace. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org

  1   2   >