Wing IDE 4.1.5 released

2012-04-12 Thread Wingware
Hi, Wingware has released version 4.1.5 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

[Windows] drag-and-drop onto .py file in modern versions?

2012-04-12 Thread Karl Knechtel
Hello all, Back when I had 2.6.x installed, I used to be able to drag a file onto a .py file in order to open it with that script (rather, pass the name of the file as `sys.argv[1]`). I did nothing special to make this work, as far as I can recall; it was something that the installer set up

Re: functions which take functions

2012-04-12 Thread Tim Roberts
Kiuhnm kiuhnm03.4t.yahoo.it wrote: That won't do. A good example is when you pass a function to re.sub, for instance. This is an odd request. I often pass functions to functions in order to simulate a C switch statement, such as in a language translator: commands = { 'add': doAdd,

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Julien Phalip
Hi Michael, Thanks again for your reply. I've tried using SMTP with TLS. And again it works with the VPN turned on but it still won't work with the VPN turned off. For some reason I don't understand, it simply won't instantiate the SMTP/SMTP_SSL/IMAP4/IMAP4_SSL objects at all and will hang

Re: [Windows] drag-and-drop onto .py file in modern versions?

2012-04-12 Thread Chris Angelico
On Thu, Apr 12, 2012 at 4:02 PM, Karl Knechtel zahl...@gmail.com wrote: Aside: when I double-click a .py file, what determines which Python will run it? Is it a matter of which appears first in the PATH, or do I have to set something else in the registry? Will a shebang line override the

Is it possible develop applications in python for android and which IDE could you recommend me (Eclipse, ...)???

2012-04-12 Thread sisifus
Hello all, I would like to know if it's possible develop android applications with python, making the apk package, etc. I don't want program from an android device only want to make programs for android from my PC. If it's possible which IDE could you recommend me? Thanks for your help Regards

Sockets accept() in child processes

2012-04-12 Thread Thibaut DIRLIK
Hi, I'm writing a multiprocess server with Python 3.2 and the multiprocessing module. Here is my current implementation : - Main process: select() on a list of server sockets (different ips of the host, ssl or not, etc) - Children process : When they get a signal (in fact, a message in a pipe),

is this foolish?

2012-04-12 Thread Cameron Simpson
I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased: class RuleState(object): def __init__(self, M, maildb_path, maildirs={}): [...] self.maildirs

Re: is this foolish?

