ANN: Salstat 20140516, Python-powered statistical analysis

2014-07-01 Thread Alan J Salmoni
Salstat (http://www.salstat.com) is software for statistical analysis written entirely in Python (uses wxPython for the GUI, Numpy SciPy for number processing and many other libraries including requests, BeautifulSoup, xlrd, xlwt, ezodf, and sas7bdat). The latest release is available from

thread.interrupt_main() behaviour

2014-07-01 Thread Piyush Verma
Hi, What is the behavior when we call thread.interrupt_main() method. Using this method I have implemented a new method for checking timeout. 359def TimeoutFunc(self):360 '''Function invoked by timer thread in case of timeout '''361 self.log.debug(Timeout thread invoked now for

Re: thread.interrupt_main() behaviour

2014-07-01 Thread Skip Montanaro
On Tue, Jul 1, 2014 at 3:58 AM, Piyush Verma 114piy...@gmail.com wrote: Since two threads are running same method, I wanted to know which main thread will be interrupted in both case. I'm no threading expert, but a process can only have one main thread, the one you labeled P. Threads T2 and

Python and wireshark.

2014-07-01 Thread Sean Murphy
All. Is there any way to use python with Wireshark/Tshark? I am not able to use the GUI due to my vision impairment. So I am thinking of using Wireshark libraries and Python to provide a text console environment. Tshark does give you command line capability. I am more seeking for the ability

Re: Python and wireshark.

2014-07-01 Thread Adnan Sadzak
You can try scapy (http://www.secdev.org/projects/scapy/) Cheers, Adnan On Tue, Jul 1, 2014 at 11:56 AM, Sean Murphy mhysnm1...@gmail.com wrote: All. Is there any way to use python with Wireshark/Tshark? I am not able to use the GUI due to my vision impairment. So I am thinking of using

How to add ftp put function in PyQT network ftp demo

2014-07-01 Thread 不坏阿峰
I want to modify the pyqt network ftp demo to include an upload function, but I am failing. Could someone can show me how to do this? I have tried to add this code, but it does not work. [Orignal demo]https://github.com/Werkov/PyQt4/blob/master/examples/network/ftp/ftp.py at First, i add

general module auditing

2014-07-01 Thread Rita
i work in a group of developers (15 or so) who are located globally. I would like to know what modules everyone is uses if I ever have to upgrade my python. Is there mechanism which will let me see who is using what? ie, tom,matplotlib bob, pylab nancy, numpy nancy, matplotlib etc... -- ---

Convert Excel Range into python List

2014-07-01 Thread Jaydeep Patil
How to convert excel range into python list or tuple? show me example Regards Jaydeep Patil -- https://mail.python.org/mailman/listinfo/python-list

Re: Convert Excel Range into python List

2014-07-01 Thread Denis McMahon
On Tue, 01 Jul 2014 03:51:31 -0700, Jaydeep Patil wrote: How to convert excel range into python list or tuple? show me example http://lmgtfy.com/?q=convert+excel+range+into+python+list+or+tuple This is an example of how to google a programming question. Learn from it! -- Denis McMahon,

Searching for lots of similar strings (filenames) in sqlite3 database

2014-07-01 Thread Adam Funk
I have some code that reads files in a leafnode2 news spool needs to check for new files periodically. The full paths are all like '/var/spool/news/message.id/345/123...@example.com' with a 3-digit subdirectory a Message-ID for the filename itself. I'm using Python 3 sqlite3 in the standard

Re: Python While loop Takes too much time.

2014-07-01 Thread Jaydeep Patil
On Monday, 30 June 2014 18:16:21 UTC+5:30, Peter Otten wrote: Jaydeep Patil wrote: I have did excel automation using python. In my code I am creating python dictionaries for different three columns data at a time.There are are many rows above 4000. Lets have look in below

Re: Searching for lots of similar strings (filenames) in sqlite3 database

2014-07-01 Thread Chris Angelico
On Tue, Jul 1, 2014 at 9:26 PM, Adam Funk a24...@ducksburg.com wrote: cursor.execute('SELECT filename FROM files WHERE filename IS ?', (filename,)) Shouldn't this be an equality check rather than IS, which normally I'd expect to be IS NULL or IS NOT NULL? As to your actual question:

[ANN] Oktest.py 0.15.0 released; a new-style testing library

2014-07-01 Thread Makoto Kuwata
Hi all, I released Oktest.py 0.15.0. * PyPI: https://pypi.python.org/pypi/Oktest/ * Document: http://www.kuwata-lab.com/oktest/oktest-py_users-guide.html What is Oktest.py? -- Oktest.py is a new-style testing library for Python. Example:: from oktest import test, ok, NG

Re: Searching for lots of similar strings (filenames) in sqlite3 database

2014-07-01 Thread MRAB
On 2014-07-01 12:26, Adam Funk wrote: I have some code that reads files in a leafnode2 news spool needs to check for new files periodically. The full paths are all like '/var/spool/news/message.id/345/123...@example.com' with a 3-digit subdirectory a Message-ID for the filename itself. I'm

Re: Python While loop Takes too much time.

2014-07-01 Thread Peter Otten
Jaydeep Patil wrote: Dear Peter, I have tested code written by you. But still it is taking same time. Too bad ;( If you run the equivalent loop written in Basic from within Excel -- is that faster? If you run the loop in Python with some made-up data instead of that fetched from Excel --

Re: unorderable error: less ok, equal ok, less-or-equal gives unorderable error!

2014-07-01 Thread Peter Otten
Ethan Furman wrote: On 06/30/2014 12:34 PM, Peter Otten wrote: RainyDay wrote: def __eq__(self, other): return self._loc == getattr(other, _loc, None) Note that None is not a good default when _loc is expected to be a tuple: In this case None is not being returned, but

Re: Searching for lots of similar strings (filenames) in sqlite3 database

2014-07-01 Thread Chris Angelico
On Tue, Jul 1, 2014 at 10:13 PM, MRAB pyt...@mrabarnett.plus.com wrote: Anyway, I'm sure there's something in SQL for insert or update or on duplicate, but that's an SQL question, not a Python question. Not in standard SQL, no; there might be in SQLite, as a non-standard extension, but it's a

fixing an horrific formatted csv file.

2014-07-01 Thread flebber
What I am trying to do is to reformat a csv file into something more usable. currently the file has no headers, multiple lines with varying columns that are not related. This is a sample Meeting,05/07/14,RHIL,Rosehill Gardens,Weights,TAB,+3m Entire Circuit, , Race,1,CIVIC

Re: Convert Excel Range into python List

2014-07-01 Thread Mark Lawrence
On 01/07/2014 11:51, Jaydeep Patil wrote: How to convert excel range into python list or tuple? show me example Regards Jaydeep Patil Sorry but if you can't show that you've put some effort into this then you're not likely to get answers. Further would you please use the mailing list

Re: fixing an horrific formatted csv file.

2014-07-01 Thread MRAB
On 2014-07-01 15:04, flebber wrote: What I am trying to do is to reformat a csv file into something more usable. currently the file has no headers, multiple lines with varying columns that are not related. This is a sample Meeting,05/07/14,RHIL,Rosehill Gardens,Weights,TAB,+3m Entire Circuit,

Get named groups from a regular expression

2014-07-01 Thread Florian Lindner
Hello, Is there a way I can extract the named groups from a regular expression? e.g. given (?Ptestgrp\d) I want to get something like [testgrp]. OR Can I make the match object to return default values for named groups, even if no match was produced? Thanks, Florian --

Re: Searching for lots of similar strings (filenames) in sqlite3 database

2014-07-01 Thread Adam Funk
On 2014-07-01, Chris Angelico wrote: On Tue, Jul 1, 2014 at 9:26 PM, Adam Funk a24...@ducksburg.com wrote: cursor.execute('SELECT filename FROM files WHERE filename IS ?', (filename,)) Shouldn't this be an equality check rather than IS, which normally I'd expect to be IS NULL or IS

Re: Get named groups from a regular expression

2014-07-01 Thread Peter Otten
Florian Lindner wrote: Is there a way I can extract the named groups from a regular expression? e.g. given (?Ptestgrp\d) I want to get something like [testgrp]. Easy, just write a regular expression to parse regular expressions ;) (Sorry, I can't contribute something constructive, my first

Re: Searching for lots of similar strings (filenames) in sqlite3 database

2014-07-01 Thread Chris Angelico
On Wed, Jul 2, 2014 at 1:15 AM, Adam Funk a24...@ducksburg.com wrote: On 2014-07-01, Chris Angelico wrote: On Tue, Jul 1, 2014 at 9:26 PM, Adam Funk a24...@ducksburg.com wrote: cursor.execute('SELECT filename FROM files WHERE filename IS ?', (filename,)) Shouldn't this be an

Re: Get named groups from a regular expression

2014-07-01 Thread Chris Angelico
On Wed, Jul 2, 2014 at 1:29 AM, Peter Otten __pete...@web.de wrote: Easy, just write a regular expression to parse regular expressions ;) Hmm, is that even possible? AIUI you can't make a regex that correctly parses nested tokens, and named groups can definitely be nested. ChrisA --

Re: Get named groups from a regular expression

2014-07-01 Thread MRAB
On 2014-07-01 16:12, Florian Lindner wrote: Hello, Is there a way I can extract the named groups from a regular expression? e.g. given (?Ptestgrp\d) I want to get something like [testgrp]. OR Can I make the match object to return default values for named groups, even if no match was produced?

What's the right way to abandon an open source package?

2014-07-01 Thread Skip Montanaro
This is only Python-related because the package in question (lockfile at PyPI) is written in Python and hosted (at least in part) on PyPI. I have not had any interest in maintaining this package for a few years. I wrote it mostly as an exercise, and while I do happen to use it ever-so-slightly in

Re: thread.interrupt_main() behaviour

2014-07-01 Thread Ian Kelly
On Tue, Jul 1, 2014 at 3:45 AM, Skip Montanaro s...@pobox.com wrote: On Tue, Jul 1, 2014 at 3:58 AM, Piyush Verma 114piy...@gmail.com wrote: Since two threads are running same method, I wanted to know which main thread will be interrupted in both case. I'm no threading expert, but a process

Re: What's the right way to abandon an open source package?

2014-07-01 Thread Paul Sokolovsky
Hello, On Tue, 1 Jul 2014 12:30:44 -0500 Skip Montanaro s...@python.org wrote: This is only Python-related because the package in question (lockfile at PyPI) is written in Python and hosted (at least in part) on PyPI. I have not had any interest in maintaining this package for a few years. I

Re: What's the right way to abandon an open source package?

2014-07-01 Thread Ethan Furman
On 07/01/2014 10:30 AM, Skip Montanaro wrote: This is only Python-related because the package in question (lockfile at PyPI) is written in Python and hosted (at least in part) on PyPI. I have not had any interest in maintaining this package for a few years. I wrote it mostly as an exercise, and

Re: general module auditing

2014-07-01 Thread Irmen de Jong
On 1-7-2014 12:38, Rita wrote: i work in a group of developers (15 or so) who are located globally. I would like to know what modules everyone is uses if I ever have to upgrade my python. Is there mechanism which will let me see who is using what? ie, tom,matplotlib bob, pylab nancy,

Re: What's the right way to abandon an open source package?

2014-07-01 Thread Steven D'Aprano
On Tue, 01 Jul 2014 20:59:48 +0300, Paul Sokolovsky wrote: Put it on github http://nedbatchelder.com/blog/201405/github_monoculture.html Besides, do you really want to give your support to a crowd who built a replica of the Oval Office in their corporate offices? While git is a decent DVCS,

Re: Python While loop Takes too much time.

2014-07-01 Thread Denis McMahon
On Tue, 01 Jul 2014 14:40:18 +0200, Peter Otten wrote: What I'm trying to tell you: you need to put in some work to identify the culprit... His next question was how do I read a range from excel, please give me an example I gave him an example of using google to search for solutions to his

Re: What's the right way to abandon an open source package?

2014-07-01 Thread Skip Montanaro
It's on github (by request from another person who didn't take it over). It's also on Google Code. I'm actually pretty naive and agnostic about these various hosting sites and their favorite revision control tools, but I don't have enough time to master all of them. I think I have a couple

Re: Get named groups from a regular expression

2014-07-01 Thread Peter Otten
Chris Angelico wrote: On Wed, Jul 2, 2014 at 1:29 AM, Peter Otten __pete...@web.de wrote: Easy, just write a regular expression to parse regular expressions ;) Hmm, is that even possible? AIUI you can't make a regex that correctly parses nested tokens, and named groups can definitely be

Re: What's the right way to abandon an open source package?

2014-07-01 Thread Paul Sokolovsky
Hello, On 01 Jul 2014 18:40:23 GMT Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 01 Jul 2014 20:59:48 +0300, Paul Sokolovsky wrote: Put it on github http://nedbatchelder.com/blog/201405/github_monoculture.html Everyone who (re)posts stuff like that should have

Re: Get named groups from a regular expression

2014-07-01 Thread jkn
On Tuesday, 1 July 2014 16:12:34 UTC+1, Florian Lindner wrote: Hello, Is there a way I can extract the named groups from a regular expression? e.g. given (?Ptestgrp\d) I want to get something like [testgrp]. OR Can I make the match object to return default values for

Re: fixing an horrific formatted csv file.

2014-07-01 Thread F.R.
On 07/01/2014 04:04 PM, flebber wrote: What I am trying to do is to reformat a csv file into something more usable. currently the file has no headers, multiple lines with varying columns that are not related. This is a sample Meeting,05/07/14,RHIL,Rosehill Gardens,Weights,TAB,+3m Entire

Success with subprocess communicate on Windows?

2014-07-01 Thread Terry Reedy
I am mentoring a GSOC student, Saimadhav Heblikar, who is working on adding the following feature to Idle: submit the editor text to an external program, such as pyflakes, and display the result in an OutputWindow. If it reports line numbers with problems, as pyflakes does, users will be able

Re: fixing an horrific formatted csv file.

2014-07-01 Thread flebber
That's a really cool solution. I understand why providing full solutions is frowned upon, because it doesn't assist in learning. Which is true, it's incredibly helpful in this case. The python cookbook is really good and what I was using as a start for dealing with csv. But it doesn't even go

Re: What's the right way to abandon an open source package?

2014-07-01 Thread Ian Kelly
On Tue, Jul 1, 2014 at 1:05 PM, Paul Sokolovsky pmis...@gmail.com wrote: On 01 Jul 2014 18:40:23 GMT Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: http://nedbatchelder.com/blog/201405/github_monoculture.html Everyone who (re)posts stuff like that should have mandatory N.B. of I

1-0.95

2014-07-01 Thread Pedro Izecksohn
pedro@microboard:~$ /usr/bin/python3 Python 3.3.2+ (default, Feb 28 2014, 00:52:16) [GCC 4.8.1] on linux Type help, copyright, credits or license for more information. 1-0.95 0.050044     How to get 0.05 as result?   bc has scale=2 . Has Python some similar feature? --

What use with Python

2014-07-01 Thread rxjwg98
Hi, I am new to Python. Weeks ago, I was asked about Python questions on an interview. Now I want to learn Python, but I do not know what I can do with it on a PC. Especially I would like to do something interesting instead of some text search etc. Python may can do more than I realize now.

Re: 1-0.95

2014-07-01 Thread Mark Lawrence
On 01/07/2014 22:17, Pedro Izecksohn wrote: pedro@microboard:~$ /usr/bin/python3 Python 3.3.2+ (default, Feb 28 2014, 00:52:16) [GCC 4.8.1] on linux Type help, copyright, credits or license for more information. 1-0.95 0.050044 How to get 0.05 as result? bc has scale=2 .

Re: 1-0.95

2014-07-01 Thread pecore
Pedro Izecksohn izecks...@yahoo.com writes: pedro@microboard:~$ /usr/bin/python3 Python 3.3.2+ (default, Feb 28 2014, 00:52:16) [GCC 4.8.1] on linux Type help, copyright, credits or license for more information. 1-0.95 0.050044     How to get 0.05 as result?

Re: What's the right way to abandon an open source package?

2014-07-01 Thread Ben Finney
Skip Montanaro s...@python.org writes: I've tried to find people to take it over, but so far unsuccessfully. The principle (laid out by ESR in “The Cathedral and the Bazaar”) is: When you lose interest in a program, your last duty to it is to hand it off to a competent successor.

Discussion problems of monoculture (was: What's the right way to abandon an open source package?)

2014-07-01 Thread Ben Finney
Ian Kelly ian.g.ke...@gmail.com writes: On Tue, Jul 1, 2014 at 1:05 PM, Paul Sokolovsky pmis...@gmail.com wrote: On 01 Jul 2014 18:40:23 GMT Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: http://nedbatchelder.com/blog/201405/github_monoculture.html Everyone who (re)posts

Re: fixing an horrific formatted csv file.

2014-07-01 Thread Chris Angelico
On Wed, Jul 2, 2014 at 7:41 AM, flebber flebber.c...@gmail.com wrote: I understand why providing full solutions is frowned upon, because it doesn't assist in learning. Which is true, it's incredibly helpful in this case. In this case, my main reason for not providing a full solution is that

Re: general module auditing

2014-07-01 Thread Rita
yes, this helps. But I want to know who uses the module, serpent. So, when I upgrade it or remove it they won't be affected adversely. On Tue, Jul 1, 2014 at 2:16 PM, Irmen de Jong irmen.nos...@xs4all.nl wrote: On 1-7-2014 12:38, Rita wrote: i work in a group of developers (15 or so) who

Re: What use with Python

2014-07-01 Thread William Ray Wing
On Jul 1, 2014, at 6:56 PM, rxjw...@gmail.com wrote: Hi, I am new to Python. Weeks ago, I was asked about Python questions on an interview. Now I want to learn Python, but I do not know what I can do with it on a PC. Especially I would like to do something interesting instead of some

Re: What use with Python

2014-07-01 Thread david.gar...@gmail.com
How about Web python? https://wiki.python.org/moin/WebFrameworks PC can run linux. Perhaps a vagrant linux virtual host would be in order? http://www.vagrantup.com/ Or windoz https://www.python.org/download/windows David On Tue, Jul 1, 2014 at 3:56 PM, rxjw...@gmail.com wrote: Hi, I am new

Re: Success with subprocess communicate on Windows?

2014-07-01 Thread Tim Roberts
Terry Reedy tjre...@udel.edu wrote: It does not work on Windows. As I reported on http://bugs.python.org/issue8631, msg222053, subprocess.check_output(pyflakes -h) works in the interpreter and Idle shell, while s.check_output(pyflakes c:\programs\python34\lib\turtle.py) gives bizarre output

Re: What's the right way to abandon an open source package?

2014-07-01 Thread Mark Lawrence
On 02/07/2014 00:18, Ben Finney wrote: Skip Montanaro s...@python.org writes: I've tried to find people to take it over, but so far unsuccessfully. The principle (laid out by ESR in “The Cathedral and the Bazaar”) is: When you lose interest in a program, your last duty to it is to hand

[RELEASE] Python 2.7.8

2014-07-01 Thread Benjamin Peterson
Greetings, I have the distinct privilege of informing you that the latest release of the Python 2.7 series, 2.7.8, has been released and is available for download. 2.7.8 contains several important regression fixes and security changes: - The openssl version bundled in the Windows installer has

[issue1674555] sys.path in tests contains system directories

2014-07-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I update my patches every time they stop applying, but I do not feel that it is necessary to frequently attach new patches here. -- ___ Python tracker rep...@bugs.python.org

[issue21894] ImportError: cannot import name jit

2014-07-01 Thread Ned Deily
Ned Deily added the comment: This issue tracker is for reporting problems in Python itself. For help in how to how to use Python, there are lots of forums to ask for help. See https://www.python.org/about/help/ for suggestions. That said, if you have named your example file parakeet.py,

[issue21889] https://docs.python.org/2/library/multiprocessing.html#process-and-exceptions doesn't explain exception

2014-07-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21889 ___ ___ Python-bugs-list mailing list

[issue21891] sysmodule.c, #define terminated with semicolon.

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50e924d26ba6 by Ned Deily in branch '3.4': Issue #21891: remove extraneous semicolon. http://hg.python.org/cpython/rev/50e924d26ba6 New changeset fc527ecb4487 by Ned Deily in branch 'default': Issue #21891: remove extraneous semicolon.

[issue21891] sysmodule.c, #define terminated with semicolon.

2014-07-01 Thread Ned Deily
Ned Deily added the comment: Thanks for the report! -- nosy: +ned.deily resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21891

[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21892 ___ ___ Python-bugs-list mailing list

[issue21893] unicodeobject.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21893 ___ ___ Python-bugs-list mailing list

[issue21893] unicodeobject.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f55e802baf0 by Victor Stinner in branch '3.4': Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C http://hg.python.org/cpython/rev/4f55e802baf0 New changeset 669b43bffd87 by Victor Stinner in branch 'default': (Merge

[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f55e802baf0 by Victor Stinner in branch '3.4': Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C http://hg.python.org/cpython/rev/4f55e802baf0 New changeset 669b43bffd87 by Victor Stinner in branch 'default': (Merge

[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot the mention John Malmberg in the changelog, sorry :-( Thanks for your fix John. -- stage: resolved - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21892

[issue21893] unicodeobject.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot the mention John Malmberg in the changelog, sorry :-( Thanks for your fix John. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21893

[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-07-01 Thread Berker Peksag
Berker Peksag added the comment: Patch updated. If there's no objections, I'll commit this patch in the next couple of days. -- assignee: pje - berker.peksag stage: patch review - commit review Added file: http://bugs.python.org/file35814/issue5800_v3.diff

[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21892 ___ ___

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread Bohuslav Slavek Kabrda
New submission from Bohuslav Slavek Kabrda: Reproducer attached. To describe the problem in words, one needs to do this to reproduce this issue: - Create a signal handler and register it using signal.signal to SIGCHLD. - Create a thread that invokes a subprocess, e.g. sleep 1 and then continues

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21895 ___ ___ Python-bugs-list

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: First of all, signals and threads usually don't play together. Most signal functions are *not* thread safe. The behaviour of signal functions are not well defined for threads. Example with pause: pause() causes the calling process (or thread) to sleep

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21895 ___ ___

[issue21599] Argument transport in attach and detach method in Server class in base_events file is not used

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: I proposed a deeper change to make most attributes and methods private: https://code.google.com/p/tulip/issues/detail?id=180 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21599

[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website

2014-07-01 Thread Tymoteusz Paul
New submission from Tymoteusz Paul: I've recently ran into a problem with urellib.request.urlopen that it fails against one website (that I've found so far). The website itself is working fine, I can access its content with other libraries like requests, curl and outside of python with

[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Andy Maier
Andy Maier added the comment: Ezio, what do you mean with string signature? For me, the patch looks fine as it is. -- nosy: +andymaier ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17904

[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: I mean here: https://docs.python.org/2/library/functions.html#str -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17904 ___

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2014-07-01 Thread Rodrigue Alcazar
Rodrigue Alcazar added the comment: @Mark, I had a look at the time I commented on the ticket but didn't get a chance to progress much in the end. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9517

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: I think that the problem here is that the documentation sets an expectation that's not met, at least from my POV. Running the reproducer, I was expecting the main thread to unpause and execute the signal handler (citing: Python signal handlers are

[issue21897] frame.f_locals causes segfault on Python =3.4.1

2014-07-01 Thread Masami HIRATA
New submission from Masami HIRATA: It seems that frame.f_locals causes segfault on Python =3.4.1 $ uname -a Linux ashrose 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ ls test1.py $ cat test1.py import unittest class

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-07-01 Thread Mümin Öztürk
Mümin Öztürk added the comment: more tests and some documentation added. -- Added file: http://bugs.python.org/file35816/strftime3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12750

[issue9566] Compilation warnings under x64 Windows

2014-07-01 Thread Mark Lawrence
Mark Lawrence added the comment: Are there any more warnings that need silencing or can this be closed as fixed? How do I check for these warnings as I don't have a 64 bit machine? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python

[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Andy Maier
New submission from Andy Maier: The .hgignore file misses some entries for directories and files created by Eclipse with pydev. The additional lines for .hgignore would be: ^.project ^.pydevproject ^.settings/ This change applies to 2.7 and 3.x. -- messages: 222032 nosy:

[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Andy Maier
Changes by Andy Maier andreas.r.ma...@gmx.de: -- keywords: +patch Added file: http://bugs.python.org/file35817/issue21898.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21898 ___

[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-07-01 Thread R. David Murray
R. David Murray added the comment: Since we don't need to avoid new language features, using the ternary would be better than using the or. This is exactly the sort of situation the ternary was introduced for: making sure the input really is None before applying the default. Otherwise the

[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website

2014-07-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21896 ___ ___

[issue21899] Futures are not marked as completed

2014-07-01 Thread Sebastian Kreft
New submission from Sebastian Kreft: With Python 3.4.1 compiled from source, I'm having an issue in which every now and then some Futures are not marked as completed even though the underlying workload is done. My workload is launching two subprocess in parallel, and whenever one is ready,

[issue9566] Compilation warnings under x64 Windows

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: How do I check for these warnings as I don't have a 64 bit machine? Check buildbots. Example: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/4744/steps/compile/logs/warnings%20%28108%29 There are still open issues related to this

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Klaus Wolf
Klaus Wolf added the comment: Please reopen this bug. To answer the question: Why on Earth would you want to serialize a hashlib object? : multiprocessing.connection.ForkingPickler wants. I.e. if you want to parallelize your hash calculations, this will obstruct your efforts. --

[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, pitrou stage: - patch review versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21898

[issue21781] make _ssl module 64-bit clean

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 36e884e65e45 by Victor Stinner in branch '3.4': Issue #21781: Make the ssl module ssize_t clean for parsing parameters. http://hg.python.org/cpython/rev/36e884e65e45 -- nosy: +python-dev ___ Python

[issue21781] make _ssl module 64-bit clean

2014-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21781 ___

[issue21781] make _ssl module 64-bit clean

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 26afcb8a87b9 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21781: Make the ssl module ssize_t clean for parsing http://hg.python.org/cpython/rev/26afcb8a87b9 -- ___ Python tracker

[issue21780] make unicodedata module 64-bit safe

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b82ff2d7f5ef by Victor Stinner in branch '3.4': Closes #21780: make the unicodedata module ssize_t clean for parsing parameters http://hg.python.org/cpython/rev/b82ff2d7f5ef New changeset afd64e660628 by Victor Stinner in branch 'default': (Merge

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 691ca1694fe7 by Victor Stinner in branch '3.4': Issue #8677: make the zlib module ssize_t clean for parsing parameters http://hg.python.org/cpython/rev/691ca1694fe7 New changeset 45dcdd8f3211 by Victor Stinner in branch 'default': (Merge 3.4) Issue

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread Andy Maier
New submission from Andy Maier: In Python 2.7 and up to Python 3.3, the documentation build process downloads tools such as Sphinx etc. into the Doc/tools subtree. The .hgignore file misses entries to ignore those. The additional lines for .hgignore would be: ^Doc/tools/docutils/

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread Andy Maier
Changes by Andy Maier andreas.r.ma...@gmx.de: -- keywords: +patch Added file: http://bugs.python.org/file35818/issue21900.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21900 ___

[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-01 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35819/3rdpartychecker-v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21880 ___

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Do you honestly have a situation where you need to share a computationally significant amount of hashing state only to want to finish the computation N different times with alternate computationally significant ending data that multiprocessing would actually

[issue21090] File read silently stops after EIO I/O error

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch for FileIO.readall() which should fix the issue. Currently, readall() returns read bytes at the first read() error if a least one call to read() succeed. -- keywords: +patch Added file:

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Klaus Wolf
Klaus Wolf added the comment: You want to say: It doesn't work, but it is somehow intentional because you never used id, correct? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11771 ___

[issue21897] frame.f_locals causes segfault on Python =3.4.1

2014-07-01 Thread Stefan Krah
Stefan Krah added the comment: 6ab3193e890e exposes the issue. -- nosy: +pitrou, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21897 ___ ___

  1   2   >