PyConZA 2013 - Talk submission deadline extended

2013-09-03 Thread Neil Muller
PyConZA will take place 3rd 4th October in Cape Town, South Africa. There will be two days of talks, and we will hold sprints on the 5th 6th of October. We have extended the deadline for talk submissions until the 15th of September. If you would like to give a presentation, please register at

Retask 0.4 released

2013-09-03 Thread Kushal Das
Hi all, During this weekend in PyCon India I released `Retask 0.4 http://retask.readthedocs.org/en/latest/`_. You can install it from PyPi. What is Retask ? -- Retask is a python module to create and manage distributed task queue/job queue. It uses Redis to create task

Re: Cookie or not..?

2013-09-03 Thread dieter
mrcol...@gmail.com writes: I am a Python noob, and need some help. I am trying to log in to website using python and parse info after login. In a browser, this link will log me in and keep me loged in: http://[domain].com/loginh.aspx?SID=[xxx]USER=[xxx]PW=[xxx] (sorry for the tripple x,

Re: How to execute command on remote windows machine

2013-09-03 Thread gaurangnshah
Hi alex I tried the command you suggested however it is giving me following error. ERROR: The RPC server is unavailable. On Tuesday, 3 September 2013 11:03:17 UTC+5:30, alex23 wrote: On 3/09/2013 2:45 PM, gaurangns...@gmail.com wrote: I have a requirement where i need to kill one

Re: semicolon at end of python's statements

2013-09-03 Thread Antoon Pardon
Op 03-09-13 01:17, Modulok schreef: So? Indeed there are too many people looking at these things as fighting for the one true way. That is IMO part a big part of the problem. I have no problem if someone else uses a different style than I do. Python as a language tries too

Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread Ferrous Cranus
Hello, i have written the following snipper of code to help me send mail: = # if html form is submitted then send user mail

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread feedthetroll
Am Dienstag, 3. September 2013 09:48:13 UTC+2 schrieb Ferrous Cranus: Hello, i have written the following snipper of code to help me send mail: ... server.login(nikos.gr...@gmail.com, ..) HE DID IT AGAIN! The login works with the posted password! Nikos, you should change your

Re: How to execute command on remote windows machine

2013-09-03 Thread Jean-Michel Pichavant
- Original Message - Hi alex I tried the command you suggested however it is giving me following error. ERROR: The RPC server is unavailable. Hi, Please do not top post :) If python is installed on the remote machine, using execnet http://codespeak.net/execnet/ is very easy.

Re: How to split with \ character, and licence copyleft mirror of ©

2013-09-03 Thread Tim Chase
On 2013-09-03 02:06, Steven D'Aprano wrote: So the real bug is with the parser. It is likely that nobody noticed this bug in the first place because the current behaviour doesn't matter for regexes, which is the primary purpose of raw strings. You can't end a regex with an unescaped

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread Ferrous Cranus
Στις 3/9/2013 12:33 μμ, ο/η feedthetr...@gmx.de έγραψε: Am Dienstag, 3. September 2013 09:48:13 UTC+2 schrieb Ferrous Cranus: Hello, i have written the following snipper of code to help me send mail: ... server.login(nikos.gr...@gmail.com, ..) HE DID IT AGAIN! The login works

Re: sqlite issue in 2.7.5

2013-09-03 Thread Alister
On Mon, 02 Sep 2013 22:13:27 +, Joseph L. Casale wrote: I have been battling an issue hopefully someone here has insight with. I have a database with a few tables I perform a query against with some joins against columns collated with NOCASE that leverage = comparisons. Running the

Re: How to execute command on remote windows machine

2013-09-03 Thread random832
On Tue, Sep 3, 2013, at 0:45, gaurangns...@gmail.com wrote: Hi Guys, I have a requirement where i need to kill one process on remote windows machine. Following command just works fine if i have to kill process on local machine os.system('taskkill /f /im processName.exe') However I

Unable to redirect the subprocess CMD.exe to txt file. Please help !!!

