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 callin
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 cal
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 should be contingent upon
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 argument only works for th
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": .utcoffset(), since pytz only use
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 cod
"
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
"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 namesp
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
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 writeable
"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,
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
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
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 to
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 character
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
--
https://mail.python.org/mailman/listinfo/python-
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 new
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
phon
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 defini
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 again?',
> "have you c
[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 the
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 fun, is Python pass by
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 choice) so perhaps you do not
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 qu
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
http://w
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] = "Oops!"
>>> gives a data structure one "Oops!"
>>> wh
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 user having specif
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
[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 IAN
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 complete
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* and
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 sche
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 3.5.
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?
--
https://mail.python.org/mailman
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 th
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
[ '300',
[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 ;-)
[
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 histor
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
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 posts (which is less ac
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 scenario
[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 Creighto
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 Mountain time zone base
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 o
On 9/13/2015 1:15 PM, Glus Xof wrote:
Is yet an automatic indentation system implemented ?
The Idle editor does pep8-aware 'smart indenting'. In the following,
'|' indicates the cursor position after is pressed.
A ':' at the end of the line adds 1 indent -- unless there is an opener
that h
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
>> list objects).
>>
>> The
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
>>i
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". In
> Python, "variables" are nametags for values,
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 com
[Guido]
> Wouldn't it be sufficient for people in Creighton to set their timezone to
> US/Central? IIUC the Canadian DST rules are the same as the US ones. Now,
> the question may remain how do people know what to set their timezone to.
> But neither pytz nor datetime can help with that -- it is up
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". In
>> Python, "var
On Mon, Sep 14, 2015 at 10:30 AM, Akira Li <4kir4...@gmail.com> wrote:
> "Naming and binding" is the title from the Python language reference
> https://docs.python.org/3/reference/executionmodel.html#naming-and-binding
>
> Otherwise, I agree with you ("name" is better here).
Ah, gotcha. That's tal
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 sc
On Mon, 14 Sep 2015 09:17 am, Akira Li wrote:
> I don't see why the model that can't describe range(1) in Python 3
> pretends to be complete.
Please explain.
range(1) returns a range instance. What is hard about that?
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
On Sunday, September 13, 2015 at 2:49:13 PM UTC-6, Ben Finney wrote:
> 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 understand
Steven D'Aprano writes:
> On Mon, 14 Sep 2015 09:17 am, Akira Li wrote:
>
>> I don't see why the model that can't describe range(1) in Python 3
>> pretends to be complete.
>
>
> Please explain.
>
> range(1) returns a range instance. What is hard about that?
Look at the last example:
http://threa
On Mon, Sep 14, 2015 at 11:22 AM, Akira Li <4kir4...@gmail.com> wrote:
> Steven D'Aprano writes:
>
>> On Mon, 14 Sep 2015 09:17 am, Akira Li wrote:
>>
>>> I don't see why the model that can't describe range(1) in Python 3
>>> pretends to be complete.
>>
>>
>> Please explain.
>>
>> range(1) returns
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" --
>>> it's
Chris Angelico writes:
> On Mon, Sep 14, 2015 at 11:22 AM, Akira Li <4kir4...@gmail.com> wrote:
>> Steven D'Aprano writes:
>>
>>> On Mon, 14 Sep 2015 09:17 am, Akira Li wrote:
>>>
I don't see why the model that can't describe range(1) in Python 3
pretends to be complete.
>>>
>>>
>>> Pl
On Mon, 14 Sep 2015 11:22 am, Akira Li wrote:
> Steven D'Aprano writes:
>
>> On Mon, 14 Sep 2015 09:17 am, Akira Li wrote:
>>
>>> I don't see why the model that can't describe range(1) in Python 3
>>> pretends to be complete.
>>
>>
>> Please explain.
>>
>> range(1) returns a range instance. What
Steven D'Aprano writes:
> On Mon, 14 Sep 2015 11:22 am, Akira Li wrote:
>> Look at the last example:
>> http://thread.gmane.org/gmane.comp.python.general/782626/focus=782704
>
>
> I'm afraid that page is broken in my browser. Can you not summarise, or link
> to the specific message? I may be able
On 14/09/2015 02:34, rurpy--- via Python-list wrote:
Goodbye, *plonk*
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday, 3 September 2015 03:49:05 UTC+10, Terry Reedy wrote:
> On 9/2/2015 6:04 AM, Victor Hooi wrote:
> > I'm using grouper() to iterate over a textfile in groups of lines:
> >
> > def grouper(iterable, n, fillvalue=None):
> > "Collect data into fixed-length chunks or blocks"
> > #
63 matches
Mail list logo