On 2/11/2015 9:48 PM, Rustom Mody wrote:
On Thursday, February 12, 2015 at 7:57:48 AM UTC+5:30, Terry Reedy wrote:
If one saves the shell with 'save as', the filename is added to the
title bar. If one does something more, the name in bracketed with *s to
indicate the the memory buffer has bee
Bruno Cauet writes:
> Unicode characters outside the ASCII range also get encoded when they
> have no reason to, e.g.
>>>> pathlib.PurePath("/home/싸이/").as_uri()
>'file:///home/%EC%8B%B8%EC%9D%B4'
Non-ASCII characters are not legal uri characters.
Look at section 2.3 of "http://www.faqs.o
Hi Asim, thanks for your help. It is working properly now.
Thanks,
-Leo
On Wed, Feb 11, 2015 at 4:48 PM, Asim Jalis wrote:
> Hi Leo,
>
> This might be a PATH issue.
>
> See this discussion for details.
>
>
> https://pythongisandstuff.wordpress.com/2011/07/07/installing-gdal-and-ogr-for-python-o
On 12/02/2015 02:48, Rustom Mody wrote:
[BTW I have some other feature requests too. Is this the best forum to talk of
them? And thanks for your work on idle :-) ]
Here is as good a place as any although there is an IDLE development
mailing list at https://mail.python.org/mailman/listinfo/i
On Thu, Feb 12, 2015 at 1:57 PM, Ian Kelly wrote:
> The reason I don't like this replacing def isn't because the name is
> necessarily lost. It's because the lack of the well-defined def
> statement encourages more complex usages like
>
> functions['f'] = x -> x**2
>
> where such implicit tran
On Thu, Feb 12, 2015 at 1:27 PM, Terry Reedy wrote:
> However, when one quits, then, unlike a regular edit window, there is no
> ask-to-save warning. Is this what you want? This would seem reasonable and
> likely easy. (I would, however, not want the prompt when the buffer has not
> been saved
On Wed, Feb 11, 2015 at 7:06 PM, Terry Reedy wrote:
>> I can't see why the parser would understand more easily
>>
>> def f(x):
>> return x**2
>> than
>>
>> f = x->
>> return x**2
>
>
> The parser parses both equally well. That is not the issue.
The compiler could at some point recogniz
On Thursday, February 12, 2015 at 7:57:48 AM UTC+5:30, Terry Reedy wrote:
> On 2/11/2015 1:00 PM, Mark Lawrence wrote:
> > On 11/02/2015 13:11, Rustom Mody wrote:
> >> Context:
> >> I am using idle for taking python classes.
>
> Teaching or taking?
Teaching -- I would like to mail¹ students the i
On 2/11/2015 5:17 PM, Mark Lawrence wrote:
There are loads of "possible loss of data" warnings such as.
15>..\Modules\_tkinter.c(640): warning C4267: '+=' : conversion from
'size_t' to 'int', possible loss of data
15>..\Modules\_tkinter.c(892): warning C4244: 'function' : conversion
from 'Py_ssi
On 2/11/2015 1:00 PM, Mark Lawrence wrote:
On 11/02/2015 13:11, Rustom Mody wrote:
Context:
I am using idle for taking python classes.
Teaching or taking?
Finish the class and run out usually in a hurry and forget to save the
idle interaction window.
Do you mean the shell window?
Would l
On 2/11/2015 8:04 AM, Albert van der Horst wrote:
It is not until we assign the object to a name (which becomes thereby a
function)
that the __name__ thingy comes into play, like so.
But __name__ would not come into play.
f = x->x**2
This would mean to create an anonymous function object
In article
,
Matthew Taylor wrote:
> Does this make sense to anyone? I'm still a little new to Python in
> general (especially binary packaging), and it seems like this would be
> a common problem for any projects with C extensions that need broad
> binary distribution. Does anyone have any sugg
On 11/02/2015 22:38, Tim Golden wrote:
On 11/02/2015 22:31, Chris Angelico wrote:
On Thu, Feb 12, 2015 at 9:17 AM, Mark Lawrence
wrote:
26> C:\Program Files (x86)\Windows
Kits\8.1\Include\um\winsock2.h(3623) : see declaration of
'WSAStringToAddressA'
To clarify, are you building a 3
Robert Kern wrote:
> Referring to that namespace as the
> "`__builtins__` namespace" isn't *wrong*. It may mislead you into thinking
> I've implemented it one particular way
Well it certainly mislead me :-)
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
Johnny Ting Shi wrote:
> We have some VM running on top of EXSi. We want to be to run some remote
> arbitrary commands on the VM, anyone has experience with
> https://github.com/vmware/pyvmomi? which command do i need to call?
I'm afraid I've never used pyvmomi, but I'm not sure why the fact it
On 11/02/2015 22:31, Chris Angelico wrote:
On Thu, Feb 12, 2015 at 9:17 AM, Mark Lawrence wrote:
26> C:\Program Files (x86)\Windows
Kits\8.1\Include\um\winsock2.h(3623) : see declaration of
'WSAStringToAddressA'
To clarify, are you building a 32-bit or 64-bit Python here? Also,
what
On Thu, Feb 12, 2015 at 9:17 AM, Mark Lawrence wrote:
> 26> C:\Program Files (x86)\Windows
> Kits\8.1\Include\um\winsock2.h(3623) : see declaration of
> 'WSAStringToAddressA'
To clarify, are you building a 32-bit or 64-bit Python here? Also,
what version of Windows?
It looks like at lea
On Wed, Feb 11, 2015 at 3:19 PM, Ian Kelly wrote:
> On Wed, Feb 11, 2015 at 2:48 PM, Mark Lawrence
> wrote:
>> On 11/02/2015 20:02, Hrvoje Nikšić wrote:
>>>
>>> According to the documentation of the "g" floating-point format,
>>> trailing zeros should be stripped from the resulting string:
>>>
>
On Wed, Feb 11, 2015 at 2:48 PM, Mark Lawrence wrote:
> On 11/02/2015 20:02, Hrvoje Nikšić wrote:
>>
>> According to the documentation of the "g" floating-point format,
>> trailing zeros should be stripped from the resulting string:
>>
>> """
>> General format. For a given precision p >= 1, this r
There are loads of "possible loss of data" warnings such as.
15>..\Modules\_tkinter.c(640): warning C4267: '+=' : conversion from
'size_t' to 'int', possible loss of data
15>..\Modules\_tkinter.c(892): warning C4244: 'function' : conversion
from 'Py_ssize_t' to 'int', possible loss of data
I
On 11/02/2015 20:02, Hrvoje Nikšić wrote:
According to the documentation of the "g" floating-point format,
trailing zeros should be stripped from the resulting string:
"""
General format. For a given precision p >= 1, this rounds the number
to p significant digits and then formats the result in
We have some VM running on top of EXSi. We want to be to run some remote
arbitrary commands on the VM, anyone has experience with
https://github.com/vmware/pyvmomi? which command do i need to call?
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
According to the documentation of the "g" floating-point format,
trailing zeros should be stripped from the resulting string:
"""
General format. For a given precision p >= 1, this rounds the number
to p significant digits and then formats the result in either
fixed-point format or in scientific n
On Wednesday, February 11, 2015 at 11:24:33 PM UTC+5:30, Marko Rauhamaa wrote:
> Rustom Mody wrote:
>
> > xkb supercedes xmodmap which is increasingly unsupported
> > ie it does all of the earlier functionality and much more
> >
> > Only catch is to have to read impenetrable docs :-)
> >
> > Ive b
In a message of Wed, 11 Feb 2015 11:23:10 -0600, Skip Montanaro writes:
>Thanks for all the ideas. As I'm an Emacs user (since Gosmacs in the
>early 80s), I will likely focus my attention there first. While the
>xkbmap/Xmodmap path seems like it would also work on Linux, I'm
>guessing Apple wouldn'
On 11/02/2015 13:11, Rustom Mody wrote:
Context:
I am using idle for taking python classes.
Finish the class and run out usually in a hurry and forget to save the
idle interaction window. Would like to save it so that I can mail it to the
students.
In emacs I could set a hook to make arbitrary
Rustom Mody :
> xkb supercedes xmodmap which is increasingly unsupported
> ie it does all of the earlier functionality and much more
>
> Only catch is to have to read impenetrable docs :-)
>
> Ive been directed to these
> http://pascal.tsu.ru/en/xkb/setup.html
> http://www.charvolant.org/~doug/xk
On Wednesday, February 11, 2015 at 10:42:59 PM UTC+5:30, Marko Rauhamaa wrote:
> Rustom Mody :
>
> > On Wednesday, February 11, 2015 at 6:06:03 PM UTC+5:30, Marko Rauhamaa
> > wrote:
> >
> >> The problem with xkbmap is that I don't know how to specify a new
> >> keyboard map as a regular user. I
Skip Montanaro :
> Thanks for all the ideas. As I'm an Emacs user (since Gosmacs in the
> early 80s), I will likely focus my attention there first. While the
> xkbmap/Xmodmap path seems like it would also work on Linux, I'm
> guessing Apple wouldn't allow that sort of thing to sully Mac OS X...
>
Thanks for all the ideas. As I'm an Emacs user (since Gosmacs in the
early 80s), I will likely focus my attention there first. While the
xkbmap/Xmodmap path seems like it would also work on Linux, I'm
guessing Apple wouldn't allow that sort of thing to sully Mac OS X...
Despite its name
Skip
--
Rustom Mody :
> On Wednesday, February 11, 2015 at 6:06:03 PM UTC+5:30, Marko Rauhamaa wrote:
>
>> The problem with xkbmap is that I don't know how to specify a new
>> keyboard map as a regular user. I know how to do that with .Xmodmap.
>
> Xmodmap is neat... but obsolete
Still, if xkbmap can't d
On 02/11/2015 05:04 AM, Albert van der Horst wrote:
> That's the reason why my ideal Python doesn't attach a name to a lambda
> denotation:
>
> x -> x**2
Hmmm. So now let's say you have a few dozen of these types of functions, and
you want to talk about the twenty-sixth
one with a peer... are
On 2015-02-11 00:06, Neal Becker wrote:
I inserted
@profile
def run(...)
into a module-level global function called 'run'. Something is very wrong here.
1. profile results were written before anything even ran
2. profile is not defined?
kernprof -l ./test_unframed.py --lots --of --args ...
On 2015-02-11 01:17, Steven D'Aprano wrote:
Neal Becker wrote:
To quote from https://pypi.python.org/pypi/line_profiler/
$ kernprof -l script_to_profile.py
kernprof will create an instance of LineProfiler and insert it into the
__builtins__ namespace with the name profile.
Ewww What a R
On Thu, Feb 12, 2015 at 2:07 AM, Dave Angel wrote:
> Similarly, if you import from more than one module, and use the import*
> form, they could conflict with each other. And the order of importing will
> (usually) determine which names override which ones.
Never mind about conflicts and order of
On 2015-02-11 10:07, Dave Angel wrote:
> if there are tons of them, you do NOT want to pollute your local
> namespace with them, and should do:
>
> import mydef
>
> x = mydef.func2() # or whatever
or, if that's verbose, you can give a shorter alias:
import Tkinter as tk
root = tk.Tk()
On 02/11/2015 08:27 AM, Victor L wrote:
Laura, thanks for the answer - it works. Is there some equivalent of
"include" to expose every function in that script?
Thanks again,
-V
Please don't top-post, and please use text email, not html. Thank you.
yes, as sohcahto...@gmail.com pointed out, yo
On Wednesday, February 11, 2015 at 8:04:33 AM UTC-5, Albert van der Horst wrote:
> In article ,
> Ethan Furman wrote:
> >-=-=-=-=-=-
> >
> >On 01/24/2015 11:55 AM, Chris Angelico wrote:
> >> On Sun, Jan 25, 2015 at 5:56 AM, Ethan Furman wrote:
> >>> If the non-generic is what you're concerned ab
On 11.02.2015 14:29, Rustom Mody wrote:
So getting up and running with minimal headache is an important priority.
Yes true. I consider Notebooks as a way to do "frontal" teaching, not
necessarily usefull if students have to redo what you are doing on
screen. For that, notebooks are rather pro
On Wednesday, February 11, 2015 at 6:50:35 PM UTC+5:30, Fabien wrote:
> On 11.02.2015 14:11, Rustom Mody wrote:
> > Context:
> > I am using idle for taking python classes.
>
> I know this is not your question, but: have you considered using iPython
> notebooks for teaching? They save automaticall
Laura, thanks for the answer - it works. Is there some equivalent of
"include" to expose every function in that script?
Thanks again,
-V
On Tue, Feb 10, 2015 at 7:16 PM, Laura Creighton wrote:
> In a message of Wed, 11 Feb 2015 01:06:00 +0100, Laura Creighton writes:
> >In a message of Tue, 10 F
On 11.02.2015 14:11, Rustom Mody wrote:
Context:
I am using idle for taking python classes.
I know this is not your question, but: have you considered using iPython
notebooks for teaching? They save automatically, look nice, and can be
sent as code, html, rst, ...
Fabien
--
https://mail.py
Context:
I am using idle for taking python classes.
Finish the class and run out usually in a hurry and forget to save the
idle interaction window. Would like to save it so that I can mail it to the
students.
In emacs I could set a hook to make arbitrary 'buffers' like the python-idle
shell be
On Thu, Feb 12, 2015 at 12:04 AM, Tim Chase
wrote:
> On 2015-02-10 19:37, Ned Deily wrote:
>> On OS X, the system provides both a "Character Viewer" (which
>> allows the selection of any Unicode character
>
> Windows also provides charmap.exe which provides similar
> functionality, though last I c
In article ,
Ethan Furman wrote:
>-=-=-=-=-=-
>
>On 01/24/2015 11:55 AM, Chris Angelico wrote:
>> On Sun, Jan 25, 2015 at 5:56 AM, Ethan Furman wrote:
>>> If the non-generic is what you're concerned about:
>>>
>>> # not tested
>>> dispatch_table_a = {}
>>> dispatch_table_b = {}
>>> dispatch_tabl
On 2015-02-10 19:37, Ned Deily wrote:
> On OS X, the system provides both a "Character Viewer" (which
> allows the selection of any Unicode character
Windows also provides charmap.exe which provides similar
functionality, though last I checked it, it still had the feel of a
Win3.1 app (usability w
On Wednesday, February 11, 2015 at 6:06:03 PM UTC+5:30, Marko Rauhamaa wrote:
> The problem with xkbmap is that I don't know how to specify a new
> keyboard map as a regular user. I know how to do that with .Xmodmap.
Xmodmap is neat... but obsolete
Ive noticed hanging and misbehavior and there ar
On Wednesday, February 11, 2015 at 5:52:49 PM UTC+5:30, Rustom Mody wrote:
> On Wednesday, February 11, 2015 at 9:50:15 AM UTC+5:30, Chris Angelico wrote:
> > On Wed, Feb 11, 2015 at 3:10 PM, Steven D'Aprano wrote:
> > > Rustom Mody wrote:
> > >
> > >> $ setxkbmap -query# examine current se
Rustom Mody :
> Can someone try out:
>
> $ setxkbmap -layout "us,gr" -option "grp:ralt_rshift_toggle"
I tried it.
> Earlier that used to work as a *toggle* ie a RAlt-RShift chord would
> go to gr(eek) and another would come back to 'us'.
I noticed, thanks very much. Luckily I managed to undo th
On Wednesday, February 11, 2015 at 9:50:15 AM UTC+5:30, Chris Angelico wrote:
> On Wed, Feb 11, 2015 at 3:10 PM, Steven D'Aprano wrote:
> > Rustom Mody wrote:
> >
> >> $ setxkbmap -query# examine current settings
> >
> > Alas, that does not appear to work in Debian squeeze:
> >
> > steve@ru
Attempting to connect to Hadoop-based SQL layers, which are [practically] all
written in JVM languages.
Sure, I can use something like JayDeBeApi, but I would prefer proper object
mapping.
How would I go about interfacing with e.g.: SQL Alchemy or peewee-orm?
Thanks for all suggestions
--
htt
Hi,
I believe that pathlib and urllib.parse.quote() do not correctly build URIs.
According to RFC 2396 (http://tools.ietf.org/html/rfc2396.html),
unreserved characters such as "!" should not be escaped (section 2.3):
Unreserved characters can be escaped without changing the semantics
of the U
On Tue, 10 Feb 2015 23:15:11 +0100, Laura Creighton wrote:
> In a message of Tue, 10 Feb 2015 15:29:00 -0600, Tim Chase writes:
>>While it's not exactly a hold-down-get-a-menu, I opt for changing my
>>(otherwise-useless) caps-lock key to an X compose key:
>>
>> $ setxkbmap -option compose:caps
>>
Hi Leo,
This might be a PATH issue.
See this discussion for details.
https://pythongisandstuff.wordpress.com/2011/07/07/installing-gdal-and-ogr-for-python-on-windows/
Asim
On Tue, Feb 10, 2015 at 9:11 PM, Leo Kris Palao wrote:
> Hi Python Users,
>
> I currently installed the Python 2.7.9 and
Hello pythonistas,
This is my first message to this mailing list, so if my question is
off-topic, please direct me to the correct mailing list.
I manage the NuPIC [1] open source machine intelligence project, which
is a python project with C extensions. We have a build on Travis-CI
[2] that creat
Hello Python Developers,
Complete our survey on the future of languages for the chance to win a
$50 Amazon Gift Card
https://geekuni.com/survey.html
Thanks!
Andrew
p.s. The data (minus emails) will be publicly available.
--
https://mail.python.org/mailman/listinfo/python-list
56 matches
Mail list logo