Re: Bush, clean up your shit and farts before you leave - Hillary Clinton

2007-01-30 Thread Tommy
I' m not a Bush or Hillary fan, but this strikes me as pretty funny. Hillary: I'm not for any fixed date, as long as it's before the 2008 election. Dammit, George, I don't want Iraq to be a campaign issue! <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > But Bush was merely an ego f

Re: Jupyter notebooks to A4 (again)

2021-01-25 Thread tommy yama
Hi Martin, I noticed that i did use the same , formats are mentioned in git already. https://github.com/jupyter/nbconvert On Mon, Jan 25, 2021 at 6:47 AM Martin Schöön wrote: > Hello all, > > Some years ago I asked about exporting notebooks to pdf in > A4 rather than US Letter. I got help, rat

Re: Jupyter notebooks to A4 (again)

2021-01-28 Thread tommy yama
Hi, A4article is not indicated in git as you had a look. :( Maybe that format (A4article) was depreciated already? On Fri, Jan 29, 2021 at 6:52 AM Martin Schöön wrote: > Den 2021-01-25 skrev tommy yama : > > Hi Martin, > > > > I noticed that i did use the same , > &g

Re: Running Jupyter Notebook

2021-02-10 Thread tommy yama
Hi, Have you tried this? python -m notebook On Wed, Feb 10, 2021 at 11:28 PM Rafael Llera wrote: > I installed Python and jupyter via pip, but when I run jupyter notebook I > keep getting the following error. > > Requirement already satisfied: pyparsing>=2.0.2 in > c:\users\mitzi\appdata\ro

google text-to-speech python

2021-03-07 Thread tommy yama
Hi, Anyone familiar with how to change speech pace with python script? Thanks! -- https://mail.python.org/mailman/listinfo/python-list

gTTS in python

2021-03-08 Thread tommy yama
Hi, Anyone might be familiar with gTTS ? https://pypi.org/project/gTTS/ Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: The importance of mental health

2021-05-12 Thread tommy yama
I do not know you and your past but guess destigmatization of mental illnesses is an important agenda to people, On Tue, May 11, 2021 at 8:34 AM Mirko via Python-list < python-list@python.org> wrote: > Am 10.05.2021 um 15:16 schrieb Kyle Stanley: > > Hey all, > > > > In these last few months, I

Re: Unable to remove setup of 3.9.5 from Windows 10

2021-06-19 Thread tommy yama
Unrelated topic, but i thought Windows 10 will be retired anytime soon. On Sun, Jun 20, 2021 at 5:58 AM Mats Wichmann wrote: > On 6/19/21 10:14 AM, Manish Jain wrote: > > Hello Team, > > > > I have installed the Python 3.9.5 and trying to remove from the PC > through > > the Uninstall Program (A

Re: Request to advise error for python.

2021-10-23 Thread tommy yama
It seems you use windows to install. Then, you need conda. Pip works for Linux. Check this out. https://numpy.org/install/ On Thu, Oct 21, 2021, 11:35 PM Grant Edwards wrote: > On 2021-10-21, Mats Wichmann wrote: > > > There are some nuances. If you are on a Linux system, Python is a > > s

Re: Request to advise error for python.

2021-10-23 Thread tommy yama
Thank you MRAB. As somebody mentioned before, the easiest solution is you can do pip install before typing python. That would work. On Sun, Oct 24, 2021 at 12:00 AM MRAB wrote: > On 2021-10-23 14:53, tommy yama wrote: > > It seems you use windows to install. > > > > >

Re: mentor training python Romania with certification

2016-08-16 Thread tommy yama
Check it out. It is pretty basic material,though! https://www.python.org Go for it. On Tue, Aug 16, 2016 at 11:14 PM, blue wrote: > Hi. > > I'm from Romania. > I need to update my skils under python. > I need to find one mentor ( class, training ) to obtain one certified > under python lang

Bottle framework references

2018-08-21 Thread tommy yama
What’s up? I am building up the microsite based on Bottle framework now. Any references/books? I am unfamiliar with this framework yet. Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: Bottle framework references

2018-08-23 Thread tommy yama
More specifically, which online docs? > On 22 Aug 2018, at 8:38 am, Jason Friedman wrote: > >> >> I am building up the microsite based on Bottle framework now. >> Any references/books? I am unfamiliar with this framework yet. >> >> I have used it with success. The online documentation was su

Re: SSHLibrary (PyNaCl and Cryptography) inst for Python 3.6.4 in Windows 10

2018-10-18 Thread tommy yama
It's mentioned that pypi includes what you need. https://pypi.org/project/robotframework-sshlibrary/ On Fri, 19 Oct 2018, 01:28 MRAB, wrote: > On 2018-10-18 07:28, Saila wrote: > > keskiviikko 17. lokakuuta 2018 20.18.55 UTC+3 Thomas Jollans kirjoitti: > >> On 2018-10-17 16:41, Saila wrote: > >

Error in installing "conda-build"

2018-11-10 Thread tommy yama
Hi there, Anyone encountered the same problem? ommand "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-ReWrqJ/conda-build/ Your advices would be appreciated. -- https://mail.python.org/mailman/listinfo/python-list

Re: Error in installing "conda-build"

2018-11-11 Thread tommy yama
sorry, this is solved. On Sun, Nov 11, 2018 at 12:49 PM tommy yama wrote: > Hi there, > > Anyone encountered the same problem? > > ommand "python setup.py egg_info" failed with error code 1 in > /private/tmp/pip-install-ReWrqJ/conda-build/ > > > Your advice

Re: Good editor for python

2018-11-11 Thread tommy yama
Komodo edit is enchanting personally, On Mon, 12 Nov 2018, 06:06 Andrew Z Brian, thank you for sharing. Looks very interesting. > > On Sun, Nov 11, 2018, 10:46 Brian J. Oney via Python-list < > python-list@python.org wrote: > > > Hi Olivier > > > > I am glad you did not trigger an editor war. I d

Developers using Python QT framework ??

2016-05-15 Thread tommy yama
Hi folks, Are there people using QT cross-platform framework on the list? I appreciate for your advices and references regarding this. I am a novice python programmer who started using this framework. Thanks a lot in advance! Tomo -- https://mail.python.org/mailman/listinfo/python-list

Re: Developers using Python QT framework ??

2016-05-15 Thread tommy yama
Hey there, Many thanks, Vincent, On Sun, May 15, 2016 at 11:15 PM, Vincent Vande Vyvre < vincent.vande.vy...@telenet.be> wrote: > Le 15/05/2016 13:19, tommy yama a écrit : > >> Hi folks, >> >> Are there people using QT cross-platform framework on the list? &g

Re: Errors in installation of matplotlib and pandas on Macbook

2016-06-30 Thread tommy yama
Hi there, Why you would not use pip and anaconda for panda installation? It seems much easier to do the same. https://www.continuum.io/downloads#_macosx *Tomomi

sample chatting apps in pyqt

2016-06-30 Thread tommy yama
Hi all, Let me post my question here Has anyone installed and run any of sample chat apps in pyqt? Although I've tried to install and run sample scripts in pyqt once, the error said pyqt must be reinstalled. Appreciate for your suggestions. Thanks. Tomo -- https://mail.python.org/mailman/list

Re: Cannot find reference 'bluetoothctl' in 'sh.py' less... (Ctrl+F1)

2018-11-15 Thread tommy yama
Hello there Have you tried it with npm? https://www.npmjs.com/package/bluetoothctl On Thu, 15 Nov 2018, 15:10 dieter srinivasan writes: > > As am newbie to python, I am planning to automate BT functionality test > > using Bluez "bluetoothctl" utility by writing python wrapper and robot > > fr

Re: how to setup for localhost:8000

2019-03-01 Thread tommy yama
Here you go A port can be configurable. https://www.tutorialspoint.com/python/python_http_server.htm On Mon, Feb 25, 2019 at 12:48 PM Cameron Simpson wrote: > On 24Feb2019 19:00, 0x906 wrote: > >>> I am working on window 7 and Python 3.5 to setup a localhost:8000 > >>> but it did not get thro

Re: TechRepublicDEVELOPERCXO JPMorgan's Athena has 35 million lines of Python code, and won't be updated to Python 3 in time

2019-09-13 Thread tommy yama
"35 million lines of python code" it is insane. On Fri, Sep 13, 2019 at 9:39 PM Skip Montanaro wrote: > > > https://www.techrepublic.com/google-amp/article/jpmorgans-athena-has-35-million-lines-of-python-code-and-wont-be-updated-to-python-3-in-time/ > > I doubt this is unusual, and presume JP M

Help Wanted for the error

2019-09-27 Thread tommy yama
Hi , Has anyone seen similar errors previously? I just encountered the error below and need to fix asap. File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/google/protobuf/descriptor_pool.py", line 175, in _CheckConflictRegister raise TypeError(error_msg) Ty

Re: installing libraries

2019-10-16 Thread tommy yama
You can use python 3 spider probably. On Wed, Oct 16, 2019 at 7:22 PM Tesfalem Abraham wrote: > hello users, > > Here, I tried to start python 2.7 (spider) but I could not install or add > my lib to the working area. > > I do appreciate your suggestions for me. > > thanks. > -- > https://mail.py

pip3 install keyboard did not work in my environment

2019-10-26 Thread tommy yama
Hi, keyboard module can be installed with pip3? Regards, -- https://mail.python.org/mailman/listinfo/python-list

Re: Looking for python pentest scripts

2019-11-10 Thread tommy yama
http://pentestmonkey.net/ On Mon, Nov 11, 2019 at 12:42 PM Terry Reedy wrote: > On 11/10/2019 7:32 PM, Bob Gailer wrote: > > > On Nov 10, 2019 6:40 AM, "nixuser" wrote: > >> can someone tell about good resource for python related pentesting > >> scripts? > >> any extensive list? > > > Try Goog

Re: Unable to install Flask-Mongoengine

2019-12-15 Thread tommy yama
how about pip3? On Sun, Dec 15, 2019 at 5:16 PM Test Bot wrote: > Hi Guys, > > I am unable to install *Flask-Mongoengine* using pip. Here are my > specifications > > 1. *OS* => OSX 10.14.6 > 2. *Python* => Python 3.8.0 (Working in a virtualenv) > 3. *Dependency Manager* => pip(19.3.1), setuptool

hexdump module installation error

2019-12-18 Thread tommy yama
Hi, This sounds familiar to somebody? After upgrading my mac OS to Catalina, this persists even after pip3 install hexdump. [image: image.png] thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: hexdump module installation error

2019-12-19 Thread tommy yama
Thanks for your kind response. The error was simply "module Hexdump was not found". Regards, On Wed, Dec 18, 2019 at 11:39 PM Rhodri James wrote: > On 18/12/2019 02:23, tommy yama wrote: > > Hi, > > > > This sounds familiar to somebody? > > After upgrading

Re: hexdump module installation error

2019-12-19 Thread tommy yama
uch file or directory user@USERnoMacBook-Air LibraBrowser % Cheers, On Thu, Dec 19, 2019 at 12:21 PM Rhodri James wrote: > On 19/12/2019 11:23, tommy yama wrote: > > Thanks for your kind response. > > The error was simply "module Hexdump was not found". > > Severa

Re: hexdump module installation error

2019-12-19 Thread tommy yama
Yes. thanks for your enthusiasm. i may raise this in the git On Thu, Dec 19, 2019 at 12:46 PM Rhodri James wrote: > On 19/12/2019 12:43, tommy yama wrote: > > Thanks for your quick response i did not expect. > > I hope you see the error below in my response as i just copy

Re: hexdump module installation error

2019-12-21 Thread tommy yama
Thanks to all giving me helpful comments. Multiple hexdump files are found. Maybe that"s the reason. I guess i can figure out On Thu, Dec 19, 2019 at 5:29 PM Dennis Lee Bieber wrote: > On Thu, 19 Dec 2019 12:43:11 +0000, tommy yama > declaimed the following: > > > >

Re: hexdump module installation error

2019-12-21 Thread tommy yama
fixed now. I guess pip3 is linked to pip2 and installed python3 again. On Sat, Dec 21, 2019 at 8:44 AM tommy yama wrote: > Thanks to all giving me helpful comments. > Multiple hexdump files are found. Maybe that"s the reason. > > I guess i can figure out > > > > &

Saying bye bye to Python 2

2020-01-10 Thread tommy yama
As many know, python 2 was retired. 🐍 This means imminent migration to 3 will be a must ? I thought that upgrading is not that simple. thanks ! -- https://mail.python.org/mailman/listinfo/python-list

global interpreter lock

2005-10-18 Thread Tommy . Ryding
I just need confirmation that I think right. Is the files thread_xxx.h (xxx = nt, os2 or whatever) responsible for the global interpreter lock in a multithreaded environment? I'm currently writing my own thread_VW for VxWorks, thats why I'm asking. //Tommy -- http://mail.python.o

Re: global interpreter lock

2005-10-18 Thread Tommy . Ryding
Thanks, PyThread_release_lock() is implemented in all thread_xxx.h files. So I thought right but specified my question like a stupid ;) //T -- http://mail.python.org/mailman/listinfo/python-list

typo in the documentation or am I stupid?

2005-11-03 Thread Tommy . Ryding
other function with similar name is described: PyObject_GetAttrString. Could that be the one that fit into the example? Hopefully someone knows the answer to my question ;) //Tommy Link to the spot at Python.org: http://docs.python.org/ext/pure-embedding.html -- http://mail.python.org/mailman/lis

