Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread Cucole Lee
Why Thinter? You can try wxpython. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie torr...@gmail.com wrote: The Sendmail MTA has been ported to many platforms including windows. But... Thanks for the tip. Since I couldn't find a good, basic, native Windows app, I was indeed about to look at eg. Exim + Cygwin, and resort to a

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards invalid@invalid.invalid wrote: Unless you've got a static IP address, a domain name, and a valid MX record that will match up when they do a reverse DNS lookup, it's pretty unlikely that you're going to have much luck running an SMTP server.

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards invalid@invalid.invalid wrote: Unless you've got a static IP address, a domain name, and a valid MX record that will match up when they do a reverse DNS lookup, it's pretty unlikely that you're going to have much luck running an SMTP server.

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Mon, Jul 22, 2013 at 10:11 PM, Gilles nos...@nospam.com wrote: On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie torr...@gmail.com wrote: Having spent a long time managing e-mail servers, everything Ivan said in his reply is true as well. I had forgotten a lot of that since I haven't been

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread Aseem Bansal
@Chris “Kwpolska” Warrick Yeah, as I mentioned I was able to use it to create .py files and the GUI ran. But when I made the .exe from the .py using cxfreeze it created exe but the GUI did not run. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Mon, 22 Jul 2013 22:29:42 +1000, Chris Angelico ros...@gmail.com wrote: One thing to check when you change how you send mail is your SPF record. I run the mail server for kepl.com.au and have set its SPF to: v=spf1 ip4:122.107.147.136 ip4:203.214.67.43 ip4:192.168.0.0/16 -all If your SPF is

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Mon, Jul 22, 2013 at 10:38 PM, Gilles nos...@nospam.com wrote: On Mon, 22 Jul 2013 22:29:42 +1000, Chris Angelico ros...@gmail.com wrote: One thing to check when you change how you send mail is your SPF record. I run the mail server for kepl.com.au and have set its SPF to: v=spf1

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Eric S. Johansson
On Mon, 22 Jul 2013 08:11:25 -0400, Gilles nos...@nospam.com wrote: On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie torr...@gmail.com wrote: The Sendmail MTA has been ported to many platforms including windows. But... Thanks for the tip. Since I couldn't find a good, basic, native Windows

Re: Play Ogg Files

2013-07-22 Thread Devyn Collier Johnson
On 07/21/2013 10:10 AM, Stefan Behnel wrote: Devyn Collier Johnson, 20.07.2013 14:25: On 07/20/2013 12:21 AM, Stefan Behnel wrote: Devyn Collier Johnson, 20.07.2013 03:06: I am making a chatbot that I host on Launchpad.net/neobot. I am currently converting the engine from BASH code to

Re: Play Ogg Files

2013-07-22 Thread Devyn Collier Johnson
On 07/21/2013 01:50 AM, Chris Angelico wrote: On Sun, Jul 21, 2013 at 3:39 PM, David Hutto dwightdhu...@gmail.com wrote: With linux you can have your package listed in synaptic, and can use with a sudo apt-get install whatever ogg player like ogg123, and windows I don't work with that much,

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:51 AM, Chris Angelico wrote: Thanks for the tip. I didn't know about SPF http://en.wikipedia.org/wiki/Sender_Policy_Framework It's a great way of detecting legit vs forged mail. If anyone tries to send mail purporting to be from anyth...@kepl.com.au and the receiving mail

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Tue, Jul 23, 2013 at 12:08 AM, Michael Torrie torr...@gmail.com wrote: On 07/22/2013 06:51 AM, Chris Angelico wrote: Thanks for the tip. I didn't know about SPF http://en.wikipedia.org/wiki/Sender_Policy_Framework It's a great way of detecting legit vs forged mail. If anyone tries to send

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Grant Edwards
On 2013-07-22, Gilles nos...@nospam.com wrote: On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards invalid@invalid.invalid wrote: Unless you've got a static IP address, a domain name, and a valid MX record that will match up when they do a reverse DNS lookup, it's pretty unlikely that you're

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:19 AM, Gilles wrote: On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards invalid@invalid.invalid wrote: Unless you've got a static IP address, a domain name, and a valid MX record that will match up when they do a reverse DNS lookup, it's pretty unlikely that you're going

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread Kevin Walzer
On 7/22/13 4:54 AM, Cucole Lee wrote: Why Thinter? You can try wxpython. Well, it's partly a matter of taste, but I for one find wxPython's API...inelegant. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com --