2012-04-12 Thread Chris Angelico
On Thu, Apr 12, 2012 at 7:35 PM, Cameron Simpson c...@zip.com.au wrote: I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased:    class RuleState(object):        def __init__(self,

Re: is this foolish?

2012-04-12 Thread Cameron Simpson
On 12Apr2012 19:43, Chris Angelico ros...@gmail.com wrote: | On Thu, Apr 12, 2012 at 7:35 PM, Cameron Simpson c...@zip.com.au wrote: | I've found myself using a Python gotcha as a feature. | I've got a budding mail filter program which keeps rule state in a | little class instance. Slightly

Error in MD5 checksums of the 2.7.3 release page.

2012-04-12 Thread Jérémy Bethmont
Hello, There is an error in the MD5 checksums section of the following page:     http://python.org/download/releases/2.7.3/ Python-3.1.5.tgz, Python-3.1.5.tar.bz2 and Python-3.1.5.tar.xz are listed instead of: Python-2.7.3.tgz, Python-2.7.3.tar.bz2 and Python-2.7.3.tar.xz Best, -- Jérémy

Re: is this foolish?

2012-04-12 Thread Tim Golden
On 12/04/2012 10:35, Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. Have a look at Peter Inglesby's lightning talk from a recent London Python Dojo: http://inglesp.github.com/2012/03/24/mutable-default-arguments.html TJG --

Re: is this foolish?

2012-04-12 Thread Karl Knechtel
On Thu, Apr 12, 2012 at 7:15 AM, Tim Golden m...@timgolden.me.uk wrote: On 12/04/2012 10:35, Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. Have a look at Peter Inglesby's lightning talk from a recent London Python Dojo:

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Christian Heimes
Am 12.04.2012 08:56, schrieb Julien Phalip: Hi Michael, Thanks again for your reply. I've tried using SMTP with TLS. And again it works with the VPN turned on but it still won't work with the VPN turned off. For some reason I don't understand, it simply won't instantiate the

Re: is this foolish?

2012-04-12 Thread Jean-Michel Pichavant
Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased: class RuleState(object): def __init__(self, M, maildb_path, maildirs={}): [...]

Re: is this foolish?

2012-04-12 Thread Andrea Crotti
On 04/12/2012 10:35 AM, Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased: class RuleState(object): def __init__(self, M, maildb_path,

Coping with risk of decision - modeling of scenarios of parameters of the model in python

2012-04-12 Thread John Oksz
Hello, I work with energy planning on municipal level. I have an energy supply deterministic model for municipal customer. Now I want to coping with uncertainty and risk of decision choosing one energy supply option for implementing in real. Some parameters of my deterministic model (energy

Re: [Windows] drag-and-drop onto .py file in modern versions?

2012-04-12 Thread Mark Lawrence
On 12/04/2012 08:00, Chris Angelico wrote: On Thu, Apr 12, 2012 at 4:02 PM, Karl Knechtelzahl...@gmail.com wrote: Aside: when I double-click a .py file, what determines which Python will run it? Is it a matter of which appears first in the PATH, or do I have to set something else in the

Re: is this foolish?

2012-04-12 Thread gene heskett
On Thursday, April 12, 2012 10:40:47 AM Tim Golden did opine: On 12/04/2012 10:35, Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. Tim: your setup of using the CC: line for every thing with a blank To: line is landing your posts in my spam folder. Do you have

Re: functions which take functions

2012-04-12 Thread Kiuhnm
On 4/11/2012 16:01, Antti J Ylikoski wrote: On 9.4.2012 21:57, Kiuhnm wrote: Do you have some real or realistic (but easy and self-contained) examples when you had to define a (multi-statement) function and pass it to another function? Thank you. Kiuhnm A function to numerically integrate

Re: functions which take functions

2012-04-12 Thread Kiuhnm
On 4/12/2012 8:07, Tim Roberts wrote: Kiuhnmkiuhnm03.4t.yahoo.it wrote: That won't do. A good example is when you pass a function to re.sub, for instance. This is an odd request. All shall be revealed :) I often pass functions to functions in order to simulate a C switch statement,

Zipping a dictionary whose values are lists

2012-04-12 Thread tkpmep
I using Python 3.2 and have a dictionary d = {0:[1,2], 1:[1,2,3], 2:[1,2,3,4]} whose values are lists I would like to zip into a list of tuples. If I explicitly write: list(zip([1,2], [1,2,3], [1,2,3,4]) [(1, 1, 1), (2, 2, 2)] I get exactly what I want. On the other hand, I have tried

Re: Zipping a dictionary whose values are lists

2012-04-12 Thread Pavel Anossov
zip(*d.values()) On 12 April 2012 20:28, tkp...@gmail.com wrote: I using Python 3.2 and have a dictionary d = {0:[1,2], 1:[1,2,3], 2:[1,2,3,4]} whose values are lists I would like to zip into a list of tuples. If I explicitly write: list(zip([1,2], [1,2,3], [1,2,3,4]) [(1, 1, 1), (2, 2,

Re: Zipping a dictionary whose values are lists

2012-04-12 Thread Kiuhnm
On 4/12/2012 18:28, tkp...@gmail.com wrote: I using Python 3.2 and have a dictionary d = {0:[1,2], 1:[1,2,3], 2:[1,2,3,4]} whose values are lists I would like to zip into a list of tuples. If I explicitly write: list(zip([1,2], [1,2,3], [1,2,3,4]) [(1, 1, 1), (2, 2, 2)] I get exactly what

Re: Zipping a dictionary whose values are lists

2012-04-12 Thread Peter Otten
tkp...@gmail.com wrote: I using Python 3.2 and have a dictionary d = {0:[1,2], 1:[1,2,3], 2:[1,2,3,4]} whose values are lists I would like to zip into a list of tuples. If I explicitly write: list(zip([1,2], [1,2,3], [1,2,3,4]) [(1, 1, 1), (2, 2, 2)] I get exactly what I want. On the

Re: Zipping a dictionary whose values are lists

2012-04-12 Thread Dan Sommers
On Thu, 12 Apr 2012 09:28:03 -0700 (PDT) tkp...@gmail.com wrote: I using Python 3.2 and have a dictionary d = {0:[1,2], 1:[1,2,3], 2:[1,2,3,4]} whose values are lists I would like to zip into a list of tuples. If I explicitly write: list(zip([1,2], [1,2,3], [1,2,3,4]) [(1, 1, 1), (2, 2,

Re: Is it possible develop applications in python for android and which IDE could you recommend me (Eclipse, ...)???

2012-04-12 Thread Dan Stromberg
http://code.google.com/p/android-scripting/ However, I've not used it, and I'm told it requires a stub for each new android method exposed to python. I find it a little regrettable that they didn't start frp, jython or pypy for jvm instead of cpython, to avoid all the stubbing. On Thu, Apr 12,

Re: Sockets accept() in child processes

2012-04-12 Thread Dan Stromberg
I wonder if this'll do what you need: https://trac.calendarserver.org/browser/CalendarServer/trunk/twext/python/sendfd.py On Thu, Apr 12, 2012 at 2:31 AM, Thibaut DIRLIK merwin@gmail.comwrote: Hi, I'm writing a multiprocess server with Python 3.2 and the multiprocessing module. Here is

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Dan Stromberg
Are you quite sure that your iPhone isn't using some sort of VPN? On my Android phone, I need a VPN client to access my work mail, but I install it once and forget about it; it doesn't require me to enter my password more than once. On Fri, Mar 30, 2012 at 10:39 PM, Julien jpha...@gmail.com

Re: functions which take functions

2012-04-12 Thread Jan Kuiken
On 4/9/12 20:57 , Kiuhnm wrote: Do you have some real or realistic (but easy and self-contained) examples when you had to define a (multi-statement) function and pass it to another function? I don't use it daily but the first argument of list.sort, i.e. the compare function springs to mind.

Re: python module development workflow

2012-04-12 Thread John Nagle
On 4/11/2012 1:04 PM, Miki Tebeka wrote: Could any expert suggest an authoritative and complete guide for developing python modules? Thanks! I'd start with http://docs.python.org/distutils/index.html Make sure that python setup.py build python setup.py install works.

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Dan Stromberg
Maybe it's a matter of two different protocols, one requiring a VPN, one not. You could perhaps try a sniffer to check that out. Where to place the sniffer could be complicated though. On Fri, Mar 30, 2012 at 10:39 PM, Julien jpha...@gmail.com wrote: Hi, I'm able to connect to an Exchange

Deep merge two dicts?

2012-04-12 Thread Roy Smith
Is there a simple way to deep merge two dicts? I'm looking for Perl's Hash::Merge (http://search.cpan.org/~dmuey/Hash-Merge-0.12/Merge.pm) in Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sockets accept() in child processes

2012-04-12 Thread Merwin
Le 12/04/2012 19:10, Dan Stromberg a écrit : I wonder if this'll do what you need: https://trac.calendarserver.org/browser/CalendarServer/trunk/twext/python/sendfd.py The problem is that this is Linux-only solution, and I would like to keep a multi-platform compatibility. There are other

Re: Deep merge two dicts?

2012-04-12 Thread John Nagle
On 4/12/2012 10:41 AM, Roy Smith wrote: Is there a simple way to deep merge two dicts? I'm looking for Perl's Hash::Merge (http://search.cpan.org/~dmuey/Hash-Merge-0.12/Merge.pm) in Python. def dmerge(a, b) : for k in a : v = a[k] if isinstance(v, dict) and k in b:

multiprocessing and Array problems

2012-04-12 Thread Al Niessner
I am not subscribed to these lists but I do check them occasionally and will check them more frequently looking for a response. I am getting a pickling error that I do not understand. It seems the shared arrays that I create cannot be pickled. Makes the multiprocessing.Array fairly useless if it

Re: multiprocessing and Array problems

2012-04-12 Thread Al Niessner
Here is an update. def subproc (i): print (From subprocess + str(i)) print (b[:]) return if __name__ == __main__: nproc = 3 print (\nBuilding the array for the second computation.) b = multiprocessing.Array (ctypes.c_double, nproc*nproc, lock=False) print

Re: Deep merge two dicts?

2012-04-12 Thread Ian Kelly
On Thu, Apr 12, 2012 at 11:59 AM, John Nagle na...@animats.com wrote: On 4/12/2012 10:41 AM, Roy Smith wrote: Is there a simple way to deep merge two dicts?  I'm looking for Perl's Hash::Merge (http://search.cpan.org/~dmuey/Hash-Merge-0.12/Merge.pm) in Python. def dmerge(a, b) :   for k

Re: Error in MD5 checksums of the 2.7.3 release page.

2012-04-12 Thread Terry Reedy
On 4/12/2012 6:11 AM, Jérémy Bethmont wrote: There is an error in the MD5 checksums section of the following page: http://python.org/download/releases/2.7.3/ Python-3.1.5.tgz, Python-3.1.5.tar.bz2 and Python-3.1.5.tar.xz are listed instead of: Python-2.7.3.tgz, Python-2.7.3.tar.bz2 and

Re: multiprocessing and Array problems

2012-04-12 Thread MRAB
On 12/04/2012 19:30, Al Niessner wrote: Here is an update. def subproc (i): print (From subprocess + str(i)) print (b[:]) return if __name__ == __main__: nproc = 3 print (\nBuilding the array for the second computation.) b = multiprocessing.Array

Re: Sockets accept() in child processes

2012-04-12 Thread Dan Stromberg
On Thu, Apr 12, 2012 at 10:48 AM, Merwin merwin@gmail.com wrote: Le 12/04/2012 19:10, Dan Stromberg a écrit : I wonder if this'll do what you need: https://trac.calendarserver.**org/browser/CalendarServer/**

Re: older woman and young guy

2012-04-12 Thread jimmy970
http://porn-extreme.2304310.n4.nabble.com/ http://porn-extreme.2304310.n4.nabble.com/ -- View this message in context: http://python.6.n6.nabble.com/AMPUTEE-INCEST-MIDGET-2012-tp4708963p4864079.html Sent from the Python - python-list mailing list archive at Nabble.com. --

Re: Why does this hang sometimes?

2012-04-12 Thread Jesse Jaggars
Possibly. I wonder what the difference(s) is(are)? On Sat, Apr 7, 2012 at 5:54 PM, Jason Friedman ja...@powerpull.net wrote: I am just playing around with threading and subprocess and found that the following program will hang up and never terminate every now and again. import threading

GNTP not connecting

2012-04-12 Thread milosh zorica
hey folks seems GNTP doesn't work for me. the growl app itself works cool import gntp.notifier gntp.notifier.mini(message) - Traceback (most recent call last): File stdin, line 1, in module File

Re: GNTP not connecting

2012-04-12 Thread Chris Angelico
On Fri, Apr 13, 2012 at 7:32 AM, milosh zorica miloshzor...@gmail.com wrote:    s.connect((self.hostname, self.port)) socket.error: [Errno 61] Connection refused This is saying that the computer at that hostname is running, but no program is listening on that port. Maybe you have the host/port

Re: Deep merge two dicts?

2012-04-12 Thread Kiuhnm
On 4/12/2012 19:59, John Nagle wrote: On 4/12/2012 10:41 AM, Roy Smith wrote: Is there a simple way to deep merge two dicts? I'm looking for Perl's Hash::Merge (http://search.cpan.org/~dmuey/Hash-Merge-0.12/Merge.pm) in Python. def dmerge(a, b) : for k in a : v = a[k] if

Re: GNTP not connecting

2012-04-12 Thread Chris Angelico
On Fri, Apr 13, 2012 at 7:44 AM, milosh zorica miloshzor...@gmail.com wrote: yes but what? everything else works cool and i can connect via socket from python On Thu, Apr 12, 2012 at 6:38 PM, Chris Angelico ros...@gmail.com wrote: On Fri, Apr 13, 2012 at 7:32 AM, milosh zorica

Re: GNTP not connecting

2012-04-12 Thread milosh zorica
thanks On Thu, Apr 12, 2012 at 7:30 PM, Chris Angelico ros...@gmail.com wrote: On Fri, Apr 13, 2012 at 7:44 AM, milosh zorica miloshzor...@gmail.com wrote: yes but what? everything else works cool and i can connect via socket from python On Thu, Apr 12, 2012 at 6:38 PM, Chris Angelico

Re: is this foolish?

2012-04-12 Thread Cameron Simpson
On 12Apr2012 10:44, gene heskett ghesk...@wdtv.com wrote: | On Thursday, April 12, 2012 10:40:47 AM Tim Golden did opine: | On 12/04/2012 10:35, Cameron Simpson wrote: | I've found myself using a Python gotcha as a feature. | | Tim: your setup of using the CC: line for every thing with a

remainder of dividing by zero

2012-04-12 Thread Ethan Furman
Okay, so I haven't asked a stupid question in a long time and I'm suffering withdrawal symptoms... ;) 5 % 0 = ? It seems to me that the answer should be 5: no matter how many times we add 0 to itself, the remainder of the intermediate step will be 5. Is there a postulate or by definition

Re: functions which take functions

2012-04-12 Thread Kiuhnm
On 4/12/2012 19:29, Jan Kuiken wrote: On 4/9/12 20:57 , Kiuhnm wrote: Do you have some real or realistic (but easy and self-contained) examples when you had to define a (multi-statement) function and pass it to another function? I don't use it daily but the first argument of list.sort, i.e.

Re: remainder of dividing by zero

2012-04-12 Thread Terry Reedy
On 4/12/2012 6:34 PM, Ethan Furman wrote: Okay, so I haven't asked a stupid question in a long time and I'm suffering withdrawal symptoms... ;) 5 % 0 = ? It seems to me that the answer should be 5: no matter how many times we add 0 to itself, the remainder of the intermediate step will be 5.

Re: remainder of dividing by zero

2012-04-12 Thread MRAB
On 12/04/2012 23:34, Ethan Furman wrote: Okay, so I haven't asked a stupid question in a long time and I'm suffering withdrawal symptoms... ;) 5 % 0 = ? It seems to me that the answer should be 5: no matter how many times we add 0 to itself, the remainder of the intermediate step will be 5.

Re: Mouse LED Control in Python

2012-04-12 Thread Shaunda
How can I make a battery powered http://www.ledstrips8.com/led-light-bars-c-38.html led strip 12v with 3 way switches? My goal is to make a long line of grouped LEDs that is battery powered and can be turned on or off from 2 different locations. I'm trying to make a lighting system that doesn't

Re: python module development workflow

2012-04-12 Thread rusi
On Apr 11, 8:38 pm, Peng Yu pengyu...@gmail.com wrote: On Apr 11, 10:25 am, John Gordon gor...@panix.com wrote: In 2900f481-fbe9-4da3-a7ca-5485d1ceb...@m13g2000yqc.googlegroups.com Peng Yu pengyu...@gmail.com writes: It is confusing to me what the best workflow is for python module

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: +def time_independent_equals(a, b): +if len(a) != len(b): +return False This is not time independent. Is it an issue? +if type(a[0]) is int: It's better to write isinstance(a, bytes). You should raise a TypeError if a

[issue1859] textwrap doesn't linebreak on \n

2012-04-12 Thread Otto Kekäläinen
Otto Kekäläinen o...@seravo.fi added the comment: As a note to comments msg60038-msg60040, for anybody like me who ended up here after Googling around on how to do wordwrap in Python: The function textwrap in Python is for single strings/paragraphs only, and it does not work as wordwrap

[issue1859] textwrap doesn't linebreak on \n

2012-04-12 Thread Otto Kekäläinen
Otto Kekäläinen o...@seravo.fi added the comment: In previous comment: (eg. Wordwrap in Python) - (wordwrap() in PHP) Some examples of how this function works on text blocks: Original text: -- *Maksaako riippuvuus yksittäisestä ohjelmistoyritykstä Helsingille vuosittain 3,4 miljoonaa euroa?*

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-12 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Your three step approach makes sense... But it _is_ still technically a new API though in that the UTF8BOM placeholder for LogRecord's is being introduced. What would the behavior be when run on an older version without support for that

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: ISTM that meta / is neither valid HTML nor valid XHTML. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14538 ___

[issue14559] (2.7.3 Regression) PC\8.0 directory can no longer be used to build on windows

2012-04-12 Thread Mitchell Blank Jr
New submission from Mitchell Blank Jr m-pyt...@bodyfour.com: In the diff between 2.7.2 and 2.7.3, we see: --- Python-2.7.2/PCbuild/pythoncore.vcproj 2011-06-11 08:46:27.0 -0700 +++ Python-2.7.3/PCbuild/pythoncore.vcproj 2012-04-09 16:07:35.0 -0700 @@ -1835,6 +1835,10

[issue14554] test module: correction

2012-04-12 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file25187/correction.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14554 ___

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a patch. -- keywords: +patch stage: test needed - patch review Added file: http://bugs.python.org/file25188/issue14538.diff ___ Python tracker rep...@bugs.python.org

[issue12537] mailbox's _become_message is very fragile

2012-04-12 Thread David Lam
David Lam d...@dlam.me added the comment: Wow, cool! Thanks for the update. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12537 ___ ___

[issue14548] garbage collection just after multiprocessing's fork causes exceptions

2012-04-12 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: That's a problem indeed. Perhaps we need a global fork lock shared between subprocess and multiprocessing? I did an atfork patch which included a (recursive) fork lock.  See    http://bugs.python.org/review/6721/show The patch

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
New submission from Андрей Р lans...@gmail.com: Issue can be found only in 2.7, in 2.6.6 it works System: Linux strix 3.2.14-1-ARCH x86_64 Python information: Python 2.7.2 (default, Jan 31 2012, 13:19:49) [GCC 4.6.2 20120120 (prerelease)] on linux2 Snippet to reproduce error: # -*-

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Андрей Р lans...@gmail.com added the comment: # -*- encoding: utf-8 -*- import urllib2 request = urllib2.Request('http://google.com', u'Контент'.encode(utf-8), {'Content-Type': 'text/plain; charset=utf-8'}) urllib2.urlopen(request).read() -- ___

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Changes by Андрей Р lans...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Андрей Р lans...@gmail.com added the comment: Sorry. My fault -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-12 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: What would the behavior be when run on an older version without support for that placeholder be? Then it would fail when the format string contained e.g. %(UTF8BOM)s and there was no corresponding attribute in the LogRecord - but that's

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2012-04-12 Thread Nick
Nick spaun2002mob...@gmail.com added the comment: I faced with the issue on my own PC. For a Russian version of WinOS default PC name is ИВАН-ПК (C8 C2 C0 CD 2D CF CA in hex) and it returns from gethostbyaddr (CRT) exactly in this form (encoded with system locale cp1251 not UTF8). So when the

[issue14561] python-2.7.2-r3 suffers test failure at test_mhlib

2012-04-12 Thread Ian Delaney
New submission from Ian Delaney del...@iinet.com.au: Testing test suite of pyth-2.7. Re-running failed tests in verbose mode Re-running test 'test_mhlib' in verbose mode test_basic (test.test_mhlib.MhlibTests) ... ok test_listfolders (test.test_mhlib.MhlibTests) ... FAIL It seems to be pinned

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list

[issue14557] HP-UX libraries not included

2012-04-12 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Hello Adi, Thanks for your patch. Just a detail: if platform == 'hp-ux11': lib_dirs += ['/usr/lib/hpux64', '/usr/lib/hpux32'] Wouldn't it be more robust as: if platform.startswith('hp-ux'):

[issue14557] HP-UX libraries not included

2012-04-12 Thread Adi Roiban
Adi Roiban a...@roiban.ro added the comment: Hi, startswith('hp-ux') should also work as in real world it should be synonym with hp-ux11 ... see my reasoning below I used 'hp-ux11' since this was the system I have access to and can test and I was not brave enought to assume that the patch

[issue14412] Sqlite Integer Fields

2012-04-12 Thread Mendez
Mendez goatsofmen...@users.sourceforge.net added the comment: I've tested the released 2.7.3 and this works fine so there must just have been some oddity with the packaging of sqlite in rc2. -- ___ Python tracker rep...@bugs.python.org

[issue14412] Sqlite Integer Fields

2012-04-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Great! -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14412 ___

[issue14562] urllib2 maybe blocks too long

2012-04-12 Thread Anrs Hu
New submission from Anrs Hu anders.x...@gmail.com: If HTTP URL response's Transfer-Encoding is 'Chunked', then the urllib2.urlopen(URL).readline() will block until there're enough 8192 bytes, even though the first chunk is just a line. Every chunks should be processed as soon as posible, so

[issue14562] urllib2 maybe blocks too long

2012-04-12 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I am trying to this test this to determine the fault. -- assignee: - orsenthil nosy: +orsenthil versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue14556] telnetlib Telnet.expect fails with timeout=0

2012-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, so there are actually two timeouts of interest. One is time out if there is no more data for X seconds, and the other is time out if there is no match for X seconds. It used to do the former, now it does the latter. I think you

[issue14563] Segmentation fault on ctypes.Structure subclass with byte string field names

2012-04-12 Thread aliles
New submission from aliles aaron.i...@gmail.com: Python 3.2 will exit with a segmentation fault if a byte string is used as a field name in a subclass of ctypes.Structure. Python 3.2.2 (default, Dec 18 2011, 18:56:20) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on

[issue14399] zipfile and creat/update comment

2012-04-12 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Thank you, the TypeError test helped me find the error. Here is the corrected patch. For 2.7 it was necessary to turn the ZipFile in the new-style class. -- Added file: http://bugs.python.org/file25190/fix_zipfile_comment_4.patch

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Jon Oberheide
Jon Oberheide j...@oberheide.org added the comment: This is not time independent. Is it an issue? You're correct, the length check does leak the length of the expected digest as a performance enhancement (otherwise, your comparison runtime is bounded by the length of the attackers input).

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: -1 on that particular patch. tagname / (with only whitespace between / and ) strikes me as obviously intending to close the tag, and a reasonably common error. I can't think of any reason to support nested meta tags while not supporting

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You could rewrite: result |= x ^ y as: result |= (x != y) Of course, this assumes that the != operator is constant-time for 1-element strings. -- nosy: +pitrou ___ Python tracker

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: This issue is also marked for (bugfix-only) 2.7 and 3.2. Unless there is a specification somewhere (or at least an editor's draft), I can't really see any particular parse as a bugfix. Was the goal just to make the parse finish, as opposed

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Jon Oberheide
Jon Oberheide j...@oberheide.org added the comment: You could rewrite: result |= x ^ y as: result |= (x != y) You could, but it's best not to introduce any conditional branching based if at all possible. For reference, see:

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread sbt
sbt shibt...@gmail.com added the comment: Why not just def time_independent_equals(a, b): return len(a) == len(b) and sum(x != y for x, y in zip(a, b)) == 0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14532

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file24281/5458412752d5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file24283/f86bb02fd8f4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file25192/aa2dcffa267f.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file25193/1e4d2c51b2d9.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue1859] textwrap doesn't linebreak on \n

2012-04-12 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Cooking recipe for Otto: def wrap_paragraphs(text, width=70, **kwargs): return [line for para in text.splitlines() for line in textwrap.wrap(para, width, **kwargs)] -- nosy: +storchaka ___

[issue14399] zipfile and creat/update comment

2012-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks. We've had trouble in the past with a conversion to new style class breaking people's code. People are less likely to be subclassing ZipFile, though, so it is probably OK. -- ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Published diff from stock 2.7.3. Cleanups and simplifications. Marc, could you possible compile under MacOS X both 2.7 and 3.3 branches, both in 32 and 64 bits?. The tags are: dtrace-issue13405 - 3.3a2+ dtrace-issue13405_2.7 - 2.7.3 Let

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread Tom Bachmann
Tom Bachmann e_mc...@web.de added the comment: Hello, [this is my first bug report, so I'm sorry if I'm not adhering to some conventions] in what versions of python is this supposed to be fixed? Consider: % python Python 2.7.2+ (default, Nov 30 2011, 19:22:03) [GCC 4.6.2] on linux2 Type

[issue6717] Some problem with recursion handling

2012-04-12 Thread Philippe Devalkeneer
Changes by Philippe Devalkeneer phil.le.bienheur...@gmail.com: -- nosy: +flupke ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6717 ___ ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: PHP 5.4.0 added DTRACE support: http://fr2.php.net/ChangeLog-5.php The python window for 3.3 closes mid june. Let's do not miss it this time :-). -- ___ Python tracker rep...@bugs.python.org

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: To be consistent, this patch should remove the references to http://www.w3.org/TR/html5/tokenization.html#tag-open-state and http://www.w3.org/TR/html5/tokenization.html#tag-open-state as irrelevant. -- nosy: +storchaka

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It is fixed in Python3. Apparently Raymond was wrong about it having been fixed earlier (or perhaps he was referring to the unicode being removed from the pydoc __credits__ string). -- nosy: +r.david.murray

  1   2   >