Re: How to use the returned telnet object after creating the telnet session.

2015-09-13 Thread Denis McMahon
On Sun, 13 Sep 2015 00:38:03 -0700, manjunatha.mahalingappa wrote: > Assume that I will pass IP and port information from a function to open > the telnet session. have opened the telnet session and after opening the > telnet session I returned telnet object to calling function. > > Now in the

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Added this issue as a place for discussion and release blocker for 3.5. -- assignee: yselivanov components: Documentation messages: 250549 nosy: larry, serhiy.storchaka, yselivanov priority: release blocker severity: normal status: open title:

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Jussi Piitulainen
Random832 writes: > Jussi Piitulainen writes: >> I think the best way is to say that a[0] and a[1] are the same >> object, while b[0] and b[1] are different objects. > > Sure, you can *say* that. But how do you draw it on a diagram with > sticky notes or parcel tags or whatever? I prefer to

How to use the returned telnet object after creating the telnet session.

2015-09-13 Thread manjunatha . mahalingappa
Hello all, First I would like thank you for creating such good platform for discussing python..!!! Assume that I will pass IP and port information from a function to open the telnet session. have opened the telnet session and after opening the telnet session I returned telnet object to

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Larry Hastings
Larry Hastings added the comment: You wait until the day of release for 3.5.0 final, then create a "release blocker" because some items in the What's New documentation aren't lexographically sorted? We tagged the release yesterday. The installers are already built. I am not holding up the

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Personally I found few interesting Python 3.5 features just reading recent commit log for Doc/whatsnew/3.5.rst. Without this they would be unknown for me. -- ___ Python tracker

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Alexander Belopolsky
On Sat, Sep 12, 2015 at 9:58 PM, Tim Peters wrote: > > That's why I believe PEP 495 followed by the implementation > > of fold-aware "as intended" tzinfos (either within stdlib or by third > > parties) is the right approach. > > Me too - except I think acceptance of 495

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, but I thought that such issue already exist. Yury and Elvis made a lot of changes in What's New in few last days and continue to edit it. Are these changes included in 3.5.0 final? Without their What's New just isn't ready. --

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Alexander Belopolsky
On Sat, Sep 12, 2015 at 6:24 PM, Guido van Rossum wrote: > The repeated claims (by Alexander?) that astimezone() has the power of > pytz's localize() need to stop. Prove me wrong! :-) > Those pytz methods work for any (pytz) timezone -- astimezone() with a > default

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Alexander Belopolsky
On Sat, Sep 12, 2015 at 10:25 PM, Tim Peters wrote: > > I will try to create a zoneinfo wrapping prototype as well, but I will > > probably "cheat" and build it on top of pytz. > > It would be crazy not to ;-) Note that Stuart got to punt on "the > hard part":

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some modules in the "Improved Modules" section are out of lexicographic order: csv, ssl. -- ___ Python tracker ___

Trac 1.0.9 released

2015-09-13 Thread Ryan Ollos
Trac 1.0.9 Released === Trac 1.0.9, the latest maintenance release for the current stable branch, is available. You will find this release at the usual places: http://trac.edgewall.org/wiki/TracDownload#LatestStableRelease https://pypi.python.org/pypi/Trac/1.0.9 Trac 1.0.9

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread random832
On Sat, Sep 12, 2015, at 22:25, Tim Peters wrote: > That helps a lot, but "industrial-strength" implies "by algorithm". > There are far too many zones to deal with by crafting a hand-written > class for each. It occurs to me that though it's written in C, the zdump utility included in the tz

Re: RPI.GPIO Help

2015-09-13 Thread John McKenzie
Hello, there. MRAB, thank you for teaching me proper Python syntax for how I tried to use the or operator. Dennis, I must have learned allot recently as I believe I understood 99% of that code. I see how it is not just more advanced, but actually better than what I had. However, line 47

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Steven D'Aprano
On Sun, 13 Sep 2015 10:50 pm, Steven D'Aprano wrote: > On Sun, 13 Sep 2015 04:45 am, ru...@yahoo.com wrote: ... ^ > But as I said to Rurpy, Er, that would be you. Editing fail. Sorry about that. -- Steven --

[issue25087] Type variable substitution in type instances