Re: Getting Python Accepted in my Organisation

2005-11-03 Thread Tommy . Ryding
I have done the same thing in my organisation. Show them concrete examples of when they can benefit from Python to Convince them. My colleagues and bosses has been conviced and therefore my current work task is to integrate the interpreter in a VxWorks environment so "everyone" at the company can

Extending and embedding Python

2005-07-11 Thread Tommy Nordgren
options for embedding Python. Stockholm July 11, 2005 Tommy Nordgren -- http://mail.python.org/mailman/listinfo/python-list

Extend Python

2005-09-01 Thread Tommy . Ryding
Hi All I have a problem with extentions of Python. Background: I'm workin within a large industrial control system and I have created a Port for VxWorks. In the system we have different permissions depending on which state the controller is in. To perform some actions in some states may even injur

Re: Extend Python

2005-09-01 Thread Tommy . Ryding
What is Qt? I have looked at PyQT and I can´t use it. I haven't tried it but the PyQT license makes the program useless. :( Any other suggestions? -- http://mail.python.org/mailman/listinfo/python-list

Re: Controlling memory allocation

2005-09-05 Thread Tommy . Ryding
Hello. I have done the thing you are requesting. You can easily create your own memory pool and have Python to use it. I added some rows to Pyconfig.h: #ifdef malloc #undef malloc #endif /*malloc*/ #define malloc Python_malloc Then I have some overhead in my own Python_malloc(size_t nBytes) --

