Re: issue while doing pexpect ssh

2015-09-09 Thread harirammanohar159
On Tuesday, 8 September 2015 17:07:24 UTC+5:30, hariramm...@gmail.com wrote: > Some where i am missing simple logic :) > > = > child = pexpect.spawn('ssh hari@hostname') > child.logfile = sys.stdout > child.expect('hari\'s Password: ') > = > > getting error as follows: >

[issue24991] Define instance mutability explicitly on type objects

2015-09-09 Thread Nick Coghlan
Nick Coghlan added the comment: Also adding Trent Nelson to the nosy list, as I believe this capability could potentially be relevant to PyParallel. The reason I say that is that if instance mutability (or the lack thereof) becomes a first class language concept, then we may be able to adopt

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-09 Thread Paul Moore
Paul Moore added the comment: > Maybe we can special-case pip uninstalling it from the site-packages folder? > *Paul* - any thoughts? Sorry, I've been following this thread but it's been moving pretty fast, so I'm probably replying too late to be helpful now :-( One alternative thought I had

[issue22980] C extension naming doesn't take bitness into account

2015-09-09 Thread Larry Hastings
Larry Hastings added the comment: Here's an attempt at a What's New section for this change. I expect it's wrong! Maybe someone can fix it. Maybe it's actually better than not having one at all. Can we maybe get a round or two of edits on this and get something in for 3.5 final?

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55b62e2c59f8 by Terry Jan Reedy in branch '2.7': Issue 24199: Deprecate idlelib.idlever with a warning on import. https://hg.python.org/cpython/rev/55b62e2c59f8 New changeset c51514826126 by Terry Jan Reedy in branch '3.4': Issue 24199: Deprecate

Reply to author, reply to list, reply to all (was: Need Help w. PIP!)

2015-09-09 Thread Ben Finney
Terry Reedy writes: > On 9/8/2015 6:19 PM, Cody Piersall wrote: > > On Sat, Sep 5, 2015 at 3:14 AM, Thomas 'PointedEars' Lahn > > > wrote: > > > > > > Cody Piersall wrote: > > > > > > > Please respond to the list as well as the

[issue25038] test_os.TestSendfile.test_keywords() introduced a regression

2015-09-09 Thread STINNER Victor
New submission from STINNER Victor: The change e42e2bd47168 introduced a regression, test_os started to fail on FreeBSD. What is the rationale of the change? For example, test_os pass in the previous build on the same buildbot. I don't know if it makes sense to pass None to headers and/or

Re: Reply to author, reply to list, reply to all (was: Need Help w. PIP!)

2015-09-09 Thread Chris Angelico
On Wed, Sep 9, 2015 at 4:37 PM, Nick Sarbicki wrote: > My question then is do you reply to all (with a clean cc list but including > an OP from outside the list) in response to a persons question, even if the > question is relatively simple. > > For me it's appreciated

Re: Reply to author, reply to list, reply to all

