Hello,
The CFP and registration for SciPy India 2014 (http://scipy.in) is open. SciPy
India 2014 will be held in IIT Bombay between December 5th to December 7th, 2014.
Please spread the word!
SciPy India is an annual conference on using Python for science and engineering
research and
- Original Message -
From: C Smith illusiontechniq...@gmail.com
I read that with 2.7 that I had to initialize class variables to
immutable types. I think because I was working with the lists before
they had been altered and were still empty lists. I will mess around
tomorrow with the
On 05/11/2014 06:40, dieter wrote:
Robin Becker ro...@reportlab.com writes:
Is there a way to do pkcs7 / 12 signing with python.
Have you checked whether OpenSSL supports this kind of signing?
If it does, then you likely can use this via several Python wrappings
for OpenSSL.
I checked that
massi_...@msn.com wrote:
Hi everyone,
I'm not really sure if this is the right place to ask about regular
expressions, but since I'm usin python I thought I could give a try
:-)
Here is the problem, I'm trying to write a regex in order to
substitute
all the occurences in the form
Hello everyone,
I'm a Python beginner and just getting familiar with it. (I need it for my
EE B.Sc. project)
For the learning purposes I use IDLE and (Learning Python by written by Mark
Lutz).
Let's say that I have some earlier experience with C language, but still
Python is a different one
Original Message -
From: Ivan Evstegneev webmailgro...@gmail.com
To: python-list@python.org
Sent: Wednesday, 5 November, 2014 12:00:16 PM
Subject: Understanding help command description syntax - explanation needed
So here is the question itself:
If I use the help command to check
I have line 'pythonpythonpyth'. How do I know which word is the foundation
line?.
Other examples:
pythonpythonpyth is python
DOLORIUMD is DOLORIUM
HELLOLHELLO is HELLOL
thewordword is thewordword
I need to know whether the word in the text is repeated and get it. This will
be the key.
--
On 05/11/2014 11:55, Jean-Michel Pichavant wrote:
Original Message -
From: Ivan Evstegneev webmailgro...@gmail.com
To: python-list@python.org
Sent: Wednesday, 5 November, 2014 12:00:16 PM
Subject: Understanding help command description syntax - explanation needed
So here is the
Firtst of all thanks for reply.
brackets [] means that the argument is optional.
That's what I'm talking about (asking actually), where do you know it from?
I mean, if there are some resources, which explain all these syntax
abbreviations? The general concept.
Like this one(just for
On Wed, Nov 5, 2014 at 10:00 PM, Ivan Evstegneev
webmailgro...@gmail.com wrote:
range(start, stop[, step]) - range object
For instance, how do I need to understand that (start,stop[,step]) it’s
just a three numbers?
What do those brackets-- [,] mean?
The docs for range() in Python 3 do
On Wed, Nov 5, 2014 at 7:13 AM, Ivan Evstegneev webmailgro...@gmail.com wrote:
Firtst of all thanks for reply.
brackets [] means that the argument is optional.
That's what I'm talking about (asking actually), where do you know it from?
I know it because I've been a programmer for 39 years.
--
On Wed, Nov 5, 2014 at 11:13 PM, Ivan Evstegneev
webmailgro...@gmail.com wrote:
That's what I'm talking about (asking actually), where do you know it from?
I mean, if there are some resources, which explain all these syntax
abbreviations? The general concept.
Like this one(just for
On Wed, Nov 5, 2014 at 11:13 PM, Ivan Evstegneev
webmailgro...@gmail.com wrote:
That's what I'm talking about (asking actually), where do you know it from?
I mean, if there are some resources, which explain all these syntax
abbreviations? The general concept.
The best way to find clues about
On Wed, Nov 5, 2014 at 10:58 PM, lordvita...@gmail.com wrote:
I have line 'pythonpythonpyth'. How do I know which word is the foundation
line?.
Other examples:
pythonpythonpyth is python
DOLORIUMD is DOLORIUM
HELLOLHELLO is HELLOL
thewordword is thewordword
I need to know whether the
Chris,
You got my point exactly. ^_^ This is not about a range command itself, but
those conventions.
Thanks.
Larry,
That's what I'm talking about (asking actually), where do you know it from?
I know it because I've been a programmer for 39 years.
I didn't intend to offence anyone here.
lordvita...@gmail.com wrote:
I have line 'pythonpythonpyth'. How do I know which word is the foundation
line?. Other examples:
pythonpythonpyth is python
DOLORIUMD is DOLORIUM
HELLOLHELLO is HELLOL
thewordword is thewordword
I need to know whether the word in the text is repeated and get
On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
webmailgro...@gmail.com wrote:
That's what I'm talking about (asking actually), where do you know it from?
I know it because I've been a programmer for 39 years.
I didn't intend to offence anyone here. Just asked a questions ^_^
Don't worry
On 2014-11-05, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
machine code typically implies an instruction set specific
to that machine... ALL computers operate in BINARY logic (a bit only
holds 0 or 1). How you get those bits into the computer is
irrelevant.
Just to muddy the water...
On Wed, 05 Nov 2014 03:58:33 -0800, lordvital21 wrote:
I have line 'pythonpythonpyth'. How do I know which word is the
foundation line?.
Other examples:
pythonpythonpyth is python DOLORIUMD is DOLORIUM HELLOLHELLO is
HELLOL thewordword is thewordword
I need to know whether the word in the
On Thu, Nov 6, 2014 at 2:05 AM, Grant Edwards invalid@invalid.invalid wrote:
On 2014-11-05, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
machine code typically implies an instruction set specific
to that machine... ALL computers operate in BINARY logic (a bit only
holds 0 or 1). How you
On Sun, Nov 2, 2014 at 3:38 PM, Ned Deily n...@acm.org wrote:
In article
cahu5pryq3xegtd-7ahzmdbwk32nprfxz24dfdm1oj-wnmyj...@mail.gmail.com,
Cyd Haselton chasel...@gmail.com wrote:
Just checking: is sincos() the same as sin() and cos()? Nm output for
my toolchain's libm does show sin() and
On Tue, 04 Nov 2014 21:30:06 -0500, Dennis Lee Bieber wrote:
If you have an old system with front-panel toggle switches, you
set the
switches for binary values, and then push the enter switch.
You've booted a PDP-8 then ;)
--
Denis McMahon, denismfmcma...@gmail.com
--
On Wed, Nov 5, 2014 at 7:41 AM, Chris Angelico ros...@gmail.com wrote:
On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
webmailgro...@gmail.com wrote:
That's what I'm talking about (asking actually), where do you know it from?
I know it because I've been a programmer for 39 years.
I didn't
On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell larry.mart...@gmail.com wrote:
And I don't think
Larry was actually offended; it's just that some questions don't
really have easy answers - imagine someone asking a great
mathematician But how do you KNOW that 2 + 2 is 4? Where's it written
I'm looking for real-world uses of collections.Counter, specifically to see if anyone has been surprised by, or had to
spend extra-time debugging, issues with the in-place operators.
Background:
Most Python data types will cause a TypeError to be raised if unusable types
are passed in:
--
I've been developing a little web server. The request handler
subclasses SimpleHTTPRequestHandler. It has a do_GET method which
figures out what work to actually do, then ends with this:
def do_GET(self):
...
sys.stdout.flush()
sys.stderr.flush()
As it's still being
On Wed, Nov 5, 2014 at 10:44 AM, Skip Montanaro
skip.montan...@gmail.com wrote:
I figured everything would be flushed to the respective .stdout and
.stderr files at the end of every request, but that appears not to be
the case.
I stand corrected. I added
print request finished
to
On 5-11-2014 17:44, Skip Montanaro wrote:
As it's still being actively developed, I've been dumping all sorts of
diagnostic prints to stdout and stderr.
Any reason you're not using the logging module and get it all nicely dumped
into a log
file instead?
(asks he who regularly inserts prints
On 5-11-2014 11:14, Robin Becker wrote:
On 05/11/2014 06:40, dieter wrote:
Robin Becker ro...@reportlab.com writes:
Is there a way to do pkcs7 / 12 signing with python.
Have you checked whether OpenSSL supports this kind of signing?
If it does, then you likely can use this via several
Ethan Furman wrote:
I'm looking for real-world uses of collections.Counter, specifically to
see if anyone has been surprised by, or had to spend extra-time debugging,
issues with the in-place operators.
Background:
Most Python data types will cause a TypeError to be raised if unusable
On 2014-11-05 11:58, lordvita...@gmail.com wrote:
I have line 'pythonpythonpyth'. How do I know which word is the foundation
line?.
Other examples:
pythonpythonpyth is python
DOLORIUMD is DOLORIUM
HELLOLHELLO is HELLOL
thewordword is thewordword
I need to know whether the word in the text is
On Wed, Nov 5, 2014 at 11:29 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote:
Any reason you're not using the logging module and get it all nicely dumped
into a log
file instead?
I'm an old fart. What can I say? BITD, (as Irmen is well aware, being
about as old as I am in Python years), print
On 2014-11-05 02:30, Dennis Lee Bieber wrote:
On Tue, 4 Nov 2014 13:45:32 -0300, françai s romaper...@gmail.com
declaimed the following:
I intend to write in lowest level of computer programming as a hobby.
It is true that is impossible write in binary code, the lowest level
of programming
On Thu, Nov 6, 2014 at 4:54 AM, Skip Montanaro skip.montan...@gmail.com wrote:
I'm an old fart. What can I say? BITD, (as Irmen is well aware, being
about as old as I am in Python years), print was all we had. (We also
walked uphill to school in both directions, in the snow.) While I use
the
I thing this work:
stg='pythonpython'
foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ]
On 2014-11-05 11:58, lordvita...@gmail.com wrote:
I have line 'pythonpythonpyth'. How do I know which word is the foundation
line?.
Other examples:
pythonpythonpyth is python
DOLORIUMD is
On 2014-11-05 18:05, C@rlos wrote:
I thing this work:
stg='pythonpython'
foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ]
It doesn't work for the final example or barbaz.
--
https://mail.python.org/mailman/listinfo/python-list
On 11/5/2014 7:41 AM, Chris Angelico wrote:
On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
webmailgro...@gmail.com wrote:
That's what I'm talking about (asking actually), where do you know it from?
I know it because I've been a programmer for 39 years.
I didn't intend to offence anyone
On 11/5/2014 7:31 AM, Ivan Evstegneev wrote:
You got my point exactly. ^_^ This is not about a range command
itself, but those conventions.
The Language Manual 1. Introduction has a section on the grammar
notation conventions. The Library Manual 1. Introduction does not. I
would agree that
On Wednesday 05 November 2014 10:56:57 Larry Martell did opine
And Gene did reply:
On Wed, Nov 5, 2014 at 7:41 AM, Chris Angelico ros...@gmail.com wrote:
On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
webmailgro...@gmail.com wrote:
That's what I'm talking about (asking actually), where
On Tue, Nov 4, 2014 at 9:07 PM, Peter Irbizon peterirbi...@gmail.com wrote:
Hello,
please how can I detect mouse pointer type? I would like to print every
mouse pointer change (arrow, hand, ...) while moving my mouse over screen.
How can I do this? (for now I need it for windows, but
On 05Nov2014 15:38, Denis McMahon denismfmcma...@gmail.com wrote:
On Tue, 04 Nov 2014 21:30:06 -0500, Dennis Lee Bieber wrote:
If you have an old system with front-panel toggle switches, you
set the
switches for binary values, and then push the enter switch.
You've booted a PDP-8 then
On Wed, Nov 5, 2014 at 11:31 PM, Joel Goldstick joel.goldst...@gmail.com
wrote:
On Tue, Nov 4, 2014 at 9:07 PM, Peter Irbizon peterirbi...@gmail.com
wrote:
Hello,
please how can I detect mouse pointer type? I would like to print every
mouse pointer change (arrow, hand, ...) while moving
On Tue, Nov 4, 2014 at 10:39 PM, Cameron Simpson c...@zip.com.au wrote:
Bah! He asked if there were lower levels than binary. Ergo: chip design!
(And microcode, the intermediate layer. Or one of the layers, depending
where you draw the line.) Should we stop before we reach the quantum foam of
My name is Charles Weitzer. I do recruiting with a focus on quantitative
sciences. One of my clients is a machine learning startup
located in Northern California. The founders include a successful veteran
entrepreneur with a PhD in CS from Stanford, while the
other founder is on the faculty at
On 05Nov2014 18:09, Chris Angelico ros...@gmail.com wrote:
On Wed, Nov 5, 2014 at 5:39 PM, Cameron Simpson c...@zip.com.au wrote:
Bah! He asked if there were lower levels than binary. Ergo: chip design!
(And microcode, the intermediate layer. Or one of the layers, depending
where you draw the
On 05/11/2014 17:54, Skip Montanaro wrote:
On Wed, Nov 5, 2014 at 11:29 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote:
Any reason you're not using the logging module and get it all nicely dumped
into a log
file instead?
I'm an old fart. What can I say? BITD, (as Irmen is well aware, being
françai s romaper...@gmail.com Wrote in message:
I intend to write in lowest level of computer programming as a hobby.
It is true that is impossible write in binary code, the lowest level
of programming that you can write is in hex code?
What is the lowest level of programming computers
Chris Angelico ros...@gmail.com Wrote in message:
On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell larry.mart...@gmail.com wrote:
And I don't think
Larry was actually offended; it's just that some questions don't
really have easy answers - imagine someone asking a great
mathematician But how do
On 06/11/2014 02:37, Dave Angel wrote:
Chris Angelico ros...@gmail.com Wrote in message:
On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell larry.mart...@gmail.com wrote:
And I don't think
Larry was actually offended; it's just that some questions don't
really have easy answers - imagine someone
On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote:
On 2014-11-05 18:05, C@rlos wrote:
I thing this work:
stg='pythonpython'
foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ]
It doesn't work for the final example or barbaz.
I have two algorithms I've implemented.
Still not sure
On Thu, Nov 6, 2014 at 1:52 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
Against a requirements specification that changes on a daily basis, I want
it delivered yesterday and no you can't have any more resources to help out,
so don't ask :)
Or maybe Look, I'll give you five bucks if you
On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote:
It doesn't work for the final example or barbaz.
Oh, and we really need a private python homework answers list where we
can discuss the most pythonic solution we can think of for all these
homework / coursework questions without showing the
On Thu, Nov 6, 2014 at 2:36 PM, Denis McMahon denismfmcma...@gmail.com wrote:
On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote:
It doesn't work for the final example or barbaz.
Oh, and we really need a private python homework answers list where we
can discuss the most pythonic solution we can
On Wednesday 05 November 2014 21:52:42 Mark Lawrence did opine
And Gene did reply:
On 06/11/2014 02:37, Dave Angel wrote:
Chris Angelico ros...@gmail.com Wrote in message:
On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell
larry.mart...@gmail.com wrote:
And I don't think
Larry was actually
On Thu, 06 Nov 2014 03:36:40 +, Denis McMahon wrote:
On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote:
It doesn't work for the final example or barbaz.
Oh, and we really need a private python homework answers list where we
can discuss the most pythonic solution we can think of for all
Skip Montanaro skip.montan...@gmail.com Wrote in message:
On Wed, Nov 5, 2014 at 10:44 AM, Skip Montanaro
skip.montan...@gmail.com wrote:
I figured everything would be flushed to the respective .stdout and
.stderr files at the end of every request, but that appears not to be
the case.
I
On Thu, Nov 6, 2014 at 3:00 PM, Denis McMahon denismfmcma...@gmail.com wrote:
def baseword(s):
find shortest sequence which repeats to generate s
return s[0:[.join([s[0:x]for k in range(int(len(s)/x)+1)])[0:len
(s)]for x in range(1,len(s)+1)].index(s)+1]
That's hardly a PEP-8
On Thu, 06 Nov 2014 15:14:05 +1100, Chris Angelico wrote:
On Thu, Nov 6, 2014 at 3:00 PM, Denis McMahon denismfmcma...@gmail.com
wrote:
def baseword(s):
find shortest sequence which repeats to generate s
return s[0:[.join([s[0:x]for k in range(int(len(s)/x)+1)])[0:len
(s)]for x in
On Wednesday, November 5, 2014 9:57:08 PM UTC+5:30, Ethan Furman wrote:
In order to avoid unnecessary code churn (the fix itself is quite simple),
the maintainer of the collections module
wants to know if anybody has actually been affected by these inconsistencies,
and if so, whether it was
On 11/05/2014 03:00 AM, Ivan Evstegneev wrote:
Hello everyone,
I’m a Python beginner and just getting familiar with it. (I need it for my EE
B.Sc. project)
For the learning purposes I use IDLE and (Learning Python by written by Mark
Lutz).
Let’s say that I have some earlier experience with C
Raymond Hettinger added the comment:
However, doing the check on 'other' and raising a TypeError
with an appropriate message would still be better
Let's be clear. These are duck-typed methods. A type check is inappropriate.
Anything with o.items() is allowed regardless of type.
Also, I
Raymond Hettinger added the comment:
I'm sorry but I do not like the proposed patch at all. The wording is awkward
which when iterated and has weird terminology the sequence number.
The OP's concern about the *sequence* versus *iterable* parameter name has been
addressed (it is part of the
Raymond Hettinger added the comment:
Note that Python 3 seems to imply that the end-point is included
The Python 2 wording is better in this regard.
Also, it would be nice clarify what is meant by virtual sequence. I know
what that means only because I already know what range() does. For
Raymond Hettinger added the comment:
The patch looks good. One nit, please change items to typed_items or
somesuch. That will make it clear why there are 3-tuples instead of the
traditional 2-tuple used for normal mappings.
--
nosy: +rhettinger
Raymond Hettinger added the comment:
The patch looks good. One nit, the phrase sorted by their key has an odd
ring to it and is mildly confusing, though technically correct. Perhaps,
sorted alphabetically by key would be better for most folks.
--
Raymond Hettinger added the comment:
Georg's proposed wording reads well and is clearer than the current wording.
The patch is ready to apply.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22525
Raymond Hettinger added the comment:
the primary sort will be on the type of quote used for the repr,
which would be surprising and significantly less useful.
How about: repr(obj).strip('\) ?
Overall, the idea of using repr() in some fashion is appealing because it sorts
on what the user
Michael Foord added the comment:
I agree.
--
title: unittest discovery is fragile - Blacklist FunctionTestCase from test
discovery
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list
Jeffrey Armstrong added the comment:
What's to understand? Some compilers, particularly MinGW and Open Watcom,
already define a PATH_MAX macro on Windows, and it's not necessarily the same
as Python's redefinition of it, possibly causing a compiler error. That's all.
Given the time frame
New submission from Akira Li:
time.tzname is initialized from C tzname variable or tm_zone around Jan, Jul of
the current year.
If time.mktime() is called with a time tuple from the past/future then after
the call time.tzname might be out-of-sync with the corresponding C tzname and
tm_zone
Akira Li added the comment:
I've attached test-timezone-info-is-updated.diff file -- a patch for
Lib/test/test_time.py that demonstrates that time functions fail to update the
timezone info.
The test uses Europe/Moscow timezone but most timezones around the world
had/will have different
STINNER Victor added the comment:
Arfever, Antoine: If buildbots are happy (green), you can close the issue. (I'm
answering to your question on IRC ;-))
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19884
Roundup Robot added the comment:
New changeset 4c260cf1ba39 by Victor Stinner in branch '2.7':
Issue #19753: Fix test_gdb on SystemZ buildbot, ignore warnings
https://hg.python.org/cpython/rev/4c260cf1ba39
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Victor, can this patch be applied to Python 2.7 branch also?
Done. I didn't check the buildbots, but I guess that the issue was already
fixed one year ago...
--
resolution: - fixed
status: open - closed
___
Roundup Robot added the comment:
New changeset 6aaa0aab1e93 by Victor Stinner in branch 'default':
Issue #20597: Remove unused definition of PATH_MAX on Windows, MAXPATHLEN is
https://hg.python.org/cpython/rev/6aaa0aab1e93
--
nosy: +python-dev
___
Changes by Akira Li 4kir4...@gmail.com:
Added file: http://bugs.python.org/file37134/test_mktime_changes_tzname.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22798
___
Roundup Robot added the comment:
New changeset d6fb87972dee by Victor Stinner in branch 'default':
Issue #20597, #21274: Remove unused definition of PATH_MAX on GNU/Hurd,
https://hg.python.org/cpython/rev/d6fb87972dee
--
___
Python tracker
Roundup Robot added the comment:
New changeset d6fb87972dee by Victor Stinner in branch 'default':
Issue #20597, #21274: Remove unused definition of PATH_MAX on GNU/Hurd,
https://hg.python.org/cpython/rev/d6fb87972dee
--
___
Python tracker
STINNER Victor added the comment:
Reopening. I still don't understand the issue for 3.4, especially in the
light of #21274
In Python 3.5, PATH_MAX is no more used in Modules/main.c nor
Python/pythonrun.c. I removed the #define PATH_MAX ... on Windows on Hurd.
This issue is about supporting
STINNER Victor added the comment:
In Python 3.5, PATH_MAX is no more used in Modules/main.c nor
Python/pythonrun.c. I removed the #define PATH_MAX ... on Hurd.
I didn't check Python 3.4.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
Changes by Tim Graham timogra...@gmail.com:
--
nosy: +Tim.Graham
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7559
___
___
Python-bugs-list
New submission from Akira Li:
$ TZ=:Europe/Moscow ./python -mtest -v test_time
==
FAIL: test_localtime_timezone (test.test_time.TestPytime)
--
Traceback
STINNER Victor added the comment:
Here is a patch with a simple unit test.
I chose to modify the pause_reading method of the transport instead of mocking
everything to test the real code (have a better code coverage).
--
Added file:
New submission from Chris PeBenito:
Python 3.3/3.4 sometimes does not recognize a legitimate IPv6Network netmask:
$ python3
Python 3.3.5 (default, May 28 2014, 13:56:57)
[GCC 4.7.3] on linux
Type help, copyright, credits or license for more information.
import ipaddress as ip
nodecon =
Serhiy Storchaka added the comment:
Patch for issue17293 changes tests so that this bug is visible on Posix. And it
fixes this bug itself.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22793
Roundup Robot added the comment:
New changeset 16d6c2443131 by Victor Stinner in branch 'default':
Issue #22793, #22637: Add missing import os in uuid._ifconfig_getnode()
https://hg.python.org/cpython/rev/16d6c2443131
--
nosy: +python-dev
___
Python
Roundup Robot added the comment:
New changeset 16d6c2443131 by Victor Stinner in branch 'default':
Issue #22793, #22637: Add missing import os in uuid._ifconfig_getnode()
https://hg.python.org/cpython/rev/16d6c2443131
--
___
Python tracker
STINNER Victor added the comment:
NameError: name 'os' is not defined
The imports in this module are really weird... But I'm not interested to rework
completly the module, so I just fixed this specific issue.
--
resolution: - fixed
status: open - closed
Serhiy Storchaka added the comment:
How about: repr(obj).strip('\) ?
String can starts or ends with quotes. And string repr can be a part of the
repr of other type (e.g. short list).
--
___
Python tracker rep...@bugs.python.org
Ethan Furman added the comment:
Raymond declared:
Let's be clear. These are duck-typed methods. A type check is inappropriate.
Anything with o.items() is allowed regardless of type.
Wikipedia explains (http://en.wikipedia.org/wiki/Duck_typing):
Serhiy Storchaka added the comment:
This is a duplicate of issue20220.
--
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - TarFile.list() outputs wrong time
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
There is no purpose served by changing the AttributeError into a TypeError.
It's just extra unneeded code.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22766
Ethan Furman added the comment:
I've posted to python-list and python-dev. I'll report back here the findings,
if any.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22766
___
Antoine Pitrou added the comment:
I think it'd be nice if the solution kept the current order when all keys are
orderable (which is a very common case). So IMO repr() should only be used as a
fallback when the object comparison fails.
--
___
Python
David Edelsohn added the comment:
Sorry, I was not aware of the other issue. Three tests seems to have
intermittent failures.
test_datetime
test_tarfile
test_strptime
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22795
David Edelsohn added the comment:
I found the connection but I don't know the cause:
Running test_imaplib prior to either test_datetime or test_tarfile causes the
latter test to fail. test_datetime seems to fix the problem for test_tarfile
if it precedes it.
[1/3] test_imaplib
[2/3]
New submission from Ethan Furman:
test script:
---
from collections import Counter
empty_counter = Counter()
counter = Counter('abbc')
empty_counter = 5
counter = 5
---
results:
---
David Edelsohn added the comment:
Its the @run_with_tz decorations in test_imaplib and test_datetime. The TZ is
not being restored after the test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22795
Changes by Ethan Furman et...@stoneleaf.us:
Removed file: http://bugs.python.org/file37136/issue22778.stoneleaf.01.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22801
___
1 - 100 of 138 matches
Mail list logo