Re: Controlling memory allocation

2005-09-05 Thread Tommy . Ryding
Yep! I redirect Free, Realloc and Malloc. (calloc is never used by Python). "The more I thoug..." That could be a possible problem. I will look in to it today and try and find out if that occurs and in that case how often. //T -- http://mail.python.org/mailman/listinfo/python-list

Embedding & Extending Python &other scripting languages

2005-04-20 Thread Tommy Nordgren
guage support for at least java and c++ initially. I probably want to support codegenerators written in ruby and tcl as well. Any help would be appreciated. I prefer email replies to <[EMAIL PROTECTED]> Stockholm, April 21, 2005 Tommy Nordgren -- http://mail.python.org/mailman/listinfo/python-list

[no subject]

2016-01-09 Thread tommy roberts
It will not allow my to run python 3.5.1 -- https://mail.python.org/mailman/listinfo/python-list

Simplex Algorithm

2013-09-01 Thread Tommy Vee
Anyone know where I can get an easy to use Python class or algorithm for the Simplex optimization algorithm? I've tried the one in the link below, but I can't figure out if a) I'm using it properly, or b) where to get the solution. BTW, I tried some test scenarios using MS Excel's "Solver" an

Re: Simplex Algorithm

2013-09-02 Thread Tommy Vee
On 9/2/2013 4:06 AM, Oscar Benjamin wrote: On Sep 2, 2013 2:31 AM, "Tommy Vee" wrote: > > Anyone know where I can get an easy to use Python class or algorithm for the Simplex optimization algorithm? I've tried the one in the link below, but I can't figure out if a)

