Re: Anonymous email users

2024-06-25 Thread Anton Shepelev via Python-list
Chris Angelico to dn: > > Python mailing-lists are covered by the Code of Conduct > > and monitored by ListAdmins. Thus, there are controls > > which limit the impact which advertisers and others with > > non-pythonic aims might otherwise exert! > > So long as there's a newsgroup gateway, those co

Re: Anonymous email users

2024-06-25 Thread Anton Shepelev via Python-list
Sebastian Wells: > The spammers won the spam wars, so even if you have > someone's real e-mail address, that's no guarantee that > you can contact them. No so with me. My e-mail address here is munged, but in a very obvious way, and no, my mailbox is not overwhelmed with spam. I make a habit of

Introspecting the variable bound to a function argument

2023-02-22 Thread Anton Shepelev
Hello, all. Does Python have an instrospection facility that can determine to which outer variable a function argument is bound, e.g.: v1 = 5; v2 = 5; def f(a): print(black_magic(a)) # or black_magic('a') f(v1) # prints: v1 f(v2) # prints: v2 -- () ascii ribbon campaign

How to find files with a string

2019-01-09 Thread anton . gridushko
: main() But there are mistakes like C:\Users\Anton\AppData\Local\Programs\Python\Python36-32\python.exe "C:/Users/Anton/PycharmProjects/Работа с файловой системой/Перебор файлов из папки.py" Traceback (most recent call last): File "C:/Users/Anton/PycharmProjects/Работа с файл

pip problems

2018-04-08 Thread Anton Alley
(I am on Windows 10) When I install a new Python version, pip does not update all of the way. In the command line 'pip' still runs the old pip.exe, so I've had to manually move the new pip to C:\Windows . It would be great if you fixed this for future python versions! Thanks,

Re: MacOSX SpeechRecognition installation problems

2016-12-08 Thread Anton Mamaenko
hances are that your global package configuration breaks anyways. Regards, Anton >> On 8 Dec 2016, at 09:18, Michael Torrie wrote: >> >> On 12/07/2016 11:09 PM, 3dB wrote: >> trying to install SpeechRecognition for Python results in error: >> >> running

Re: python 2.7.12 on Linux behaving differently than on Windows

2016-12-07 Thread Anton Mamaenko
o not try. Do or not do." So stop complaining. Just live with it. Regards, Anton > On 7 Dec 2016, at 21:02, BartC wrote: > >> On 07/12/2016 16:53, Michael Torrie wrote: >>> On 12/07/2016 08:48 AM, BartC wrote: >>> I would prefer that the program

Re: When will they fix Python _dbm?

2016-12-05 Thread Anton Mamaenko
What is your operating system, environment, and Python build? dbm is just a module that might not have been included into your Python build. It's not a bug but a deliberate choice of the package maker. Regards, Anton > On 5 Dec 2016, at 17:45, clvanwall wrote: > > I ha

Re: What exactly is a python variable?

2016-11-17 Thread Anton Mamaenko
Just a couple of days ago I was asking myself a similar question, and found this blog article: https://jeffknupp.com/blog/2013/02/14/drastically-improve-your-python-understanding-pythons-execution-model/ Clarified a lot of things to me. , Anton > On 17 Nov 2016, at 16:19, BartC wr

PY3.5 and nnumpy and scipy installation problem

2015-09-27 Thread paul . anton . letnes
I'll heartily recommend anaconda python. It's got everything you need prepackaged. Remove what you installed before. Cheers Pauk -- https://mail.python.org/mailman/listinfo/python-list

PY3.5 and nnumpy and scipy installation problem

2015-09-27 Thread paul . anton . letnes
Easiest way of installing is removing the python you've installed already and installing continuum's anaconda python 3.x (for x = 4 or 5). It has "batteries included" - numpy, scipy and many others! Paul -- https://mail.python.org/mailman/listinfo/python-list

Re: for loop

2015-09-20 Thread paul . anton . letnes
On Sunday, September 20, 2015 at 9:56:06 AM UTC+2, shiva upreti wrote: > https://ideone.com/BPflPk > > Please tell me why 'print s' statement is being executed inside loop, though > I put it outside. > Please help. I am new to python. Hi! Welcome to python, the most awesome programming language

