Re: why the different output in Eclipse and Python Shell?

2012-08-01 Thread Terry Reedy
On 8/1/2012 12:45 AM, levi nie wrote: my code in Eclipse: dict.fromkeys(['China','America']) In Eclipse, I presume this prints nothing, as is normal for an editor. print dict is,dict output: dict is type 'dict' This is red herring. The shell does the same with that line. It is not

Re: Is Python a commercial proposition ?

2012-08-01 Thread Mark Lawrence
On 01/08/2012 00:31, David wrote: On 01/08/2012, lipska the kat lip...@yahoo.co.uk wrote: On 31/07/12 14:52, David wrote: [1] as in beer [2] for research purposes There's one (as in 1 above) in the pump for you. Great, more beer = better research = \o/\o/\o/ But, pump sounds a bit extreme

Re: Pass data to a subprocess

2012-08-01 Thread Laszlo Nagy
As I wrote I found many nice things (Pipe, Manager and so on), but actually even this seems to work: yes I did read the documentation. Sorry, I did not want be offensive. I was just surprised that it worked better than I expected even without Pipes and Queues, but now I understand why..

Re: Is Python a commercial proposition ?

2012-08-01 Thread lipska the kat
On 01/08/12 09:06, Mark Lawrence wrote: On 01/08/2012 00:31, David wrote: On 01/08/2012, lipska the kat lip...@yahoo.co.uk wrote: On 31/07/12 14:52, David wrote: [1] as in beer [2] for research purposes There's one (as in 1 above) in the pump for you. Great, more beer = better research =

Re: my email

2012-08-01 Thread BJ Swope
I would also recommend changing your birthday as well ;) -- The end of democracy and the defeat of the American Revolution will occur when government falls into the hands of lending institutions and moneyed incorporations. -- Thomas Jefferson The whole world is a comedy to those that think, a

Re: Pass data to a subprocess

2012-08-01 Thread andrea crotti
2012/8/1 Laszlo Nagy gand...@shopzeus.com: I was just surprised that it worked better than I expected even without Pipes and Queues, but now I understand why.. Anyway now I would like to be able to detach subprocesses to avoid the nasty code reloading that I was talking about in another

Re: why the different output in Eclipse and Python Shell?

2012-08-01 Thread Dave Angel
On 08/01/2012 12:45 AM, levi nie wrote: my code in Eclipse: dict.fromkeys(['China','America']) print dict is,dict output: dict is type 'dict' my code in Python Shell: dict.fromkeys(['China','America']) output:{'America': None, 'China': None} Output in Python Shell is what i wanna,but

Re: Pass data to a subprocess

2012-08-01 Thread Laszlo Nagy
Thanks, there is another thing which is able to interact with running processes in theory: https://github.com/lmacken/pyrasite I don't know though if it's a good idea to use a similar approach for production code, as far as I understood it uses gdb.. In theory though I could be able to set

Re: Pass data to a subprocess

2012-08-01 Thread andrea crotti
2012/8/1 Laszlo Nagy gand...@shopzeus.com: On thing is sure: os.fork() doesn't work under Microsoft Windows. Under Unix, I'm not sure if os.fork() can be mixed with multiprocessing.Process.start(). I could not find official documentation on that. This must be tested on your actual platform.

CRC-checksum failed in gzip

2012-08-01 Thread andrea crotti
We're having some really obscure problems with gzip. There is a program running with python2.7 on a 2.6.18-128.el5xen (red hat I think) kernel. Now this program does the following: if filename == 'out2.txt': out2 = open('out2.txt') elif filename == 'out2.txt.gz' out2 =

Re: Pass data to a subprocess

2012-08-01 Thread Laszlo Nagy
Yes I know we don't care about Windows for this particular project.. I think mixing multiprocessing and fork should not harm, but probably is unnecessary since I'm already in another process after the fork so I can just make it run what I want. Otherwise is there a way to do same thing only

Re: CRC-checksum failed in gzip

2012-08-01 Thread Laszlo Nagy
On 2012-08-01 12:39, andrea crotti wrote: We're having some really obscure problems with gzip. There is a program running with python2.7 on a 2.6.18-128.el5xen (red hat I think) kernel. Now this program does the following: if filename == 'out2.txt': out2 = open('out2.txt') elif filename