Re: could you change PYPI downloads number for not-uploaded packages?

2013-07-22 Thread Robert Kern
On 2013-07-22 16:44, dmitre...@gmail.com wrote: Hi all, could you change PYPI downloads number for not-uploaded packages from zeros to real posivive numbers? For example, my projects download links are binded to my website , and thus people see misleading zeros, e.g.

could you change PYPI downloads number for not-uploaded packages?

2013-07-22 Thread dmitrey15
Hi all, could you change PYPI downloads number for not-uploaded packages from zeros to real posivive numbers? For example, my projects download links are binded to my website , and thus people see misleading zeros, e.g. https://pypi.python.org/pypi/openopt Downloads (All Versions): 0 downloads

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Tue, Jul 23, 2013 at 12:21 AM, Michael Torrie torr...@gmail.com wrote: My mail server did a number of things: 1. ensure IP address of sending server has a reverse name (domain didn't particularly matter) 2. ensure the HELO address in SMTP matches IP address of sending server 3. check

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Tue, Jul 23, 2013 at 2:25 AM, Michael Torrie torr...@gmail.com wrote: On 07/22/2013 08:15 AM, Chris Angelico wrote: If legit mail is rejected for failing an SPF check, it's the sending admin's problem, not yours. You should never have problems with it if it's set up correctly. And since

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Kevin Walzer
On 7/21/13 10:42 AM, Gilles wrote: Hello Every once in a while, my ISP's SMTP server refuses to send perfectly legit e-mails because it considers them as SPAM. So I'd like to install a dead-simple SMTP server on my XP computer just to act as SMTP backup server. All I'd need is to

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:11 AM, Gilles wrote: On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie torr...@gmail.com wrote: The Sendmail MTA has been ported to many platforms including windows. But... Thanks for the tip. Since I couldn't find a good, basic, native Windows app, I was indeed about to

Re: Homework help requested, thanks to everyone.

2013-07-22 Thread Skip Montanaro
John Another project I thought of was a Pig Latin translator. (But do kids today John even know what Pig Latin is? Am I showing my age?) Chris Even if they don't, they'll grok it no problem. It's simple enough. Google for Python pig latin to see a lot of prior art. And it might be useful as a

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 08:15 AM, Chris Angelico wrote: If legit mail is rejected for failing an SPF check, it's the sending admin's problem, not yours. You should never have problems with it if it's set up correctly. And since rejected mail gets reported to the transmitting MTA, you don't need to drop

Re: odd behavoiur seen

2013-07-22 Thread Chris Hinsley
On 2013-07-22 18:36:41 +, Chris Hinsley said: Folks, I have this decorator: def memoize(maxsize): def _memoize(func): lru_cache = {} lru_list = [] Other clues, I use it on a recursive function: @memoize(64) def next_move(board, colour, alpha, beta, ply): if ply =

odd behavoiur seen

2013-07-22 Thread Chris Hinsley
Folks, I have this decorator: def memoize(maxsize): def _memoize(func): lru_cache = {} lru_list = [] def memoizer(*args, **kwargs): key = str(args) + str(kwargs) if key in lru_cache: lru_list.remove(key)

How to read a make file in python and access its elements

2013-07-22 Thread san
How to read/load the cmake file in python and access its elements. I have a scenario, where i need to load the make file and access its elements. I have tried reading the make file as text file and parsing it,but its not the ideal solution Please let me know how to load the .mk file and

Re: odd behavoiur seen

2013-07-22 Thread Peter Otten
Chris Hinsley wrote: On 2013-07-22 18:36:41 +, Chris Hinsley said: Folks, I have this decorator: def memoize(maxsize): def _memoize(func): lru_cache = {} lru_list = [] Other clues, I use it on a recursive function: @memoize(64) def next_move(board, colour,

Re: odd behavoiur seen

2013-07-22 Thread Chris Hinsley
On 2013-07-22 19:47:33 +, Peter Otten said: Chris Hinsley wrote: On 2013-07-22 18:36:41 +, Chris Hinsley said: Folks, I have this decorator: def memoize(maxsize): def _memoize(func): lru_cache = {} lru_list = [] Other clues, I use it on a recursive function: @memoize(64) def

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Nobody
On Mon, 22 Jul 2013 14:19:57 +0200, Gilles wrote: Incidently, how do ISP MTAs find whether the remote MTA is legit or running on some regular user's computer? Look up the IP address in a database. If they don't have a database, perform a reverse DNS lookup and reject anything which looks like

Re: could you change PYPI downloads number for not-uploaded packages?

2013-07-22 Thread Ben Finney
Robert Kern robert.k...@gmail.com writes: On 2013-07-22 16:44, dmitre...@gmail.com wrote: For example, my projects download links are binded to my website , and thus people see misleading zeros […] In short, if you want to have download counts, you will need to host your package

Re: How to read a make file in python and access its elements

2013-07-22 Thread Ben Finney
san santosh.s...@gmail.com writes: I have a scenario, where i need to load the make file and access its elements. What do you mean by “elements” of a make file? Is that a term with a specific meaning, or do you mean some particular parts of the make file? I have tried reading the make file

Re: How to read a make file in python and access its elements

2013-07-22 Thread Dave Angel
On 07/22/2013 03:09 PM, san wrote: How to read/load the cmake file in python and access its elements. I have a scenario, where i need to load the make file and access its elements. I have tried reading the make file as text file and parsing it,but its not the ideal solution Please let me know

Re: Play Ogg Files

2013-07-22 Thread alex23
On 20/07/2013 10:25 PM, Devyn Collier Johnson wrote: I have not heard of Pyaudio; I will look into that. As for Pygame, I have not been able to find any good documentation for playing audio files. Plus, I recently learned that Pygame is not Python3 compatible. Another option would be Pyglet,

Re: How to read a make file in python and access its elements

2013-07-22 Thread alex23
On 23/07/2013 5:09 AM, san wrote: How to read/load the cmake file in python and access its elements. I have a scenario, where i need to load the make file and access its elements. I have tried reading the make file as text file and parsing it,but its not the ideal solution Please let me know

How to tick checkboxes with the same name?

2013-07-22 Thread malayrev
I faced a problem: to implement appropriate search program I need to tick few checkboxes which turned out to have the same name (name=a, id=a1,a2,a3,a4). Set_input('a', True) does not work (I use Grab library), this command leads to the error checkboxgroup must be set to a sequence. I don't

Re: How to tick checkboxes with the same name?

2013-07-22 Thread Joel Goldstick
On Tue, Jul 23, 2013 at 12:10 AM, malay...@gmail.com wrote: I faced a problem: to implement appropriate search program I need to tick few checkboxes which turned out to have the same name (name=a, id=a1,a2,a3,a4). Set_input('a', True) does not work (I use Grab library), this command leads

Re: How to tick checkboxes with the same name?

2013-07-22 Thread Steven D'Aprano
On Mon, 22 Jul 2013 21:10:18 -0700, malayrev wrote: I faced a problem: to implement appropriate search program I need to tick few checkboxes which turned out to have the same name (name=a, id=a1,a2,a3,a4). Set_input('a', True) does not work (I use Grab library) Instructions for solving your

Re: Play Ogg Files

2013-07-22 Thread David Hutto
Devyn, are you just trying to use this in an application? Would a browser based web app work. I ask because there will still be some sort of DB interaction, so could it be an option to go with a browser command? On Mon, Jul 22, 2013 at 8:37 PM, alex23 wuwe...@gmail.com wrote: On 20/07/2013

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread David Hutto
There is the matter of how much time you want to put into this. There is the standard gtk library for python, and in the future, as soon as I'm well enough to focus, having recent problems, I'll be using the blender game engine to enhance my software to a 3d graphical form...to make my apps pop.

[issue15805] Add stdout redirection tool to contextlib

2013-07-22 Thread STINNER Victor
STINNER Victor added the comment: Can someone propose a patch instead of inline code? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15805 ___

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-07-22 Thread STINNER Victor
STINNER Victor added the comment: Raised by what? The test raising the assertion error is a Python authorizer callback which returns a Python int (2**32) larger than a C int ( INT_MAX) and so an OverflowError is raised in the C authorizer callback. Are you sure you don't just need to clear

[issue18488] sqlite: finalize() method of user function may be called with an exception set if a call to step() method failed

2013-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 020dbfdf9517 by Victor Stinner in branch 'default': Issue #18488: Fix _pysqlite_final_callback() http://hg.python.org/cpython/rev/020dbfdf9517 -- ___ Python tracker rep...@bugs.python.org

[issue18488] sqlite: finalize() method of user function may be called with an exception set if a call to step() method failed

2013-07-22 Thread STINNER Victor
STINNER Victor added the comment: +1 for PyException_SetContext or similar. The C code should behave like a finally: x.finalize(). If the Python callback failed in _pysqlite_step_callback() or _pysqlite_final_callback(): the exception is printed if sqlite3.enable_callback_tracebacks() has

[issue18510] dict.__contains__ and dict.keys().__contains__ raises exception instead of returning False

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: As mentioned on python-dev the current behavior seems sane. 1) Just like __getitem__ and __setitem__, __contains__ raises an exception when the key value cannot be used as a key (which normally is a programming error) 2) There are values that compare