Re: Simplex Algorithm

2013-09-02 Thread Tommy Vee
On 9/2/2013 5:55 AM, Robert Kern wrote: On 2013-09-02 02:26, Tommy Vee wrote: Anyone know where I can get an easy to use Python class or algorithm for the Simplex optimization algorithm? I've tried the one in the link below, but I can't figure out if a) I'm using it properly,

Re: Simplex Algorithm

2013-09-02 Thread Tommy Vee
On 9/2/2013 11:43 AM, Robert Kern wrote: On 2013-09-02 16:06, Tommy Vee wrote: On 9/2/2013 5:55 AM, Robert Kern wrote: On 2013-09-02 02:26, Tommy Vee wrote: Anyone know where I can get an easy to use Python class or algorithm for the Simplex optimization algorithm? I've tried the one i

How to properly apply OOP in the bouncing ball code

2015-05-08 Thread Tommy C
I'm trying to apply OOP in this bouncing ball code in order to have multiple balls bouncing around the screen. The objective of this code is to create a method called settings, which controls all the settings for the screen and the bouncing behaviour of multiple balls, under the class Ball. Howe

Re: How to properly apply OOP in the bouncing ball code

2015-05-11 Thread Tommy C
.jpg") patrick.speed[0] = 5 patrick.speed[1] = 8 patrick.control() patrick.settings() jaws = BALL("jaws.jpg") jaws.speed[0] = 1 jaws.speed[1] = 10 jaws.control() jaws.settings() On Friday, May 8, 2015 at 11:40:46 AM UTC-4, Tommy C wrote: > I'm trying to apply OOP in this bou