Re: CRC-checksum failed in gzip

2012-08-01 Thread andrea crotti
2012/8/1 Laszlo Nagy gand...@shopzeus.com: On 2012-08-01 12:39, andrea crotti wrote: We're having some really obscure problems with gzip. There is a program running with python2.7 on a 2.6.18-128.el5xen (red hat I think) kernel. Now this program does the following: if filename ==

Re: Pass data to a subprocess

2012-08-01 Thread Roy Smith
In article mailman.2809.1343809166.4697.python-l...@python.org, Laszlo Nagy gand...@shopzeus.com wrote: Yes, I think that is correct. Instead of detaching a child process, you can create independent processes and use other frameworks for IPC. For example, Pyro. It is not as effective as

Re: Pass data to a subprocess

2012-08-01 Thread Laszlo Nagy
The most effective IPC is usually through shared memory. But there is no OS independent standard Python module that can communicate over shared memory. It's true that shared memory is faster than serializing objects over a TCP connection. On the other hand, it's hard to imagine anything

Re: CRC-checksum failed in gzip

2012-08-01 Thread Laszlo Nagy
very simple right? But sometimes we get a checksum error. Do you have a traceback showing the actual error? - CRC is at the end of the file and is computed against the whole file (last 8 bytes) - after the CRC there is the \ marker for the EOF - readline() doesn't trigger the

Re: Pass data to a subprocess

2012-08-01 Thread Laszlo Nagy
On 2012-08-01 12:59, Roy Smith wrote: In article mailman.2809.1343809166.4697.python-l...@python.org, Laszlo Nagy gand...@shopzeus.com wrote: Yes, I think that is correct. Instead of detaching a child process, you can create independent processes and use other frameworks for IPC. For

Re: Is Python a commercial proposition ?

2012-08-01 Thread David
On 01/08/2012, lipska the kat lip...@yahoo.co.uk wrote: On 01/08/12 09:06, Mark Lawrence wrote: You complete ignoramus, if it gets poured in advance that's no good to anybody as it'll go flat. Has to stay in the pump until you're ready to drink it from the glass. Don't you know anything about

Re: Is Python a commercial proposition ?

2012-08-01 Thread Stefan Behnel
David, 01.08.2012 13:59: On 01/08/2012, lipska the kat wrote: On 01/08/12 09:06, Mark Lawrence wrote: You complete ignoramus, if it gets poured in advance that's no good to anybody as it'll go flat. Has to stay in the pump until you're ready to drink it from the glass. Don't you know

Re: EXTERNAL: Re: missing python-config and building python on Windows

2012-08-01 Thread Damon Register
On 7/31/2012 11:49 PM, Mark Hammond wrote: On 1/08/2012 10:48 AM, Damon Register wrote: 1. though I have looked in a few readme files, I don't see instructions for installing what I have just built using MSVC. Where can I find the instructions for installing after building with MSVC?

Re: CRC-checksum failed in gzip

2012-08-01 Thread andrea crotti
Full traceback: Exception in thread Thread-8: Traceback (most recent call last): File /user/sim/python/lib/python2.7/threading.py, line 530, in __bootstrap_inner self.run() File /user/sim/tests/llif/AutoTester/src/AutoTester2.py, line 67, in run self.processJobData(jobData, logger)

Re: Pass data to a subprocess

2012-08-01 Thread andrea crotti
2012/8/1 Roy Smith r...@panix.com: In article mailman.2809.1343809166.4697.python-l...@python.org, Laszlo Nagy gand...@shopzeus.com wrote: Yes, I think that is correct. Instead of detaching a child process, you can create independent processes and use other frameworks for IPC. For example,

Re: CRC-checksum failed in gzip

2012-08-01 Thread Laszlo Nagy
- The file is written with the linux gzip program. - no I can't reproduce the error with the same exact file that did failed, that's what is really puzzling, How do you make sure that no process is reading the file before it is fully flushed to disk? Possible way of testing for this kind of

Re: CRC-checksum failed in gzip

