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
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
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,
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
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
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
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),
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
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,
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
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
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
--
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:
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
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={}):
[...]
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,
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
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
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
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
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,
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
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,
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
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
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,
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,
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
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
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.
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.
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
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
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
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:
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
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
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
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
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
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/**
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.
--
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
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
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
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
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
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
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
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
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.
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.
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.
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
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
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
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
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?*
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
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
___
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
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
___
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
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
___
___
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
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:
# -*-
Андрей Р 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()
--
___
Changes by Андрей Р lans...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14560
___
___
Python-bugs-list
Андрей Р lans...@gmail.com added the comment:
Sorry. My fault
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14560
___
___
Python-bugs-list
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
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
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
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14560
___
___
Python-bugs-list
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'):
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
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
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
___
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
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
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
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
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
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).
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
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
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
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:
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
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
___
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
___
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
___
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
___
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
___
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.
--
___
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
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
Changes by Philippe Devalkeneer phil.le.bienheur...@gmail.com:
--
nosy: +flupke
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6717
___
___
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
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
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 - 100 of 165 matches
Mail list logo