Questions on Pandas

2015-06-25 Thread Tommy C
Hi there, I have a number of questions related to the Pandas exercises found from the book, Python for Data Analysis by Wes McKinney. Particularly, these exercises are from Chapter 6 of the book. It'd be much appreciated if you could answer the following questions! 1. [code] Input: pd.read_csv(

exec a string in an embedded environment

2006-01-11 Thread Tommy R
PyObject to that 'module' and then in some magic way call a function within that module? I am totaly out of ideas so please help me anyone. //Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: exec a string in an embedded environment

2006-01-17 Thread Tommy Ryding
string with a similar approach. The ultimate solution would be to change the PyImport_Import() call to something that creates an object from a string Now some of you think why not have the code inside a file. We need to create encrypted script files, thats why. I hope someone can help me //Tommy -- h

Re: exec a string in an embedded environment

2006-01-17 Thread Tommy Ryding
I can't post that much of what I have done but some questions might answer if you e-mail me the question to my gmail.com address. [EMAIL PROTECTED] //Tommy -- http://mail.python.org/mailman/listinfo/python-list

Matplotlib and mouse events

2006-07-17 Thread Tommy Grav
, but I am stuck on implementing this. Anyone have any suggestions. I am using the TkAgg interface on a Mac.Cheers Tommy[EMAIL PROTECTED]http://homepage.mac.com/tgrav/"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genious -- an