2015-09-09 Thread Ben Finney
Chris Angelico writes: > Personally, what I do (which I'm doing with this post) is to use > Gmail's "reply-all" feature, and then manually delete the individual > addresses. That is testimony in support of the position that Google Mail is a poorly-designed interface for

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Tim Golden
On 09/09/2015 08:59, Laszlo Lebrun via Python-list wrote: > On Tue, 08 Sep 2015 23:35:33 +0100, Mark Lawrence wrote: > >> On 08/09/2015 20:14, Laszlo Lebrun via Python-list wrote: >>> >>> Dear group, >>> I do use Windows 7 and have a user name with diacritics. >>> >>> Whenever I am querying an

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-09 Thread Martin Panter
Changes by Martin Panter : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-09 Thread Anthon van der Neut
Anthon van der Neut added the comment: The problem lies in the recursive call to _vformat which might consume fields without name ({}) and increment auto_arg_index, but that incremented value was not returned to the parent. Since the line became longer than pep8 allowed I wrapped all of the

Re: Reply to author, reply to list, reply to all

2015-09-09 Thread Ben Finney
Nick Sarbicki writes: > My question then is do you reply to all (with a clean cc list but > including an OP from outside the list) in response to a persons > question If the question was addressed to this forum, then answering the question should also be addressed to

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-09 Thread Larry Hastings
Larry Hastings added the comment: Given Victor's reluctance to get this in to 3.5.0, this can't even be marked as a "deferred blocker" anymore. Demoting to normal priority. -- priority: deferred blocker -> normal ___ Python tracker

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Chris Angelico
On Wed, Sep 9, 2015 at 5:59 PM, Laszlo Lebrun via Python-list wrote: > Whenever I start PIP, I get: > "Fatal error in launcher: Unable to create process using '"C:\Users > \BürgerGegenFluglärm\AppData\Local\Programs\Python\Python35-32 > \python.exe"

From logging to files to a better solution: syslog, Sentry, Logstash, ....

2015-09-09 Thread Thomas Güttler
Up to now we use simple logging to files. We don't use syslog or an other server based solution. I am unsure which architecture works for our environment. Our environment: - django based applications - a lot of batch/cron jobs (non web gui) processing - One linux server runs several

[issue25039] Docs: Link to Stackless Python in Design and History FAQ section is broken

2015-09-09 Thread Camilla Montonen
New submission from Camilla Montonen: The link to Stackless Python here https://docs.python.org/2/faq/design.html#can-t-you-emulate-threads-in-the-interpreter-instead-of-relying-on-an-os-specific-thread-implementation is broken. I get an "Internal Server Error" when trying to access it.

Re: Reply to author, reply to list, reply to all (was: Need Help w. PIP!)

2015-09-09 Thread Nick Sarbicki
On 9 Sep 2015 07:11, "Ben Finney" wrote: > > Terry Reedy writes: > > > On 9/8/2015 6:19 PM, Cody Piersall wrote: > > > On Sat, Sep 5, 2015 at 3:14 AM, Thomas 'PointedEars' Lahn > > > > wrote: > > > > >

[issue25038] test_os.TestSendfile.test_keywords() introduced a regression

2015-09-09 Thread Martin Panter
Martin Panter added the comment: I believe revision e42e2bd47168 is actually the cure, and test failure is actually caused by a new test I added in revision fdb5d84f9948. So hopefully things are fixed now, but I will keep an eye on the buildbots. In fdb5d84f9948, I originally added the

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Laszlo Lebrun via Python-list
On Tue, 08 Sep 2015 23:35:33 +0100, Mark Lawrence wrote: > On 08/09/2015 20:14, Laszlo Lebrun via Python-list wrote: >> >> Dear group, >> I do use Windows 7 and have a user name with diacritics. >> >> Whenever I am querying an extension with pip, it will fail since it >> does not pass on the user

Re: Reply to author, reply to list, reply to all

2015-09-09 Thread Terry Reedy
On 9/9/2015 2:09 AM, Ben Finney wrote: Terry Reedy writes: [Reply] should send the reply to the list. The function named “reply” normally means “reply individually to the author”, and that's how it needs to stay. Oh, right. I was thinking of 'Followup' and that should

Re: XML Binding

2015-09-09 Thread harirammanohar159
On Thursday, 3 September 2015 22:25:06 UTC+5:30, Palpandi wrote: > Hi All, > > Is there any module available in python standard library for XML binding? If > not, any other suggestions. > > Which is good for parsing large file? > 1. XML binding > 2. Creating our own classes > > > Thanks, >

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-09 Thread Steve Dower
Steve Dower added the comment: FYI: we're making a new release (right now!) with the patch applied, that should go out tomorrow. If anyone spots anything important in the patch, I still really want to hear about it, but hopefully having something installable means we'll get at least a few

Re: issue while doing pexpect ssh

2015-09-09 Thread harirammanohar159
On Tuesday, 8 September 2015 17:07:24 UTC+5:30, hariramm...@gmail.com wrote: > Some where i am missing simple logic :) > > = > child = pexpect.spawn('ssh hari@hostname') > child.logfile = sys.stdout > child.expect('hari\'s Password: ') > = > > getting error as follows: >

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-09-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks, Brett. Since I am not wrapping the warning, the default stacklevel seems to work on all versions. Still to do: 1. Something in the docs (all branches), but with an eye toward other deprecations coming later. 2. Actually remove file in 3.6 branch, but

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset da9b26670e44 by Martin Panter in branch '3.4': Issue #24984: Document AF_BLUETOOTH socket address formats https://hg.python.org/cpython/rev/da9b26670e44 New changeset 4ce8450da22d by Martin Panter in branch '3.5': Issue #24984: Merge 3.4 into 3.5

Re: XML Binding

