This is generic colouriser, version 1.3.
grc is a colouriser configured by regular expressions, including
a simple command line wrapper for some commonly used unix commands.
Changes in this version:
- catch SIGPIPE
- add several configuration files
- preliminary python3 support (as a
On Wed, 14 Aug 2013 13:05:50 -0400, random832 wrote:
On Wed, Aug 14, 2013, at 10:32, wxjmfa...@gmail.com wrote:
I'm always and still be suprised by the number of hard coded '\n' one
can find in Python code when the portable (here win)
os.linesep
'\r\n'
exists.
Because high-level
On Thursday, August 15, 2013 1:34:38 AM UTC+3, Dennis Lee Bieber wrote:
On Wed, 14 Aug 2013 06:18:08 -0700 (PDT), Guy Tamir guytam...@gmail.com
declaimed the following:
Hi all,
I have a Ubuntu server running NGINX that logs data for me.
Is the log coming from NGINX
On Wed, 14 Aug 2013 14:16:31 +, climb65 wrote:
Hello,
here is a small basic question :
Is it possible to have more than one constructor (__init__ function) in
a class? For instance, to create an object with 2 different ways? If my
memory is good, I think that with C++ it is possible.
On Wednesday, August 14, 2013 4:46:09 PM UTC+3, mar...@python.net wrote:
On Wed, Aug 14, 2013, at 09:18 AM, Guy Tamir wrote:
Hi all,
I have a Ubuntu server running NGINX that logs data for me.
I want to write a python script that reads my customized logs and after
a little
Le mercredi 14 août 2013 19:14:59 UTC+2, Chris Angelico a écrit :
On Wed, Aug 14, 2013 at 6:05 PM, random...@fastmail.us wrote:
On Wed, Aug 14, 2013, at 10:32, wxjmfa...@gmail.com wrote:
I'm always and still be suprised by the number of hard coded
'\n' one can find in Python code
Joshua Landau jos...@landau.ws wrote:
That's true with this example, but is:
lines = [
Developments in high-speed rail, and high-speed,
transport more generally, have historically been,
impeded by the difficulties in managing friction,
and air resistance, both of which
Hi,
I am really new in python programming and I want to build a class that perform
various functions to the content(or lines) of any given file. I want to first
include the opening and reading file function into that class, then add other
methods.
Here is what I wrote for opening file and
On Thu, Aug 15, 2013 at 10:33 AM, Joug Raw joug...@gmail.com wrote:
class FileOpration:
def __init__(self,name):
self.name = name
self.filename = self.name
def readAllline(self):
open(self.name).readlines()
file1 = FileOpration(myfile.txt)
print
A technical ascpect of triple quoted strings is
that the end of lines are not respected.
import zzz
zzz.__doc__
'abc\ndef\n'
with open('zzz.py', 'rb') as fo:
... r = fo.read()
...
r
b'abc\r\ndef\r\n\r\n'
Now, one can argue...
jmf
--
On Thu, Aug 15, 2013 at 10:46 AM, wxjmfa...@gmail.com wrote:
A technical ascpect of triple quoted strings is
that the end of lines are not respected.
import zzz
zzz.__doc__
'abc\ndef\n'
with open('zzz.py', 'rb') as fo:
... r = fo.read()
...
r
b'abc\r\ndef\r\n\r\n'
Now, one can
I agree with Steven here.
classmethod is the best practise, most practical, readable, future-proof,
one obvious way to do it.
On 15 Aug 2013 08:29, Steven D'Aprano st...@pearwood.info wrote:
On Wed, 14 Aug 2013 14:16:31 +, climb65 wrote:
Hello,
here is a small basic question :
Is
On Thu, 15 Aug 2013 02:46:20 -0700, wxjmfauth wrote:
A technical ascpect of triple quoted strings is that the end of lines
are not respected.
import zzz
zzz.__doc__
'abc\ndef\n'
You are misinterpreting what you are seeing. You are not reading lines of
text from a file. You are importing
In article 520c81f6$0$29885$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano st...@pearwood.info wrote:
[1] The constructor is __new__, not __init__. __init__ is called to
initialise the instance after __new__ constructs it.
True, but be warned that writing your own __new__() is quite
I perfectly knows what Python does.
I missinterpreting nothing.
I opened my example in binary mode just to show the real
endings.
It still remains the ... has its owns EOL and one
has to be aware of it.
No more, no less.
(... and tokenize.py is funny)
jmf
--
Hi All,
Presently Iam working with QTP(VBscript)..Now planning to learn PYTHON..Could
you please suggest me like is ti good to learn what is the present condition
for Python in IT Companies..
Iam not thinking abt only testing purpose even Iam interested to shift to
development side on python..
wxjmfa...@gmail.com writes:
As a stupid scientist, I have the habbit to compare
things of the same nature with the same units.
This *string* containing one *character*
sys.getsizeof('a')
26
consumes 26 *bytes*.
I'm not an expert in stupid science, and I fail to see the common
nature of
On 15/08/2013 15:38, Lele Gaifax wrote:
wxjmfa...@gmail.com writes:
As a stupid scientist, I have the habbit to compare
things of the same nature with the same units.
This *string* containing one *character*
sys.getsizeof('a')
26
consumes 26 *bytes*.
I'm not an expert in stupid science,
MRAB pyt...@mrabarnett.plus.com writes:
On 15/08/2013 15:38, Lele Gaifax wrote:
wxjmfa...@gmail.com writes:
PS A mole is not a number.
Oh, nice to know. And OOC, what is a mole in your stupid science?
OTOH, WTF does that matter in current thread and with Python in general?
A mole is a
On Thu, Aug 15, 2013 at 4:30 PM, Lele Gaifax l...@metapensiero.it wrote:
MRAB pyt...@mrabarnett.plus.com writes:
On 15/08/2013 15:38, Lele Gaifax wrote:
wxjmfa...@gmail.com writes:
PS A mole is not a number.
Oh, nice to know. And OOC, what is a mole in your stupid science?
OTOH, WTF does
On Wed, Aug 14, 2013 at 01:17:40AM +0100, Rhodri James wrote:
On Wed, 14 Aug 2013 00:10:41 +0100, Jack Bates tdh...@nottheoilrig.com
wrote:
Can anyone suggest a way to get a pair of file descriptor numbers such
that data written to one can be read from the other and vice versa?
Is
On Wed, Aug 14, 2013 at 01:55:38AM +0100, Chris Angelico wrote:
On Wed, Aug 14, 2013 at 1:17 AM, Rhodri James
rho...@wildebst.demon.co.uk wrote:
On Wed, 14 Aug 2013 00:10:41 +0100, Jack Bates tdh...@nottheoilrig.com
wrote:
Can anyone suggest a way to get a pair of file descriptor numbers
On Wed, Aug 14, 2013 at 08:34:36AM +, Antoine Pitrou wrote:
Nobody nobody at nowhere.com writes:
On Tue, 13 Aug 2013 16:10:41 -0700, Jack Bates wrote:
Is there anything like os.pipe() where you can read/write both ends?
There's socket.socketpair(), but it's only available on Unix.
I don't know how to completely solve this problem, but here is something
that can alleviate it considerably.
If you have a recent version of pip, you can use wheels [1] to save built
packages locally. First create a new virtualenv and install the common
packages. Then put these packages in a
hi, I'm using nose to generate and run some tests not for python code, but for
an html repository. I know this isn't the typical way to use nose, and so I'm
asking here if the following code smells wrong.
I pass some args with the testconfig plugin and run a class setup method one
time to get
On Thu, Aug 15, 2013 at 10:21 AM, prem kumar premiaskuma...@gmail.com wrote:
Hi All,
Presently Iam working with QTP(VBscript)..Now planning to learn PYTHON..Could
you please suggest me like is ti good to learn what is the present condition
for Python in IT Companies..
I don't really
On 15 August 2013 16:43, Chris Angelico ros...@gmail.com wrote:
A mole is as much a number (6e23) as the light year is a number (9.5e15).
A mole is a number. A light year is a unit.
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, August 15, 2013 4:21:43 PM UTC+2, prem kumar wrote:
Hi All,
Presently Iam working with QTP(VBscript)..Now planning to learn PYTHON..Could
you please suggest me like is ti good to learn what is the present condition
for Python in IT Companies..
Iam not thinking abt only
Hi,
I want to use http post to upload data to a webserver but I want to pass
multiple arguments within the post i.e.
I know that you can load one item (data)in there like this:
data = {data:open(filename,rb)}
response = opener.open(url, data,
Jack Bates tdhfwh at nottheoilrig.com writes:
An alternative is to use multiprocessing.Pipe():
http://docs.python.org/3.3/library/multiprocessing.html#multiprocessing.Pipe
In any case, Python doesn't lack facilities for doing what you want.
Thank you for your help, I need to satisfy
On Thu, Aug 15, 2013 at 5:54 PM, Joshua Landau jos...@landau.ws wrote:
On 15 August 2013 16:43, Chris Angelico ros...@gmail.com wrote:
A mole is as much a number (6e23) as the light year is a number (9.5e15).
A mole is a number. A light year is a unit.
A mole is an amount of something.
On 15 August 2013 19:28, Chris Angelico ros...@gmail.com wrote:
On Thu, Aug 15, 2013 at 5:54 PM, Joshua Landau jos...@landau.ws wrote:
On 15 August 2013 16:43, Chris Angelico ros...@gmail.com wrote:
A mole is as much a number (6e23) as the light year is a number (9.5e15).
A mole is a number.
Hi,
I have code like this:
root@lin-ser-1:~# cat /usr/local/www/wsgi-scripts/myapp.py
def application(environ, start_response):
import sys
...
status = '200 OK'
req_method=environ['REQUEST_METHOD']
if req_method == 'POST' :
json_received =
Hi,
I have a Python script that is executing an http POST to transfer a file from
the client to the server. I have achieved this with below code:
from binascii import hexlify, unhexlify
from httplib import HTTPConnection, HTTPException
import os
import hashlib
import socket
import urllib2
On 8/15/2013 2:28 PM, Chris Angelico wrote:
On Thu, Aug 15, 2013 at 5:54 PM, Joshua Landau jos...@landau.ws wrote:
On 15 August 2013 16:43, Chris Angelico ros...@gmail.com wrote:
A mole is as much a number (6e23) as the light year is a number (9.5e15).
A mole is a number. A light year is a
Terry Reedy wrote:
On 8/15/2013 2:28 PM, Chris Angelico wrote:
On Thu, Aug 15, 2013 at 5:54 PM, Joshua Landau jos...@landau.ws wrote:
On 15 August 2013 16:43, Chris Angelico ros...@gmail.com wrote:
A mole is as much a number (6e23) as the light year is a number (9.5e15).
A mole is a number.
On Thu, Aug 15, 2013 at 7:12 PM, cerr ron.egg...@gmail.com wrote:
multipart = ({data:data}, {fname:fname}, {f:f})
but I get an error saying 'tuple' object has no attribute 'items'... how do
I do this correctly?
You're no longer providing a dictionary, but a tuple of dictionaries.
On Thu, 15 Aug 2013 16:43:41 +0100, Chris Angelico wrote:
A mole is as much a number (6e23) as the light year is a number
(9.5e15).
Not quite. A mole (abbreviation: mol) is a name for a specific number,
like couple (2) or dozen (12) or gross (144), only much bigger: 6.02e23.
And I can't
On Thu, 15 Aug 2013 19:28:46 +0100, Chris Angelico wrote:
On Thu, Aug 15, 2013 at 5:54 PM, Joshua Landau jos...@landau.ws wrote:
On 15 August 2013 16:43, Chris Angelico ros...@gmail.com wrote:
A mole is as much a number (6e23) as the light year is a number
(9.5e15).
A mole is a number. A
On Thu, 15 Aug 2013 17:40:43 -0400, Terry Reedy wrote:
On 8/15/2013 2:28 PM, Chris Angelico wrote:
On Thu, Aug 15, 2013 at 5:54 PM, Joshua Landau jos...@landau.ws
wrote:
On 15 August 2013 16:43, Chris Angelico ros...@gmail.com wrote:
A mole is as much a number (6e23) as the light year is a
In article 520da6d1$0$3$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
On Thu, 15 Aug 2013 16:43:41 +0100, Chris Angelico wrote:
A mole is as much a number (6e23) as the light year is a number
(9.5e15).
Not quite. A mole
On Thu, 15 Aug 2013 22:56:57 +, Dave Angel wrote:
To expand a little on that, the unit of amount of something is a gram
mole, which is 6.2 **23 grams times the molecular (or atomic) weight.
The unit of amount of substance is mole. Gram-mole is an unfortunate
synonym for mole. Unfortunate,
On Fri, 16 Aug 2013 04:39:16 +, Steven D'Aprano wrote:
On Thu, 15 Aug 2013 22:56:57 +, Dave Angel wrote:
To expand a little on that, the unit of amount of something is a
gram mole, which is 6.2 **23 grams times the molecular (or atomic)
weight.
The unit of amount of substance is
Roy Smith wrote:
In article 520da6d1$0$3$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
On Thu, 15 Aug 2013 16:43:41 +0100, Chris Angelico wrote:
A mole is as much a number (6e23) as the light year is a number
(9.5e15).
Not quite.
Serhiy Storchaka added the comment:
Could you please provide a simple script which shows the problem?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18744
___
Serhiy Storchaka added the comment:
Perhaps it worth manually inline unicode_eq() in these tight inner loops. Then
we can move PyUnicode_GET_LENGTH(a) * PyUnicode_KIND(a) out of the loop.
--
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18743
___
Michal Vyskocil added the comment:
The fast scalars approach looks great!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18682
___
___
New submission from Vajrasky Kok:
Test enum json in Lib/test/test_json/test_enum.py is ignorant of infinity
values. Also, NaN, but since NaN is a weirdo, let's not take that into account.
The unit test should represent of what will work in every case. For example:
def test_floats(self):
Antoine Pitrou added the comment:
Or we can wrap the resolve_address() method with the @functools.lru_cache()
decorator.
Sounds ok to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16463
STINNER Victor added the comment:
In issue #18719, Raymond modified Python 2.7, but he didn't touch the following
macro:
#define Py_UNICODE_MATCH(string, offset, substring) \
((*((string)-str + (offset)) == *((substring)-str)) \
((*((string)-str + (offset) + (substring)-length-1) ==
Christian Heimes added the comment:
It's also bad for memory read performance if the string is rather long. The
memory controller performs best when code reads memory sequential. The talk
http://www.youtube.com/watch?v=MC1EKLQ2Wmg about mythbusting modern hardware
sums it up real nice.
koobs added the comment:
As per our IRC conversation, our 'koobs-freebsd10' bot also reproduces the
failure and can be used to test the patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18296
Roundup Robot added the comment:
New changeset 924d327da3af by Victor Stinner in branch '3.3':
Issue #18296: Try to fix TestSendfile.test_trailers() of test_os on FreeBSD
http://hg.python.org/cpython/rev/924d327da3af
New changeset 92039fb68483 by Victor Stinner in branch 'default':
(Merge 3.3)
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +koobs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18746
___
___
Python-bugs-list
New submission from STINNER Victor:
The following test fails on FreeBSD buildbot:
def test_finalize_with_trace(self):
# Issue1733757
# Avoid a deadlock when sys.settrace steps into threading._shutdown
assert_python_ok(-c, if 1:
import sys, threading
Changes by STINNER Victor victor.stin...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file31299/finalize_clear_trace.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18746
Peter Otten added the comment:
Note that set operations on dict views work with lists, too. So the only change
necessary is to replace
wrong_fields = [k for k in rowdict if k not in self.fieldnames]
with
wrong_fields = rowdict.keys() - self.filenames
(A backport to 2.7 would need to replace
Mark Dickinson added the comment:
Ah, Tim saw through my cunningly-laid false trail of incorrect issue numbers.
Step 1 of my world domination plan is foiled!
Yes, let's fix this. In my mind, it's definitely a bug that ints and longs
aren't interchangeable here, and it would be nice to have
Changes by Julian Berman julian+python@grayvines.com:
--
nosy: +Julian
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18335
___
___
New submission from Christian Heimes:
A couple of reports and check-in messages like
Postgres / pgcrypto CVE-2013-1900
http://bugs.ruby-lang.org/issues/4579
http://www.exim.org/lurker/message/20130402.171710.92f14a60.fi.html
suggests that OpenSSL's PRNG should be reset or re-seeded after
Antoine Pitrou added the comment:
Are there any uses of the OpenSSL PRNG from Python?
Is the PRNG used for SSL session keys, or another mechanism?
--
nosy: +pitrou, sbt
type: security - enhancement
versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
Changes by Antoine Pitrou pit...@free.fr:
--
stage: test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18335
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16500
___
___
Python-bugs-list mailing
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18747
___
___
Python-bugs-list mailing
Christian Heimes added the comment:
The ssl module exposes OpenSSL's PRNG and advertises the API as secure CPRNG:
http://docs.python.org/3/library/ssl.html#random-generation
OpenSSL uses its own PRNG to create (amongst others) session keys for SSL
connections.
--
Antoine Pitrou added the comment:
Using the custom builders, it seems to happen randomly in test_rlock:
test_rlock (test.test_multiprocessing_spawn.WithManagerTestLock) ... Assertion
failed: !collecting, file ..\Modules\gcmodule.c, line 1617
ok
Antoine Pitrou added the comment:
The ssl module exposes OpenSSL's PRNG and advertises the API as secure
CPRNG: http://docs.python.org/3/library/ssl.html#random-generation
AFAICT, Python's PRNG isn't reset after fork, so I don't think OpenSSL's
should be reset.
OTOH, multiprocessing does
Christian Heimes added the comment:
Python doesn't have a builtin PRNG. We use the OS's CPRNG such as /dev/urandom
or CryptGenRandom(). Both use a system wide state and are not affected by
process state. OpenSSL's PRNG is different because it uses an internal state.
AFAIK it only polls the
New submission from Maries Ionel Cristian:
Running the file couple of times will make the interpreter fail with:
libgcc_s.so.1 must be installed for pthread_cancel to work
From what I've seen it is triggered from PyThread_delete_key (tries to load
libgcc_s.so at that time).
How does it
Antoine Pitrou added the comment:
Python doesn't have a builtin PRNG.
Of course it does. It's in the random module, and you can seed() it:
random.seed(5)
random.random()
0.6229016948897019
random.random()
0.7417869892607294
random.seed(5)
random.random()
0.6229016948897019
See e.g.
Christian Heimes added the comment:
Am 15.08.2013 15:14, schrieb Antoine Pitrou:
Python doesn't have a builtin PRNG.
Of course it does. It's in the random module, and you can seed() it:
Now you are nit-picking. Although random is a PRNG, it is not a CPRNG.
I'm clearly talking about the
Antoine Pitrou added the comment:
When the OpenSSL's CPRNG is already initialized before 3) than all child
processes created by 3) will have almost the same PRNG state. According
to http://bugs.ruby-lang.org/issues/4579 the PRNG will return the same
value when PID numbers are recycled.
New submission from Steven D'Aprano:
I hope I'm doing the right thing by replying in-line. This is my first code
review, please let me know if I'm doing something wrong.
By the way, the email hasn't gone to the tracker again. Is that a bug in the
tracker? I've taken the liberty of changing
Ezio Melotti added the comment:
I hope I'm doing the right thing by replying in-line. This is my
first code review, please let me know if I'm doing something wrong.
By the way, the email hasn't gone to the tracker again. Is that a
bug in the tracker? I've taken the liberty of changing the
Christian Heimes added the comment:
Updated patch.
I'm going to add documentation when everybody is happy with the patch.
--
nosy: +pitrou
Added file: http://bugs.python.org/file31302/hashlib_abc2.patch
___
Python tracker rep...@bugs.python.org
Ben North added the comment:
Is anything further needed from me before this can be reviewed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18533
___
Changes by Christian Heimes li...@cheimes.de:
--
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18532
___
Christian Heimes added the comment:
The builtin hash algorithms still had upper case names. I fixed it in
revision http://hg.python.org/cpython/rev/9a4949f5d15c
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18532
Terry J. Reedy added the comment:
Please visit
http://www.python.org/psf/contrib/
http://www.python.org/psf/contrib/contrib-form/
and submit a Contributor Agreement. This process is complete when '*' appears
after your name here, as with mine and others.
--
Changes by Larry Hastings la...@hastings.org:
--
nosy: +larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13248
___
___
Python-bugs-list mailing
New submission from Andrew Svetlov:
I think this is a bug.
Can be reproduced on all Pythons (from 2.6 to 3.4a).
Maybe should be fixed for 3.4 only as backward incompatible change.
--
messages: 195263
nosy: asvetlov
priority: normal
severity: normal
status: open
title: ''' % [1] doens't
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13248
___
___
Python-bugs-list
STINNER Victor added the comment:
This issue was already discussed in the atfork issue:
http://bugs.python.org/issue16500#msg179838
See also:
http://www.openwall.com/lists/oss-security/2013/04/12/3
I believe it is wrong to fix this in PostgreSQL. Rather, this is a
bug in the OpenSSL fork
STINNER Victor added the comment:
Another link:
http://article.gmane.org/gmane.comp.encryption.openssl.user/48480/match=does+child+process+still+need+reseeded+after+fork
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18747
Antoine Pitrou added the comment:
Ok, I enabled faulthandler in the child process and I got the explanation:
http://buildbot.python.org/all/builders/AMD64%20Windows%20Server%202008%20%5BSB%5D%20custom/builds/5/steps/test/logs/stdio
multiprocessing's manager Server uses daemon threads... Daemon
New submission from Antoine Pitrou:
The Server class in multiprocessing.managers creates daemon threads and never
joins them. This is in contrast with e.g. the Pool class, which creates daemon
threads but uses util.Finalize to join them.
(not joining daemon threads may have adverse effects
R. David Murray added the comment:
What is it that doesn't fail? The expression in the title is the beginning of
a triple quoted string with no closing triple quote.
If you mean '' % [1] not falling, it has been that way forever (well, python2.4
is as far back as I can test), so if it is
STINNER Victor added the comment:
I don't understand why str % list and str % dict behaves differently than str %
int:
'abc' % [1]
'abc'
'abc' % ([1],)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: not all arguments converted during string formatting
'abc' %
Antoine Pitrou added the comment:
Thanks. One more question: is there a reason you don't simply call getvalue()
at the end (rather than seek(0) followed by several readline() calls)?
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 0e9d41edb2e4 by Terry Jan Reedy in branch '2.7':
Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
http://hg.python.org/cpython/rev/0e9d41edb2e4
New changeset c4cac5d73e9d by Terry Jan Reedy in branch '3.3':
Issue
R. David Murray added the comment:
haypo: str % dict is a feature:
%(a)s % {'a': 1, 'b': 2}
'1'
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18750
___
Tim Peters added the comment:
+1 on fixing it in 2.7, for the reasons Mark gave.
Way back when I introduced the original scheme, log(a_long) raised an
exception, and the `int` and `long` types had a much higher wall between them.
The original scheme changed an annoying failure into a pretty
Andrew Svetlov added the comment:
For dict it is correct from my perspective.
% {'a': 'b'}
tries to substitute format specs like %(a)s and does nothing if spec is not
present.
But list case like
% [1]
confuse me.
--
___
Python tracker
Roundup Robot added the comment:
New changeset 47307e7c80e1 by Terry Jan Reedy in branch '2.7':
Issue #18226: Fix ImportError and subsequent TypeError in 2.7 backport.
http://hg.python.org/cpython/rev/47307e7c80e1
--
___
Python tracker
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - fixed
superseder: - IdleHistory.History: eliminate unused parameter; other cleanup.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18425
Changes by Terry J. Reedy tjre...@udel.edu:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18425
___
___
Python-bugs-list
Terry J. Reedy added the comment:
test.regrtest is semi-useless, at least for idle, in 2.7 -- see commit message.
First run single file directly or python -m test.test_idle.
--
___
Python tracker rep...@bugs.python.org
K Richard Pixley added the comment:
New info...
I see the degradation on most of the linux boxes I've tried:
* ubuntu-13.04, (raring), 64-bit
* rhel-5.4 64-bit
* rhel-5.7 64-bit
* suse-11 64-bit
I see some degradation on MacOsX-10.8.4 but it's in the acceptable range, more
like 2x than 60x.
K Richard Pixley added the comment:
Here's a script that tests for the problem.
--
Added file: http://bugs.python.org/file31303/tarproblem.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18744
1 - 100 of 140 matches
Mail list logo