Calling functions

2006-10-19 Thread Tommy Grav
I have a small program that goes something like thisdef funcA() : passdef funcB() : passdef funcC() : passdef determine(f): t = f() return tWhat I would like to do is be able to n = determine(funcA)m = determine(funcB)But I can't really figure out how to do this (I think it is possible :) CheersTom

Re: Calling functions

2006-10-19 Thread Tommy Grav
That does work yes :) I just noticed that the script had another little error in it, making me believe that the function call was crooking.Cheers   TommyOn Oct 19, 2006, at 12:30 PM, Dustin J. Mitchell wrote:Tommy Grav wrote: I have a small program that goes something like thisdef funcA() : passdef

Physical constants

2006-11-03 Thread Tommy Grav
classes and functions? I do not want to pass the constant down through the functions. I have thought ofmaking a class of constants but I do not want to invoke an instant in each function. How is the pi and e constants in mathcoded? Tommy[EMAIL PROTECTED]http://homepage.mac.com/tgrav/"Any intell

pyfits problem

2006-11-16 Thread Tommy Grav
work/Versions/2.4/lib/ python2.4/site-packages/pyfits/NP_pyfits.py", line 2058, in __getattr__ self.data = np.array(raw_data, type=np.Float32) AttributeError: 'module' object has no attribute 'Float32' I am using numpy 1.0rc3 and ActivePython 2.4.3 Bui

Re: Running External Commands + Seeing when they are Finished

2006-05-29 Thread Tommy B
It works! Gasp! Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Writing to a certain line?

2006-06-05 Thread Tommy B
I was wondering if there was a way to take a txt file and, while keeping most of it, replace only one line. See, I'd have a file like: Tommy 555 Bob 62 Joe 529 And I'd want to set it to be: Tommy 555 Bob 66 Joe 529 Is there any easy way to do this? -- http://mail.python.org/mailma

Re: Writing to a certain line?

2006-06-06 Thread Tommy B
bruno at modulix wrote: > Tommy B wrote: > > I was wondering if there was a way to take a txt file and, while > > keeping most of it, replace only one line. > > > This is a FAQ (while I don't know if it's in the FAQ !-), and is in no > way a Python problem. F

pysqlite error: Database locked?

2006-06-06 Thread Tommy B
I'm currently working on a casino script for an IRC bot. I was going to make a flat file database, but I decided to make it sqlite after some suggestions. I'm using pysqlite. http://pastebin.com/764315 < Source. The lines that have @@ (pastebin doesn't like me) in front of them are important. ERR

C code in Python

2006-09-01 Thread Tommy Grav
I have some numerical code in C that I would like to call from Python. Cananyone point me in a direction for some text I could read on how to do this?Cheers Tommy[EMAIL PROTECTED]http://homepage.mac.com/tgrav/"Any intelligent fool can make things bigger, more complex, and more violent. It ta

Re: does anybody earn a living programming in python?

2006-09-27 Thread Tommy Grav
On Sep 27, 2006, at 10:20 AM, Steven D'Aprano wrote:On Wed, 27 Sep 2006 09:17:28 -0400, Roy Smith wrote:Countless and uncountable are not the same thing.  The former simply means you haven't bothered to count them yet, which as a basis for number theory, sounds like it belongs in a Douglas Adams bo

Re: pyfits problem

2006-11-18 Thread Tommy Grav
was a mismatch between my version of numpy and pyfits. Anyways it works just fine now :) Tommy [EMAIL PROTECTED] http://homepage.mac.com/tgrav/ "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genious -- and a lot of courage -- to move i