2015-09-09 Thread dieter
Palpandi writes: > Is it better to use pyxb than lxml? > > What are the advantages of lxml and pyxb? "pyxb" has a different aim than "lxml". "lxml" is a general purpose library to process XML documents. It gives you an interface to the document's resources (elements,

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-09 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Tim. I think we can also create separate issues for AF_PACKET and AF_CAN and mark them as "easy". -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement

Re: issue while doing pexpect ssh

2015-09-09 Thread Laura Creighton
>Hey All, > >I am able to achieve this using pxssh.. thank you for help... Great to hear it. Good luck with the crazies. Laura -- https://mail.python.org/mailman/listinfo/python-list

[issue22980] C extension naming doesn't take bitness into account

2015-09-09 Thread Berker Peksag
Berker Peksag added the comment: Adding Yury since he and Elvis are working on Doc/whatsnew/3.5.rst and they might want to take a look at the latest patch. -- nosy: +berker.peksag, yselivanov ___ Python tracker

[issue25039] Docs: Link to Stackless Python in Design and History FAQ section is broken

2015-09-09 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Camilla. This could be a temporary problem with the Stackless website. Can you ask on http://www.stackless.com/mailman/listinfo/stackless? -- nosy: +berker.peksag ___ Python tracker

Re: XML Binding

2015-09-09 Thread Stefan Behnel
dieter schrieb am 09.09.2015 um 10:20: > Palpandi writes: >> Is it better to use pyxb than lxml? >> >> What are the advantages of lxml and pyxb? > > "pyxb" has a different aim than "lxml". > > "lxml" is a general purpose library to process XML documents. > It gives you an interface to the

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Laszlo Lebrun via Python-list
On Wed, 09 Sep 2015 09:13:41 +0100, Tim Golden wrote: > On 09/09/2015 08:59, Laszlo Lebrun via Python-list wrote: >> On Tue, 08 Sep 2015 23:35:33 +0100, Mark Lawrence wrote: >> >>> On 08/09/2015 20:14, Laszlo Lebrun via Python-list wrote: Dear group, I do use Windows 7 and have a

Re: Python handles globals badly.

2015-09-09 Thread Antoon Pardon
Op 09-09-15 om 01:55 schreef Michael Torrie: > In any case, 0-based indexing in Python makes a lot of sense when you > bring in the slicing syntax. Especially if you think of slicing as > operating on the boundaries between cells as it were. Then you have never used slices with a negative step.

Re: issue while doing pexpect ssh

2015-09-09 Thread harirammanohar159
On Tuesday, 8 September 2015 17:07:24 UTC+5:30, hariramm...@gmail.com wrote: > Some where i am missing simple logic :) > > = > child = pexpect.spawn('ssh hari@hostname') > child.logfile = sys.stdout > child.expect('hari\'s Password: ') > = > > getting error as follows: >

[issue25039] Docs: Link to Stackless Python in Design and History FAQ section is broken

2015-09-09 Thread Laura Creighton
Laura Creighton added the comment: I do not think that asking there will help right now because the problem is that the whole site is down, and mailman isn't running either ... -- nosy: +lac ___ Python tracker

Getting response over logging socket

2015-09-09 Thread Larry Martell
I have an app that uses the logging package with a SocketHandler to send messages. Now I've been asked to change it so that it can receive a response for each log message sent. It appears there is no way to do this with logging package. Is that true? Can I not receive data over a socket used in a

Re: issue while doing pexpect ssh

2015-09-09 Thread Laura Creighton
In a message of Wed, 09 Sep 2015 01:58:30 -0700, harirammanohar...@gmail.com wr ites: >Thank you for spawnu, now i got stuck with freezing issue similar to it is not >returing to the shell prompt...its on waiting...i had to press ctrl+c > >=== >child.sendline(password)

Re: Hi am new to python

2015-09-09 Thread alister
On Tue, 08 Sep 2015 17:44:26 -0500, Nassim Gannoun wrote: > Hi I'm also new to Python but would like to reply. > Like others have stated there is a built in function (sum) that can give > the sum of the elements of a list, but if what you are trying to do is > learn how to use the while command

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Laszlo Lebrun via Python-list
On Wed, 09 Sep 2015 00:22:31 -0700, wxjmfauth wrote: > Yes, I know how to fix all these problems. I know as well: have a user, which name is just plain ASCII. But it sucks to rebuild everything... -- Stand up against TTIP and ISDS ! -- https://mail.python.org/mailman/listinfo/python-list