2012-08-01 Thread andrea crotti
2012/8/1 Laszlo Nagy gand...@shopzeus.com: there seems to be no clear pattern and just randmoly fails. The file is also just open for read from this program, so in theory no way that it can be corrupted. Yes, there is. Gzip stores CRC for compressed *blocks*. So if the file is not

Re: CRC-checksum failed in gzip

2012-08-01 Thread Laszlo Nagy
Thanks a lotl, someone that writes on the file while reading might be an explanation, the problem is that everyone claims that they are only reading the file. If that is true, then make that file system read only. Soon it will turn out who is writing them. ;-) Apparently this file is

Re: Pass data to a subprocess

2012-08-01 Thread Grant Edwards
On 2012-08-01, Laszlo Nagy gand...@shopzeus.com wrote: As I wrote I found many nice things (Pipe, Manager and so on), but actually even this seems to work: yes I did read the documentation. Sorry, I did not want be offensive. I was just surprised that it worked better than I expected even

Re: Pass data to a subprocess

2012-08-01 Thread Laszlo Nagy
things get more tricky, because I can't use queues and pipes to communicate with a running process that it's noit my child, correct? Yes, I think that is correct. I don't understand why detaching a child process on Linux/Unix would make IPC stop working. Can somebody explain? It is

Re: Pass data to a subprocess

2012-08-01 Thread Laszlo Nagy
Yes, I think that is correct. I don't understand why detaching a child process on Linux/Unix would make IPC stop working. Can somebody explain? It is implemented with shared memory. I think (although I'm not 100% sure) that shared memory is created *and freed up* (shm_unlink() system call)

xlrd 0.8.0 released!

2012-08-01 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.8.0: http://pypi.python.org/pypi/xlrd/0.8.0 This release finally lands the support for both .xls and .xlsx files. Many thanks to John Machin for all his work on making this happen. Opening of .xlsx files is seamless, just use xlrd as you

Re: Pass data to a subprocess

2012-08-01 Thread andrea crotti
2012/8/1 Laszlo Nagy gand...@shopzeus.com: So detaching the child process will not make IPC stop working. But exiting from the original parent process will. (And why else would you detach the child?) -- http://mail.python.org/mailman/listinfo/python-list Well it makes perfect sense if it

RE: why the different output in Eclipse and Python Shell?

2012-08-01 Thread Prasad, Ramit
my code in Eclipse: dict.fromkeys(['China','America']) print dict is,dict output: dict is type 'dict' my code in Python Shell: dict.fromkeys(['China','America']) output:{'America': None, 'China': None} Output in Python Shell is what i wanna,but why not in Eclipse?

RE: EXTERNAL: Re: missing python-config and building python on Windows

2012-08-01 Thread Prasad, Ramit
On 7/31/2012 11:49 PM, Mark Hammond wrote: On 1/08/2012 10:48 AM, Damon Register wrote: 1. though I have looked in a few readme files, I don't see instructions for installing what I have just built using MSVC. Where can I find the instructions for installing after building with

Re: CRC-checksum failed in gzip

2012-08-01 Thread Steven D'Aprano
On Wed, 01 Aug 2012 14:01:45 +0100, andrea crotti wrote: Full traceback: Exception in thread Thread-8: DANGER DANGER DANGER WILL ROBINSON!!! Why didn't you say that there were threads involved? That puts a completely different perspective on the problem. I *was* going to write back and

Re: NameError vs AttributeError

2012-08-01 Thread Ethan Furman
Terry Reedy wrote: On 7/31/2012 4:49 PM, Chris Kaynor wrote: On Tue, Jul 31, 2012 at 1:21 PM, Terry Reedy wrote: Another example: KeyError and IndexError are both subscript errors, but there is no SubscriptError superclass, even though both work thru the same mechanism -- __getitem__. The

Re: CRC-checksum failed in gzip

2012-08-01 Thread andrea crotti
2012/8/1 Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: On Wed, 01 Aug 2012 14:01:45 +0100, andrea crotti wrote: Full traceback: Exception in thread Thread-8: DANGER DANGER DANGER WILL ROBINSON!!! Why didn't you say that there were threads involved? That puts a completely

Re: [pyxl] xlrd 0.8.0 released!