Installation problem

2006-11-26 Thread Tommy Grav
can see what fails with the installation? Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

[help] Is it true to call obj.__str__() while executing "print obj"?

2006-11-29 Thread Tommy Zong
at 0x1870dacc> >>> C.__str__ >>> print C This is class C }}} The question is why Printable.__str__ is invoked while executing "print C" but "C.__str__" shows it is resolved as "objct.__str__"? Wish I can get reply from you.

Re: memory error with matplot

2006-12-05 Thread Tommy Grav
Tommy [EMAIL PROTECTED] http://homepage.mac.com/tgrav/ - "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opp

Updating variables indirectly

2006-12-12 Thread Tommy Grav
ss ... >>> test.a = 1 >>> test.b = 2 >>> for x in [test.a,test.b]: ... x = x + 1 ... >>> print test.a 1 >>> print test.b 2 >>> However, what I am after is a way to increment the variables in the list, e.q. I want test.a to be 2 and test.b to

Embed Python

2005-05-17 Thread Tommy Ryding
im applying it to. Question: Is there any obvious way to see what files that are needed for the interpreter and which files that are needed by the compiler? //Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: Determinant of Large Matrix

2007-06-06 Thread Tommy Nordgren
t; http://mail.python.org/mailman/listinfo/python-list Are you sure NumPy return float results. As far as I know, it returns doubles (about 16 digits) -- "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: In C extension .pyd, sizeof INT64 = 4?

2007-06-13 Thread Tommy Nordgren
--- This sig is dedicated to the advancement of Nuclear Power Tommy Nordgren [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Expandable 2D Dictionaries?

2007-07-06 Thread Tommy Nordgren
n will dynamically add that key/value pair? > > Thanks. > The best way to do this, is probably to implement your own class. As far as I know, Python supports operator overloads, although the syntax is different than C++. -- What is a woman that you forsake her, and t

Re: comparison with None

2007-04-20 Thread Tommy Grav
> True >>>> type(1.0), type(1) > (, ) > Isn't this an example of numerical comparison (= or !=) versus object comparison (is or is not). I think the documentation needs to state that there is a difference between the two types. Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: Do other Python GUI toolkits require this?

2007-04-20 Thread Tommy Grav
ith amount of work on the y axis, and degree of educated on the x axis). Wether a shallow or steep slope is preferable is all dependent on what one is actually measuring. Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: matplotlib basic question

2007-04-20 Thread Tommy Grav
the scipy.org Superpack bundle for Mac OS X to work with 2.5? Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question regarding string.split()

2007-04-20 Thread Tommy Grav
n Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> a = " 456 556 556" >>> a.split() ['456', '556', '556'] >>> a.split(" ") ['', '456', '556', '556'] >>> What exactly does .split() use to do the splitting? Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: matplotlib basic question

2007-04-20 Thread Tommy Grav
On Apr 20, 2007, at 3:49 PM, Robert Kern wrote: > Tommy Grav wrote: >> On Apr 20, 2007, at 2:44 PM, Robert Kern wrote: >>> Colin J. Williams wrote: >>> >>>> I'm not sure that scipy has been updated to Python 2.5 >>> ? scipy certainly works with

Re: editing scripts on a mac