[issue25041] document AF_PACKET socket address format

2015-09-09 Thread Tim Tisdall
New submission from Tim Tisdall: As mentioned in #24984, I'm making another issue to document the address format for AF_PACKET. In this case there's already documentation in Modules/socketmodule.c that says: - an AF_PACKET socket address is a tuple containing a string specifying the

[RELEASED] Python 3.5.0rc4 is now available!

2015-09-09 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm surprised to announce the availability of Python 3.5.0rc4, also known as Python 3.5.0 Release Candidate 4. Python 3.5.0 Release Candidate 3 was only released about a day ago. However: during testing, a

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-09-09 Thread Larry Hastings
Larry Hastings added the comment: The Misc/NEWS entry for this was added under Python 3.5.0rc3. But, since no pull request has been made for this change, this change hasn't been merged into 3.5.0. It will ship as part of Python 3.5.1. I've moved the Misc/NEWS entry accordingly. --

[issue25041] document AF_PACKET socket address format

2015-09-09 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy stage: -> needs patch ___ Python tracker ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-09 Thread Larry Hastings
Larry Hastings added the comment: Given Victor's reluctance to get this in to 3.5.0, this can't even be marked as a "deferred blocker" anymore. Demoting to normal priority. -- priority: deferred blocker -> normal ___ Python tracker

[issue25035] Getter/setter for argparse keys

2015-09-09 Thread R. David Murray
R. David Murray added the comment: Can you provide some specific use cases, please? -- nosy: +r.david.murray ___ Python tracker ___

[issue25041] document AF_PACKET socket address format

2015-09-09 Thread Tim Tisdall
Tim Tisdall added the comment: Right now the docs say "Certain other address families (:const:`AF_PACKET`, :const:`AF_CAN`) support specific representations.". I was going to create a separate issue for AF_CAN, but it seems that it's already documented... When documentation is added for

[issue22980] C extension naming doesn't take bitness into account

2015-09-09 Thread Steve Dower
Steve Dower added the comment: Only thing I'd add is that the extra tag is optional (on Windows at least), and Python will happily import extensions without it. But extensions with a mismatched tag won't be loaded. -- ___ Python tracker

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-09 Thread Tim Tisdall
Tim Tisdall added the comment: I created #25041 to handle AF_PACKET. It seems AF_CAN is already in the docs, so the person making the change for AF_PACKET can just remove that mention of AF_CAN farther down. -- ___ Python tracker

[issue25041] document AF_PACKET socket address format

2015-09-09 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue25029] MemoryError in test_strptime

2015-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd7aed300a1b by Steve Dower in branch '3.5': Issue #25029: MemoryError in test_strptime https://hg.python.org/cpython/rev/bd7aed300a1b New changeset 706b9eaba734 by Steve Dower in branch '3.5': Merge fix for #25029

[issue25040] xml.sax.make_parser makes bad use of parser_list argument default value

2015-09-09 Thread Gautier Portet
New submission from Gautier Portet: When using xml.sax.make_parser(), there is a potential problem with the parser_list default value. If another module used a default value, like the problematic parser from PyXML, your module will also use it as default parser. You should change this: def

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Chris Angelico
On Wed, Sep 9, 2015 at 9:07 PM, Laszlo Lebrun via Python-list wrote: > On Wed, 09 Sep 2015 00:22:31 -0700, wxjmfauth wrote: > >> Yes, I know how to fix all these problems. > > I know as well: have a user, which name is just plain ASCII. > But it sucks to rebuild

[issue25042] Create an "embedding SDK" distribution?

2015-09-09 Thread Paul Moore
New submission from Paul Moore: At the moment, building an application that embeds Python requires the user to have a full install of Python on the build machine, to get access to the include and library files. Now that we provide an embeddable build of Python on Windows, would it be worth

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8374472c6a6e by Steve Dower in branch '3.5': Issue #25027: Reverts partial-static build options and adds vcruntime140.dll to Windows installation. https://hg.python.org/cpython/rev/8374472c6a6e -- nosy: +python-dev

[RELEASED] Python 3.5.0rc4 is now available!

2015-09-09 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm surprised to announce the availability of Python 3.5.0rc4, also known as Python 3.5.0 Release Candidate 4. Python 3.5.0 Release Candidate 3 was only released about a day ago. However: during testing, a