Ordering dependent test failures

2015-09-20 Thread paul . anton . letnes
Hi! Fascinated by the concept of ordering dependent test failures [0], I've run the python test suite [1] with 256 different random seeds (took a little more than 12 hours). The results vary a lot - for instance, the number of tests reported as OK varies, the number of skips varies, etc. Since

Check if dictionary empty with == {}

2015-08-19 Thread Anton
Probably a silly question. Let's say I have a dictionary mydict and I need to test if a dictionary is empty. I would use if not mydict: """do something""" But I just came across a line of code like: if mydict == {}: """do something""" which seems odd to me, but maybe there is a valid

Re: Uninstall

2015-08-04 Thread paul . anton . letnes
Right. Try "which python" in the terminal and report back! Cheers Paul -- https://mail.python.org/mailman/listinfo/python-list

Re: Best approach to create humongous amount of files

2015-05-20 Thread paul . anton . letnes
There's a module called "template" that I've used before, for the find/replace part. I never investigated its performance, but my script used less than 1 s for 100 files IIRC :-) Paul -- https://mail.python.org/mailman/listinfo/python-list

Re: Array of Functions

2014-11-17 Thread Anton
On Friday, November 14, 2014 2:17:38 PM UTC-8, Richard Riehle wrote: > In C, C++, Ada, and functional languages, I can create an array of functions, > albeit with the nastiness of pointers in the C family. For example, an > array of functions where each function is an active button, or an array

Re: I love assert

2014-11-12 Thread Anton
On Wednesday, November 12, 2014 3:03:18 PM UTC-8, Ian wrote: > On Wed, Nov 12, 2014 at 3:48 PM, Anton wrote: > Sure, which is why you and I have both suggested raising a RuntimeError > instead. Yeah, I actually read it after sending my response :) -- https://mail.python.org/mailman

Re: I love assert

2014-11-12 Thread Anton
On Wednesday, November 12, 2014 2:42:19 PM UTC-8, Ian wrote: > On Wed, Nov 12, 2014 at 3:13 PM, Anton wrote: > > If the code is run optimized and asserts are ignore CONFUSED statement > > would still not be handled and you will not know about it. > > I would do something

Re: I love assert

2014-11-12 Thread Anton
On Wednesday, November 12, 2014 2:05:17 PM UTC-8, Ian wrote: > On Wed, Nov 12, 2014 at 2:56 PM, Marko Rauhamaa wrote: > > Ethan Furman: > > > >> On 11/12/2014 01:41 PM, Marko Rauhamaa wrote: > >>> > >>> Or I might indicate the exhaustion of possibilities: > >>> > >>> if status == OK: > >>>

Re: I love assert

2014-11-12 Thread Anton
On Wednesday, November 12, 2014 1:41:20 PM UTC-8, Marko Rauhamaa wrote: > Asserts help the reader of the code understand why some possibilities > are not considered by the code. They are not considered because the > writer of the code asserts they are not really possible. I can see how assert state

Re: I love assert

2014-11-12 Thread Anton
On Wednesday, November 12, 2014 2:00:35 PM UTC-8, Anton wrote: > On Wednesday, November 12, 2014 1:41:20 PM UTC-8, Marko Rauhamaa wrote: > > Asserts help the reader of the code understand why some possibilities > > are not considered by the code. They are not considered because th

Re: I love assert

2014-11-12 Thread Anton
On Tuesday, November 11, 2014 11:41:06 AM UTC-8, Peter Cacioppi wrote: > I get the impression that most Pythonistas aren't as habituated with assert > statements as I am. Is that just a misimpression on my part? If not, is there > a good reason to assert less with Python than other languages? >

Re: Python Style Question

2014-11-12 Thread Anton
On Thursday, October 30, 2014 4:10:23 AM UTC-7, Steven D'Aprano wrote: > I don't particularly like either version. I prefer this: > > def load_int(obj): > if isinstance(obj, int): > # Case 1), an int, e.g. 7 > return obj > elif isinstance(obj, str): > # Case 2) and

Re: Anyone know the solution

2014-10-29 Thread Anton
On Tuesday, October 28, 2014 10:13:14 PM UTC-7, Gregory Ewing wrote: > No, that's not the correct answer. Being NP-complete doesn't > mean something is impossible, or even hard to do. All it > means is that nobody knows of a cleverer solution than > just trying all possibilities. That's only a diff