2007-04-27 Thread Tommy Grav
emacs is bundled with OS X and can be started in a terminal window with emacs. If you want a non-terminal editor Aquaemacs (http://aquamacs.org/) is available and easily installed on mac. Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: editing scripts on a mac

2007-04-27 Thread Tommy Nordgren
that you forsake her, and the hearth fire and the home acre, to go with the old grey Widow Maker. --Kipling, harp song of the Dane women Tommy Nordgren [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Looping over lists

2007-05-04 Thread Tommy Grav
yield: 1. 2. 1. 3. 1. 4. 1. 5. 2. 3. 2. 4. 2. 5. 3. 4. 3. 5. 4. 5. Can anyone help me with the right approach for this in python? Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: No Python for Blackberry?

2007-05-19 Thread Tommy Nordgren
(in the directory 'build' of the previous step) then give the commands: make make check sudo make install [whereupon the systom will ask for your administrator password] - This sig is dedicated to the advancement of Nucle

Re: Unicode to HTML entities

2007-05-30 Thread Tommy Nordgren
do Pinto Neto > In many cases, the need to use html/xhtml entities can be avoided by generating utf8- coded pages. ------ "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Adventure-Engines in Python

2007-08-13 Thread Tommy Nordgren
man/listinfo/python-list I don't know of any adventure engines in Python, bet there is an open-source language and class library for text adventures called TADS (www.tads.org) The syntax is similar to C++ and Java. Tads have been ported to ALL major platforms -----

Re: Parser Generator?

2007-08-18 Thread Tommy Nordgren
ost a lot of money too. -Thats no problem. I've got a big government grant for the study of black holes. Tommy Nordgren [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorting a list of Unicode strings?

2007-08-20 Thread Tommy Nordgren
An astronomer to a colleague: -I can't understsnad how you can go to the brothel as often as you do. Not only is it a filthy habit, but it must cost a lot of money too. -Thats no problem. I've got a big government grant for the study of black holes. Tommy Nordgren [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: C# and Python

2007-08-21 Thread Tommy Nordgren
it must cost a lot of money too. -Thats no problem. I've got a big government grant for the study of black holes. Tommy Nordgren [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Dispatching default application for file, cross platform.

2007-08-22 Thread Tommy Nordgren
o/python-list On Mac OS X, invoke the command /usr/bin/open -a file , or /usr/bin/open file -- What is a woman that you forsake her, and the hearth fire and the home acre, to go with the old grey Widow Maker. --Kipling, harp song of the Dane women Tommy Nordgren [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Any python Module for generating DocBook?

2007-08-25 Thread Tommy Nordgren
Do anyone on this list know of a Python module for generating DocBook programlisting elements for programming language source code merked with special comments. I want to write a programming book, and want to mark significant lines in the source code for reference. My DocBook processing software

Re: A big problem with _name_ == '_main_'

2007-09-01 Thread Tommy Grav
tk.main() > > Onuray. I believe that should be a double underscore if __name__ == '__main__': MyClass() gtk.main() Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

handling modules in packages

2007-09-05 Thread Tommy Grav
nce in the package (like in the __init__.py file) such that it is accessible to all the modules? Or is the multiple imports just something one has to live with? Thanks for any help or direction to webpages discussing this topic. Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: handling modules in packages

2007-09-05 Thread Tommy Grav
e almost no time at all. So am I understanding it right that a second import numpy statement in a different module (and thus a different namespace) just results in a binding to the already existing numpy "object"? Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: Organizing Code - Packages

2007-09-08 Thread Tommy Grav
and errors are unimportant for this question. The code and traceback is important because the behavior you claim is not easily explained without more information. How are we suppose to help you make your code run, when you can't even properly explain the problem? Cheers Tommy -- http:/

Newbie question

2007-03-05 Thread Tommy Grav
x = float(xin) y = float(yin) z = float(zin) Is there a way to go from line.split() to x,y,z as floats without converting each variable individually? Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Tommy Grav
On Mar 5, 2007, at 12:47 PM, Larry Bates wrote: > Tommy Grav wrote: >> Hi list, >> >>this is somewhat of a newbie question that has irritated me for >> a while. >> I have a file test.txt: >> >> 0.3434 0.5322 0.3345 >> 1.3435 2.3345 5.3

Re: Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Tommy Grav
On Mar 6, 2007, at 8:14 AM, Jussi Salmela wrote: > Tommy Grav kirjoitti: >> >> Thanks for the great response. >> >> So how would you handle this type of error handling? >> My main problem is that occasionally there is an entry >> in the list that is a str

  1   2   >