Hello All,
I would like to change two graphical icons related to turtle graphics using
Python:
a) One that shows up at the top left corner of the canvas window as in below. I
believe this is coming from tk itself.
https://s22.postimg.org/tkjaxmh41/image.png
b) The icon on the desktop as in
> I would like to use pdb in an application where it isn't possible to use
> sys.stdin for input. I've read in the documentation for pdb.Pdb that a file
> object can be used instead of sys.stdin. Unfortunately, I'm not clear about
> my options for the file object.
>
> I've looked at rpdb on PyPI
On Sat, 26 Nov 2016 02:17 am, Heli wrote:
> Hi,
>
> I have a huge ascii file(40G) and I have around 100M lines. I read this
> file using :
>
> f=np.loadtxt(os.path.join(dir,myfile),delimiter=None,skiprows=0)
[...]
> I will need the x,y,z and id arrays later for interpolations. The problem
> is
Chris Angelico wrote:
but brace-formatting lets you reorder the parameters, so it has
flexibility that can be important for i18n.
Actually, Python's version of %-formatting lets you reorder
the parameters as well. The brace syntax for this is easier
to read and write, though, so probably better
I can't import it --- keep getting an importerror message. Can you try, let
me know if it works and show me the code ? Thanks alot , appreciate it ...
On Thu, Nov 24, 2016 at 1:22 PM, Nathan Ernst
wrote:
> I don't see anything in that output resembling an error, just a few
> warnings that some f
Héllo again,
On Tue, Nov 22, 2016 at 9:56 PM Amirouche Boubekki <
amirouche.boube...@gmail.com> wrote:
> I am working on a graphdb written Python on top of wiredtiger.
>
> Anyone want to share about the subject about where this could be made
> useful?
>
A bit of context might be helpful.
I've b
On 25/11/2016 15:17, Heli wrote:
I have a huge ascii file(40G) and I have around 100M lines. I read this file
using :
f=np.loadtxt(os.path.join(dir,myfile),delimiter=None,skiprows=0)
x=f1[:,1]
y=f1[:,2]
z=f1[:,3]
id=f1[:,0]
I will need the x,y,z and id arrays later for interpolations. The p
On Friday, November 25, 2016 at 11:26:09 AM UTC-5, Ned Batchelder wrote:
>
> --Ned.
> against Python 3 is
Umm, no idea where that "signature" came from... I am not against
Python 3... :)
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, November 25, 2016 at 3:45:37 AM UTC-5, Rustom Mody wrote:
> On Friday, November 25, 2016 at 1:27:18 AM UTC+5:30, bream...@gmail.com wrote:
> > https://eev.ee/blog/2016/11/23/a-rebuttal-for-python-3/ is one of
> > presumably many responses to the article I posted about under the subject
You're attempting to print out control characters most of which have no
visible representation. For "\7", at least if you're running from bash, and
not in an IDE, you should get an audible bell. All decimal ordinals below
32 are control
You can find a list of the symbols here:
http://en.cppreferen
Heli :
> I have a huge ascii file(40G) and I have around 100M lines. I read this
> file using :
>
> [...]
>
> The problem is reading the file takes around 80 min while the
> interpolation only takes 15 mins.
>
> I was wondering if there is a more optimized way to read the file that
> would reduce
Hi,
I have a huge ascii file(40G) and I have around 100M lines. I read this file
using :
f=np.loadtxt(os.path.join(dir,myfile),delimiter=None,skiprows=0)
x=f1[:,1]
y=f1[:,2]
z=f1[:,3]
id=f1[:,0]
I will need the x,y,z and id arrays later for interpolations. The problem is
reading the file t
On Friday, November 25, 2016 at 6:35:13 PM UTC+5:30, Chris Angelico wrote:
> On Fri, Nov 25, 2016 at 11:21 PM, Ankur Gupta wrote:
> > Hey ChrisA,
> >
> > I see merit in what you are saying. I should probably have used an example
> > with multiple statements perhaps to draw a better distinction. M
On Fri, Nov 25, 2016 at 11:21 PM, Ankur Gupta wrote:
> Hey ChrisA,
>
> I see merit in what you are saying. I should probably have used an example
> with multiple statements perhaps to draw a better distinction. My bad.
>
> Quiz is now out so would be unfair for those who attempted it.
Fair enoug
On Fri, 25 Nov 2016 10:37 pm, Ned Batchelder wrote:
> And: floats are rarely checked for equality, and very very very rarely
> used as dict keys, so there's no gain by short-circuiting the equality
> check.
You cannot short-circuit the equality check, at least not without giving up
IEEE-754 seman
On Friday, November 25, 2016 at 7:17:08 AM UTC-5, BartC wrote:
> On 25/11/2016 11:24, Nikunj wrote:
> >
> > Out of curiosity, I wanted to understand the reason behind having different
> > memory location for two identical floats . This is unlike ints or strings.
> > Tried googling but couldn't fi
On Friday, November 25, 2016 at 3:22:30 PM UTC+5:30, Chris Angelico wrote:
> On Fri, Nov 25, 2016 at 8:02 PM, Ankur Gupta wrote:
> > Import Python Newsletter completed 2 years and 100 issues. Have a simple
> > fun python quiz http://importpython.com/newsletter/quiz/ to mark the
> > milestone.
>
On 25/11/2016 11:24, Nikunj wrote:
Out of curiosity, I wanted to understand the reason behind having different
memory location for two identical floats . This is unlike ints or strings.
Tried googling but couldn't find anything concrete. Any links or references
would be appreciated!
Do you
On Friday, November 25, 2016 at 6:34:00 AM UTC-5, Ned Batchelder wrote:
> On Friday, November 25, 2016 at 6:24:47 AM UTC-5, Nikunj wrote:
> > Hi All,
> >
> > Out of curiosity, I wanted to understand the reason behind having different
> > memory location for two identical floats . This is unlike i
On 25 November 2016 at 12:11, Fabien wrote:
> I'd be interested to read what the community thinks about the fact that his
> book (learn the hard way) is extremely influential among beginners, and what
> tools do we have to avoid that beginners stumble across such opinions in
> their very first ste
On Friday, November 25, 2016 at 6:24:47 AM UTC-5, Nikunj wrote:
> Hi All,
>
> Out of curiosity, I wanted to understand the reason behind having different
> memory location for two identical floats . This is unlike ints or strings.
> Tried googling but couldn't find anything concrete. Any links o
Hi All,
Out of curiosity, I wanted to understand the reason behind having different
memory location for two identical floats . This is unlike ints or strings.
Tried googling but couldn't find anything concrete. Any links or references
would be appreciated!
Example:
For FLOATS:
==
>>>
Thomas Grops via Python-list wrote:
> Also I am struggling to understand:
>
>def move_tank(self, dx, dy):
> self.x += dx
> self.y += dy
> self.canvas.move(self.id, dx, dy)
>
> Where does the dx and dy values get input?
To find the place where the move_tank() method i
On 11/25/2016 09:29 AM, Mark Summerfield wrote:
On Thursday, November 24, 2016 at 7:35:03 PM UTC, bream...@gmail.com wrote:
> It's all here https://learnpythonthehardway.org/book/nopython3.html
I think the article is full of factual errors and is at best misleading
> and at worst downright dis
Thomas Grops via Python-list wrote:
> Peter, in your code what does that self.root = root mean in the __init__
> function of the class
In your original script you used global variables to access the tkinter.Tk()
object and the canvas. A simplified example:
import tkinter
class Tank:
def ma
If i try to build a normal python and a 'with-pydebug' python in the same
folder, I can run both versions of python by running the real executable names
instead of the generic name symlinks.
However, if i want to use sysconfig.get_config_var() to check "Py_DEBUG" (to
then know from .py files wh
On Fri, Nov 25, 2016 at 8:02 PM, Ankur Gupta wrote:
> Import Python Newsletter completed 2 years and 100 issues. Have a simple fun
> python quiz http://importpython.com/newsletter/quiz/ to mark the milestone.
With your question about laying out code, are you aware that PEP 8
specifically allows
Also I am struggling to understand:
def move_tank(self, dx, dy):
self.x += dx
self.y += dy
self.canvas.move(self.id, dx, dy)
Where does the dx and dy values get input?
--
https://mail.python.org/mailman/listinfo/python-list
Peter, in your code what does that self.root = root mean in the __init__
function of the class
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Nov 25, 2016 at 7:29 PM, Mark Summerfield wrote:
> The article has a section called:
>
> "Statically Typed Strings"
>
> The title is wrong of course because Python uses dynamic typing. But his
> chief complaint seems to be that you can't mix strings and bytes in Python 3.
> That's a
Hey Python Programmers,
Import Python Newsletter completed 2 years and 100 issues. Have a simple fun
python quiz http://importpython.com/newsletter/quiz/ to mark the milestone.
Happy ThanksGiving day to you all.
Regards,
Ankur
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, November 25, 2016 at 1:27:18 AM UTC+5:30, bream...@gmail.com wrote:
> https://eev.ee/blog/2016/11/23/a-rebuttal-for-python-3/ is one of presumably
> many responses to the article I posted about under the subject "The Case
> Against Python 3". Enjoy :)
I'd say we are living in astrolo
Seb wrote:
> On Thu, 24 Nov 2016 10:18:21 +0100,
> Peter Otten <__pete...@web.de> wrote:
>
>> Is win_files huge? Then it might help to avoid going over the entire
>> list for every interval. Instead you can sort the list and then add to
>> the current list while you are below nextw.
>
>> My pand
On Thursday, November 24, 2016 at 7:35:03 PM UTC, bream...@gmail.com wrote:
> It's all here https://learnpythonthehardway.org/book/nopython3.html although
> I strongly suggest that people have large piles of sedatives to hand before
> reading the article. Does me a favour though, i've been looki
34 matches
Mail list logo