Re: Python Style Question

2014-10-29 Thread Anton
On Wednesday, October 29, 2014 4:59:25 AM UTC-7, Rafael Romero Carmona wrote: > 2014-10-29 12:25 GMT+01:00 Martin Kemp : > Actually it doesn't work because there is no add function and it > doesn't catch the TypeError function to ignore other exceptions than > ValueError. Doesn't it? I tested in Py

Re: Python Style Question

2014-10-29 Thread Anton
On Wednesday, October 29, 2014 4:43:33 AM UTC-7, Rafael Romero Carmona wrote: > Hi, first in Python 2.7.6 and Python 3.4.0 list haven't got any add > function but they have append. You are right, in my original code I use set instead of array, so it should be either values = set() or values.append

Python Style Question

2014-10-29 Thread Anton
else: values.add(c_int) continue === Thanks, Anton. -- https://mail.python.org/mailman/listinfo/python-list

Re: Anyone know the solution

2014-10-28 Thread Anton
On Monday, October 27, 2014 5:33:17 PM UTC-7, alex23 wrote: > On 28/10/2014 1:10 AM, e...@gmail.com wrote: > > Write a program that reads the contents of the two files into two > > separate lists. The user should be able to enter a boy's > > name, a girl's name or both, and the

Re: When to use assert

2014-10-21 Thread Anton
27;t use them for checking input arguments to public library > > functions (private ones are okay) since you don't control the > > caller and can't guarantee that it will never break the > > function's contract. > > > > * Don't use assert for any error which you expect to recover from. > > In other words, you've got no reason to catch an AssertionError > > exception in production code. > > > > * Don't use so many assertions that they obscure the code. > > > > > > > > -- > > Steven I use ORM and often need to write a function that either takes an id of the record or already loaded model object. So I end up writing a piece of code like below: def do_something(instance): if isinstance(instance_or_id, int): instance = Model.get(instance) assert isinstance(instance, Model) # Code that assumes that instance is an object of type Model do_somthing is not a part of public library, though it is a public function, which can and intended to be used by other programmers; and assert should never happen if a client uses the function as planned. I wonder if this use-case is controversial to this part: > Many people use asserts as a quick and easy way to raise an exception if > > an argument is given the wrong value. But this is wrong, dangerously > > wrong, for two reasons. The first is that AssertionError is usually the > > wrong error to give when testing function arguments. You wouldn't write > > code like this: > > > > if not isinstance(x, int): > > raise AssertionError("not an int") > > > > you'd raise TypeError instead. "assert" raises the wrong sort of > > exception. > Thanks, Anton. -- https://mail.python.org/mailman/listinfo/python-list

Re: loop

2014-03-23 Thread anton
for i in (10**p for p in range(3, 8)): print(i) -- https://mail.python.org/mailman/listinfo/python-list

Re: Freelance Django developer needed

2011-10-11 Thread Anton Pirker
ind the best one, and i think they are not browsing job boards.. ;) greetings from vienna, Anton > > Best regards, > Waldek -- http://mail.python.org/mailman/listinfo/python-list

Freelance Django developer needed

2011-10-11 Thread Anton Pirker
templates in django We think the project will take about 8-12 weeks, starting November 1th. If you are interested, send your CV, a "why i am the best for the job"-letter and your rates to: development [at] creativesociety [dot] com Thanks, Anton -- http://mail.python.org/mailman/listi

Re: What Programing Language are the Largest Website Written In?

2011-07-13 Thread Anton Fonarev
2011/7/12 Xah Lee : >23 yandex.ru (Russian) ◇ ? > As far as I know, the site is written in Perl. However, they are using lots of python in their products and for internal use. Anton. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why this difference?

2011-02-24 Thread Paul Anton Letnes
Den 24.02.11 13.41, skrev n00m: The 1st "False" is not surprising for me. It's the 2nd "True" is a bit hmmm... ok, it doesn't matter == Have a nice day! I am no expert, but I think python re-uses some integer and string objects. For instance, if you create the object int(2)

Re: Making Line Graphs