[issue18510] dict.__contains__ and dict.keys().__contains__ raises exception instead of returning False

2013-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's no bug here. It is the way Python has worked for 23 years. -- nosy: +rhettinger versions: -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18510

[issue18510] dict.__contains__ and dict.keys().__contains__ raises exception instead of returning False

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree, and the thread on python-dev[1] also came to that conclusion, I'm therefore closing this issue. [1] http://code.activestate.com/lists/python-dev/123385/ -- resolution: - invalid stage: - committed/rejected status: open - closed

[issue1687125] cannot catch KeyboardInterrupt when using curses getkey()

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I cannot reproduce this with a recent 2.7 build from mercurial, but can reproduce with /usr/bin/python (2.7.2) on OSX 10.8 and python 2.7.3 on Centos 6.4 system. -- nosy: +ronaldoussoren versions: +Python 2.7 -Python 2.6

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: Please open an interactive interpreter shell and show us the output of import shutil print shutil.__file__ print dir(shutil) -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org

[issue18524] BufferedReader.read1() documentation/implementation difference

2013-07-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +benjamin.peterson, hynek, pitrou, serhiy.storchaka, stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18524 ___

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Saurabh Gupta
Saurabh Gupta added the comment: import shutil shutil.__file__ 'C:\\Python26\\lib\\shutil.pyc' dir(shutil) ['Error', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_basename', '_samefile', 'abspath', 'copy', 'copy2', 'copyfile', 'copyfileobj', 'copymode',

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Saurabh Gupta
Saurabh Gupta added the comment: And, the same thing on linux: import shutil print shutil.__file__ /software/package/linux64_centos6/python/2.6.7/lib/python2.6/shutil.pyc print dir(shutil) ['Error', 'WindowsError', '__all__', '__builtins__', '__doc__', '__file__', '__n ame__', '__package__',

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: Seems legit ... I don't have access to a Windows system right now so I can't test it. WindowsError is globally available on Windows. You don't have to import it from shutil. Portable application should use OSError instead of WindowsError. WindowsError is a

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Saurabh Gupta
Saurabh Gupta added the comment: I have a legacy software that has things like: try: some stuff except OSError, why: if WindowsError is not None and isinstance(why, WindowsError): do something else: do something else So I'd ideally like

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: WindowsError is not part of the documented interface of shutil, but is an implementation detail. from shutil import WindowsUtil works on Unix platforms because shutil contains a compatibility definition: try: WindowsError except NameError:

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Tim Golden
Tim Golden added the comment: Really this should be a wont-fix: the fact that it's possible to import WindowsError from shutil (on Linux) is an accident of its internal implementation. It's certainly not documented as such. Saurabh: WindowsError is a builtin on Windows. If you want to mimic

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree that this should be closed. -- resolution: - wont fix status: open - closed versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18525

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: I'd like to have a patch by tonight. This issue is one of two remaining bugs that are considered high impact by Coverity Scan. The other one looks like a false positive. I have an interview with Coverity tomorrow about the development style and quality of

[issue18527] Upgrade Modules/zlib to 1.2.8

2013-07-22 Thread Christian Heimes
New submission from Christian Heimes: According to http://hg.python.org/cpython/file/878dc9dfc565/Modules/zlib/ChangeLog our repository has zlib 1.2.5. zlib 1.2.8 is out for a while, http://zlib.net/ I'd like to update our copy of zlib to 1.2.8. -- assignee: christian.heimes

[issue15905] Copy to fixed size buffer w/o check in sys_update_path

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: Good point, but I think it should be `q[MAXPATHLEN + 1] = L'\0';`. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15905 ___

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-07-22 Thread Larry Hastings
Larry Hastings added the comment: Patch for 3.3. or trunk? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17899 ___ ___ Python-bugs-list mailing

[issue15905] Copy to fixed size buffer w/o check in sys_update_path

2013-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15905 ___ ___ Python-bugs-list mailing list

[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Saurabh Gupta
Saurabh Gupta added the comment: Thank you all for your inputs! Now I understand what the issue really is would be fixing it by removing the imports in the legacy software. I agree with the won't fix resolution of the ticket. -- ___ Python tracker

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: Preferable both but Coverity Scan uses only trunk. We could commit the patch to trunk first and test if Coverity still detects the leak. -- ___ Python tracker rep...@bugs.python.org

[issue4079] new urllib2.Request 'timeout' attribute needs to have a default

2013-07-22 Thread Indra Talip
Indra Talip added the comment: patch adds regressions tests to ensure timeout value from OpenerDirector is honoured and a failing test for a default value for Request.timeout that passes when the patch that initialises Request.timeout is applied. -- Added file:

[issue15905] Copy to fixed size buffer w/o check in sys_update_path

2013-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset dca92e8a011a by Christian Heimes in branch '3.3': Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0], http://hg.python.org/cpython/rev/dca92e8a011a New changeset 01597384531f by Christian Heimes in branch 'default': Issue

[issue15905] Copy to fixed size buffer w/o check in sys_update_path

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: Thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15905 ___

[issue5120] Change _tkinter initialization for new versions of Aqua Tk on OS X

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: As mentioned by Ned this is a duplicate of #8716. The proposed change to tkinter initialization in msg81468 might be useful to look into, but I'm not interested in doing that work because I don't use Tkinter myself which makes it harder to test if the

[issue17933] format str bug in urllib request.py

2013-07-22 Thread Rock Lee
Rock Lee added the comment: Any progress for this issue? I changed the title of the issue. -- title: test_ftp failure / ftplib error formatting issue - format str bug in urllib request.py ___ Python tracker rep...@bugs.python.org

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Christian Heimes
New submission from Christian Heimes: Coverity claims that sock_accept() may leak a fd. I have been starring at the code for a while and I'm still not sure if Coverity is right. The macros make the code paths hard to follow. The attached patch is simple and should not be a performance issue.

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +pitrou, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18528 ___ ___

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: What if you add errno = 0 at the beginning of the function? Perhaps Coverity is confused by the fact that we use CHECK_ERRNO() to infer whether accept() succeeded or not, rather than simply checking the return value. I don't like your patch, because it adds a

[issue18529] Use long dash

2013-07-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently Python documentation uses four type of dashes for same meaning: 1. Hyphen with spaces. 2. En-dash with spaces. 3. Em-dash with spaces. 4. Em-dash without spaces. Definitely the first case is just wrong and other three cases should be unified.

[issue18529] Use long dash

2013-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an alternative patch which replaces spaced hyphens and en-dashes and non-spaced em-dashes to em-dashes with spaces. -- assignee: - docs@python components: +Documentation nosy: +docs@python stage: - patch review type: - enhancement

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: Coverity may not understand the interaction with errno at all. Or it may simple point out that some operating systems are not standard conform and our assumption is not universally true. Here is a patch that raises an exception when newfd != INVALID_SOCKET.

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Coverity may not understand the interaction with errno at all. Or it may simple point out that some operating systems are not standard conform and our assumption is not universally true. Have you tried to reset errno at the beginning of the function?

[issue15805] Add stdout redirection tool to contextlib

2013-07-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: In general, I like where this is going. I agree that a stdout redirector is probably the most common case, and for that, it almost always (for me) redirects to an open file. The use case for stderr redirection is usually, but not always, to redirect stderr to

[issue18181] Add type.__locallookup__

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: issue-18181-full-v2.txt adds more tests to v1 and has slightly better documentation (still not good enough). A major issue with the patch: for some reason the tests pass when run standalone (./python.exe -m test.regrtest test_pep447), but crash when I run

[issue18418] Thread.isAlive() sometimes True after fork

2013-07-22 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Bump. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18418 ___ ___ Python-bugs-list mailing list

[issue16964] Add 'm' format specifier for mon_grouping etc.

2013-07-22 Thread Matthew Barnett
Matthew Barnett added the comment: I've attached my attempt at a patch. -- keywords: +patch nosy: +mrabarnett Added file: http://bugs.python.org/file31009/issue16964.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16964

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Alex Gaynor
New submission from Alex Gaynor: Right now it calls islink(), which does an lstat, and then does its own lstat on the same path. This can be optimized by inlining the body of islink and reusing the stat result. (This has been identified as an actual issue in openstack-swift

[issue12669] test_curses skipped on buildbots

2013-07-22 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12669 ___ ___

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached is a simple first pass at a diff against 2.7, shoudl be easy to port it to default. -- keywords: +patch Added file: http://bugs.python.org/file31010/ismount.diff ___ Python tracker rep...@bugs.python.org

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: Addresses the review comments: returns to catching all oserrors -- Added file: http://bugs.python.org/file31011/ismount.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18530

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch is against default. I don't have my ssh keys set up for this machine, so if someone else could land I'd be appreciative :) (Not sure if this qualifies for a backport) -- Added file: http://bugs.python.org/file31012/ismount-3k.diff

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-07-22 Thread Samwyse
Samwyse added the comment: Fixes Serhiy Storchaka's complaints, removes duplicate test. -- nosy: +samwyse Added file: http://bugs.python.org/file31013/test_urlparse.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18191

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-07-22 Thread Samwyse
Samwyse added the comment: Handles raw IPv6 URLs -- Added file: http://bugs.python.org/file31015/urllib.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18191 ___

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: LGTM -- nosy: +christian.heimes stage: - patch review type: - resource usage versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18530

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: Removed file: http://bugs.python.org/file31007/closesock2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18528 ___

[issue18181] PEP447: Add type.__locallookup__

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The crash was due to a bug in the test extension. Fixed in version 2b. -- title: Add type.__locallookup__ - PEP447: Add type.__locallookup__ Added file: http://bugs.python.org/file31014/issue-18181-full-v2b.txt ___

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: This patch does the trick. -- Added file: http://bugs.python.org/file31016/closesock3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18528 ___

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: Removed file: http://bugs.python.org/file31004/closesock.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18528 ___

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Larry, you forgot to remove #undef HAVE_FDOPENDIR at the start of the file. Beside this line the patch LGTM. I withdraw my objections in msg190887 because `close(fd)` can fail and change errno. -- ___ Python

[issue18528] Possible fd leak in socketmodule

2013-07-22 Thread Christian Heimes
Christian Heimes added the comment: Am 22.07.2013 16:00, schrieb Antoine Pitrou: Have you tried to reset errno at the beginning of the function? It doesn't affect Coverity's report: BEGIN_SELECT_LOOP(s) Py_BEGIN_ALLOW_THREADS +errno = 0; timeout = internal_select_ex(s, 0,

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Brian Curtin
Brian Curtin added the comment: Benjamin probably has the final say on backporting this to 2.7. I'm doing the 3.3/default commit right now. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18530

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-07-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: serhiy.storchaka - stage: committed/rejected - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___

[issue17944] Refactor test_zipfile

2013-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb63f813a00f by Serhiy Storchaka in branch '3.3': Issue #17944: test_zipfile now discoverable and uses subclassing to http://hg.python.org/cpython/rev/bb63f813a00f New changeset 5812a3683402 by Serhiy Storchaka in branch 'default': Issue #17944:

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Brian Curtin
Brian Curtin added the comment: ^That takes care of default. I misspoke in an earlier comment about 3.3 - that should probably be determined by that RM (Georg?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18530

[issue16741] `int()`, `float()`, etc think python strings are null-terminated

2013-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'm going to commit patches soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16741 ___

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 240adc564539 by Brian Curtin in branch 'default': Fix #18530. Remove extra stat call from posixpath.ismount http://hg.python.org/cpython/rev/240adc564539 -- nosy: +python-dev ___ Python tracker

  1   2   >