2012-08-01 Thread Matthew Smith
Thank you guys so much! I am so excited to finally have xlsx so my users don't have extra steps! On Wed, Aug 1, 2012 at 11:01 AM, Chris Withers ch...@simplistix.co.ukwrote: Hi All, I'm pleased to announce the release of xlrd 0.8.0:

Re: NameError vs AttributeError

2012-08-01 Thread Terry Reedy
On 8/1/2012 11:53 AM, Ethan Furman wrote: Terry Reedy wrote: On 7/31/2012 4:49 PM, Chris Kaynor wrote: On Tue, Jul 31, 2012 at 1:21 PM, Terry Reedy wrote: one wants to catch both errors, one can easily enough. To continue the example above, popping an empty list and empty set produce

Re: CRC-checksum failed in gzip

2012-08-01 Thread Laszlo Nagy
Thanks a lot, that makes a lot of sense.. I haven't given this detail before because I didn't write this code, and I forgot that there were threads involved completely, I'm just trying to help to fix this bug. Your explanation makes a lot of sense, but it's still surprising that even just

Re: EXTERNAL: Re: missing python-config and building python on Windows

2012-08-01 Thread Terry Reedy
On 8/1/2012 7:47 AM, Damon Register wrote: On 7/31/2012 11:49 PM, Mark Hammond wrote: On 1/08/2012 10:48 AM, Damon Register wrote: 1. though I have looked in a few readme files, I don't see instructions for installing what I have just built using MSVC. Where can I find the

Re: CRC-checksum failed in gzip

2012-08-01 Thread andrea crotti
2012/8/1 Laszlo Nagy gand...@shopzeus.com: Thanks a lot, that makes a lot of sense.. I haven't given this detail before because I didn't write this code, and I forgot that there were threads involved completely, I'm just trying to help to fix this bug. Your explanation makes a lot of sense,

Re: CRC-checksum failed in gzip

2012-08-01 Thread Laszlo Nagy
Make sure that file objects are not shared between threads. If that is possible. It will probably solve the problem (if that is related to threads). Well I just have to create a lock I guess right? That is also a solution. You need to call file.read() inside an acquired lock. with lock:

Re: why the different output in Eclipse and Python Shell?

2012-08-01 Thread Dave Angel
On 08/01/2012 11:26 AM, Prasad, Ramit wrote: my code in Eclipse: dict.fromkeys(['China','America']) print dict is,dict output: dict is type 'dict' my code in Python Shell: dict.fromkeys(['China','America']) output:{'America': None, 'China': None} Output in Python Shell is what i

Re: Pass data to a subprocess

2012-08-01 Thread Roy Smith
On Aug 1, 2012, at 9:25 AM, andrea crotti wrote: [beanstalk] does look nice and I would like to have something like that.. But since I have to convince my boss of another external dependency I think it might be worth to try out zeromq instead, which can also do similar things and looks more

Re: Pass data to a subprocess

2012-08-01 Thread Grant Edwards
On 2012-08-01, Laszlo Nagy gand...@shopzeus.com wrote: things get more tricky, because I can't use queues and pipes to communicate with a running process that it's noit my child, correct? Yes, I think that is correct. I don't understand why detaching a child process on Linux/Unix would make

Re: [Pythonmac-SIG] Py2app error

2012-08-01 Thread Mark Livingstone
Hi Guys, OK, taking Chris' advice, I installed on a Snow Leopard machine: cheyenne:dist marklivingstone$ ls ~/Downloads/ About Downloads.lpdf numpy-1.6.2-py2.7-python.org-macosx10.3.dmg wxMac-2.8.12.tar

Re: Is Python a commercial proposition ?