2011-02-22 Thread Paul Anton Letnes
Den 21.02.11 10.34, skrev Jean-Michel Pichavant: spam head wrote: I'm looking for an easy way to display simple line graphs generated by a python program in Windows. It could be done from within the program, or I could write the information out to a file and call an external program. Either is f

Re: python and parsing an xml file

2011-02-22 Thread Paul Anton Letnes
Den 22.02.11 13.29, skrev pyt...@bdurham.com: Paul, How about skipping the whole xml thing? You can dynamically import any python module, even if it does not have a python filename. Great example! Can you do the same with a cStringIO based file that exists in memory vs. on disk? Your exampl

Re: python and parsing an xml file

2011-02-22 Thread Paul Anton Letnes
Den 21.02.11 18.30, skrev Matt Funk: Hi, I was wondering if someone had some advice: I want to create a set of xml input files to my code that look as follows: Alg1 ./Alg1.in c:\tmp 1 So there are co

Re: how to get and search a html file from a website

2011-02-01 Thread Paul Anton Letnes
Den 01.02.11 22.20, skrev Tracubik: Hi all! i'm writing a notification program and i'm quite new to python. The program have to check every 5 minutes a particular website and alert me when a particular sentence ("user online") is in the html. i've thinked to use a text browser (lynx) to retrieve

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread Anton Ertl
99-4126-bf3a-7ec40ea80...@j18g2000yqd.googlegroups.com> quite sensible, use something like that myself, and recommend it to others. Followups set to c.l.f (adjust as appropriate). - anton -- M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html comp.lang.forth FAQs: http://www.compla

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-19 Thread Anton Ertl
e instructions (RISCs). Only the IA64 has a code size increase by a factor of 2.33. Note that code size is not everything that's in a program binary, and the rest should be unaffected by whether the instructions are fixed-size or variable-sized, so the overall effect on the binary will b

Pointers in Python

2010-04-27 Thread Anton Shishkov
Hi, I can't figure out how can I change the variable type in function. In C I could do that easily by changing pointer. Code: def add(b): b = {} print type(b) a = [] print type(a) add(a) print type(a) Output: -- http://mail.python.org/mailman/listinfo/python-list

Re: psycopg2 / psycopg2.DataError: invalid input syntax for type timestamp with time zone:

