Kushal Kumaran :
> For very, very occasional use in emacs, there's C-x 8 RET (insert-char).
Emacs to the rescue, as usual.
I use emacs for all of my typing needs. If I stray on a Web form, I end
up cussing at the browser whenever I instinctively hit a C-n, C-a or C-s
(or, yesterday, C-w).
As fo
On Wednesday, February 11, 2015 at 11:55:19 AM UTC+5:30, Kushal Kumaran wrote:
> Skip Montanaro writes:
>
> > I know this is way off-topic for this group, but I figured if anyone
> > in the online virtual communities I participate in would know the
> > answer, the Pythonistas would... Google has
Skip Montanaro writes:
> I know this is way off-topic for this group, but I figured if anyone
> in the online virtual communities I participate in would know the
> answer, the Pythonistas would... Google has so far not been my friend
> in this realm.
>
> One of the things I really like about my S
Hi Python Users,
I currently installed the Python 2.7.9 and installed the GDAL package.
First, I tried to install GDAL using PIP but it throws an error - I cannot
remember the exact error message. So, I install it using easy_install
command. But when I import the package I am getting this message,
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
On Wed, Feb 11, 2015 at 3:23 PM, Rustom Mody wrote:
> $ aptitude show x11-xkb-utils|grep Version
> Version: 7.7+1
>
> [which is probably what you need to know]
Tip: Getting version info can be done less spammily with apt-cache policy.
rosuav@sikorsky:~$ apt-cache policy x11-xkb-utils
x11-xkb-uti
On Wednesday, February 11, 2015 at 9:40:50 AM UTC+5:30, Steven D'Aprano wrote:
> Rustom Mody wrote:
>
> > $ setxkbmap -query# examine current settings
>
> Alas, that does not appear to work in Debian squeeze:
>
> steve@runes:~$ setxkbmap -query
> Error! Option "-query" not recognized
>
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@runes:~$ setxkbmap -query
> Error! Option "-query" not recognized
>
> Or Centos.
>
> What are
Rustom Mody wrote:
> $ setxkbmap -query# examine current settings
Alas, that does not appear to work in Debian squeeze:
steve@runes:~$ setxkbmap -query
Error! Option "-query" not recognized
Or Centos.
What are you using?
--
Steve
--
https://mail.python.org/mailman/listinfo/pytho
In article
,
Skip Montanaro wrote:
> I know this is way off-topic for this group, but I figured if anyone
> in the online virtual communities I participate in would know the
> answer, the Pythonistas would... Google has so far not been my friend
> in this realm.
>
> One of the things I really
On Wednesday, February 11, 2015 at 2:36:23 AM UTC+5:30, Skip Montanaro wrote:
> I know this is way off-topic for this group, but I figured if anyone
> in the online virtual communities I participate in would know the
> answer, the Pythonistas would... Google has so far not been my friend
> in this
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 Ruby-esque interface, that makes me sa
Steven D'Aprano wrote:
> 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?
>
> Well, is it defined? Where
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?
Well, is it defined? Where does it come from?
If you defined it
Ethan Furman wrote:
> On 02/10/2015 04:06 PM, 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?
>>
>> kernp
In a message of Wed, 11 Feb 2015 01:06:00 +0100, Laura Creighton writes:
>In a message of Tue, 10 Feb 2015 15:38:02 -0800, vlyamt...@gmail.com writes:
>>I defined function Fatalln in "mydef.py" and it works fine if i call it from
>>"mydef.py", but when i try to call it from "test.py" in the same f
On Tue, 10 Feb 2015 15:05:47 -0600, Skip Montanaro wrote:
[snip]
> One of the things I really like about my Skype keyboard (and likely
> other "soft" keyboards on Android) is that when you hold down a "key"
> for a brief moment, a little mini keyboard pops up, from which you can
> easily choose var
On 02/10/2015 04:06 PM, 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 --
In a message of Tue, 10 Feb 2015 15:38:02 -0800, vlyamt...@gmail.com writes:
>I defined function Fatalln in "mydef.py" and it works fine if i call it from
>"mydef.py", but when i try to call it from "test.py" in the same folder:
>import mydef
>...
>Fatalln "my test"
>i have NameError: name 'Fatall
On Tuesday, February 10, 2015 at 3:38:12 PM UTC-8, vlya...@gmail.com wrote:
> I defined function Fatalln in "mydef.py" and it works fine if i call it from
> "mydef.py", but when i try to call it from "test.py" in the same folder:
> import mydef
> ...
> Fatalln "my test"
> i have NameError: name 'F
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 ...
Wrote profile results to test_unframed.py.
On Tue, Feb 10, 2015 at 4:38 PM, wrote:
> I defined function Fatalln in "mydef.py" and it works fine if i call it from
> "mydef.py", but when i try to call it from "test.py" in the same folder:
> import mydef
> ...
> Fatalln "my test"
> i have NameError: name 'Fatalln' is not defined
> I also tr
On 02/10/2015 04:38 PM, vlyamt...@gmail.com wrote:
> I defined function Fatalln in "mydef.py" and it works fine if i call it from
> "mydef.py", but when i try to call it from "test.py" in the same folder:
> import mydef
> ...
> Fatalln "my test"
> i have NameError: name 'Fatalln' is not defined
>
vlyamt...@gmail.com wrote:
> I defined function Fatalln in "mydef.py" and it works fine if i call it
> from "mydef.py", but when i try to call it from "test.py" in the same
> folder: import mydef ...
> Fatalln "my test"
> i have NameError: name 'Fatalln' is not defined
> I also tried include('myde
OmPs wrote:
> On 10 Feb 2015 13:59, "OmPs" wrote:
>> Tried that as well getting the same error.
>
> I feel its something to do with variable substitution.
Python doesn't do variable substitution. At least not the way I think of it.
What do you mean by "variable substitution"?
Instead of "feel
On Tuesday, February 10, 2015 at 3:38:12 PM UTC-8, vlya...@gmail.com wrote:
> I defined function Fatalln in "mydef.py" and it works fine if i call it from
> "mydef.py", but when i try to call it from "test.py" in the same folder:
> import mydef
> ...
> Fatalln "my test"
> i have NameError: name 'F
I defined function Fatalln in "mydef.py" and it works fine if i call it from
"mydef.py", but when i try to call it from "test.py" in the same folder:
import mydef
...
Fatalln "my test"
i have NameError: name 'Fatalln' is not defined
I also tried include('mydef.py') with the same result...
What is
Laura Creighton wrote:
> I have the debian version of python3 installed here.
>
> Python 3.4.2 (default, Nov 13 2014, 07:01:52)
> [GCC 4.9.2] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>
> But I cannot seem to type a tab here:
>
def fn(**kw):
>
On 2015-02-10, Laura Creighton wrote:
> Wow. US keyboards do not come with a 'compose' key, then?
Nope.
> It just never occurred to me that Skip might be missing one.
I always configure one of my "extra" keys (windows-key, menu-key,
right-ctrl, etc.) as compose. But, I use it infrequenty enou
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
>
>I can then hit caps-lock followed by what are generally intuitive
On 02/10/2015 04:05 PM, Skip Montanaro wrote:
I know this is way off-topic for this group, but I figured if anyone
in the online virtual communities I participate in would know the
answer, the Pythonistas would... Google has so far not been my friend
in this realm.
One of the things I really lik
On Wed, Feb 11, 2015 at 8:33 AM, Laura Creighton wrote:
> I'm using this:
> http://michel.staelens.pagesperso-orange.fr/clavier/index_GB.htm#
> to get cyrillic. Not sure the other alternatives will get you what
> you want -- my keyboard is rather well loaded with accented letters
> from the get-g
On 2015-02-10 15:05, Skip Montanaro wrote:
> For instance, If I press and hold the "d" key, I see these choices
> (ignore the capitalization of the first letter - my mistake sending
> a text message to myself from my phone, and I can't seem to convert
> it to lower case): Đ|¦&dðď
>
> I haven't t
I'm using this:
http://michel.staelens.pagesperso-orange.fr/clavier/index_GB.htm#
to get cyrillic. Not sure the other alternatives will get you what
you want -- my keyboard is rather well loaded with accented letters
from the get-go.
Laura
--
https://mail.python.org/mailman/listinfo/python-list
On 02/10/2015 01:05 PM, Skip Montanaro wrote:
> [request for alternate function when key is held down]
Not exactly what you asked for, but here's how to combine characters in Vim:
http://vim.wikia.com/wiki/Entering_special_characters
Hopefully somebody knows about a pop-up window type thingie
I know this is way off-topic for this group, but I figured if anyone
in the online virtual communities I participate in would know the
answer, the Pythonistas would... Google has so far not been my friend
in this realm.
One of the things I really like about my Skype keyboard (and likely
other "sof
On 10/02/2015 19:27, Albert-Jan Roskam wrote:
- Original Message -
From: Chris Angelico
To:
Cc: "python-list@python.org"
Sent: Tuesday, February 10, 2015 8:00 PM
Subject: Re: Taming the verbosity of ipython tracebacks
On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky
wrote:
I'm run
On 02/10/2015 01:24 PM, Denis McMahon wrote:
On Tue, 10 Feb 2015 18:39:42 +1100, Chris Angelico wrote:
On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote:
def _getPackgeVersion(xmlfile, p):
package = str(p)
if isinstance(fpmdict["application"]["package"], list):
f
On 02/10/2015 01:48 PM, Chris Angelico wrote:
On Wed, Feb 11, 2015 at 2:51 AM, Dave Angel wrote:
You're right of course. I didn't notice the meaning of one-tuple; I took
Mark's comment as if he had said:
If you can show me a one tuple anywhere ...
Ah, yeah. I see the ambiguity. This is the
On Tuesday, February 10, 2015 at 11:34:12 AM UTC-8, Albert-Jan Roskam wrote:
> - Original Message -
>
> > From: Chris Angelico
> > To:
> > Cc: "python-list@python.org"
> > Sent: Tuesday, February 10, 2015 8:00 PM
> > Subject: Re: Taming the verbosity of ipython tracebacks
> >
> > On We
- Original Message -
> From: Chris Angelico
> To:
> Cc: "python-list@python.org"
> Sent: Tuesday, February 10, 2015 8:00 PM
> Subject: Re: Taming the verbosity of ipython tracebacks
>
> On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky
> wrote:
>> I'm running Python 3.4.0, and ipython3
On Tuesday, February 10, 2015 at 11:00:32 AM UTC-8, Chris Angelico wrote:
> On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky
> wrote:
> > I'm running Python 3.4.0, and ipython3 1.2.1, on Ubuntu Linux 14.04 64-bit.
> >
>
> That's nice recent Python, but I just tried installing ipython using
> pip3,
On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky
wrote:
> I'm running Python 3.4.0, and ipython3 1.2.1, on Ubuntu Linux 14.04 64-bit.
>
That's nice recent Python, but I just tried installing ipython using
pip3, and got version 2.4.1, and was unable to reproduce your
scenario. Is it possible you're
Hi folks,
I'm running Python 3.4.0, and ipython3 1.2.1, on Ubuntu Linux 14.04 64-bit.
Whenever I execute code from within ipython which triggers an exception -- any
exception -- I get a page full of information. The exceptions in my code
trigger exceptions within ipython.
Every error message
On Wed, Feb 11, 2015 at 2:51 AM, Dave Angel wrote:
> You're right of course. I didn't notice the meaning of one-tuple; I took
> Mark's comment as if he had said:
>
> If you can show me a one tuple anywhere ...
Ah, yeah. I see the ambiguity. This is the downside of being so fluent
in Typo - somet
On Tue, 10 Feb 2015 18:39:42 +1100, Chris Angelico wrote:
> On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote:
>> def _getPackgeVersion(xmlfile, p):
>> package = str(p)
>> if isinstance(fpmdict["application"]["package"], list):
>> for i in fpmdict["application"]["package
On 02/10/2015 08:53 AM, Ian Kelly wrote:
> On Tue, Feb 10, 2015 at 9:44 AM, Ethan Furman wrote:
>> On 02/09/2015 08:46 PM, Chris Angelico wrote:
>>>
>>> class Grid:
>>> blah blah
>>>
>>> def __iter__(self):
>>> for row in range(self._rows):
>>> for col in range(self._co
excuse me :) i know this somewhat disscussion was still on the past few years
way back 2010 can i still ask about something? :) what syntax or coding will i
use if i wanted to do multiple strokes of the mouse?
because the [turtle.ondrag(turtle.goto)] that you have suggested have really
helped b
On Tue, Feb 10, 2015 at 12:30 AM, Ian Kelly wrote:
>
> On Mon, Feb 9, 2015 at 5:59 PM, Chris Kaynor wrote:
> > On Mon, Feb 9, 2015 at 4:42 PM, Steven D'Aprano
> > wrote:
> >> so that's an excellent sign that doing so is best practice, but it should
> >> not be seen as *required*. After all, perh
On Tue, Feb 10, 2015 at 9:44 AM, Ethan Furman wrote:
> On 02/09/2015 08:46 PM, Chris Angelico wrote:
>>
>> class Grid:
>> blah blah
>>
>> def __iter__(self):
>> for row in range(self._rows):
>> for col in range(self._cols):
>> if self._grid[row][col]:
>>
On 02/09/2015 08:46 PM, Chris Angelico wrote:
>
> class Grid:
> blah blah
>
> def __iter__(self):
> for row in range(self._rows):
> for col in range(self._cols):
> if self._grid[row][col]:
> yield self._grid[row][col]
I strongly sug
In a message of Tue, 10 Feb 2015 16:50:54 +0100, Vincent Vande Vyvre writes:
>Le 10/02/2015 15:36, Laura Creighton a écrit :
>> I have the debian version of python3 installed here.
>>
>> Python 3.4.2 (default, Nov 13 2014, 07:01:52)
>> [GCC 4.9.2] on linux
>> Type "help", "copyright", "credits" or
Le 10/02/2015 15:36, Laura Creighton a écrit :
I have the debian version of python3 installed here.
Python 3.4.2 (default, Nov 13 2014, 07:01:52)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
But I cannot seem to type a tab here:
def fn(**kw):
...
On 02/10/2015 09:33 AM, Chris Angelico wrote:
On Wed, Feb 11, 2015 at 1:28 AM, Dave Angel wrote:
If you can show me a one tuple anywhere in the original code I'll
happily buy you a tipple of your choice.
print Menu[fav,RandomNum]
was in the original code
That's not a one-tuple (as in, a t
On Monday, 9 February 2015 21:57:51 UTC, Paul Moore wrote:
> On Friday, 6 February 2015 23:49:51 UTC, Steven D'Aprano wrote:
> > Very nice! Care to share the code?
>
> Will do.
Here's the code I used for the Monopoly calculations.
import numpy as np
def monopoly(samples):
# 2d6 x 3
n
On 02/10/2015 03:29 AM, OmPs wrote:
On 10 Feb 2015 13:12, "Chris Angelico" wrote:
On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote:
def _getPackgeVersion(xmlfile, p):
package = str(p)
if isinstance(fpmdict["application"]["package"], list):
for i in fpmdict["app
I have the debian version of python3 installed here.
Python 3.4.2 (default, Nov 13 2014, 07:01:52)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
But I cannot seem to type a tab here:
>>> def fn(**kw):
...
(I type a tab here, and get a beep. I
On Wed, Feb 11, 2015 at 1:28 AM, Dave Angel wrote:
>> If you can show me a one tuple anywhere in the original code I'll
>> happily buy you a tipple of your choice.
>
>
> print Menu[fav,RandomNum]
>
> was in the original code
That's not a one-tuple (as in, a tuple with one element), it's a
two-ele
On 10/02/2015 14:28, Dave Angel wrote:
On 02/10/2015 06:35 AM, Mark Lawrence wrote:
On 10/02/2015 00:05, Ryan Stuart wrote:
Hi,
If you can show me a one tuple anywhere in the original code I'll
happily buy you a tipple of your choice.
print Menu[fav,RandomNum]
was in the original code
On 02/10/2015 06:35 AM, Mark Lawrence wrote:
On 10/02/2015 00:05, Ryan Stuart wrote:
Hi,
If you can show me a one tuple anywhere in the original code I'll
happily buy you a tipple of your choice.
print Menu[fav,RandomNum]
was in the original code
--
DaveA
--
https://mail.python.org/ma
On Sunday, February 8, 2015 at 3:52:19 AM UTC+5:30, Gregory Ewing wrote:
> Rustom Mody wrote:
> > Wanted to try out sympy.
> > apt-install promised ź GB download, ž GB space usage
> >
> > Just getting a src-tarball was: 6M download, 30M after opening the tar.
>
> Have you actually tried compiling
On Monday, February 9, 2015 at 9:25:45 PM UTC+5:30, Mark Lawrence wrote:
> On 09/02/2015 11:28, Rustom Mody wrote:
> > Poking around in help() (python 3.4.2) I find
> >
> > * PACKAGES
> > does not seem to have anything on packages
> > * DYNAMICFEATURES
> > seems to be some kind of footnote
> > * SP
On 10/02/2015 00:05, Ryan Stuart wrote:
Hi,
There is a lot of issues with this code. First, setting fav to a 1
tuples with a string probably isn't what you want. What you probably
mean is:
if restraunt == ("Pizza"):
fav = 1
Second, when you are trying to lookup items in Menu, you are usin
On 10 Feb 2015 13:59, "OmPs" wrote:
>
>
> On 10 Feb 2015 13:12, "Chris Angelico" wrote:
> >
> > On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote:
> > > def _getPackgeVersion(xmlfile, p):
> > > package = str(p)
> > > if isinstance(fpmdict["application"]["package"], list):
> > >
On Mon, Feb 9, 2015 at 5:59 PM, Chris Kaynor wrote:
> On Mon, Feb 9, 2015 at 4:42 PM, Steven D'Aprano
> wrote:
>> so that's an excellent sign that doing so is best practice, but it should
>> not be seen as *required*. After all, perhaps you have good reason for
>> wanting your iterable class to o
On 10 Feb 2015 13:12, "Chris Angelico" wrote:
>
> On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote:
> > def _getPackgeVersion(xmlfile, p):
> > package = str(p)
> > if isinstance(fpmdict["application"]["package"], list):
> > for i in fpmdict["application"]["package"]:
>
On Tue, Feb 10, 2015 at 5:52 AM, Skip Montanaro
wrote:
>
> This snapshot was taken against a running LibreOffice instance here at work
> (on Linux). It would appear the fancy schmancy apostrophe was hosed up before
> the data ever got to me. Had a guy here with Windows pop up the original file
Shiyao Ma wrote:
> Hi.
>
> My context is a little hard to reproduce.
>
> NS3 is a network simulation tool written in C++. I am using its Python
> binding.
>
> So the class I am dealing with is from a .so file.
So it is written in (probably) C and you don't have source code for it.
> Say, I do
On Mon, Feb 9, 2015 at 11:54 AM, Matthew Ruffalo wrote:
> I think it's most likely that the encoding issues happened in the export
> from XLSX to CSV (unless the data is malformed in the original XLSX
> file, of course).
Aha! Lookee here... (my apologies to all you HTML mail haters - sometimes
it
Hi,
There is a lot of issues with this code. First, setting fav to a 1 tuples
with a string probably isn't what you want. What you probably mean is:
if restraunt == ("Pizza"):
fav = 1
Second, when you are trying to lookup items in Menu, you are using the
incorrect fav. Lists have int indicie
70 matches
Mail list logo