[issue23447] Import fails when doing a circular import involving an `import *`

2015-09-09 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Tim Golden
On 09/09/2015 14:10, Chris Angelico wrote: > Don't bother responding to jmf - he's our resident Unicode troll. His > posts don't get through to me any more, except when someone responds > :) Not sure where they're getting blocked; probably at the news<->list > boundary. They're held for mailing

[issue25043] document socket constants for Bluetooth

2015-09-09 Thread Tim Tisdall
New submission from Tim Tisdall: further to #24984, I noticed there are constants that aren't mentioned in the docs. Also BDADDR_ALL is missing (which is defined in Bluez's bluetooth.h) so I added it. Now, I'm not totally clear on supplying multi-version patches... I know 3.5 is in

Re: Python handles globals badly.

2015-09-09 Thread Antoon Pardon
Op 09-09-15 om 05:27 schreef Steven D'Aprano: > >> Were those polls, like the poll he once did for the condtional expression? >> There the poll indicated no specific proposal had a majority, so for each >> specific proposal one could say it didn't have popular support, but the >> majority still

[issue25044] bring BTPROTO_SCO inline with other Bluetooth protocols

2015-09-09 Thread Tim Tisdall
Changes by Tim Tisdall : -- components: +Extension Modules ___ Python tracker ___ ___

[issue25045] smtplib throws exception TypeError: readline()

2015-09-09 Thread Philippe Lambotte
New submission from Philippe Lambotte: smtplib smtpserver.ehlo() will throw exception. The error message : Traceback (most recent call last): File "snippet.email.sendmail.py", line 34, in smtpserver.ehlo() File "/usr/lib/python3.2/smtplib.py", line 421, in ehlo (code, msg) =

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-09 Thread John Beck
John Beck added the comment: Yes, the syscall was failing with EINVAL. -- ___ Python tracker ___ ___

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2015-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The question is: are ioctl codes outside of the unsigned int range used on BSD family or Mac OS X? -- ___ Python tracker

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Wolfgang Maier
On 09.09.2015 10:23, Chris Angelico wrote: On Wed, Sep 9, 2015 at 5:59 PM, Laszlo Lebrun via Python-list wrote: Whenever I start PIP, I get: "Fatal error in launcher: Unable to create process using '"C:\Users

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-09 Thread STINNER Victor
STINNER Victor added the comment: > Prior to applying this patch, I had needed to tweak py_getrandom() to > recognize EINVAL in addition to ENOSYS as sufficient reason to turn off > getrandom_works. In which case getrandom() fails with EINVAL? --

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-09 Thread John Beck
John Beck added the comment: @haypo: Yes, that patch works (applied to 3.5.0rc3; proxy problems are preventing me from updating my clone of the default branch at the moment) i.e., pyconfig.h shows: #define HAVE_GETRANDOM_SYSCALL 1 To answer your other questions: * Calling

[issue25044] bring BTPROTO_SCO inline with other Bluetooth protocols

2015-09-09 Thread Tim Tisdall
New submission from Tim Tisdall: All of the BTPROTO_ protocols accept tuples with Bluetooth addresses as regular strings. SCO accepts a byte-string which represents a Bluetooth address. The change was made at 23ab586c427a With the current implementation we get this error: >>> import

[issue25046] ImportError: No module named Multiprocessing

2015-09-09 Thread Julio
New submission from Julio: Hi!, I have a problem to import a multiprocessing module. I am using Python 2.7 and Windows 8. The program (.py) is executed since MS-DOS console. If I run the program the output is "ImportError: No module named multiprocessing". If I execute "import

Re: Python handles globals badly.

2015-09-09 Thread Christian Gollwitzer
Am 09.09.15 um 05:23 schrieb Steven D'Aprano: And yes, the fellow Joe who completely missed the point of the blog post, and made the comment "You don’t think you’re wrong and that’s part of a much larger problem, but you’re still wrong" completely deserved to be called out on his lack of reading

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-09 Thread Stefan Krah
Stefan Krah added the comment: Thanks, I've contacted Robert. -- ___ Python tracker ___ ___ Python-bugs-list

[issue25042] Create an "embedding SDK" distribution?

2015-09-09 Thread Steve Dower
Steve Dower added the comment: It may be worth it. What I'd rather have people do is to install using the regular installer and include both debug symbols and debug binaries. This will put it in a registered location that can be auto detected (I have written a template for Visual Studio that