2012-08-01 Thread David
On 01/08/2012, Stefan Behnel stefan...@behnel.de wrote: Would you mind taking this slightly off-topic discussion off the list? I always strive to stay on-topic. In fact immediately this thread went off topic, 4 messages back, I did try to go off list, but got this result from the OP: Delivery

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-01 Thread Eric Snow
Eric Snow added the comment: Backwards compatibility requirements still apply to the importlib API - while the default import system won't call FileFinder.find_module() any more, third party import reimplementations are still free to do so. Except that a good portion of the importlib API is

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-01 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Removed file: http://bugs.python.org/file26641/issue15502_new_abc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching an updated patch that completes the documentation of network objects (attributes, methods and operations). Additionally, inserted the provisional package note and a new in 3.3 notice. -- Added file:

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-01 Thread Nick Coghlan
Nick Coghlan added the comment: Fair point. However, the find_module() variant of the API isn't dead yet, so we should still support it. find_module() likely won't die completely until 4.0. -- ___ Python tracker rep...@bugs.python.org

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: Should we do something before Python 3.3 final? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13072 ___ ___

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: On Windows, stdin, stdout and stderr are creates using TextIOWrapper(..., newline=None). In this case, TextIOWrapper._writenl is os.linesep and so '\r\n'. Oh, I was wrong: stdin is created with newline=None, but stdout and stderr are created with

[issue12073] regrtest: use faulthandler to dump the tracebacks on SIGUSR1

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: The change was already done in another issue. I'm closing this one. changeset: 71315:30f91fbfc8b3 user:Victor Stinner victor.stin...@haypocalc.com date:Wed Jul 13 23:47:21 2011 +0200 files: Lib/test/regrtest.py description: Issue #12550:

[issue15213] _PyOS_URandom documentation

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: So can we close this issue, or should we start to document private functions? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15213 ___

[issue13992] Segfault in PyTrash_destroy_chain

2012-08-01 Thread Manu Cupcic
Manu Cupcic added the comment: I am also hitting this issue. I have been able to reproduce it in python 2.5 and 2.7, on debian 6 (64 bits) Exactly like the reporter, I am making extensive use of threads. I am also using SQLalchemy. All my threads but one are waiting (probably for the GIL) :

[issue15520] Document datetime.timestamp() in 3.3 What's New

2012-08-01 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman: It seems nice if datetime.timestamp() would be mentioned in the What's New. Does that seem acceptable? I'm happy to whip up a patch. -- assignee: docs@python components: Documentation messages: 167096 nosy: djc, docs@python priority: normal

[issue15488] Closed files keep their buffer alive

2012-08-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree with Meador. -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15488 ___ ___

[issue8847] crash appending list and namedtuple

2012-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a8c5631463f by Martin v. Löwis in branch '2.7': Issue #8847: Disable COMDAT folding in Windows PGO builds. http://hg.python.org/cpython/rev/5a8c5631463f -- nosy: +python-dev ___ Python tracker

[issue15521] Dev Guide should say how to run tests in 2.7

2012-08-01 Thread Chris Jerdonek
New submission from Chris Jerdonek: The Dev Guide should say the preferred way (or even a way) to run tests using the Python 2.7 build: http://docs.python.org/devguide/runtests.html This will help submitters who want to check that their patch works with 2.7. In Python 2.7, this did not work

[issue8847] crash appending list and namedtuple

2012-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2638ce032151 by Martin v. Löwis in branch '3.2': Issue #8847: Disable COMDAT folding in Windows PGO builds. http://hg.python.org/cpython/rev/2638ce032151 New changeset 029cde4e58c5 by Martin v. Löwis in branch 'default': Issue #8847: Disable COMDAT

[issue8847] crash appending list and namedtuple

2012-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the research and the fix! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8847 ___

[issue15510] textwrap.wrap('') returns empty list

2012-08-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: I verified that this patch can be applied to 2.7 and that those tests pass as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15510 ___

[issue15521] Dev Guide should say how to run tests in 2.7

2012-08-01 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW this is already mentioned in the quick start [0]. Do you want to propose a patch for runtest.rst? [0]: http://docs.python.org/devguide/#quick-start -- type: - enhancement ___ Python tracker

[issue15521] Dev Guide should say how to run tests in 2.7

2012-08-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: FWIW this is already mentioned in the quick start [0]. I didn't catch that, thanks. Do you want to propose a patch for runtest.rst? Sure. -- ___ Python tracker rep...@bugs.python.org

