[ANN]: circuits 3.0 (Lightweight Event driven Asynchronous Application Framework)

2014-08-31 Thread James Mills
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 -

Raspberry pi, python and robotics

2014-08-31 Thread Nicholas Cannon
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

Re: I have tried and errored a reasonable amount of times

2014-08-31 Thread Steven D'Aprano
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 ==

Re: I have tried and errored a reasonable amount of times

2014-08-31 Thread Steven D'Aprano
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,

Re: I have tried and errored a reasonable amount of times

2014-08-31 Thread Chris Angelico
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

Re: Sequencing images using tkinter?

2014-08-31 Thread theteacher . info
Okay. Got it now. Your help is much appreciated. Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread andydtaylor
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.

Re: CAD - FEM | writing FEM meshes in abacus format || pythonOCC

2014-08-31 Thread hacaoideas
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

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread andydtaylor
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

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread Chris “Kwpolska” Warrick
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

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread Andrea D'Amore
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

More questions on Python strings

2014-08-31 Thread Dennis E. Evans
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,

Re: More questions on Python strings

2014-08-31 Thread MRAB
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

Distinguishing between maildir, mbox, and MH files/directories?

2014-08-31 Thread Tim Chase
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

Re: Distinguishing between maildir, mbox, and MH files/directories?

2014-08-31 Thread Dan Stromberg
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),

Re: Distinguishing between maildir, mbox, and MH files/directories?

2014-08-31 Thread Terry Reedy
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

This could be an interesting error

2014-08-31 Thread Seymore4Head
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]

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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 =

Re: This could be an interesting error

2014-08-31 Thread Mark Lawrence
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

Re: This could be an interesting error

2014-08-31 Thread MRAB
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 =

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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

Re: This could be an interesting error

2014-08-31 Thread Michael Torrie
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

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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):

Re: This could be an interesting error

2014-08-31 Thread Mark Lawrence
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

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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

Re: More questions on Python strings

2014-08-31 Thread Peter Otten
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

Re: This could be an interesting error

2014-08-31 Thread Mark Lawrence
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

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread andydtaylor
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

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread andydtaylor
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

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread andydtaylor
FYI My mac version is Mavericks 10.9.4 -- https://mail.python.org/mailman/listinfo/python-list

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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

Re: This could be an interesting error

2014-08-31 Thread MRAB
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

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread andydtaylor
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

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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)):

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

2014-08-31 Thread Mark Lawrence
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

Re: This could be an interesting error

2014-08-31 Thread Mark Lawrence
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

Re: Distinguishing between maildir, mbox, and MH files/directories?

2014-08-31 Thread Cameron Simpson
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

Re: This could be an interesting error

2014-08-31 Thread Ned Batchelder
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

Re: This could be an interesting error

2014-08-31 Thread Steven D'Aprano
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

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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

Re: This could be an interesting error

2014-08-31 Thread Steven D'Aprano
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.

Re: This could be an interesting error

2014-08-31 Thread Seymore4Head
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

subprocess module usage

2014-08-31 Thread Earl Lapus
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

Re: subprocess module usage

2014-08-31 Thread Chris Angelico
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

Re: This could be an interesting error

2014-08-31 Thread Michael Torrie
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

Re: This could be an interesting error

2014-08-31 Thread Michael Torrie
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

Re: This could be an interesting error

2014-08-31 Thread Larry Hudson
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.

Re: This could be an interesting error

2014-08-31 Thread Chris Angelico
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,

Re: subprocess module usage

2014-08-31 Thread Chris Angelico
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

Re: subprocess module usage

2014-08-31 Thread Earl Lapus
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

[issue10240] dict.update.__doc__ is misleading

2014-08-31 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10240 ___ ___

[issue22311] Pip 404's

2014-08-31 Thread Wilberto Morales
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

[issue22311] Pip 404's

2014-08-31 Thread Stefan Behnel
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

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2014-08-31 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: -- nosy: -scoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20035 ___ ___