Re: PIP does not appear to handle diacritics correctly.

2015-09-09 Thread Tim Golden
On 09/09/2015 17:16, Wolfgang Maier wrote: > On 09.09.2015 10:23, Chris Angelico wrote: >> On Wed, Sep 9, 2015 at 5:59 PM, Laszlo Lebrun via Python-list >> wrote: >>> Whenever I start PIP, I get: >>> "Fatal error in launcher: Unable to create process using '"C:\Users >>>

[issue22980] C extension naming doesn't take bitness into account

2015-09-09 Thread Matthias Klose
Matthias Klose added the comment: thanks for the draft! I'm not sure how to describe this properly. The extension names are derived from https://wiki.debian.org/Multiarch/Tuples and this again is derived from the GNU triplets/quadruplets. there is no "cpu" and "os" part, depending on the

[issue15347] IDLE - does not close if the debugger was active

2015-09-09 Thread Mark Roseman
Mark Roseman added the comment: Debugger.py has a nested call to mainloop() ... which is almost always a bad idea. I'm betting the close is being handled in this mainloop, and there are no more events being generated, meaning the real mainloop towards the bottom of PyShell (which checks if

[issue25044] bring BTPROTO_SCO inline with other Bluetooth protocols

2015-09-09 Thread Martin Panter
Martin Panter added the comment: Perhaps making it accept both bytes and text strings is a sensible option. Similar to how AF_INET can bind to both "localhost" and b"localhost". -- nosy: +martin.panter stage: -> needs patch ___ Python tracker

[issue25043] document socket constants for Bluetooth

2015-09-09 Thread Martin Panter
Martin Panter added the comment: The new constant would probably have to go into 3.6 only. I suggest make two patches: your documentation patch to be applied to 3.4+, and the new constant, against 3.6 only. Also, it would be good to get a unit test for the new constant. -- nosy:

Re: Hi am new to python

2015-09-09 Thread Denis McMahon
On Tue, 08 Sep 2015 17:44:26 -0500, Nassim Gannoun wrote: > My question is in a while loop; how do l sum all the numbers in the > given list (list_a)? You don't normally use a while loop or a counter to iterate over a list. Such a question should only be used as a precursor to discussing better

Re: Lesson 39 of Learning Python the Hard Way hangs (Fixed?)

