Hi,
I'm pleased to announce the release of circuits 3.0
This is a major release after more than a year of development. There may be
breaking changes compared to circuits 2.x so please be sure to review the
ChangeLog[1] and relevant documentation[2].
Some highlights:
- Greatly simplified API
-
I really enjoy engineering at school and we make like fighting robots and
stuff(simple stuff of course) and i really enjoy it. I have got a raspberry pi
and a decent understanding of python and i want to do make stuff like RC cars
and drones and stuff. Also I like electronics. Is there any good
For future reference, here is a hint as to how to debug problems like this,
and a cleaner way to write the code.
Seymore4Head wrote:
On Sat, 30 Aug 2014 13:48:09 -0500, Tim Chase
python.l...@tim.thechases.com wrote:
if e[0].isupper == False:
print (False)
if e[0].isupper ==
Seymore4Head wrote:
That would work now, but I didn't even know no.isupper() was command
until 15 min ago. :)
I have been told that one is a method and the other calls a method. I
still have to learn exactly what that means. I'm getting there.
Indeed you are :-)
Command, in Python,
On Sun, Aug 31, 2014 at 6:37 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
- Use print() to see the intermediate results:
a = e[0].isupper
print(e[0], a, a == False, a == True)
And I'll add to this: *Copy and paste* the original code to craft this
output statement. I
Okay. Got it now. Your help is much appreciated. Thanks.
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I have a puzzle, for which I would appreciate your opinion on!
I have been trying to setup a project in Pycharm with psycopg2.
If I install it using pip install it is added. However if I use the Pycharm
preferencesproject interpreteradd package option it fails with the below
message.
coolbut at what industry are you aiming for? I'm willing to try my hand to
model shiphull.
On Wednesday, October 21, 2009 5:04:11 AM UTC+7, jelle feringa wrote:
Hi,
I'm wondering whether someone has experience / code / pointers on
how to write FEM meshes to Abacus ( Simulia, whatever
Actually I realise that postgres app didn't come from brew I wonder if
that's the issue
On Sunday, 31 August 2014 15:19:24 UTC+1, andyd...@gmail.com wrote:
Hi,
I have a puzzle, for which I would appreciate your opinion on!
I have been trying to setup a project in Pycharm with
On Sun, Aug 31, 2014 at 4:19 PM, andydtay...@gmail.com wrote:
Hi,
I have a puzzle, for which I would appreciate your opinion on!
That’s not much of a puzzle (a game, toy, or problem designed to test
ingenuity or knowledge, as defined by Oxford American College
Dictionary via
On 2014-08-31 14:19:24 +, andydtay...@gmail.com said:
- Installing to a virtualenv python environment.
Are you using the virtualenv interpreter as the Pycharm project interpreter?
--
Andrea
--
https://mail.python.org/mailman/listinfo/python-list
Hi
I have a function that reads some meta data from a database and builds a
default order by and where clause for a table.
some details,
rows is a list of pyOdbc.Row and will look like this
[1, 'ColumnName', 3, 5]
there will be one to n elements
EmptyString, defaultColumn,
On 2014-08-31 18:37, Dennis E. Evans wrote:
Hi
I have a function that reads some meta data from a database and builds a
default order by and where clause for a table.
some details,
rows is a list of pyOdbc.Row and will look like this
[1, 'ColumnName', 3, 5]
there will be one to n
Tinkering around with a little script, I found myself with the need
to walk a directory tree and process mail messaged found within.
Sometimes these end up being mbox files (with multiple messages
within), sometimes it's a Maildir structure with messages in each
individual file and extra holding
On Sun, Aug 31, 2014 at 11:45 AM, Tim Chase
python.l...@tim.thechases.com wrote:
Tinkering around with a little script, I found myself with the need
to walk a directory tree and process mail messaged found within.
Sometimes these end up being mbox files (with multiple messages
within),
On 8/31/2014 2:45 PM, Tim Chase wrote:
Tinkering around with a little script, I found myself with the need
to walk a directory tree and process mail messaged found within.
Sometimes these end up being mbox files (with multiple messages
within), sometimes it's a Maildir structure with messages in
import math
import random
import sys
ex='Hey buddy get away from the car'
newex = ex.split()
sentence=
print (newex)
wait = input ( Wait)
def pigword(test):
for x in range(len(test)):
if test[x] in AEIOUaeiou:
stem = test [x:]
prefix = test [:x]
I forgot to mention this is supposed to be piglatin. It prints the
prefix and the suffix before printing the translated word.
On Sun, 31 Aug 2014 17:02:51 -0400, Seymore4Head
Seymore4Head@Hotmail.invalid wrote:
import math
import random
import sys
ex='Hey buddy get away from the car'
newex =
On 31/08/2014 22:02, Seymore4Head wrote:
import math
import random
import sys
ex='Hey buddy get away from the car'
newex = ex.split()
sentence=
print (newex)
wait = input ( Wait)
def pigword(test):
for x in range(len(test)):
Please read up on how to use for loops as the above
On 2014-08-31 22:02, Seymore4Head wrote:
import math
import random
import sys
ex='Hey buddy get away from the car'
newex = ex.split()
sentence=
print (newex)
wait = input ( Wait)
def pigword(test):
for x in range(len(test)):
if test[x] in AEIOUaeiou:
stem =
On Sun, 31 Aug 2014 22:38:12 +0100, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 31/08/2014 22:02, Seymore4Head wrote:
import math
import random
import sys
ex='Hey buddy get away from the car'
newex = ex.split()
sentence=
print (newex)
wait = input ( Wait)
def
On 08/31/2014 03:02 PM, Seymore4Head wrote:
def pigword(test):
for x in range(len(test)):
if test[x] in AEIOUaeiou:
stem = test [x:]
prefix = test [:x]
pigword = stem + prefix + ay
print (Stem ,stem)
print
On Sun, 31 Aug 2014 22:53:01 +0100, MRAB pyt...@mrabarnett.plus.com
wrote:
On 2014-08-31 22:02, Seymore4Head wrote:
import math
import random
import sys
ex='Hey buddy get away from the car'
newex = ex.split()
sentence=
print (newex)
wait = input ( Wait)
def pigword(test):
On 31/08/2014 23:04, Seymore4Head wrote:
On Sun, 31 Aug 2014 22:38:12 +0100, Mark Lawrence
This is Python so please get rid of those unnecessary brackets.
Having brackets must have been required in earlier versions maybe.
No :)
--
My fellow Pythonistas, ask not what our language can do
On Sun, 31 Aug 2014 16:10:27 -0600, Michael Torrie torr...@gmail.com
wrote:
On 08/31/2014 03:02 PM, Seymore4Head wrote:
def pigword(test):
for x in range(len(test)):
if test[x] in AEIOUaeiou:
stem = test [x:]
prefix = test [:x]
pigword = stem
On Sun, 31 Aug 2014 22:38:12 +0100, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 31/08/2014 22:02, Seymore4Head wrote:
import math
import random
import sys
ex='Hey buddy get away from the car'
newex = ex.split()
sentence=
print (newex)
wait = input ( Wait)
def
MRAB wrote:
On 2014-08-31 18:37, Dennis E. Evans wrote:
Hi
I have a function that reads some meta data from a database and builds a
default order by and where clause for a table.
Is the a way to build the strings with out using the intermediate
list?
the end result needs to
On 31/08/2014 23:42, Seymore4Head wrote:
On Sun, 31 Aug 2014 22:38:12 +0100, Mark Lawrence
Unnecessary brackets?
I tried deleting the brackets and that doesn't seem to work. I tried
changing the brackets to parenthesizes and that didn't work. Although
I would prefer brackets to parenthesizes
Chris-
I have removed the second copy of postgres I had (postgres.app) and updated
path variables in .bash_profile:
export PATH=$PATH:/usr/local/share/python
export PATH=$PATH:/usr/local/bin
export PYTHONPATH=$PYTHONPATH:/usr/local/bin/python
export
Chris-
I have removed the second copy of postgres I had (postgres.app) and updated
path variables in .bash_profile:
export PATH=$PATH:/usr/local/share/python
export PATH=$PATH:/usr/local/bin
export PYTHONPATH=$PYTHONPATH:/usr/local/bin/python
export
FYI My mac version is Mavericks 10.9.4
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, 31 Aug 2014 16:10:27 -0600, Michael Torrie torr...@gmail.com
wrote:
On 08/31/2014 03:02 PM, Seymore4Head wrote:
def pigword(test):
for x in range(len(test)):
if test[x] in AEIOUaeiou:
stem = test [x:]
prefix = test [:x]
pigword = stem
On Mon, 01 Sep 2014 00:21:14 +0100, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 31/08/2014 23:42, Seymore4Head wrote:
On Sun, 31 Aug 2014 22:38:12 +0100, Mark Lawrence
Unnecessary brackets?
I tried deleting the brackets and that doesn't seem to work. I tried
changing the brackets to
On 2014-09-01 01:04, Seymore4Head wrote:
On Sun, 31 Aug 2014 16:10:27 -0600, Michael Torrie torr...@gmail.com
wrote:
On 08/31/2014 03:02 PM, Seymore4Head wrote:
def pigword(test):
for x in range(len(test)):
if test[x] in AEIOUaeiou:
stem = test [x:]
prefix
I have gone ahead and set it all up by using pip install psycopg2 but I would
still like to determine why Pycharm couldn't find the $PATH variable
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 01 Sep 2014 01:23:36 +0100, MRAB pyt...@mrabarnett.plus.com
wrote:
On 2014-09-01 01:04, Seymore4Head wrote:
On Sun, 31 Aug 2014 16:10:27 -0600, Michael Torrie torr...@gmail.com
wrote:
On 08/31/2014 03:02 PM, Seymore4Head wrote:
def pigword(test):
for x in range(len(test)):
On 01/09/2014 00:57, andydtay...@gmail.com wrote:
FYI My mac version is Mavericks 10.9.4
Please equip yourself with a tool that provides us with some context.
There's not much that we can make out of the one line you give above.
--
My fellow Pythonistas, ask not what our language can do
On 01/09/2014 01:08, Seymore4Head wrote:
On Mon, 01 Sep 2014 00:21:14 +0100, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 31/08/2014 23:42, Seymore4Head wrote:
On Sun, 31 Aug 2014 22:38:12 +0100, Mark Lawrence
Unnecessary brackets?
I tried deleting the brackets and that doesn't seem to
On 31Aug2014 13:45, Tim Chase python.l...@tim.thechases.com wrote:
Tinkering around with a little script, I found myself with the need
to walk a directory tree and process mail messaged found within.
Sometimes these end up being mbox files (with multiple messages
within), sometimes it's a
On 8/31/14 8:56 PM, Mark Lawrence wrote:
On 01/09/2014 01:08, Seymore4Head wrote:
On Mon, 01 Sep 2014 00:21:14 +0100, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 31/08/2014 23:42, Seymore4Head wrote:
On Sun, 31 Aug 2014 22:38:12 +0100, Mark Lawrence
Unnecessary brackets?
I tried deleting
Seymore4Head wrote:
'my' doesn't contain a vowel, therefore the condition of the 'if'
statement in 'pigword' is never true, therefore it never binds to the
name 'pigword'.
Ah. The piglatin example says to use y as a vowel. I forgot to
include it.
Doesn't matter. What if one of the words
On Mon, 01 Sep 2014 12:12:20 +1000, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Seymore4Head wrote:
'my' doesn't contain a vowel, therefore the condition of the 'if'
statement in 'pigword' is never true, therefore it never binds to the
name 'pigword'.
Ah. The piglatin example
Mark Lawrence wrote:
return (pigword)
These^ ^
Those are parenthesis :P
But not having to use them is a time saver.
Thanks
No they are round brackets, as opposed to square or curly.
True, they are round brackets, but the word parentheses is actually older.
On Sun, 31 Aug 2014 22:12:10 -0400, Ned Batchelder
n...@nedbatchelder.com wrote:
On 8/31/14 8:56 PM, Mark Lawrence wrote:
On 01/09/2014 01:08, Seymore4Head wrote:
On Mon, 01 Sep 2014 00:21:14 +0100, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 31/08/2014 23:42, Seymore4Head wrote:
On
Hi,
I made simple test program using the subprocess module (see attached:
exec_cmd.py). I ran it passing variations of 'ls' command options.
I encounter exceptions every time I use '-l' options. Example runs
where exception occurs:
# ./exec_cmd.py ls -al
# ./exec_cmd.py ls -l
However, if I pass
On Mon, Sep 1, 2014 at 1:28 PM, Earl Lapus earl.la...@gmail.com wrote:
So, what could be causing this behavior? Is this expected or is there
something wrong with how I'm using the subprocess module?
The latter. Your problem is with your shell= option.
Firstly, the parameter should be either
On 08/31/2014 06:04 PM, Seymore4Head wrote:
for x,letter in enumerate(word):
# x is index (position), letter is the value at that index
if letter in AEIOUaeiou:
I tried changing:
for x in range(len(test)):
to
for x in enumerate(test):
Read my example again. You missed
On 08/31/2014 10:15 PM, Michael Torrie wrote:
On 08/31/2014 06:04 PM, Seymore4Head wrote:
for x,letter in enumerate(word):
# x is index (position), letter is the value at that index
if letter in AEIOUaeiou:
I tried changing:
for x in range(len(test)):
to
for x in
On 08/31/2014 07:54 PM, Seymore4Head wrote:
[snip]
Since I don't ever expect to be able to type them without thinking
about them, a standard keyboard could come with half sized keys on the
sides.
While this is definitely OT, I strongly suggest you take the time to learn to touch-type.
On Mon, Sep 1, 2014 at 2:55 PM, Larry Hudson
org...@yahoo.com.dmarc.invalid wrote:
While this is definitely OT, I strongly suggest you take the time to learn
to touch-type. (Actually, I would recommend it for everyone.) It's true
that it will take time, effort, practice and diligence,
On Mon, Sep 1, 2014 at 3:24 PM, Earl Lapus earl.la...@gmail.com wrote:
On Mon, Sep 1, 2014 at 11:55 AM, Chris Angelico ros...@gmail.com wrote:
But secondly, you're already splitting the argument (or rather, taking
it from your own parameters, already split), so you don't want to go
through
On Mon, Sep 1, 2014 at 11:55 AM, Chris Angelico ros...@gmail.com wrote:
But secondly, you're already splitting the argument (or rather, taking
it from your own parameters, already split), so you don't want to go
through the shell. In fact, going through the shell would only make
your life
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10240
___
___
New submission from Wilberto Morales:
I know that issues like this one are usually on the users(my) fault, but I
think pip might be broken this time for real.
Every time I run pip install, a 404 error is raised:
(venv) /tmp wil
pip install flask
Requirement already satisfied (use --upgrade
Stefan Behnel added the comment:
I noticed this, too. I think it's due to the urllib changes in issue 22118.
--
components: +Library (Lib)
nosy: +pitrou, scoder
type: - behavior
___
Python tracker rep...@bugs.python.org
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
nosy: -scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20035
___
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17095
___
Wilberto Morales added the comment:
Good to know I'm not the only one.
In the comments above, scratch the / after .gz. Looks like it's just a
redirect adding it. This is the actual url generated.
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22285
___
New submission from Armin Rigo:
Calling Python 2.7's new version of ntpath.splitdrive() with argument either
'//' or r'\\' results in an IndexError: string index out of range.
--
messages: 226163
nosy: arigo
priority: normal
severity: normal
status: open
title: ntpath.splitdrive('//')
Antoine Pitrou added the comment:
This patch seems to fix issue #22311 as well (*). However it would be good to
add more tests for base URLs with trailing slashes, it seems.
(*) without patch:
base = https://pypi.python.org/simple/werkzeug/;
rel =
Antoine Pitrou added the comment:
See issue #22278.
--
superseder: - urljoin duplicate slashes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22311
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22278
___
___
Python-bugs-list mailing
Wilberto Morales added the comment:
Also I see PIP is it's own project. Should I migrate the issue? It won't be as
easy as I thought to fix.
git diff
diff --git a/pip/_vendor/distlib/locators.py b/pip/_vendor/distlib/locators.py
index 07bc1fd..b7ef31a 100644
---
New submission from Stefan Behnel:
longintrepr.h is a non-public header file (not included by Python.h) that
defines the inner struct layout of PyLong objects. Including it allows for very
fast access to small integers through ob_digit[0] when -1 = Py_SIZE(n) = 1,
which is a great feature.
Stefan Behnel added the comment:
Were the tests in
http://bugs.python.org/file32591/urischemes.py
merged yet, that Nick Coghlan mentioned in
http://bugs.python.org/issue22118#msg225662 ?
--
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg added the comment:
On 31.08.2014 11:34, Wilberto Morales wrote:
New submission from Wilberto Morales:
I know that issues like this one are usually on the users(my) fault, but I
think pip might be broken this time for real.
Every time I run pip install, a 404 error
Armin Rigo added the comment:
For completeness:
Python 2.7.6: ntpath.splitdrive('//') = ('', '//')
Python 2.7.8: ntpath.splitdrive('//') = IndexError
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22312
Arfrever Frehtes Taifersar Arahesis added the comment:
I noticed this output of full test suite:
...
[361/388] test_bisect
[362/388] test_py_compile
File /tmp/cpython/Lib/test/bad_coding2.py, line 0
SyntaxError: encoding problem: utf8 with BOM
[363/388] test_netrc
[364/388] test_sys
...
I
STINNER Victor added the comment:
I don't understand the issue. How and when the EOF keyboard shortcut is not
CTRL+d? Can it be configured?
+# Add 64 to get the ASCII character.
+eof_char = chr(ord(eof_num) + 64)
I don't understand the trick '\x04'
STINNER Victor added the comment:
Oh, by the way: according to the glibc documentation: Usually, the EOF
character is C-d. Lower case D, not upper case.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22310
Roundup Robot added the comment:
New changeset 9480287f85a0 by Victor Stinner in branch '3.4':
Closes #22275: asyncio: enhance documentation of OS support
http://hg.python.org/cpython/rev/9480287f85a0
New changeset 9138d60db0e4 by Victor Stinner in branch 'default':
(Merge 3.4) Closes #22275:
Changes by Stefan Krah stefan-use...@bytereef.org:
Removed file: http://bugs.python.org/file36446/module_get_symbol.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22194
___
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file36512/pymonotonic-4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22117
___
Changes by STINNER Victor victor.stin...@gmail.com:
Removed file: http://bugs.python.org/file36512/pymonotonic-4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22117
___
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file36513/pymonotonic-4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22043
___
STINNER Victor added the comment:
pymonotonic-4.patch: Updated patch (version 4) to address Antoine Pitrou's
comments on Rietveld.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22043
___
Stefan Krah added the comment:
Thanks, Stefan. So everyone agrees that Capsule is the right way for the API.
Then this issue is about making the libmpdec symbols public. I've tried
to produce a collision with duplicate symbols as outlined in msg176486,
but I haven't been successful (on
New submission from Armin Rigo:
$ LINES=20 python Lib/test/test_pydoc.py
...
File .../Lib/pydoc.py, line 1448, in ttypager
r = inc = os.environ.get('LINES', 25) - 1
TypeError: unsupported operand type(s) for -: 'str' and 'int'
duh.
--
components: Library (Lib)
messages: 226177
eryksun added the comment:
Line 116 should use normp[2:3] instead of normp[2].
http://hg.python.org/cpython/file/ee879c0ffa11/Lib/ntpath.py#l92
--
nosy: +eryksun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22312
Roundup Robot added the comment:
New changeset 446d4dfcc220 by Benjamin Peterson in branch '2.7':
don't index outside of the path (closes #22312)
http://hg.python.org/cpython/rev/446d4dfcc220
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open - closed
John Malmberg added the comment:
The existing Python text is uppercase D for Ctrl-D, so I maintained it.
stty documentation also uses upper case for control characters.
The EOF character can be viewed or set via the stty utility or the tcsetattr()
or equivalent routine. Some platforms may not
John Malmberg added the comment:
Note that Python directly supports Unixes which supply fork() and Microsoft
Windows that supplies spawn*() methods.
So as long as a platform supports either the fork() or the the Microsoft
Windows spawn() methods, there should not be barriers implementing
New submission from Jason R. Coombs:
This morning, I was running an install of a package on Python 3.4.1 when I
encountered this error:
C:\Users\jaraco\projects\jaraco.financial [default tip] ./setup install
running install
running bdist_egg
running egg_info
writing namespace_packages to
Jason R. Coombs added the comment:
On a second attempt, the operation completed successfully, so a transient
network error was necessary to elicit the bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22315
Geert Jansen added the comment:
Thanks Antoine. See my comments below:
- is it necessary to start exposing server_hostname, server_side and
pending()?
At the C level I need server_hostname and server_side exposed because they are
needed to implement the cert check in do_handshake().
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22306
___
___
Python-bugs-list mailing list
New submission from Anthony Mayer:
After discussion about extraneous whitespace around colons in a list slice not
being an error on the pep8 checker project (see
https://github.com/jcrocholl/pep8/issues/321#issuecomment-53649841), ncoghlan
suggested filing a ticket here to get the issue added
Gregory Salvan added the comment:
I didn't dare to share this but in case... just few days after my message I
fall on the inspiring work of Dr. Hans Vandierendonck (presented during the 2nd
International Summer School on Advances in Programming Languages in Edinburgh).
Certainly too much, but
Changes by Jason R. Coombs jar...@jaraco.com:
--
hgrepos: +272
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22315
___
___
Python-bugs-list
Changes by Jason R. Coombs jar...@jaraco.com:
--
keywords: +patch
Added file: http://bugs.python.org/file36514/7304b9b95438.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22315
___
Jason R. Coombs added the comment:
I've started work on a test to capture the failure. Patch 7304b9 is attached.
Any comments on the test before I proceed with the fix? I haven't been able to
run the test, so if someone could do that, it would be most appreciated.
--
Claudiu Popa added the comment:
A similar issue was fixed a couple of days ago in file_util.py, with
f01413758114. It would be nice to have similar tests.
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
Claudiu Popa added the comment:
I'm referring to the TypeError: 'OSError' object is not iterable failure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22315
___
New submission from Ubik:
See:
https://docs.python.org/2/library/argparse.html#argparse.ArgumentParser.add_subparsers
--
assignee: docs@python
components: Documentation
messages: 226190
nosy: Ubik, docs@python
priority: normal
severity: normal
status: open
title: action argument is not
Guido van Rossum added the comment:
Oooh, yes. The colon in a slice should be treated as a binary operator, with
equal space before and after.
I think we can add this (as a new bullet following the bullet Immediately
before a comma, semicolon, or colon):
- However, the colon in a slice acts
Ezio Melotti added the comment:
Yes: ham[lower + offset : upper + offset], ham[lower : upper : 3]
This feels a bit weird to me, perhaps because I seldom have expressions in
slices and don't feel the need to add further spaces.
For the first case I would definitely not put spaces around the +,
New submission from Tony Flury:
The notes on assertItemsEqual do not make it clear that the comparison works by
using their hash value, and not their __eq__ implementation - i.e. it does an
'is' not an '==' between objects in the sequence.
If the sequences being compared contain user created
Roundup Robot added the comment:
New changeset 7304b9b95438 by Jason R. Coombs in branch '3.4':
#22315: Add test to capture the failure.
http://hg.python.org/cpython/rev/7304b9b95438
New changeset 300cd36eb25c by Jason R. Coombs in branch '3.4':
#22315: Use technique outlined in test_file_util
Jason R. Coombs added the comment:
Claudiu, thanks for the tip. That was quite helpful. I did not realize that
unittest included a mock implementation. I've updated the test to use the same
technique. I've furthermore verified that the test captures the failure and
adjusted the implementation
1 - 100 of 121 matches
Mail list logo