2013-09-03 Thread Venkatesh
Hello comp.lang.python Group, I am trying to invoke a subprocess in Python as below import sys import time import os import subprocess DETACHED_PROCESS = 0x0008 path = r'C:\Windows\System32\cmd.exe /k ping www.google.com -n 4 temp.txt' p = subprocess.Popen(%s%(path), stdout =

Re: How to execute command on remote windows machine

2013-09-03 Thread Jean-Michel Pichavant
- Original Message - I tried it, however it seems really complicated. If you have used it before, can you show me how can i do it ? Gaurang Shah Blog: qtp-help.blogspot.com Mobile: +91 738756556 Please don't ask question off-list. It's not complicated at all. The documentation

Re: How to execute command on remote windows machine

2013-09-03 Thread 88888 Dihedral
gauran...@gmail.com於 2013年9月3日星期二UTC+8下午12時45分57秒寫道: Hi Guys, I have a requirement where i need to kill one process on remote windows machine. Following command just works fine if i have to kill process on local machine os.system('taskkill /f /im processName.exe')

Re: UnicodeDecodeError issue

2013-09-03 Thread Steven D'Aprano
On Tue, 03 Sep 2013 08:45:00 +1000, Chris Angelico wrote: On Tue, Sep 3, 2013 at 12:44 AM, MRAB pyt...@mrabarnett.plus.com wrote: I don't know Greek either, and I don't think there's any other language that uses the Greek alphabet. Assuming you don't count mathematics as a language.

Re: Unable to redirect the subprocess CMD.exe to txt file. Please help !!!

2013-09-03 Thread William Ray Wing
On Sep 3, 2013, at 9:54 AM, Venkatesh venkatesh.to...@gmail.com wrote: Hello comp.lang.python Group, I am trying to invoke a subprocess in Python as below import sys import time import os import subprocess DETACHED_PROCESS = 0x0008 path = r'C:\Windows\System32\cmd.exe /k ping

Re: UnicodeDecodeError issue

2013-09-03 Thread wxjmfauth
Le lundi 2 septembre 2013 16:44:34 UTC+2, MRAB a écrit : On 02/09/2013 13:24, Dave Angel wrote: On 2/9/2013 07:56, MRAB wrote: On 02/09/2013 12:38, Dave Angel wrote: snip ¶γνωστοόνομα συστήματος I don't have a clue what it might be; it's not English, and I

Re: Unable to redirect the subprocess CMD.exe to txt file. Please help !!!

2013-09-03 Thread random832
On Tue, Sep 3, 2013, at 9:54, Venkatesh wrote: Hello comp.lang.python Group, I am trying to invoke a subprocess in Python as below import sys import time import os import subprocess DETACHED_PROCESS = 0x0008 path = r'C:\Windows\System32\cmd.exe /k ping www.google.com -n 4

to be pythonic: should caller or callee log?

2013-09-03 Thread Gildor Oronar
What would you choose? Do you put logging routine into caller or callee? My intuitive answer is callee does the logging, because that's where action takes place, like this: class Account(): def transaction(self, amount, target): logging.info(Start transaction of %s to %s % (amount,

Re: Editing tabular data

2013-09-03 Thread rusi
On Friday, August 2, 2013 12:05:53 PM UTC+5:30, Ben Finney wrote: Skip Montanaro writes: I really love Emacs, however... […] This is clearly a case where choosing the proper tool is important. I agree that using a spreadsheet to edit a 3x5 CSV file is likely overkill (might just as

Re: semicolon at end of python's statements

2013-09-03 Thread Neil Cerutti
On 2013-09-02, Roy Smith r...@panix.com wrote: In article mailman.508.1378143885.19984.python-l...@python.org, albert visser albert.vis...@gmail.com wrote: I like being able to do e.g. with open('some_file') as _in, open('another_file', 'w') as _out: It would be nice if you could

Re: How to split with \ character, and licence copyleft mirror of ©

2013-09-03 Thread random832
On Tue, Sep 3, 2013, at 6:31, Tim Chase wrote: I'd contend that the two primary purposes of raw strings (this is starting to sound like a Spanish Inquisition sketch) are regexes and DOS/Win32 file path literals. And I hit this trailing-backslash case all the time, as Vim's path-completion

Re: semicolon at end of python's statements

2013-09-03 Thread Neil Cerutti
On 2013-09-03, Neil Cerutti ne...@norwich.edu wrote: 3.2 and above provide contextlib.ExitStack, which I just now learned about. with contextlib.ExitStack() as stack: _in = stack.enter_context(open('some_file')) _out = stack.enter_context(open('another_file', 'w')) It ain't

Re: PyPi Module Removal

2013-09-03 Thread Skip Montanaro
I don't really have any way to contact the author of the module. Is there any way to have this deleted/renamed? Not directly, but I opened a ticked in the PyPI bug tracker. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: can't find win32api from embedded pyrun call

2013-09-03 Thread David M. Cotter
I find i'm having this problem, but the solution you found isn't quite specific enough for me to be able to follow it. I'm embedding Python27 in my app. I have users install ActivePython27 in order to take advantage of python in my app, so the python installation can't be touched as it's on

Re: PyPi Module Removal

2013-09-03 Thread Joel Goldstick
On Tue, Sep 3, 2013 at 4:52 PM, Joel Goldstick joel.goldst...@gmail.com wrote: On Tue, Sep 3, 2013 at 4:15 PM, Brian Rak b...@gameservers.com wrote: I was trying to install wxPython earlier today. Not RTFMing, I tried 'easy_install wx', which ended up installing this strange module:

Re: PyPi Module Removal

2013-09-03 Thread Terry Reedy
On 9/3/2013 4:15 PM, Brian Rak wrote: I was trying to install wxPython earlier today. Not RTFMing, I tried 'easy_install wx', which ended up installing this strange module: https://pypi.python.org/pypi/wx Looking at the download stats, it seems to be confusing ~1000 users a month, while not

Re: PyPi Module Removal

2013-09-03 Thread Brian Rak
Thanks! Wasn't really sure where I should have reported that. On 9/3/2013 4:56 PM, Skip Montanaro wrote: I don't really have any way to contact the author of the module. Is there any way to have this deleted/renamed? Not directly, but I opened a ticked in the PyPI bug tracker. Skip --

Re: PyPi Module Removal

2013-09-03 Thread Joel Goldstick
On Tue, Sep 3, 2013 at 4:15 PM, Brian Rak b...@gameservers.com wrote: I was trying to install wxPython earlier today. Not RTFMing, I tried 'easy_install wx', which ended up installing this strange module: https://pypi.python.org/pypi/wx Looking at the download stats, it seems to be confusing

Re: to be pythonic: should caller or callee log?

2013-09-03 Thread Terry Reedy
On 9/3/2013 12:07 PM, Gildor Oronar wrote: What would you choose? Do you put logging routine into caller or callee? My intuitive answer is callee does the logging, because that's where action takes place, like this: class Account(): def transaction(self, amount, target):

PyPi Module Removal

2013-09-03 Thread Brian Rak
I was trying to install wxPython earlier today. Not RTFMing, I tried 'easy_install wx', which ended up installing this strange module: https://pypi.python.org/pypi/wx Looking at the download stats, it seems to be confusing ~1000 users a month, while not providing any significant

unbound method () must be called with ... instance as first argument (got nothing instead)

2013-09-03 Thread Mohsen Pahlevanzadeh
Dear all, I have the following two lines code in my setup frame: // self.showHideConstructor = ui.interface.interface.ShowHide() QtCore.QObject.connect(self.pushButtonAdd,

Re: unbound method () must be called with ... instance as first argument (got nothing instead)

2013-09-03 Thread Mohsen Pahlevanzadeh
Solved, i changed my connect function to: QtCore.QObject.connect(self.pushButtonAdd, QtCore.SIGNAL(_fromUtf8(clicked())),self.showHideConstructor.showFindMaterials) On Wed, 2013-09-04 at 02:00 +0430, Mohsen Pahlevanzadeh wrote: Dear all, I have the following two lines code in my setup frame:

Conflict between Python 2.5 and 2.7

2013-09-03 Thread Errol Anderson
I look after a Delphi program that uses Python 2.5 (via Python for Delphi). A customer who uses a modeling program that requires Python 2.7 experiences a Python conflict when trying to run the Delphi program. I have installed both Python 2.5 and 2.7 on a test-bed computer and can run the Delphi

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread Piet van Oostrum
Ferrous Cranus ni...@superhost.gr writes: Hello, i have written the following snipper of code to help me send mail: [snip] # prepare mail data TO = ni...@superhost.gr SUBJECT = uMail από τον επισκέπτη: ( %s ) % FROM MESSAGE = From: %s\r\n

Re: PyPi Module Removal

2013-09-03 Thread Steven D'Aprano
On Tue, 03 Sep 2013 16:15:07 -0400, Brian Rak wrote: I was trying to install wxPython earlier today. Not RTFMing, I tried 'easy_install wx', which ended up installing this strange module: https://pypi.python.org/pypi/wx Looking at the download stats, it seems to be confusing ~1000 users a

Re: to be pythonic: should caller or callee log?

2013-09-03 Thread Ethan Furman
On 09/03/2013 09:07 AM, Gildor Oronar wrote: What would you choose? Do you put logging routine into caller or callee? My intuitive answer is callee does the logging, because that's where action takes place, like this: class Account(): def transaction(self, amount, target):

Re: PyPi Module Removal

2013-09-03 Thread Skip Montanaro
Ah, Unix users. Who else would imagine that the way to install something called wxPython was to use install wx? I'm not a wxPython user, but it seems the package/module you import in your programs is wx. Not an unreasonable guess at the PyPI package name. Skip --

Re: PyPi Module Removal

2013-09-03 Thread Brian Rak
On 9/3/2013 10:49 PM, Skip Montanaro wrote: Ah, Unix users. Who else would imagine that the way to install something called wxPython was to use install wx? I'm not a wxPython user, but it seems the package/module you import in your programs is wx. Not an unreasonable guess at the PyPI

Re: can't find win32api from embedded pyrun call

2013-09-03 Thread David M. Cotter
note that when the script is called, i DO see this in the output window: 'kJams 2 Debug.exe': Loaded 'C:\Python27\Lib\site-packages\win32\win32api.pyd' 'kJams 2 Debug.exe': Loaded 'C:\Windows\SysWOW64\pywintypes27.dll' 'kJams 2 Debug.exe': Unloaded

Beginner's guide to Python

2013-09-03 Thread Steve Hayes
Can anyone recommend a web site that gives a good beginner's guide to Python? One that tells one, especially -- -- what kind of projects Python is good for -- what kind of projects it is not good for -- a simple explanation of how it works -- a kind of beginner's tutotial and guide to its

[issue18891] Master patch for content manager addtion to email package.

2013-09-03 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: I'm thinking this may be overengineering, but I may as well post it and find out for sure. :-) Is it worth encapsulating MIME types? They're really pairs as far as mail handling applications are concerned, but they have a string representation. So

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
New submission from Jeroen Van Goey: The sample code in the itertools.count documentation should be indented by 4 spaces. For 2.7.4: lines 3429 till 3432 in http://hg.python.org/releasing/2.7.4/file/026ee0057e2d/Modules/itertoolsmodule.c#l3429 For 3.4.0a1: lines 3981 till 3984 in

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Changes by Jeroen Van Goey jeroen.vang...@gmail.com: -- hgrepos: -207 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Patch for Python 2.7.4 attached -- keywords: +patch Added file: http://bugs.python.org/file31571/2.7itertoolsmodule.c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2013-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: We don't have to align EVERY data structure. But I do have immediate beneficial use cases for set tables and for data blocks in deque objects. Can you explain what the use cases are, and post some benchmarking code? Also, what would be the strategy? Would

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Patch for Python 3.4.0a1 attached -- Added file: http://bugs.python.org/file31572/3.4itertoolsmodule.c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31518/fix_for_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849 ___

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31573/temp_dir_exists_retry_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849 ___

[issue18902] Make ET event handling more modular to allow custom targets for the non-blocking parser

2013-09-03 Thread Stefan Behnel
Stefan Behnel added the comment: This would make it possible to layer XMLPullParser on top of the stock XMLParser coupled with a special target that collects events from the callback calls. Given that we have an XMLPullParser now, I think we should not clutter the API with more classes

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-09-03 Thread Jan-Wijbrand Kolman
Jan-Wijbrand Kolman added the comment: Thanks you for the swift followup! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18851 ___ ___

[issue18902] Make ElementTree event handling more modular to allow custom targets for the non-blocking parser

2013-09-03 Thread Stefan Behnel
Stefan Behnel added the comment: (fixing subject to properly hit bug filters) -- title: Make ET event handling more modular to allow custom targets for the non-blocking parser - Make ElementTree event handling more modular to allow custom targets for the non-blocking parser

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31574/temp_dir_exists_retry_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849 ___

[issue18906] Create a way to always run tests in subprocesses within regrtest

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The most natural approach is to have a special attribute set in the module's global dict (for example: __REGRTEST_SUBPROCESS__ = True); however, there's a slight problem with this approach - regrtest has to import the module to see this attribute, and

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2013-09-03 Thread STINNER Victor
STINNER Victor added the comment: Linux provides the following functions: int posix_memalign(void **memptr, size_t alignment, size_t size); void *valloc(size_t size); # obsolete void *memalign(size_t boundary, size_t size); # obsolete Windows provides the following functions: void*

[issue17862] itertools.chunks(iterable, size, fill=None)

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We should distinguish between at least two different functions. One generates slices of input sequence (it is especially useful for strings and bytes objects), and other groups items from arbitrary iterator into tuples. They have different applications.

[issue18911] minidom does not encode correctly when calling Document.writexml

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On Python 3 you should not only open file in text mode with specified encoding, but also specify the xmlcharrefreplace error handler. doc.writexml(open(filename, w, encoding=utf-8, errors=xmlcharrefreplace), , , utf-8) I can suggest only one solution

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
New submission from Matěj Stuchlík: Doing 'valgrind --suppressions=Misc/valgrind-python.supp ./python Lib/tests/test_ssl.py' I'm getting: ==322== LEAK SUMMARY: ==322==definitely lost: 32 bytes in 1 blocks ==322==indirectly lost: 392 bytes in 16 blocks ==322== possibly lost:

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Eli Bendersky
Eli Bendersky added the comment: The fix looks good to me, in general. Could you create a test that goes along? My only (minor) doubt is whether this should be generalized, in two dimensions: 1. PermissionError is mapped from both EACCES and EPERM. So to make the 2.7 patch equivalent with

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: To ensure it's a real memory leak: do the figures increase when the code is called in a loop? I would not consider a single-time malloc (stored in some static variable) to be a leak. -- nosy: +amaury.forgeotdarc

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Eli Bendersky
Eli Bendersky added the comment: LGTM, thanks -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___ Python-bugs-list

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e174ee0575a by Eli Bendersky in branch '3.3': Issue #18912: Fix indentation in docstring http://hg.python.org/cpython/rev/8e174ee0575a New changeset 31ef590a0d2f by Eli Bendersky in branch 'default': Issue #18912: Fix indentation in docstring

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: That's a good idea: NULLBYTECERT = os.path.join(os.path.dirname(__file__) or os.curdir, nullbytecert.pem) for i in xrange(100): p = ssl._ssl._test_decode_cert(NULLBYTECERT) gives ==1647== LEAK SUMMARY: ==1647==definitely lost: 3,200 bytes in 100

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a559cda6a498 by Eli Bendersky in branch '2.7': Close #18912: Fix indentation in docstring http://hg.python.org/cpython/rev/a559cda6a498 -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue18906] Create a way to always run tests in subprocesses within regrtest

2013-09-03 Thread Eli Bendersky
Eli Bendersky added the comment: On Tue, Sep 3, 2013 at 2:32 AM, Serhiy Storchaka rep...@bugs.python.orgwrote: Serhiy Storchaka added the comment: The most natural approach is to have a special attribute set in the module's global dict (for example: __REGRTEST_SUBPROCESS__ = True);

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Could you possibly check this in Python 2.7, 3.2 and 3.3?. Python 2.6 is open ONLY for security fixes, if any. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18913

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: Ah, that is unfortunate. I did check it for 2.7 and 3.4, neither of those leak, I can check it for the rest tomorrow, but I imagine it'll be the same story. -- ___ Python tracker rep...@bugs.python.org

[issue18891] Master patch for content manager addtion to email package.

2013-09-03 Thread R. David Murray
R. David Murray added the comment: It's an interesting thought. It bothered me to be handling them as pure strings when writing the code. It just felt wrong somehow :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18891

[issue5202] wave.py cannot write wave files into a shell pipeline

2013-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is corrected patch (it uses relative seek()) with a lot of tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5202 ___

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: http://hg.python.org/cpython/rev/c4bbda2d4c49 looks relevant. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18913 ___

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Ah, http://hg.python.org/cpython/rev/80d491aaeed2/ as well then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18913 ___

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: Potentially interesting part of the valgrind output: ==21685== 42,400 (3,200 direct, 39,200 indirect) bytes in 100 blocks are definitely lost in loss record 909 of 914 ==21685==at 0x4A0887C: malloc (vg_replace_malloc.c:270) ==21685==by 0x331B06315F:

[issue18913] ssl._ssl._test_decode_cert seems to leak memory with certain certificates in Python 2.6

2013-09-03 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: That seems to be it, no more leaking! Good job! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18913 ___ ___

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-09-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238) - SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

[issue18906] Create a way to always run tests in subprocesses within regrtest

2013-09-03 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/issue18906 ___

[issue16662] load_tests not invoked in package/__init__.py

2013-09-03 Thread Zachary Ware
Zachary Ware added the comment: I took a stab at the doc changes, attached here and including Barry's patch. -- components: +Library (Lib) type: - enhancement versions: +Python 3.4 Added file: http://bugs.python.org/file31575/16662_with_doc.diff ___

[issue18914] Python docs link to terrible outsi

2013-09-03 Thread Brian Mingus
New submission from Brian Mingus: The python documentation links to an outside website for info and examples on http basic auth. This documentation is terrible and confusing. The link should be removed, and user's should be advised to use the Requests library. # this example is from

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +michael.foord title: Python docs link to terrible outsi - Confusing documentation in the urllib2 HOWTO ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18914

[issue16938] pydoc confused by __dir__

2013-09-03 Thread Ethan Furman
Ethan Furman added the comment: I wonder if it would be better to have inspect.classify_class_attrs be improved instead? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16938 ___

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Brian Mingus
Brian Mingus added the comment: The documentation is confusing. Consider this comment: # All calls to urllib2.urlopen will now use our handler # Make sure not to include the protocol in with the URL, or # HTTPPasswordMgrWithDefaultRealm will be very confused. # You must (of course) use it when

[issue18891] Master patch for content manager addtion to email package.

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 03, 2013, at 07:37 AM, Stephen J. Turnbull wrote: I'm thinking this may be overengineering, but I may as well post it and find out for sure. :-) Is it worth encapsulating MIME types? They're really pairs as far as mail handling applications are

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread R. David Murray
R. David Murray added the comment: Suggesting using a 3rd party library in order to explain how to use the python standard library to do something isn't going to work. Would you like to propose an alternate article or an improvement to the howto, using only stdlib facilities? (Note that the

[issue16039] imaplib: unlimited readline() from connection

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- nosy: +barry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16039 ___

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- nosy: +larry priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18747 ___

[issue16201] socket.gethostbyname incorrectly parses ip

2013-09-03 Thread Charles-François Natali
Charles-François Natali added the comment: Here's an updated patch with new tests. It passes the regression test, and yields noticable performance improvements for IPv6: before: $ ./python -m timeit -s import socket; s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM); DATA = b'hello'

[issue16040] nntplib: unlimited readline() from connection

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- nosy: +barry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16040 ___

[issue16038] ftplib: unlimited readline() from connection

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- nosy: +barry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___

[issue16037] httplib: header parsing is not delimited

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037 ___

[issue16042] smtplib: unlimited readline() from connection

2013-09-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: blocker for 2.6.9 -- priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Brian Mingus
Brian Mingus added the comment: Yes - this link was a waste of my time. It would have been better if it had not been there. I propose to replace it with nothing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18914

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread R. David Murray
R. David Murray added the comment: The article is *explaining* basic auth, thus the pedegogy of the presentation, and why it is a see also and not part of the docs proper. I'll admit I don't understand the first part of that comment, since the second part says you do have to put the protocol

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: committed/rejected - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17487

[issue18914] Confusing documentation in the urllib2 HOWTO

2013-09-03 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18914 ___ ___ Python-bugs-list

[issue11126] Wave.py does not always write proper length in header

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11126 ___

[issue18878] Add support of the 'with' statement to sunau.open.

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18878 ___ ___

[issue18878] Add support of the 'with' statement to sunau.open.

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18878 ___ ___

[issue18901] sunau.getparams should return a namedtuple

2013-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18901 ___

  1   2   >