[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: To debug this issue, it would help to have the following information: - locale encoding: encoding variable - tested character: ch - character read by ncurses: read Can someone reproducing the issue try to add: print(encoding=%s, ch=%r, read=%r % (encoding,

[issue8847] crash appending list and namedtuple

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: You didn't add any test for non regression?? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8847 ___ ___

[issue15522] impove 27 percent performance on stringpbject.c( by prefetch and loop optimization)

2012-08-01 Thread abael
New submission from abael: Python-2.7.3/Objects/stringobject.c( SHA256SUM ad7795c75e2a25247e4dea4cc5327c225c4da03b7c7d57226c817ba6d12a316c) static PyObject *string_join(PyStringObject *self, PyObject *orig); OLD IMPLEMENT LOGIC(Pseudo code): char *sep = PyString_AS_STRING(self);

[issue15522] impove 27 percent performance on stringpbject.c( by prefetch and loop optimization)

2012-08-01 Thread abael
Changes by abael hyj...@gmail.com: -- components: +Interpreter Core -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15522 ___ ___

[issue15521] Dev Guide should say how to run tests in 2.7

2012-08-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching a patch for review. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file26645/issue-15521-1.patch ___ Python tracker rep...@bugs.python.org

[issue15523] Block on close TCP socket in SocketServer.py

2012-08-01 Thread Jarvis
New submission from Jarvis: In the Python 2.4, it closes the socket only by calling request.close() method. There is a risk by using this method to close socket. If the socket handle count does not reach zero because another process still has a handle to the socket then the connection is not

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-01 Thread Stefan Krah
Stefan Krah added the comment: Is it possible without too much effort to keep the old behavior ('u' - Py_UNICODE)? Then I'd say that should go into 3.3. The problem with the current behavior is that it's neither backwards compatible nor PEP-3118 compliant. If it is too much work to restore

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch reverting changes of the PEP 393, as suggested by Martin von Loewis. With the patch, array uses Py_UNICODE* type for the 'u' format. So array.array('u', '\u0010')[0] should return '\uDBFF' on Windows. -- keywords: +patch Added

[issue8847] crash appending list and namedtuple

2012-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: You didn't add any test for non regression?? Please rephrase your question: what tests did I not add? I did add the tests that Stefan proposed. -- ___ Python tracker rep...@bugs.python.org

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-08-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: Please backport and leave open for distutils2. Éric, is there a place where updates to the distutils2 docs can be viewed and made prior to reinclusion in the main Python repo? For example, the documentation here:

[issue13992] Segfault in PyTrash_destroy_chain

2012-08-01 Thread Charles-François Natali
Charles-François Natali added the comment: Is there something else I can do to help resolve this bug ? I can help debugging this, but I am not sure how to proceed. I have a --with-pydebug interpreter stopped at the segfault in gdb. Could you post the output of : p op and thread apply

[issue13992] Segfault in PyTrash_destroy_chain

2012-08-01 Thread Manu Cupcic
Manu Cupcic added the comment: (gdb) p op $12 = (PyObject *) 0x4dc7bc0 thread all apply bt is going to be very long no ? Could you tell me what you want to know that is not in info threads maybe ? I can definitely post it here, but it's going to be a lot of output. I can be available on IRC

[issue15524] Dict items() ordering varies across interpreter invocations

2012-08-01 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov: The following line prints different things each time you run it: python3 -c print(', '.join({ '1': '2', '3': '4' }.keys())) The output is either 1, 3 or 3, 1. Is such indeterministic behavior intentional ? Using Python 3.3.0b1 (default, Aug 1 2012,

[issue15488] Closed files keep their buffer alive

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: This has to wait for 3.4, since it's an enhancement, not a bug. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15488 ___

[issue15213] _PyOS_URandom documentation

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: The comment needs to be fixed before the issue is closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15213 ___

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-01 Thread Stefan Krah
Stefan Krah added the comment: The diff between b9558df8cc58 and default with array_revert_pep393.patch applied is small, but I noticed that in some places you switched back to Py_UNICODE typecode and in others not. For instance, in struct arraydescr typecode is still char. I'm not sure why

[issue8847] crash appending list and namedtuple

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: Please rephrase your question: what tests did I not add? I did add the tests that Stefan proposed. Ah yes, you added new tests to Python 3.2 and 3.3, but no to Python 2.7. Why not adding these new tests to Python 2.7? --

[issue15524] Dict items() ordering varies across interpreter invocations

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, because hash randomization is now enabled by default: http://docs.python.org/dev/reference/datamodel.html#object.__hash__ If you want deterministic behaviour, just set e.g. PYTHONHASHSEED=0. (or any other fixed value) -- nosy: +pitrou

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-01 Thread STINNER Victor
STINNER Victor added the comment: The diff between b9558df8cc58 and default with array_revert_pep393.patch applied is small, but I noticed that in some places you switched back to Py_UNICODE typecode and in others not. I just copied code from Python 3.2, I forgot to update typecode type

[issue15524] Dict items() ordering varies across interpreter invocations

2012-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15524 ___

[issue15522] impove 27 percent performance on stringpbject.c( by prefetch and loop optimization)

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi, several points: - Python 2.7 is in bugfix mode; you need to work from the default Mercurial branch as explained in http://docs.python.org/devguide/ . In practice, this means your patch will target the future Python 3.4, and therefore either

[issue15425] Another strange Tracebacks with importlib

2012-08-01 Thread Nick Coghlan
Nick Coghlan added the comment: Indeed, there are still a couple of Windows failures, but they aren't related to this. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15425

[issue15525] test_multiprocessing failure on Windows XP

2012-08-01 Thread Nick Coghlan
New submission from Nick Coghlan: test_multiprocessing failed on one of the XP buildbots with a permission error: http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/7223/steps/test/logs/stdio The immediate rerun also failed, but the one at the end of the test run succeeded.

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-01 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/issue13072 ___

[issue8847] crash appending list and namedtuple

2012-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ah yes, you added new tests to Python 3.2 and 3.3, but no to Python 2.7. Why not adding these new tests to Python 2.7? The tests don't crash Python 2.7. So they are not useful as a test whether the bug has been worked-around. I actually don't know how to

[issue15526] regrtest crash on Windows 7 AMD64

2012-08-01 Thread Nick Coghlan
New submission from Nick Coghlan: regrtest bailed out completely on one of the Windows 7 builders due to a problem with accessing the temporary working directory: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/410/steps/test/logs/stdio It's seems a touch

[issue15519] finish exposing WindowsRegistryImporter in importlib

2012-08-01 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15519 ___ ___ Python-bugs-list

[issue15526] regrtest crash on Windows 7 AMD64

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, test_startfile seems to be a common issue on that buildbot. -- nosy: +jeremy.kloth, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15526 ___

[issue15522] impove 27 percent performance on stringpbject.c( by prefetch and loop optimization)

2012-08-01 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/issue15522 ___ ___ Python-bugs-list mailing list

[issue15519] finish exposing WindowsRegistryImporter in importlib

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why some finders are named Finder and others Importer. It makes things confusing. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15519

[issue15510] textwrap.wrap('') returns empty list

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh, how is this a bug? An empty text doesn't contain lines at all, so returning an empty list of lines sounds right. Furthermore, by fixing this, you may break existing software. -- nosy: +pitrou ___ Python tracker

[issue15520] Document datetime.timestamp() in 3.3 What's New

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, of course. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15520 ___ ___ Python-bugs-list

[issue15496] harden directory removal for tests on Windows

2012-08-01 Thread Jeremy Kloth
Jeremy Kloth added the comment: I must also add that the proposed solution works well within the test suite as the access denied error can also occur when creating subsequent files, not just removing them. This solution eliminates the need to wrap all creation calls with access denied

[issue15526] regrtest crash on Windows 7 AMD64

2012-08-01 Thread Jeremy Kloth
Jeremy Kloth added the comment: Well, test_startfile seems to be a common issue on that buildbot. I wouldn't really call it common (twice in the last 30 runs). However I would wager that the PermissionError is being caused by an unknown (without having Process Monitor running when the error

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've mostly run out of time to work on the docs, but I do want to say that I thought long and hard about all the terminology decisions. Please don't change them lightly, and definitely don't change them until you've tried to go through the documentation and

[issue15496] harden directory removal for tests on Windows

2012-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin stage: - patch review versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___

  1   2   >