2010-03-31 Thread Anton Shishkov
th this query > > > >            new_start_date = "NOW() - '29 days'::INTERVAL" > > >            self.dyndb.orderdb.query('''update set creation_date > > > = %s > > >            where id_order = %s''', (new_start_date,

Re: psycopg2 / psycopg2.DataError: invalid input syntax for type timestamp with time zone:

2010-03-31 Thread Anton Shishkov
On Mar 31, 3:10 am, "D'Arcy J.M. Cain" wrote: > On Tue, 30 Mar 2010 15:46:12 -0700 (PDT) > > ASh wrote: > > > >             new_start_date = "NOW() - '29 days'::INTERVAL" > > > >             self.dyndb.orderdb.query('''update set creation_date > > > > = %s > > > >             where id_order

Re: Another form of dynamic import

2009-03-25 Thread Anton Hartl
number of wildcard imports it would be very helpful if class names > could be automatically imported from the proper module. There is no > problem in finding out the proper module given a (valid) class name. Maybe this helps: http://www.connellybarnes.com/code/autoimp/ Regards, Ant

Insert Multiple Records Using One Insert Statemen with MySQLdb module

2008-12-06 Thread anton . ranieri . it
Hi, I'd like to insert Multiple Records Using One Insert Statement inserting one record using one insert statement works this is the example: import MySQLdb conn = MySQLdb.connect(host="localhost",.) cursore = conn.cursor() cursore.execute('INSERT INTO frutta (nome, quantita) VALUES(%s, %s)'

Re: Best strategy for finding a pattern in a sequence of integers

2008-11-21 Thread Anton Vredegoor
On Fri, 21 Nov 2008 18:10:02 +0100 Gerard flanagan <[EMAIL PROTECTED]> wrote: > data = ''' > 1 6 6 1 6 6 1 6 6 1 6 6 1 6 6 1 9 3 3 0 3 3 0 3 3 0 3 3 0 10 6 6 > 1 6 6 1 6 6 1 6 6 1 6 6 1 6 6 1 6 6 1 9 3 3 0 3 3 0 3 3 0 3 3 0 10 6 6 > 1 6 6 1 6 6 1 6 6 1 6 6 1 6 6 1 6 6 1 9 3 3 0 3 3 0 3 3 0 3 3 0 1

Re: Possible bug in Tkinter for Python 2.6

2008-11-19 Thread Anton Vredegoor
On Wed, 19 Nov 2008 10:57:53 +0100 "Eric Brunel" <[EMAIL PROTECTED]> wrote: > I'm trying out Python 2.6 and I found what might be a bug in the > Tkinter module. How can I report it? maybe here: http://bugs.python.org/issue3774 > The possible bug is a traceback when trying to delete a menu item

Re: Is psyco available for python 2.6?

2008-11-09 Thread Anton Vredegoor
On Thu, 30 Oct 2008 17:45:40 +0100 Gerhard Häring <[EMAIL PROTECTED]> wrote: > psyco seems to just work on Linux with Python 2.6. So it is probably > "only" a matter of compiling it on Windows for Python 2.6. Yes. I compiled it using "wp setup.py build --compiler=mingw32" with cygwin, where wp w

Re: using re module to find

2008-06-13 Thread anton
John Machin lexicon.net> writes: > > On Jun 12, 7:11 pm, anton <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I want to replace all occourences of " by \" in a string. > > > > But I want to leave all occourences of \" as they are. > >

using re module to find " but not " alone ... is this a BUG in re?

2008-06-12 Thread anton
and NOT: this I want \" while I dont want this \\" I tried even the (?<=...) construction but here I get an unbalanced paranthesis error. It seems tha re is not able to do the job due to parsing/compiling problems for this sort of strings. Have you any idea?? Anton Exam

Re: Processing in Python

2008-05-20 Thread Anton Hartl
d in Javascript: http://ejohn.org/blog/processingjs/ -Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: python vs. grep

2008-05-07 Thread Anton Slesarev
On May 7, 7:22 pm, Pop User <[EMAIL PROTECTED]> wrote: > Anton Slesarev wrote: > > > But I have some problem with writing performance grep analog. > > I don't think you can ever catch grep. Searching is its only purpose in > life and its very good at it. You

Re: python vs. grep

2008-05-07 Thread Anton Slesarev
I try to save my time not cpu cycles) I've got file which I really need to parse: -rw-rw-r-- 1 xxx xxx 3381564736 May 7 09:29 bigfile That's my results: $ time grep "python" bigfile | wc -l 2470 real0m4.744s user0m2.441s sys 0m2.307s And python scripts: import sys if len(

python vs. grep

2008-05-06 Thread Anton Slesarev
I've read great paper about generators: http://www.dabeaz.com/generators/index.html Author say that it's easy to write analog of common linux tools such as awk,grep etc. He say that performance could be even better. But I have some problem with writing performance grep analog. It's my script:

Re: overriding = operator

2008-04-23 Thread Anton Mellit
On Apr 22, 3:54 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Apr 22, 8:47 am, "Anton Mellit" <[EMAIL PROTECTED]> wrote: > > > > > I need something like > > 'overriding' =, which is impossible, but I look for a systematic > > appro

overriding = operator

2008-04-22 Thread Anton Mellit
ferrable? Does anyone know any alternative ways? Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: Java or C++?

2008-04-15 Thread Paul Anton Letnes
hard for C newbies. Den 15. april. 2008 kl. 19.35 skrev [EMAIL PROTECTED]: > On Apr 15, 3:07 am, Paul Anton Letnes <[EMAIL PROTECTED]> > wrote: > > >> but C bogs you down with administrative stuff (try converting an int >> to a string; I found myself googling for a

Re: How to import C++ static library?

2008-04-15 Thread Paul Anton Letnes
Den 15. april. 2008 kl. 11.11 skrev Diez B. Roggisch: > Alexander Dong Back Kim wrote: > >> Hi all, >> >> I'm very very beginner of python but I'm dare to ask this question >> straight away. =P >> >> Is it possible to import C++ static library compiled by GCC? The >> target is definitely Linux ma

Re: Java or C++?

2008-04-15 Thread Paul Anton Letnes
Brian: Impressive! This is the most balanced, well-informed and interesting reply to this debate. I would like to make some comments even so. I have tried all languages, and consider myself agnostic. However, I would like to roughly repeat what James Gosling (Java inventor) said at a lectu

Re: Process multiple files

2008-04-14 Thread Paul Anton Letnes
Funny, I'm just doing exactly this: import os def main(): dataFolder = 'data/' fileList = os.listdir(dataFolder) for file in fileList: inFile = open(dataFolder + file, 'r') print 'read inFile & do something useful here' Clear as an... egg?

Wrapping C++ class with SWIG, Mac OS X

2008-04-12 Thread Paul Anton Letnes
> > Thanks a lot for the comments. So, I post the code, which should let > you recreate the circumstances. I'm on 10.5.2, python2.5 (from > Fink), and got SIP from FINK recently - should be the latest version. > > I know C++ to some extent - the linking is the hardest part for me > to grasp.

Re: Wrapping C++ class with SWIG, Mac OS X

2008-04-12 Thread Paul Anton Letnes
Okay, installed SIP. Looks promising, following the tutorial on http://www.riverbankcomputing.com/static/Docs/sip4/sipref.html#using-sip It should be noted that I am working on a Mac - I know there are some differences, but it's still UNIX and should work somehow. Anyway, I copy-paste and create

Wrapping C++ class with SWIG, Mac OS X

2008-04-11 Thread Paul Anton Letnes
Hello guys, (related to previous thread on wrapping C/C++ in Python, trying the SWIG approach.) Trying to map a C++ class to python, one method for now. Running the following commands to "compile": -- #!/usr/bin/env bash MOD_NAME=Wavelet swig -c++ -pyth

Re: problem with using gnuplot/demo.py

2008-04-10 Thread Paul Anton Letnes
Could you include some code around line 39 in demo.py? Also, you could try to comment out the stuff before that point, and see if the demo runs that far. Paul. hi i want to use gnuplot with python i installed it seemingly successfully but when i try to run demo.py it gives the following e

Re: wrapping C functions in python

2008-04-09 Thread Paul Anton Letnes
Brian and Diez: First of all, thanks for the advice. Brian: I have installed NumPy and SciPy, but I can't seem to find a wavelet transform there. The main point of this was more to learn C wrapping than to actually get a calculation done. I will probably be starting a PhD soon, doing real

Re: wrapping C functions in python

2008-04-09 Thread Paul Anton Letnes
$2 = (char**)alloca($1*sizeof(char*)); > for (Py_ssize_t i = 0; i < $1; ++i) { > PyObject *o = PySequence_GetItem($input, i); > $2[i] = PyString_AsString(o); > } > } > > That one works for mapping a python sequence (such as a list) into the > argc, argv arguments commonly pas

wrapping C functions in python

2008-04-09 Thread Paul Anton Letnes
Hello etc. I am a "scientific" user of Python, and hence have to write some performance critical algorithms. Right now, I am learning Python, so this is a "newbie" question. I would like to wrap some heavy C functions inside Python, specifically a wavelet transform. I am beginning to bec

Re: 2.5.1 rpms?

2007-12-22 Thread Anton Tropashko
gamename wrote: > Hi, > > Where can I find python 2.5.1 rpm's for redhat9 and fedora6/7? did you check on the fedora7 dvd? btw building from sources if completely straigtforward (meaning that it does not build character and leaves your with a sense of accomplishment the way building x.org code

Re: twisted/qt main loop integration [email]

2007-12-22 Thread Anton Tropashko
Anton Tropashko wrote: > i can't use qtreactor since it relies on qt bindings lib (GPLed) > how much work there is to provide an alternative gpl free qtreactor > equivalent that is suitable for deployment in a commercial app > and who is specializing in this sort of contract wor

twisted/qt main loop integration

2007-12-22 Thread Anton Tropashko
i can't use qtreactor since it relies on qt bindings lib (GPLed) how much work there is to provide an alternative gpl free qtreactor equivalent that is suitable for deployment in a commercial app and who is specializing in this sort of contract work? in case i can convince the management to get t

Re: 3D plotting with python 2.5 on win32

2007-12-21 Thread anton
s it didn't get the complete file) it deleted it afterwards anyway. Bye Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: 3D plotting with python 2.5 on win32

2007-12-21 Thread anton
python 2.4.3 installation with moinmoin and trac for example, I didn't like this too much, ... don't remember exactly what I didn't like exactly, by I deinstalled the whole enthon stuff rather fast. Again: the enthon installer is nice if somebody uses only this suite :-) Its a great wo

Re: 3D plotting with python 2.5 on win32

2007-12-20 Thread anton
tried out (or tried to try out) different tools for doing 3D plotting, but skipped most of them since I did not get them to work. (... yes I am a little bit confused since I didnt find something working out of the box). Anton > > PyOpenGL isn't abandonware. Python 2.5 comes with the ct

Re: 3D plotting with python 2.5 on win32

2007-12-20 Thread anton
Hi Marek, thanks for the link .. I knew VPython already by I forgot it ( the last time it was only python 2.4 compatible) but as I see they support python 2.5 now ;-) I will check it and thanks again. Anton > Hi anton, > >Have you take a look at vpython? Here's their

3D plotting with python 2.5 on win32

2007-12-19 Thread anton
Hi, I would like to know if some of you knows a - working - actual - out of the box (for me: binaries available) Package/Lib to do 3D plotting out of the box. I know matplotlib. There is MayaVi from enthon but you need to use their python (2.4.3), all other stuff need picking sources etc

Re: Pari Python

2007-10-29 Thread Anton Mellit
t;)' (excerpt from the documentation). Actually it should be nice to have this workaround available separately for use by other math packages. Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: Pari Python

2007-10-28 Thread Anton Mellit
sion, so people should use // when they divide integers and expect an integer. Other than these two things (the second one does not require recompilation, so it is not so bad probably) I don't need any changes to python core. I agree that a standard must be standard. Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: Pari Python

2007-10-28 Thread Anton Mellit
> Does your version use the GMP library (optional in PARI). > Does it support Windows? I couldn't tell if the PARI > Windows distribution has GMP, but I suspect not since GMP > doesn't support Windows. No, I didn't try to use gmp. But this may be not a bad idea. I am trying to compile gmp right no

Pari Python

2007-10-28 Thread Anton Mellit
ython. For this my module installs my own handler for the operation ‘divide’ for integers and longs. That’s it. In other respects it is a normal python module. I will greatly appreciate any feedback. Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: Hack request: rational numbers

2007-10-26 Thread Anton Mellit
better to make a function which would 'turn on/off' my division. It is strange that it is only possible to do such things in C code, I cannot do it from python. Anton -- http://mail.python.org/mailman/listinfo/python-list

Compiler Python

2007-09-11 Thread anton a
Hello Someone knows since as I can obtain the information detailed about the compiler of Python? (Table of tokens, lists of productions of the syntactic one , semantic restrictions...) Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: need help with converting c function to python function

2007-07-05 Thread Anton Vredegoor
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > i have a c function from some modbus documentation that i need to > translate into python. > > it looks like this: > > > unsigned short CRC16(puchMsg, usDataLen) > unsigned char *puchMsg ; > unsigned short usDataLen ; > { >unsigne

Re: Permutation over a list with selected elements

2007-06-20 Thread Anton Vredegoor
[EMAIL PROTECTED] wrote: > Given a list of elements that are either a character or a character > follows by a number, e.g. > > ['a', 'b', 'c1', 'd', 'e1', 'f', 'c2', 'x', 'e2'] > > find all the permutations that are given by switching the positions of > the elements that: > (1) begins with the

Re: Create a new class on the fly

2007-06-02 Thread Anton Vredegoor
Alex Martelli wrote: > You can find a few examples of me demonstrating the subject of your > interest by searching for my name e.g. on video.google.com; searching > for my name on Amazon will show some books using similar techniques, and > searching for my name on groups.google.com will find about

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Anton Vredegoor
HYRY wrote: >> - should non-ASCII identifiers be supported? why? > Yes. I want this for years. I am Chinese, and teaching some 12 years > old children learning programming. The biggest problem is we cannot > use Chinese words for the identifiers. As the program source becomes > longer, they always

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Anton Vredegoor
Duncan Booth wrote: > Recently there has been quite a bit of publicity about the One Laptop Per > Child project. The XO laptop is just beginning rollout to children and > provides two main programming environments: Squeak and Python. It is an > exciting thought that that soon there will be mill

Re: Sorting troubles

2007-05-14 Thread Anton Vredegoor
[EMAIL PROTECTED] wrote: > I see. I figured that list comprehensions made another list(duh), but > I thought I could relink the object(List) to the new list and keep it > once the function ended. > > Is it possible to pass a reference(to an object.. Like 'List', > basically) to a function and chan

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Anton Vredegoor
Neil Hodgson wrote: > Anton Vredegoor: > >> Ouch! Now I seem to be disagreeing with the one who writes my editor. >> What will become of me now? > > It should be OK. I try to keep my anger under control and not cut > off the pixel supply at the first stirrings o

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Anton Vredegoor
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Martin v. Löwis: > > > This PEP suggests to support non-ASCII letters (such as accented > > characters, Cyrillic, Greek, Kanji, etc.) in Python identifiers. > > I support this to ease integration with other languages and > platform

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-13 Thread Anton Vredegoor
Martin v. Löwis wrote: > In summary, this PEP proposes to allow non-ASCII letters as > identifiers in Python. If the PEP is accepted, the following > identifiers would also become valid as class, function, or > variable names: Löffelstiel, changé, ошибка, or 売り場 > (hoping that the latter one means

Re: OT somewhat: Do you telecommute? What do you wish the boss understood about it?

2007-05-04 Thread Anton Vredegoor
estherschindler wrote: > * If you telecommute, full- or part-time, what *one* thing do you wish > the CIO or IT Management would understand that they don't currently > "get"? I'm not currently telecommuting but last year I had a telecommuting job for half a year. What I would want to say to all

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-25 Thread Anton Vredegoor
Steve Holden wrote: > I'm sorry, but while the PSF is a democratically-run organization its > franchise doesn't extend beyond the membership. I didn't realize this was about an PSF internal affair. Of course a group of people can decide on its internal matters without asking anyone else, as lo

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-25 Thread Anton Vredegoor
Antoon Pardon wrote: > On 2007-04-25, Anton Vredegoor <[EMAIL PROTECTED]> wrote: >> Antoon Pardon wrote: >> >>>>> That's a good point, and also a valid reason for restricting the >>>>> voting community to PSF members. Thanks, Alex. >>

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-25 Thread Anton Vredegoor
Anton Vredegoor wrote: > It's about as ridiculous as proving that a stiff parrot is dead by > grabbing it by the legs and repeatedly hitting it's head on the counter. Or to write "it's" where its is more appropriate. A. -- http://mail.python.org/mailman/listinfo/python-list

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-25 Thread Anton Vredegoor
Antoon Pardon wrote: >>> That's a good point, and also a valid reason for restricting the >>> voting community to PSF members. Thanks, Alex. >> So in order to avoid a suspicion of a conflict of interest you want to >> turn the whole thing into private property of the PSF? >> >> That is the most

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Anton Vredegoor
Steve Holden wrote: >> When cash is involved, it's important to avoid even the slightest >> hint of a suggestion of a suspicion of a conflict of interest; >> that, I guess, is why firms that run contests with cash prizes >> always declare employees and their families "not eligible", and why >> I t

Re: TK-grid problem, please help

2007-04-21 Thread Anton Vredegoor
Ray wrote: > hi, I have a question about how to use .grid_forget (in python/TK) > > I need to work on grid repeatly. everytime when a button is pressed, > the rows of grid is different. such like, first time, it generate 10 > rows of data. > 2nd time, it maybe only 5 rows. so I need a way to RES

Re: Expanding tkinter widgets to fill the window

2007-04-20 Thread Anton Vredegoor
KDawg44 wrote: > I am writing a GUI front end in Python using Tkinter. I have > developed the GUI in a grid and specified the size of the window. The > widgets are centered into the middle of the window. I would like them > to fill the window. I tried using the sticky=E+W+N+S option on the > w

python-list@python.org

2007-04-20 Thread Anton Vredegoor
Anton Vredegoor wrote: > def xsplitter(seq, pred): > Q = deque(),deque() > it = iter(seq) > def gen(p): > for x in it: > Q[pred(x) == p].append(x) > while Q[p]: yield Q[p].popleft() > while Q[p]: yield Q[p].pople

  1   2   3   >