2015-09-09 Thread Gary Roach
On 09/09/2015 01:45 PM, John Gordon wrote: In Gary Roach writes: Traceback (most recent call last): File "/root/mystuff/mystuff/ex39_test.py", line 6, in hashmap.set(states, 'Oregon', 'OR') File

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-09 Thread Martin Panter
Martin Panter added the comment: Hello again. The patch I committed says BTPROTO_SCO accepts a bytes-like object. However I suspect it is actually restricted to bytes only: >>> s = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO) >>> s.bind(bytearray(b"12:23:34:45:56:67")) Traceback (most

Re: Hi am new to python

2015-09-09 Thread Emile van Sebille
On 9/9/2015 3:35 PM, Denis McMahon wrote: On Tue, 08 Sep 2015 17:44:26 -0500, Nassim Gannoun wrote: My question is in a while loop; how do l sum all the numbers in the given list (list_a)? You don't normally use a while loop or a counter to iterate over a list. Such a question should only be

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Eric V. Smith
Changes by Eric V. Smith : Removed file: http://bugs.python.org/file40302/pep-498.diff ___ Python tracker ___

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Eric V. Smith
Changes by Eric V. Smith : Removed file: http://bugs.python.org/file40316/pep-498-1.diff ___ Python tracker ___

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Eric V. Smith
Changes by Eric V. Smith : Removed file: http://bugs.python.org/file40317/pep-498-2.diff ___ Python tracker ___

Can't use Python Launcher on Windows after update to 3.5

2015-09-09 Thread Mark Lawrence
I've installed 3.5 for all users so it's in C:\Program Files From https://docs.python.org/3.5/using/windows.html#from-the-command-line it says "System-wide installations of Python 3.3 and later will put the launcher on your PATH. The launcher is compatible with all available versions of

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: This implements the accepted PEP 498. The only other real change I plan on making is to do dynamic memory allocation when building the expressions that make up a JoinedStr AST node. The code has all of the places to do that already laid out, it's just a matter

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-09 Thread Martin Panter
Martin Panter added the comment: I agree that Python should not be converting the supplied encoding name to lowercase, although I guess reverting this has the potential to upset people’s output (e.g. if they depend on the checksum or something). -- nosy: +martin.panter

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 09, 2015, at 11:57 PM, Eric V. Smith wrote: >There's one nit where I accept 'f' and 'F', but the PEP just says 'f'. I'm >not sure if we should accept the upper case version. I'd think not, but all >of the other ones (b, r, and u) do. I think it should

[issue25035] Getter/setter for argparse keys

2015-09-09 Thread paul j3
paul j3 added the comment: `get_default` and `set_defaults` are parser methods, and do more than set or get a particular Action attribute. 'Set' for example changes both the 'parser._defaults' attribute, and a 'action.default' attribute. Defaults are complex and can be defined in at least 3

Re: setenv

2015-09-09 Thread Chris Angelico
On Thu, Sep 10, 2015 at 1:58 PM, chenc...@inhand.com.cn wrote: > hi: >This is not a question about python. It is a shell question. I'm sorry to > bother you. But I really want to know it. As follow: >I want to set a shell environment variable:PYTHONPATH. When i

Re: Lesson 39 of Learning Python the Hard Way hangs

2015-09-09 Thread Chris Angelico
On Thu, Sep 10, 2015 at 3:27 AM, Gary Roach wrote: > > Python 2.7 (It's going to be a while before 2,7 goes away. There is just too > much code out there. 2.7 isn't going to go away, but that doesn't mean you should learn on it. Unless you have a particular reason for

Re: Lesson 39 of Learning Python the Hard Way hangs

2015-09-09 Thread Ben Finney
Gary Roach writes: > Python 2.7 (It's going to be a while before 2,7 goes away. There is > just too much code out there. The time since Python 2 got any improvements is long in the past, and it will never get any more. It is rapidly becoming the case that new

Re: Lesson 39 of Learning Python the Hard Way hangs (Fixed?)

2015-09-09 Thread Gary Roach
On 09/09/2015 01:45 PM, John Gordon wrote: In Gary Roach writes: Traceback (most recent call last): File "/root/mystuff/mystuff/ex39_test.py", line 6, in hashmap.set(states, 'Oregon', 'OR') File

Re: Lesson 39 of Learning Python the Hard Way hangs

2015-09-09 Thread Gary Roach
On 09/09/2015 01:45 PM, John Gordon wrote: In Gary Roach writes: Traceback (most recent call last): File "/root/mystuff/mystuff/ex39_test.py", line 6, in hashmap.set(states, 'Oregon', 'OR') File

Re: issue while doing pexpect ssh

2015-09-09 Thread harirammanohar159
On Tuesday, 8 September 2015 17:07:24 UTC+5:30, hariramm...@gmail.com wrote: > Some where i am missing simple logic :) > > = > child = pexpect.spawn('ssh hari@hostname') > child.logfile = sys.stdout > child.expect('hari\'s Password: ') > = > > getting error as follows: >

[issue24272] PEP 484 docs

2015-09-09 Thread Larry Hastings
Larry Hastings added the comment: Pull request accepted! Please forward-merge, thanks! -- ___ Python tracker ___

[issue22622] ElementTree only writes declaration when passed encoding

2015-09-09 Thread Martin Panter
Martin Panter added the comment: As far as I can tell this was already working, even in 3.4.0a1 (the first pre-release of 3.4): >>> tree.write('/dev/stdout', xml_declaration=True) But it is not working in Python 2: >>> tree.write('/dev/stdout', xml_declaration=True) Looking at the

[issue25035] Getter/setter for argparse keys

2015-09-09 Thread Sworddragon
Sworddragon added the comment: I'm actually not fully sure why you are telling me this all, especially in this specific way. But I would also go the other way, by removing ArgumentParser.get_default and ArgumentParser.set_defaults if we think the current ways of getting/setting are enough.

setenv

2015-09-09 Thread chenc...@inhand.com.cn
hi: This is not a question about python. It is a shell question. I'm sorry to bother you. But I really want to know it. As follow: I want to set a shell environment variable:PYTHONPATH. When i executeecho $PYTHONPATH, it is

[issue24272] PEP 484 docs

2015-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: Merged and pushed. Let's please use a new issue for any further patches. -- status: open -> closed ___ Python tracker

  1   2   >