2015-09-13 Thread Stefan Krah
New submission from Stefan Krah: If a type scheme is instantiated, should the type variables in the class body be substituted? This is an example (typed by hand on a locked down Windows machine, may contain errors): alpha = TypeVar('alpha') beta = TypeVar('beta') class ABTuple(Generic[alpha,

Integration using scipy odeint

2015-09-13 Thread sagar k
Dear all I'm using Python 3.4.3. I am facing a problem in integrating using odeint solver. In the following code, tran is a function and in those are the variables which are arrays. These variables change their values with respect to time (the time which I pass to the function). I tried

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks, Yury! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Phone Tree

2015-09-13 Thread Azureaus
Hi, I'm helping out some teenagers (14yo ish) who have just started programming and are working on a 'call tree' program as part of some after school coding classes and I wanted to talk about potential solutions. The first task is to implement a 'troubleshooting program' similar to what a

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: Larry, it looks like the "Detailed Release Information" link on the release page still points to rc3, which is a 404 now. Also, there doesn't seem to be a link to the "What's new" document, only a Misc/NEWS link. --

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Tim Peters
[Alex] >>I will try to create a zoneinfo wrapping prototype as well, but I will >>probably "cheat" and build it on top of pytz. [Laura Creighton] > My question, is whether it will handle Creighton, Saskatchewan, Canada? > Creighton is an odd little place. Like all of Saskatchewan, it is > in

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov
Yury Selivanov added the comment: And can we point https://docs.python.org/3/ to 3.5 docs? -- ___ Python tracker ___

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, Please rebuild the documentation, we've pushed the last round of edits in 746add37495c. Also, could you please merge 3.5 into default -- I don't know how to resolve some conflicts after your 3.5.0 -> 3.5 merge. > I could add a "What's New" link

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Larry Hastings
Larry Hastings added the comment: I don't know how to do it. I asked the Documentation Expert member of the Python 3.5 release team, but it seems he's afk at the moment. I'm trying to find someone else who knows how to do it. -- ___ Python

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 10:27:30 -0500, Tim Peters writes: >Hi, Laura! By "zoneinfo" here, we mean the IANA (aka "Olson") time >zone database, which is ubiquitous on (at least) Linux: > >https://www.iana.org/time-zones > >So "will a wrapping of zoneinfo handle XYZ?" isn't so much a

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ssl should be between sqlite3 and subprocess. -- ___ Python tracker ___

Re: Python handles globals badly.

2015-09-13 Thread Steven D'Aprano
On Sun, 13 Sep 2015 10:04 pm, Skybuck Flying wrote: > " > Namespaces don't "become writeable". > > The purpose of "global" is to tell the compiler that this name should > be bound in the global namespace, not the local namespace. > " > > How does it become writeable then ? It's always

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: Could I get a little note in the collections.abc section that the new ABCs "Generator", "Coroutine" and "Awaitable" are available as backports in the "backports_abc" package on PyPI? https://pypi.python.org/pypi/backports_abc I'd like to prevent others from

[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Naveen Togar
New submission from Naveen Togar: SciPy install using pip fails with the following error: Running from scipy source directory. /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/distutils/system_info.py:594: UserWarning: Specified path

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
" Namespaces don't "become writeable". The purpose of "global" is to tell the compiler that this name should be bound in the global namespace, not the local namespace. " How does it become writeable then ? Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Laura Creighton
In a message of Sat, 12 Sep 2015 22:15:02 -0400, Alexander Belopolsky writes: >I completely agree. That's why I am adding test cases like Lord Hope >Island and Vilnius to datetimetester. > >I will try to create a zoneinfo wrapping prototype as well, but I will >probably "cheat" and build it on

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa288ad94089 by Yury Selivanov in branch '3.5': whatsnew/3.5: Fix typo (issue #25082) https://hg.python.org/cpython/rev/aa288ad94089 -- ___ Python tracker

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Larry Hastings
Larry Hastings added the comment: I'm hoping to release 3.5.0 final in the next hour or two. I don't want to hold up the release for your changes. However, when you're done making changes to the document, and they're all checked in, let me know and I'll manually build it and push it to the

[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-13 Thread Wolfgang Langner
New submission from Wolfgang Langner: The Windows x86-64 embeddable zip file (and possible the one for 32bit) includes some unnecessary test folders in python35.zip with test scripts. python35.zip\distutils\tests\ python35.zip\unittest\test\ python35.zip\lib2to3\tests\ python35.zip\ctypes\test\

[issue25086] Windows x86-64 embeddable zip file, lot of big EXE files in distuils

2015-09-13 Thread Wolfgang Langner
New submission from Wolfgang Langner: In the Windows x86-64 embeddable zip file in python35.zip\distutils\command\ are a lot of big EXE files. Possible during build for different VC compilers. I don't know the exact structure but thing there should only be EXE's for the actual used compiler to

Re: Phone Tree

2015-09-13 Thread Chris Angelico
On Mon, Sep 14, 2015 at 12:39 AM, Azureaus wrote: > The first task is to implement a 'troubleshooting program' similar to what a > phone operator would have when you phone up with a problem. We all know the > type when you phone up your ISP, 'have you turned it off and on

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Chris Angelico
On Mon, Sep 14, 2015 at 1:31 AM, rurpy--- via Python-list wrote: > Ben, > > If the troll being taunted here is referring to me, I suggest > you review my posts in this thread, You've said in the past > that you don't read posts from Google Groups (that's fine, > your

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Steven D'Aprano
On Sun, 13 Sep 2015 04:45 am, ru...@yahoo.com wrote: > On 09/12/2015 10:32 AM, Steven D'Aprano wrote: >> On Sat, 12 Sep 2015 02:42 pm, Random832 wrote: >>[...] >> Computer science and IT is *dominated* by a single usage for "pointer" -- >> it's an abstract memory address. The fundamental

[issue24665] CJK support for textwrap

2015-09-13 Thread Florent Gallaire
Changes by Florent Gallaire : Added file: http://bugs.python.org/file40451/CJK+fix.patch ___ Python tracker ___

[RELEASED] Python 3.5.0 is now available

2015-09-13 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm proud to announce the availability of Python 3.5.0. Python 3.5.0 is the newest version of the Python language, and it contains many exciting new features and optimizations. You can read all about what's

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread rurpy--- via Python-list
On 09/12/2015 08:42 PM, Ben Finney wrote: > Michael Torrie writes: >> On 09/12/2015 08:22 PM, Mark Lawrence wrote: >>> You appear to have the same level of knowledge of Python internals as >>> the RUE has of the Python 3.3+ FSR unicode implementation. Let's have >>> some

xlwings v0.4.0 adds reliable support for multiple instances on Windows

2015-09-13 Thread Felix Zumstein
I am pleased to announce the release of xlwings v0.4.0: The most important update with this release was made on Windows: The methodology used to make a connection to Workbooks has been completely replaced. This finally allows xlwings to reliably connect to multiple instances of Excel even if

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
"Steven D'Aprano" wrote in message news:55f566c8$0$1644$c3e8da3$54964...@news.astraweb.com... On Sun, 13 Sep 2015 10:04 pm, Skybuck Flying wrote: " Namespaces don't "become writeable". The purpose of "global" is to tell the compiler that this name should be bound in the global namespace,

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
I may add to that: Just like most programmers don't truely understand what a compiler does ! HAHAHAHAHA. C programmers, Delphi programmers, Java programmers. What python's interpreter is doing same thing, probably completely irrelevant. Except when it comes to making changes to how python

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Elvis Pranskevichus
Changes by Elvis Pranskevichus : -- nosy: +Elvis.Pranskevichus ___ Python tracker ___ ___

[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-13 Thread Flavio Grossi
New submission from Flavio Grossi: threading.Condition.wait(timeout=x) is implemented in python 2 as a semi-busy loop which causes cpu wakeups and unexpected cpu use. I think this is somewhat problematic since it causes problems in all modules which use that method, such as Queue.get() when

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Larry Hastings
Larry Hastings added the comment: The "Detailed Release Information" link is correct. You probably just have an old cached copy of something. I could add a "What's New" link somewhere. Though both of these things are interesting, neither of them is relevant to this issue. Maybe you could

[RELEASED] Python 3.5.0 is now available

2015-09-13 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm proud to announce the availability of Python 3.5.0. Python 3.5.0 is the newest version of the Python language, and it contains many exciting new features and optimizations. You can read all about what's

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
"Emile van Sebille" wrote in message news:mailman.433.1442078406.8327.python-l...@python.org... On 9/11/2015 10:22 PM, Skybuck Flying wrote: I didn't learn anything from this posting, sorry ! ;) " I'm seeing a pattern here... " Only thing I might have learned from him was global

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
From what he wrote I can see he's not making much sense... Neither are you. Just lot's of nag and little python related stuff. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2015-09-13 Thread Ned Batchelder
On Sunday, September 13, 2015 at 8:11:13 AM UTC-4, Skybuck Flying wrote: > I don't even understand how python interpreter works but I can understand it > better than you guys do apperently hahaha. As tempting as it is to respond to Skybuck, with a brief pause to consider, and a deep breath, I'm

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov
Yury Selivanov added the comment: > Some modules in the "Improved Modules" section are out of lexicographic > order: csv, ssl. Yes, these two weren't properly ordered by *2nd* letter. Fixed. >>-constructor. All converters defined in config parser (either by subclassing >>or Good catch.

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-13 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +elvis ___ Python tracker ___ ___ Python-bugs-list

[issue25061] Add native enum support for argparse

2015-09-13 Thread paul j3
paul j3 added the comment: I'm not quite sure what you mean by 'the enum type to be stored directly'. With my type function, the string input is converted to an enum object and that is stored in the Namespace. You can't be any more direct than that. Or are you thinking that `argparse` has

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 15:13:53 -0500, Tim Peters writes: >[Laura] >> Via Rail will give you a schedule when you book your tickets. But I >> am wrong, it gives it to you in local time, which you can scrape or >> even use the via rail api. So it is the person getting off in >> Creighton

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov
Yury Selivanov added the comment: > ssl should be between sqlite3 and subprocess. It makes sense that ssl module description follows the socket module. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Many thanks to Yury and Elvis for your work on What's New. -- ___ Python tracker ___

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Akira Li
Random832 writes: > Akira Li <4kir4...@gmail.com> writes: >>Rustom Mody writes: >>> viz. I have two variables (or names!) say a and b which look the same >> a >>> [[1,2],[1,2]] >> b >>> [[1,2],[1,2]] >>> And yet doing >> a[0][0] =

Re: Integration using scipy odeint

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 07:49:37 -0700, sagar k writes: >Dear all > >I'm using Python 3.4.3. I am facing a problem in integrating using odeint >solver. In the following code, tran is a function and in those are the >variables which are arrays. These variables change their values with

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 14:00:33 -0500, Tim Peters writes: >> But I am not sure how it is that a poor soul who just wants to print a >> railway schedule 'in local time' is supposed to know that Creighton is >> using Winnipeg time. > >I'm not sure how that poor soul would get a railway

convert element in a list to float

2015-09-13 Thread forums_mp
For starters, I googled and saw a plethora of writings on how to convert an entire list from string to float. My interest is on select elements in the list. The output from the print statement: print scenarioList is as follows [ '300', '"N"', '1140', '"E"' ] I need to convert

Re: How to set the history commands visible ?

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 19:15:19 +0200, Glus Xof writes: >Hi guys, > >Today, a new python stable version was released (thanks for your job)... >and I write to ask you for the recommended method to compile the sources >(in Debian GNU/Linux platfom) in order to the arrow keys emit the

Re: convert element in a list to float

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 12:55:13 -0700, forums...@hotmail.com writes: > > >For starters, I googled and saw a plethora of writings on how to convert an >entire list from string to float. My interest is on select elements in the >list. The output from the print statement: print

Re: Phone Tree

2015-09-13 Thread Laura Creighton
Somewhere in there you may find that dictionary dispatching is something worth doing. I don't know. This whole sort of problem is sort of grating, in that it is trying to replicate one of the most irritating user experiences on the planet ... >From python3: Patterns, Recipes and Idioms

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Chris Angelico
On Mon, Sep 14, 2015 at 4:04 AM, Akira Li <4kir4...@gmail.com> wrote: >> (If I were drawing a picture rather than ASCII I'd add something to make >> it clear that the pairs shown are list objects Like, it's a circle with >> the word "list" and two pointer-boxes inside it.) > > "correct and

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Random832
Akira Li <4kir4...@gmail.com> writes: > I'm not sure what "parcel tags" model is but if you mean these > pictures[1] than it works in this case as well as any other (take *a*, > *b* nametags, put them on the corresponding balloons that represents > list objects). > > The only names left are *a*

Re: convert element in a list to float

2015-09-13 Thread Mark Lawrence
On 13/09/2015 20:55, forums...@hotmail.com wrote: For starters, I googled and saw a plethora of writings on how to convert an entire list from string to float. My interest is on select elements in the list. The output from the print statement: print scenarioList is as follows [

[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Carol Willing
Carol Willing added the comment: I am unable to pip install scipy, numpy, or pandas using 3.5.0 on OS X 10.10.4. After installing Python 3.5 using the installer downloaded from Python.org page, I created a virtualenv using `pyvenv myscipy` and activated with `source myscipy\bin\activate`.

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-13 Thread desbma
desbma added the comment: If I understand you correctly, a naive implementation like this: use_chunk_copy = False try: fdsrc = fsrc.fileno() fddst = fdst.fileno() except OSError: # fallback on current chunk based Python copy use_chunk_copy = True else: # we have 2 fd, try sendfile

[issue25087] Type variable substitution in type instances

2015-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: Good question. Let's discuss this in the type hinting / pep 484 tracker: https://github.com/ambv/typehinting/issues/156 -- ___ Python tracker

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Random832
Laura Creighton writes: > But I am not sure how it is that a poor soul who just wants to print a > railway schedule 'in local time' is supposed to know that Creighton is > using Winnipeg time. The same way they know that any other location is using whatever time it uses. By the

How to set the history commands visible ?

2015-09-13 Thread Glus Xof
Hi guys, Today, a new python stable version was released (thanks for your job)... and I write to ask you for the recommended method to compile the sources (in Debian GNU/Linux platfom) in order to the arrow keys emit the history commands instead of... it seems that escape sequences... Python

Cannot create a virtualenv

2015-09-13 Thread paul . hermeneutic
Installing Py 3.5 and `pip install virtualenv` worked fine. However, I cannot create a virtualenv. "OSError: Command C:\ve\ve33\Scripts\python.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with error code 1" Any suggestions? --

[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Ned Deily
Ned Deily added the comment: For 3.4 and 2.7, the SciPy and matplotlib projects supply pre-compiled wheels for their distributions. As of this moment, they haven't yet updated their PyPI entries with 3.5 wheels (.whl files). Until they do, pip would fall back to trying to build them from

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Ben Finney
Chris Angelico writes: > I think Ben's referring to taunting jmf, whom Mark called the "RUE" or > "Resident Unicode Expert". There has been a long-standing antagonism > between those two (which is completely understandable), and one which > often spills over into vitriolic

[issue25061] Add native enum support for argparse

2015-09-13 Thread desbma
desbma added the comment: I would like the enum type to be stored directly. With your approach, the user does not know what are the possible choices, until he/she tries a invalid value and get the exception. If I pass the enum type to the choice parameter, the help message is not very user

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Tim Peters
[Tim] >> Hi, Laura! By "zoneinfo" here, we mean the IANA (aka "Olson") time >> zone database, which is ubiquitous on (at least) Linux: >> >>https://www.iana.org/time-zones >> >>So "will a wrapping of zoneinfo handle XYZ?" isn't so much a question >>about the wrapping as about what's in the

[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Tim Peters
[Laura] >>> But I am not sure how it is that a poor soul who just wants to print a >>> railway schedule 'in local time' is supposed to know that Creighton is >>> using Winnipeg time. [Tim] >> I'm not sure how that poor soul would get a railway schedule >> manipulable in Python to begin with ;-)

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

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

[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Naveen Togar
Naveen Togar added the comment: I didn't have any issues with either numpy or pandas. I just tried installing matplotlib and that failed too. -- ___ Python tracker

[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Carol Willing
Carol Willing added the comment: Naveen, I was able to resolve this problem for installation by installing gfortran using the instructions here: http://hpc.sourceforge.net/ After gfortran is successfully installed, I was able to ``pip install scipy -v`` the libraries that depend on gfortran.

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-13 Thread Martin Panter
Martin Panter added the comment: I don’t know the exact reasoning, but fileno() could be useful for other purposes, e.g. passing to stat() to find the last modification time, passing to select() to see if data is available. -- ___ Python tracker

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Guido van Rossum
On Sun, Sep 13, 2015 at 5:24 AM, Laura Creighton wrote: > My question, is whether it will handle Creighton, Saskatchewan, Canada? > Creighton is an odd little place. Like all of Saskatchewan, it is > in the Central time zone, even though you would expect it to be > in the

[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Mark Lawrence
New submission from Mark Lawrence: I first asked a few days ago, see this thread http://www.gossamer-threads.com/lists/python/python/1216917. You can work around it by running "repair" but it takes an age to run for what, to me anyway, is a minor irritant. -- components: Windows

Re: Phone Tree

2015-09-13 Thread Denis McMahon
On Sun, 13 Sep 2015 07:39:23 -0700, Azureaus wrote: > Does anyone have any ideas for a more elegant solution? My thoughts are > that I could use a tree data structure and hence make traversing the > tree recursive based on yes or no answers. I'm happy to put the time in > to explain these more

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Akira Li
Chris Angelico writes: > On Mon, Sep 14, 2015 at 9:17 AM, Akira Li <4kir4...@gmail.com> wrote: >> If you mean this quote from [1]: >> >> Although we commonly refer to "variables" even in Python (because it's >> common terminology), we really mean "names" or "identifiers".

[issue6691] Support for nested classes and function for pyclbr

2015-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> enhancement versions: +Python 3.6 -Python 3.2 ___ Python tracker ___

[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Steve Dower
Steve Dower added the comment: Yeah, it's basically impossible to manage PATH automatically. You've probably installed 3.5 just for yourself while 3.4 is installed for all users. In this case, 3.5 will always lose because Windows puts user paths after system paths. You could modify 3.4 to

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-13 Thread Martin Panter
Martin Panter added the comment: Regarding the null terminator, I was mainly smoke testing your code. :) Maybe it would be too hard to support properly. Although I could imagine someone doing things like this: >>> d = {b"key\x00": "value"} >>> f"key={d[b'key\x00']}" # Oops, escape code at

[issue25090] IDLE: remove noisy icons from class (module) browser

2015-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Adding function arguments to the module browser, misnamed Class Browser, is #20827. That leaves removing the noisy icons from class and def entries (where they do not fit anyway), as the concrete appearance change proposal here. Better to use the space for

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Tim Peters
[Tim] >> Whatever time zone the traveler's railroad schedule uses, so long as >> it sticks to just one [Laura] > This is what does not happen. Which is why I have written a python > app to perform conversions for my parents, in the past. So how did they get the right time zone rules for

[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Steve Dower
Steve Dower added the comment: I don't understand what you did and what the result was from that thread. * What options did you select when installing 3.5? * What other Python versions did you have? What options were used to install them? * Where was py.exe before installing 3.5? * Can you

Re: convert element in a list to float

2015-09-13 Thread Steven D'Aprano
Hi Forums_MP and welcome, On Mon, 14 Sep 2015 05:55 am, forums...@hotmail.com wrote: > For starters, I googled and saw a plethora of writings on how to convert > an entire list from string to float. My interest is on select elements > in the list. The output from the print statement: print

[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: For anyone else reading this, Mark says he already re-tried with 3.5.0. The only problem I had with the install on my Win7, with 2.7.10, 3.4.3, and 3.5.0rc3 already present, is that 3.4.3 is still the default python (started by 'python') in spite of checking

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread rurpy--- via Python-list
On 09/13/2015 06:50 AM, Steven D'Aprano wrote: > On Sun, 13 Sep 2015 04:45 am, ru...@yahoo.com wrote: >> On 09/12/2015 10:32 AM, Steven D'Aprano wrote: >>> On Sat, 12 Sep 2015 02:42 pm, Random832 wrote: >>> [...] >>> Computer science and IT is *dominated* by a single usage for "pointer" -- >>>

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

2015-09-13 Thread Mark Lawrence
On 10/09/2015 16:56, Mark Lawrence wrote: On 10/09/2015 11:20, Tim Golden wrote: On 10/09/2015 00:52, Mark Lawrence wrote: 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

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread Akira Li
Random832 writes: > Akira Li <4kir4...@gmail.com> writes: >> I'm not sure what "parcel tags" model is but if you mean these >> pictures[1] than it works in this case as well as any other (take *a*, >> *b* nametags, put them on the corresponding balloons that represents >>

[issue25090] IDLE: alternative to class browser / code context

2015-09-13 Thread Mark Roseman
New submission from Mark Roseman: Proposal for an alternative or perhaps replacement of both the code context extension, as well as the class browser (rooted at a particular file, not the path browser). I'll direct your attention to the attached browser.png. On the right is IDLE's class

Re: convert element in a list to float

2015-09-13 Thread Denis McMahon
On Sun, 13 Sep 2015 23:02:55 +0200, Laura Creighton wrote: > In a message of Sun, 13 Sep 2015 12:55:13 -0700, forums...@hotmail.com > writes: >> >>For starters, I googled and saw a plethora of writings on how to convert >>an entire list from string to float. My interest is on select elements

  1   2   >