[issue17095] Modules/Setup *shared* support broken

2014-08-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17095 ___

[issue22311] Pip 404's

2014-08-31 Thread Wilberto Morales
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.

[issue22285] The Modules/ directory should not be added to sys.path

2014-08-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22285 ___

[issue22312] ntpath.splitdrive('//') - IndexError

2014-08-31 Thread Armin Rigo
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('//')

[issue22278] urljoin duplicate slashes

2014-08-31 Thread Antoine Pitrou
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 =

[issue22311] Pip 404's

2014-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: See issue #22278. -- superseder: - urljoin duplicate slashes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22311 ___

[issue22278] urljoin duplicate slashes

2014-08-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +scoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22278 ___ ___ Python-bugs-list mailing

[issue22311] Pip 404's

2014-08-31 Thread Wilberto Morales
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 ---

[issue22313] Make PYLONG_BITS_IN_DIGIT always available to non-core extensions

2014-08-31 Thread Stefan Behnel
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.

[issue22278] urljoin duplicate slashes

2014-08-31 Thread Stefan Behnel
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

[issue22311] Pip 404's

2014-08-31 Thread Marc-Andre Lemburg
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

[issue22312] ntpath.splitdrive('//') - IndexError

2014-08-31 Thread Armin Rigo
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

[issue19447] py_compile.compile raises if a file has bad encoding

2014-08-31 Thread Arfrever Frehtes Taifersar Arahesis
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

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-31 Thread STINNER Victor
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'

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-31 Thread STINNER Victor
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

[issue22275] asyncio: enhance documentation of OS support

2014-08-31 Thread Roundup Robot
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:

[issue22194] access to cdecimal / libmpdec API

2014-08-31 Thread Stefan Krah
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 ___

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-31 Thread STINNER Victor
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 ___

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-31 Thread STINNER Victor
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 ___

[issue22043] Use a monotonic clock to compute timeouts

2014-08-31 Thread STINNER Victor
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 ___

[issue22043] Use a monotonic clock to compute timeouts

2014-08-31 Thread STINNER Victor
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 ___

[issue22194] access to cdecimal / libmpdec API

2014-08-31 Thread Stefan Krah
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

[issue22314] pydoc.py: TypeError with a $LINES defined to anything

2014-08-31 Thread Armin Rigo
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

[issue22312] ntpath.splitdrive('//') - IndexError

2014-08-31 Thread eryksun
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

[issue22312] ntpath.splitdrive('//') - IndexError

2014-08-31 Thread Roundup Robot
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

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-31 Thread John Malmberg
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

[issue22309] distutils/spawn.py handle fork() not implemented.

2014-08-31 Thread John Malmberg
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

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
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

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
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

[issue21965] Add support for Memory BIO to _ssl

2014-08-31 Thread Geert Jansen
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().

[issue22306] Inconsistent division by 0 behaviour in decimal module

2014-08-31 Thread Jesús Cea Avión
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

[issue22316] Add rule about extraneous whitespace around colon to Whitespace In Expressions and Statements of PEP8

2014-08-31 Thread Anthony Mayer
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

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-31 Thread Gregory Salvan
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

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- hgrepos: +272 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22315 ___ ___ Python-bugs-list

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
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 ___

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
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. --

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Claudiu Popa
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

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Claudiu Popa
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 ___

[issue22317] action argument is not documented in argparse add_subparser() docs

2014-08-31 Thread Ubik
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

[issue22316] Add rule about extraneous whitespace around colon to Whitespace In Expressions and Statements of PEP8

2014-08-31 Thread Guido van Rossum
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

[issue22316] Add rule about extraneous whitespace around colon to Whitespace In Expressions and Statements of PEP8

2014-08-31 Thread Ezio Melotti
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 +,

[issue22318] unitest documentation on assertItemsEqual misleading

2014-08-31 Thread Tony Flury
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

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Roundup Robot
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

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
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   2   >