On Sun, Jun 16, 2013 at 3:17 PM, Steven D'Aprano wrote:
>
> plus some more exotic built-ins, which I haven't shown.
Some types that didn't make it into Steven's list:
zip
map
filter
enumerate
reversed
memoryview
slice
ellipsis, type(...)
super
classmetho
On Sun, Jun 16, 2013 at 4:43 AM, Roel Schroeven wrote:
> Jim Mooney schreef:
>> I'll get to here:
>>
>> {'alpha':'beta'
>>
>> Only my cursor is to the Left of the final quote. Then I have to go
>> hunt the Right Arrow or End key
In PyScripter you can just type the closing quote/brace over the
aut
On Mon, Jun 17, 2013 at 1:25 PM, Jim Mooney wrote:
> On 16 June 2013 20:18, Amit Saha wrote:
>>
>> This is a new tutorial the SymPy guys are working on:
>> http://docs.sympy.org/tutorial/tutorial/index.html
>
> Thanks. A lot of math bored me but I see it has matrices, and I really
> liked linear
On Mon, Jun 17, 2013 at 1:25 PM, Jim Mooney wrote:
> On 16 June 2013 20:18, Amit Saha wrote:
>>
>> This is a new tutorial the SymPy guys are working on:
>> http://docs.sympy.org/tutorial/tutorial/index.html
>
> Thanks. A lot of math bored me but I see it has matrices, and I really
> liked linear
On 16 June 2013 20:18, Amit Saha wrote:
>
> This is a new tutorial the SymPy guys are working on:
> http://docs.sympy.org/tutorial/tutorial/index.html
Thanks. A lot of math bored me but I see it has matrices, and I really
liked linear algebra for some odd reason. I might fool with it again
since
On Mon, Jun 17, 2013 at 1:16 PM, Jim Mooney wrote:
>> yeah, I am playing with the Python 3 version. Works great so far.
>
> I didn't even look at the docs, but I think I got the solve part
> working. I cut down on typing a bit, though. Typing Symbol all day
> long could get tedious:
>
> from sympy
> yeah, I am playing with the Python 3 version. Works great so far.
I didn't even look at the docs, but I think I got the solve part
working. I cut down on typing a bit, though. Typing Symbol all day
long could get tedious:
from sympy import Symbol as S, solve, pprint
a,b,c,x = S('a'),S('b'),S('c
On 16 June 2013 18:28, Amit Saha wrote:
> On Mon, Jun 17, 2013 at 11:25 AM, bob gailer wrote:
>> On 6/15/2013 5:53 AM, Amit Saha wrote:
>>>
>>> Symbolic math?
>>
>> What is that?
>
> Eg: https://gist.github.com/amitsaha/5787802
x wasn't defined, and it didn't look like you needed solve(expr,x
On Mon, Jun 17, 2013 at 12:47 PM, Jim Mooney wrote:
> On 16 June 2013 18:28, Amit Saha wrote:
>> On Mon, Jun 17, 2013 at 11:25 AM, bob gailer wrote:
>>> On 6/15/2013 5:53 AM, Amit Saha wrote:
Symbolic math?
>>>
>>> What is that?
>>
>> Eg: https://gist.github.com/amitsaha/5787802
>
>
On Mon, Jun 17, 2013 at 12:14 PM, epi wrote:
> i guess you'll find this pretty interesting :
>
> http://nbviewer.ipython.org/url/edu.scios.ch/sympy/nb_sample_sympy.ipynb
>
> sympy latex rendering using the ipython notebook …
>
> Have fun ;)
Thanks, I am aware of that. I was asking for any other b
On 06/16/2013 10:14 PM, epi wrote:
i guess you'll find this pretty interesting :
http://nbviewer.ipython.org/url/edu.scios.ch/sympy/nb_sample_sympy.ipynb
sympy latex rendering using the ipython notebook ...
Have fun ;)
Is this intertwined with Sage? I know Sage is mostly python.
http://www.
i guess you'll find this pretty interesting :
http://nbviewer.ipython.org/url/edu.scios.ch/sympy/nb_sample_sympy.ipynb
sympy latex rendering using the ipython notebook …
Have fun ;)
Il giorno 15/giu/2013, alle ore 05:53, Amit Saha ha
scritto:
> Hello Tutors,
>
> Would any of you have any te
On 17/06/13 11:25, bob gailer wrote:
On 6/15/2013 5:53 AM, Amit Saha wrote:
Symbolic math?
What is that?
Algebra, calculus and similar.
py> import sympy
py> x = sympy.Symbol('x')
py> ((x + 2)**3).expand()
x**3 + 6*x**2 + 12*x + 8
Where possible, it calculates exact mathematical results:
On 6/15/2013 5:53 AM, Amit Saha wrote:
Symbolic math?
What is that?
--
Bob Gailer
919-636-4239
Chapel Hill NC
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On Mon, Jun 17, 2013 at 11:25 AM, bob gailer wrote:
> On 6/15/2013 5:53 AM, Amit Saha wrote:
>>
>> Symbolic math?
>
> What is that?
Eg: https://gist.github.com/amitsaha/5787802
--
http://echorand.me
___
Tutor maillist - Tutor@python.org
To unsubscr
On 17/06/2013 01:12, Dave Angel wrote:
On 06/16/2013 08:04 PM, Jim Mooney wrote:
On 16 June 2013 16:41, Dave Angel wrote:
But if you have some other reason to do it your way, then just look
at the
type of err.
print( type(err), err)
Yes, that's what I was looking for. It's just a learning
> I'd look closer at the IDE and see if it's configurable to remove ugly
> features.
Well, at least the BUNG! which sounds like a spring flew out of my
front end. It's a jarring "feature" ;')
Jim
___
Tutor maillist - Tutor@python.org
To unsubscribe or
On 06/16/2013 08:04 PM, Jim Mooney wrote:
On 16 June 2013 16:41, Dave Angel wrote:
But if you have some other reason to do it your way, then just look at the
type of err.
print( type(err), err)
Yes, that's what I was looking for. It's just a learning tool to see
the exceptions without the u
On 16 June 2013 16:41, Dave Angel wrote:
> But if you have some other reason to do it your way, then just look at the
> type of err.
>
> print( type(err), err)
>
Yes, that's what I was looking for. It's just a learning tool to see
the exceptions without the ugly BUNG! and red traceback screen I g
On 06/16/2013 04:26 PM, Jim Mooney wrote:
'''I'm using general Exception to print out what the exception is
until I learn them, but
it will print out "[Errno 2] No such file or directory" in this case,
when the real
exception I'd need to use in an except clause is FileNotFoundError.
How do I get
On 17/06/13 00:12, Jim Mooney wrote:
There is also an active community writing third-party plugins for Vim
and this is probably where the bulk of significant new features are
developed.
So as Dr. Frankenstein exclaimed: "It's Alive!" ;')
Vim as a project is very much alive but to be honest I u
On 06/16/2013 01:21 PM, Jim Mooney wrote:
My first impression of Python was that it had dynamic types but didn't
mix them. so if I was wrong on equality, is there a general rule of
what different types can still be equal? Is it an inheritance thing?
Several other good replies, but I'll give my
On 16/06/13 19:55, Joel Goldstick wrote:
I think VIM is somehow a descendent of TECO
I think your confusing it with emacs which originally stood
for EditingMACroS and was just a set of Teco macros which
made it easier to use. Then James Gosling and Richard Stallman
got their respective hands
On 16 June 2013 20:49, Jim Mooney wrote:
> On 16 June 2013 11:32, Andreas Perstinger wrote:
>
>> I'm not sure if that's what you are looking for but the language reference
>> describes the standard type hierarchy:
>> http://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy
>
On 06/16/2013 01:20 PM, Timo wrote:
I have a datafile which is parsed by an external library, I'm having
trouble creating a hierarchical structure of the data.
This is what I got so far:
items = get_items() # returns a generator
for item in items:
print(item)
children = get_children(i
> There is also an active community writing third-party plugins for Vim
> and this is probably where the bulk of significant new features are
> developed.
So as Dr. Frankenstein exclaimed: "It's Alive!" ;')
--
Jim
After indictment the bacon smuggler was put on the no-fry list
___
On 16 June 2013 18:49, Jim Mooney wrote:
> Although an editor that's been around since the stone age
> probably doesn't blow up. I doubt VIM has a constant stream of
> upgrades (not always compatible), bug fixes, and security fixes ;')
I use Vim pretty much exclusively and work on Linux and Windo
On Sun, Jun 16, 2013 at 5:01 PM, pyt...@outofoptions.net <
pyt...@outofoptions.net> wrote:
> On 06/16/2013 01:49 PM, Jim Mooney wrote:
>
>> VIM sounds good but I don't think there's a version for Windows.
>
>
There definitely is a windows version
Keeping different programs open is great if you ha
On 06/16/2013 01:49 PM, Jim Mooney wrote:
VIM sounds good but I don't think there's a version for Windows.
Keeping different programs open is great if you have dual monitors,
which I did when I was webmastering. Alas, some $#@ fooled with my
computer and wiped out the dual monitor card. But whe
On 16/06/2013 21:26, Jim Mooney wrote:
'''I'm using general Exception to print out what the exception is
until I learn them, but
it will print out "[Errno 2] No such file or directory" in this case,
when the real
exception I'd need to use in an except clause is FileNotFoundError.
How do I get the
'''I'm using general Exception to print out what the exception is
until I learn them, but
it will print out "[Errno 2] No such file or directory" in this case,
when the real
exception I'd need to use in an except clause is FileNotFoundError.
How do I get the
exception I need to use in the except cl
On 16 June 2013 11:32, Andreas Perstinger wrote:
> I'm not sure if that's what you are looking for but the language reference
> describes the standard type hierarchy:
> http://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy
Yes, that's what I meant. I was thinking of an ac
On 17/06/13 03:21, Jim Mooney wrote:
My first impression of Python was that it had dynamic types but didn't
mix them. so if I was wrong on equality, is there a general rule of
what different types can still be equal? Is it an inheritance thing?
The general rule is, types can define equality wha
On Sun, Jun 16, 2013 at 2:48 PM, Steve Willoughby wrote:
>
> On 16-Jun-2013, at 11:35, Steven D'Aprano wrote:
>
> > On 17/06/13 03:59, Steve Willoughby wrote:
> >>
> >> On 16-Jun-2013, at 10:49, Jim Mooney wrote:
> >>
> >>> On 16 June 2013 01:43, Roel Schroeven wrote:
> >>>
> Can't you di
On 16-Jun-2013, at 11:35, Steven D'Aprano wrote:
> On 17/06/13 03:59, Steve Willoughby wrote:
>>
>> On 16-Jun-2013, at 10:49, Jim Mooney wrote:
>>
>>> On 16 June 2013 01:43, Roel Schroeven wrote:
>>>
Can't you disable that behavior somewhere in the settings of your IDE? I
know IDE
On 17/06/13 03:59, Steve Willoughby wrote:
On 16-Jun-2013, at 10:49, Jim Mooney wrote:
On 16 June 2013 01:43, Roel Schroeven wrote:
Can't you disable that behavior somewhere in the settings of your IDE? I
know IDEs do that to be helpful, but I don't like it and so far I've been
able to dis
On 16.06.2013 19:21, Jim Mooney wrote:
Speaking of which, I put "Python class hierarchy" in Google but just
got a bunch of specific wheeze. What I want is a
list of the whole tree. Is there such, or a way I can generate it?
I'm not sure if that's what you are looking for but the language
refer
On 17/06/13 03:25, Jim Mooney wrote:
On 15 June 2013 23:30, Dave Angel wrote:
The sort() method doesn't work, but sorted does.
How many times have I read you can't sort a dictionary in Python. Was
I just misreading or was that true of older Pythons?
You can't sort a dictionary, because dic
On 16 June 2013 08:15, Alan Gauld wrote:
> FWIW about 6 or7 genuine messages and about a dozen spam...
> The usual ratio... :-(
>
I was wondering why my message showed up late. I Already had the
answer and it was only moderated because I tried a picture attachment
to reply to a query.
Only a doz
On Sun, Jun 16, 2013 at 7:15 PM, SM wrote:
> Hi
> I have implemented a GUI using PyQt4/python3, which allows the user to
> select a few files as command-line arguments. When I hit "OK" button, my
> application runs and the output text is displayed on the terminal where I
> run the python script. I
On 16/06/13 18:20, Timo wrote:
items = get_items() # returns a generator
for item in items:
print(item)
children = get_children(item) # also returns a generator
for child in children:
print("--", child)
This is fine as it will get the children for each parent item. I can
On 16-Jun-2013, at 10:49, Jim Mooney wrote:
> On 16 June 2013 01:43, Roel Schroeven wrote:
>
>> Can't you disable that behavior somewhere in the settings of your IDE? I
>> know IDEs do that to be helpful, but I don't like it and so far I've been
>> able to disable it in all IDEs I've used.
>
On Sun, Jun 16, 2013 at 7:25 PM, Jim Mooney wrote:
> On 15 June 2013 23:30, Dave Angel wrote:
>
The sort() method doesn't work, but sorted does.
>
> How many times have I read you can't sort a dictionary in Python. Was
> I just misreading or was that true of older Pythons?
Dicts have no ord
On 16/06/13 18:21, Jim Mooney wrote:
My first impression of Python was that it had dynamic types but didn't
mix them.
Umm yes, sort of. It depends on how you define some of those terms
though. "mix them"???
so if I was wrong on equality, is there a general rule of
what different types can
On 16 June 2013 01:43, Roel Schroeven wrote:
> Can't you disable that behavior somewhere in the settings of your IDE? I
> know IDEs do that to be helpful, but I don't like it and so far I've been
> able to disable it in all IDEs I've used.
PyScripter does in Tools > Options > IDE Options > Edito
On 15 June 2013 23:30, Dave Angel wrote:
>>> The sort() method doesn't work, but sorted does.
How many times have I read you can't sort a dictionary in Python. Was
I just misreading or was that true of older Pythons?
--
Jim
After indictment the bacon smuggler was put on the no-fry list
___
My first impression of Python was that it had dynamic types but didn't
mix them. so if I was wrong on equality, is there a general rule of
what different types can still be equal? Is it an inheritance thing?
Speaking of which, I put "Python class hierarchy" in Google but just
got a bunch of specif
I have a datafile which is parsed by an external library, I'm having
trouble creating a hierarchical structure of the data.
This is what I got so far:
items = get_items() # returns a generator
for item in items:
print(item)
children = get_children(item) # also returns a generator
for
Hi
I have implemented a GUI using PyQt4/python3, which allows the user to
select a few files as command-line arguments. When I hit "OK" button, my
application runs and the output text is displayed on the terminal where I
run the python script. I would like to redirect this text to a TextEdit
window
On 15/06/13 06:22, Patrick Williams wrote:
Hi so I am making a bit of code to extract a bit of numbers data from a
file and then find the average of that data, however while I can get the
code to extract each specific piece of data I need, I can't seem to get
the numbers to add separately so I c
On 16/06/13 16:45, Chris “Kwpolska” Warrick wrote:
Moreover, you could do it all in one step ('w+' stands for “clear file
and allow read/write output”, while f.seek(0) is used to return the
pointer back to the beginning of the file):
I'm always very wary of recommending mixed read/write mode t
On 16-Jun-2013, at 09:21, Mark Lawrence wrote:
> On 16/06/2013 16:55, Chris “Kwpolska” Warrick wrote:
>> On Sat, Jun 15, 2013 at 7:22 AM, Patrick Williams wrote:
>>> Hi so I am making a bit of code to extract a bit of numbers data from a file
>>> and then find the average of that data, however
On 16/06/2013 16:55, Chris “Kwpolska” Warrick wrote:
On Sat, Jun 15, 2013 at 7:22 AM, Patrick Williams wrote:
Hi so I am making a bit of code to extract a bit of numbers data from a file
and then find the average of that data, however while I can get the code to
extract each specific piece of d
On 12/06/2013 13:48, Manigopal Vepati wrote:
Hi,
I need scripts for the following .
1) check whether username and password fields are present in Gmail
2)Code to access the system which doesn’t have ip address
i am using python 3.3
thanks
manigopal
Sorry but we don't work in this manner.
On 12-Jun-2013, at 05:48, Manigopal Vepati wrote:
> Hi,
>
> I need scripts for the following .
>
> 1) check whether username and password fields are present in Gmail
> 2) Code to access the system which doesn’t have ip address
>
And what have you found as you've started writing those scripts
On Sat, Jun 15, 2013 at 7:22 AM, Patrick Williams wrote:
> Hi so I am making a bit of code to extract a bit of numbers data from a file
> and then find the average of that data, however while I can get the code to
> extract each specific piece of data I need, I can't seem to get the numbers
> to a
On Wed, May 29, 2013 at 11:23 PM, charles benoit
wrote:
> 1:Python 2.7.4 (default, Apr 19 2013, 18:32:33)
> [GCC 4.7.3] on linux2
> Type "copyright", "credits" or "license()" for more information.
4+4
> 8
3+3=4
> SyntaxError: can't assign to operator
3=1
> SyntaxError: can't assign
On Sat, Jun 15, 2013 at 1:22 AM, Patrick Williams wrote:
> Hi so I am making a bit of code to extract a bit of numbers data from a
> file and then find the average of that data, however while I can get the
> code to extract each specific piece of data I need, I can't seem to get the
> numbers to
On Tue, Jun 11, 2013 at 2:00 PM, Jim Mooney wrote:
> On 11 June 2013 05:59, Steven D'Aprano wrote:
>
>> I'm afraid I don't understand what you mean. Second and subsequent inputs? I
>> only see one. Hide the input with dots?
>>
>> Can you copy and paste an example?
>
> That would be a graphic of t
El 29/05/13 18:23, charles benoit escribió:
1:Python 2.7.4 (default, Apr 19 2013, 18:32:33)
[GCC 4.7.3] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> 4+4
8
>>> 3+3=4
SyntaxError: can't assign to operator
>>> 3=1
SyntaxError: can't assign to literal
>
I thought the
Hi so I am making a bit of code to extract a bit of numbers data from a
file and then find the average of that data, however while I can get the
code to extract each specific piece of data I need, I can't seem to get the
numbers to add separately so I can get a proper average. My sum1 variable
see
FWIW about 6 or7 genuine messages and about a dozen spam...
The usual ratio... :-(
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://
Hi,
I need scripts for the following .
1) check whether username and password fields are present in Gmail
2) Code to access the system which doesn’t have ip address
i am using python 3.3
thanks
manigopal
___
Tutor maillist - Tutor@python.org
To un
1:Python 2.7.4 (default, Apr 19 2013, 18:32:33)
[GCC 4.7.3] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> 4+4
8
>>> 3+3=4
SyntaxError: can't assign to operator
>>> 3=1
SyntaxError: can't assign to literal
>
I thought the last 2 lines should return False
2:
lot=('1
I'm using win 7 64 bit, and Python 3.3. I've ask the flowing question on a
form, and friends of mine, and I've brought here the answers. I've made
after the instactions, and yet, the problem isn't fixed.. can someone help
me on this, please?
When I open Python's IDLE, sometimes and error name 'po
On Tuesday, June 11, 2013, Khalid Al-Ghamdi wrote:
> Hi,
>
> Do you know of a python module for converting text files to PDF format?
>
> thanks
Another one, that I've used extensively, is ReportLab.
http://www.reportlab.com/software/opensource/
Cheers
___
Hi Rafeal,
You have called random function two times. It must be called single time and
check if it produced 1 or 2. See my code.
/* code
---*/
import random
print("""
This program flips a coin 10 times.
It then counts the number of heads and tails.
On Sun, Jun 16, 2013 at 7:52 AM, Jim Mooney wrote:
> On 15 June 2013 22:32, Steven D'Aprano wrote:
>> http://mail.python.org/pipermail/python-list/2013-June/649710.html
>
> A succinct list - worth putting in my Keep file ;')
>
> -
> Jim
> After indictment the bacon smuggler was put on the no-fry
On Sun, Jun 16, 2013 at 9:27 AM, Dave Angel wrote:
> You were thinking of the OOP-sense of the word, but you didn't say it. So
> the listener might choose to figure you meant "method" as in "technique".
> After all the word style is used in its English meaning, even though Word
> documents can hav
On Sat, Jun 15, 2013 at 11:15 PM, Jim Mooney wrote:
>
> ## Comparing different types for equality always fails:
>
> if '5' != 5:
> print('oops')
It depends on the __eq__ and __ne__ methods defined by the types. int
and str have their own implementations of "rich comparisons". But
that's a sub
On Sat, Jun 15, 2013 at 11:53 PM, Jim Mooney wrote:
>
> class NobodyHome: pass
> x = NobodyHome()
> print(not x) # Result is False when I thought this would be True.
Quote:
>> If neither __bool__ nor __len__ is defined, the object defaults to being
>> truthy:
>>
>> >>> not not object()
>>
Jim Mooney schreef:
On 15 June 2013 14:55, Alan Gauld wrote:
I think your making it harder than it is.
Just use the result as you would expect and it will work.
I just meant that since I'm learning I'll create a dictionary on the
fly to try something out. All goes well except my IDE will typ
72 matches
Mail list logo