Re: pip does not find after Python 3.10.4 installed

2022-05-26 Thread ANTHONY CHU
I found that RAV Antivirus complains some processes even Python 3.10.4 installed successfully. Remove RAV and re-install Python; then everything goes OK. Thanks, On 05/26/2022 8:24 AM ANTHONY CHU wrote: > > > The Python 3.10.4 (64-bit) and Python Launcher had been

pip does not find after Python 3.10.4 installed

2022-05-26 Thread ANTHONY CHU
The Python 3.10.4 (64-bit) and Python Launcher had been (standard) installed successfully. But I could not find pip anywhere. I uninstalled and re-installed a couple of times, it is still the problem. I checked the installed directory C:\Users\x\AppData\Local\Programs\Python\Python310\Tool

Re: How to start using python

2020-11-13 Thread Anthony Steventon
message telling me the entry is undefined. Anthony Steventon. From: Bob Gailer Sent: Thursday, November 12, 2020 8:58 PM To: Anthony Steventon Cc: python list Subject: Re: How to start using python On Nov 12, 2020 10:41 PM, "Anthony Steventon" wrote: > > I am new to Python and

How to start using python

2020-11-12 Thread Anthony Steventon
I am new to Python and have downloaded the software onto my pc. There is no shortcut on my desktop. How the heck do I access it to start learning how to program with it? Anthony Steventon. -- This email has been checked for viruses by AVG. https://www.avg.com -- https://mail.python.org

This is the email address I Believe I should email for support.

2019-12-18 Thread Anthony Graziano
When I try to uninstall python 3.8.0 to reinstall, it says that the program is currsntly running.   Please help   Sent from [1]Mail for Windows 10   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listi

Interesting performance question

2019-09-29 Thread Anthony Flury via Python-list
I have just noticed an oddity : Using python 3.6 building a tuple like this : my_tuple = tuple([x*x for x in range(1,1000)]) is about 1/3 quicker than     my_tuple = tuple(x*x for x in range(1,1000)) Measurements : $  python3 -m timeit 'my_tuple = tuple([x*x for x in range(1,1000)])' 1

3D surface plot

2019-03-17 Thread Keith Anthony
I should know this ...! Anyway, I have a list of 36 tuples, each with x, y, z values I want to create a surface plot ... Need help putting data into right format for matplot3D ... This is a gmail account used by Keith D. Anthony On Sat, Mar 16, 2019 at 12:03 PM wrote: > Send Python-l

Extension Module for Python 3.6 +

2019-03-01 Thread Anthony Flury via Python-list
not allowed ? PS - I think I also need to use Py_BuildValue to 'encapsulate' the initial arguments for the new instance - or could I just build a 'blank' instance and then directly set the fields as neccessary ? -- Anthony Flury *Email* : anthony.fl...@btinternet.com <mailto:a

Using PyArg_ParseTuple to with optional fields.

2019-02-28 Thread Anthony Flury via Python-list
allows only one, or just two, or three - i.e. not all or nothing * |() - allows no argument, but passing 4 arguments expects a 4-tuple - i.e. my_func( (a,b,c,d) ) which is unnecessarily complex Can I do what I want with a single call to PyArg_ParseTuple  ? -- Anthony Flury *Email* : ant

Re: Encounter issues to install Python

2019-01-15 Thread Anthony Flury via Python-list
h disk space to install Python ? * have you actually got a 32 bit windows installation - many modern PCs are actually 64 bit now. On 06/01/2019 15:20, Olivier Oussou wrote: Hi dear Anthony, I am using Windows systeme. I have download the set up uf python 3.6.4 (32-bit) and I can not install the

Side by side comparison - CPython, nuitka, PyPy

2018-12-21 Thread Anthony Flury via Python-list
is as efficient as it could be - although every effort was made to try to make it as fast as I could. -- Anthony Flury *Email* : anthony.fl...@btinternet.com <mailto:anthony.fl...@btinternet.com> *Twitter* : @TonyFlury <https://twitter.com/TonyFlury/> -- https://mail.python.org

Re: Encounter issues to install Python

2018-10-13 Thread Anthony Flury via Python-list
2-bit) on my computer but I have problems and can not access the python interface. I need your technical assistance to solve this matter. Best regard! Olivier OUSSOUMedical entomologist, Benin -- Anthony Flury *Email* : anthony.fl...@btinternet.com <mailto:anthony.fl...@btinternet.com&g

Re: Observations on the List - "Be More Kind"

2018-10-06 Thread Anthony Flury via Python-list
power trip - they are here to help, and they are volunteers. Part of the really important thing about Python is the community and this list is a critical part of that community.; lets keep it that way please :-) -- Anthony Flury *Email* : anthony.fl...@btinternet.com <mailto:anthony

Question about Multi-processing

2018-10-02 Thread Anthony Flury via Python-list
AttributeError: 'module' object has no attribute 'f' But when I run this exact example in the command line interpreter it works fine : >>> p = Pool(5) >>> def f(x): ... return x*x ... >>> p.map(f,[1,2,3]) [3, 5, 7]

Elastic Search

2017-04-07 Thread Keith Anthony
I need some insightful examples of elastic search, using REGEX ... And using REST. -- https://mail.python.org/mailman/listinfo/python-list

Why do these statements evaluate the way they do?

2016-05-06 Thread Anthony Papillion
c. They say the reason is because the return is based on identity and not value but, to me, these statements are fairly equal. Can someone clue me in? Anthony -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- https://mail.python.org/mailman/listinfo/python-list

i cant seem to figure out the error

2016-04-03 Thread anthony uwaifo
hi everyone, please i need help with this assignment. I have written a code and i still get an error. please help me debug my code. instructions: - Create a constructor that takes in an integer and assigns this to a `balance` property. - Create a method called `deposit` that takes in ca

Re: Sending an email with a binary attachment

2016-03-01 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 03/01/2016 02:03 AM, Chris Angelico wrote: > On Tue, Mar 1, 2016 at 6:58 PM, Anthony Papillion > wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 >> >> On 02/29/2016 11:13 AM, Chris Angelico wrote: >>&g

Re: Sending an email with a binary attachment

2016-02-29 Thread Anthony Papillion
#x27;m a bit confused. Are you saying that the problem is that I'm enclosing the code in a Try/Except block? Besides that, I don't see anything different. If it's the Try/Except block, how do I catch the exception it might generate if I'm not using the exce

Sending an email with a binary attachment

2016-02-29 Thread Anthony Papillion
stebin.com/sryj98wW For some reason though, sending mail is failing every time. I've made sure that the password is correct (which seems to be the most usual error). Still, I just can't get it to work. Can someone take a look at this code and give me some advice? Thanks! Anthony

Re: Everything good about Python except GUI IDE?

2016-02-27 Thread Anthony Papillion
I would absolutely recommend you take a look at the Qt stuff. Very modern, easy to use, and free for non-commercial products. Anthony On February 27, 2016 5:18:57 AM CST, wrong.addres...@gmail.com wrote: >I have some VB forms with more than a hundred objects. If I cannot drag >an

I cannot open IDLE

2016-02-12 Thread anthony averett
I have downloaded python but I cannot open up idle. I really need this issue resolved for I have work do for one of my computer science class. -- https://mail.python.org/mailman/listinfo/python-list

Re: [SOLVED] There has to be a better way to split this string!

2016-02-09 Thread Anthony Papillion
On 02/09/2016 07:47 PM, Ben Finney wrote: > Anthony Papillion writes: > >> On 02/09/2016 07:26 PM, Anthony Papillion wrote: >>> I am using datetime.now() to create a unique version of a filename. >>> […] >> >> Found the solution in strftime(). Exactly wh

Re: [SOLVED] There has to be a better way to split this string!

2016-02-09 Thread Anthony Papillion
On 02/09/2016 07:26 PM, Anthony Papillion wrote: > Hello Everyone, > > I am using datetime.now() to create a unique version of a filename. > When the final file is named, it will look something like: > > myfile-2015-02-09-19-08-45-4223 > > Notice I'm replacing all o

There has to be a better way to split this string!

2016-02-09 Thread Anthony Papillion
emoved_colons = intermediate_string.split(":") intermediate_string = removed_colons[0] + "-" + removed_colons[1] + "-" + removed_colons[2] removed_dots = intermediate_string.split(".") final_string = removed.dots[0] + "-" + removed_dot

Getting data out of Mozilla Thunderbird with Python?

2015-12-08 Thread Anthony Papillion
vely. I'm looking for a way to get at the mail stored in Thunderbird using Python and, so far, I can't find anything. I did find the mozmail package but it seems to be geared more towards testing and not really the kind of use I need. Can anyone suggest anything? Many Thanks, Anthony Pa

How to create a folder using IMAPLib?

2015-11-18 Thread Anthony Papillion
target machine. Does anyone know how to create a folder using IMAPlib? Thanks, Anthony - -- Phone: 1.845.666.1114 Skype: cajuntechie PGP Key:0x028ADF7453B04B15 Fingerprint:C5CE E687 DDC2 D12B 9063 56EA 028A DF74 53B0 4B15 -BEGI

Creating PST files using Python

2015-11-03 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Does anyone know of a module that allows the wiring of Outlook PST files using Python? I'm working on a project that will require me to migrate 60gb of maildir mail (multiple accounts) to Outlook. Thanks Anthony - -- Sent from my Android d

Re: How to handle attachments passed via Postfix

2015-10-13 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On October 13, 2015 2:04:09 AM CDT, Burak Arslan wrote: > > >On 10/13/15 00:52, Anthony Papillion wrote: >>> Check out the email.parser module, or the convenience function >>> > email.message_from_string - yo

Re: How to handle attachments passed via Postfix

2015-10-12 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 10/12/2015 3:58 AM, Chris Angelico wrote: > On Mon, Oct 12, 2015 at 6:17 PM, Anthony Papillion > wrote: >> I'm writing a script that will have email with attachments passed >> to it via Postfix. Postfix is properly p

How to handle attachments passed via Postfix

2015-10-12 Thread Anthony Papillion
out to the filesystem. Can anyone point me in the right direction? Thanks! Anthony - -- Phone: +1.845.666.3312 Skype: CajunTechie SIP/VoIP: 17772471...@in.callcentric.com PGP Key: 0x53B04B15 Fingerprint: C5CE E687 DDC2 D12B 9063 56EA 028A DF74 53B0 4B15

Is there a Windows Python SIG?

2015-10-07 Thread Anthony Papillion
s a Windows SIG? I went to the Python website where I thought I'd seen one but it doesn't seem to be there now. Any thoughts? Anthony - -- Phone: +1.845.666.3312 Skype: CajunTechie SIP/VoIP: 17772471...@in.callcentric.com PGP Key: 0x53B04B15 Fingerprint:

How do I real a SSL certs serial number using Python?

2015-09-03 Thread Anthony Papillion
in the general direction of how to do it? Thanks, Anthony Papillion - -- Phone:1-(845) 666-1114 VoIP: 17772471...@in.callcentric.com Skype:CajunTechie -BEGIN PGP SIGNATURE- Version: APG v1.1.1 iQJJBAEBCgAzBQJV6FtfLBxBbnRob255IFBhcGlsbGlvbiA8Y

Re: What killed Smalltalk could kill Python

2015-01-21 Thread Anthony Papillion
he community to make it better. Namespaces were a bit deal as were a few other things. Personally, while I am LOVING Python, I'd be sad to see PHP die. It's got a lot of potential if the community can get its crap together and take off the ruby coloured glasses. Anthony -- https://mail.python.org/mailman/listinfo/python-list

How do I remove/unlink wildcarded files

2015-01-02 Thread Anthony Papillion
Hi Everyone, I have a function I'm writing to delete wildcarded files in a directory. I tried this: def unlinkFiles(): os.remove("/home/anthony/backup/unix*") This doesn't seem to work because it's a wildcard filename. What is the proper way to delete files using wi

Read TLS cert serial number?

2014-04-21 Thread Anthony Papillion
Is there a way to read the serial number of a TLS cert my app receives? Anthony Sent from my mobile device -- https://mail.python.org/mailman/listinfo/python-list

Why Python 3?

2014-04-18 Thread Anthony Papillion
from the 'it's the future' argument? Thanks, Anthony -- https://mail.python.org/mailman/listinfo/python-list

Re: Learner looking for assistance

2014-04-15 Thread Anthony Smith
On Tuesday, 15 April 2014 18:29:27 UTC+10, Steven D'Aprano wrote: > On Mon, 14 Apr 2014 00:43:41 -0700, Anthony Smith wrote: > > > > > > > the calc_total does not return a estimated_total_weight > > > > That's because you don'

Re: Learner looking for assistance

2014-04-15 Thread Anthony Smith
On Monday, 14 April 2014 17:43:41 UTC+10, Anthony Smith wrote: > Hi All > > > > I am probably doing something wrong but don't know what > > Any help would great > > > > Code below > > > > the calc_total does not ret

Re: Learner looking for assistance

2014-04-14 Thread Anthony Smith
On Monday, 14 April 2014 17:43:41 UTC+10, Anthony Smith wrote: > Hi All > > > > I am probably doing something wrong but don't know what > > Any help would great > > > > Code below > > > > the calc_total does not ret

Learner looking for assistance

2014-04-14 Thread Anthony Smith
d_total_weight * self.sale_kg return amount_price def save(self): self.total_price = self.calc_total_price() super(SaleNote, self).save() thanks anthony -- https://mail.python.org/mailman/listinfo/python-list

Re: How can I parse this correctly?

2014-04-05 Thread Anthony Papillion
On Apr 5, 2014, at 23:21, Ben Finney wrote: Anthony Papillion writes: for row in r: print row['YEAR'] This works fine. But, I am needing to do date addition/subtraction using datetime and so I need these dates as integers. I assume you mean you will be creating ‘datetime.dat

Re: How can I parse this correctly?

2014-04-05 Thread Anthony Papillion
On Apr 5, 2014, at 23:03, Chris Angelico wrote: On Sun, Apr 6, 2014 at 1:52 PM, Anthony Papillion wrote: When I try to cast them like this: print int(row['YEAR']) I am told by the interpreter: Traceback (most recent call last): File "analyze.py", line 14, in

If statement issue driving me nuts

2014-04-05 Thread Anthony Smith
Hi I have a small project and I have been unable to get the following statement to work. Any help would great. User inputs can either self_sale_head which is a $ value,if a $ value is not add a self.estimated_weight_hd is used to get the total weight, the code below should return a estimated_we

How can I parse this correctly?

2014-04-05 Thread Anthony Papillion
ld by the interpreter: Traceback (most recent call last): File "analyze.py", line 14, in print int(row['MONTH']) ValueError: invalid literal for int() with base 10: '' What am I doing wrong? Am I not understanding HOW to cast? Thanks, Anthony -- https://mail.python.org/mailman/listinfo/python-list

How to parse JSON passed on the command line?

2013-11-06 Thread Anthony Papillion
;m doing wrong? Basically, I want to eventually get the value of url into a string. Thanks! anthony -- https://mail.python.org/mailman/listinfo/python-list

Re: Another question about JSON

2013-09-13 Thread Anthony Papillion
On 09/13/2013 08:24 AM, Peter Otten wrote: > Anthony Papillion wrote: > >> And I get a traceback that says: No JSON object could be decoded. The >> specific traceback is: >> >> Traceback (most recent call last): >> File "coinbase_bot.py", line 31,

Another question about JSON

2013-09-13 Thread Anthony Papillion
usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object

Re: Can I trust downloading Python?

2013-09-09 Thread Anthony Papillion
On 09/09/2013 04:41 AM, Steven D'Aprano wrote: > On Mon, 09 Sep 2013 02:39:09 +1000, Chris Angelico wrote: > >> On Mon, Sep 9, 2013 at 2:08 AM, Charles Hottel >> wrote: >>> I think this article is relevant althought the code examples are not >>> Python but C: >>> >>> http://cm.bell-labs.com/who/k

Re: How can I remove the first line of a multi-line string? (SOLVED)

2013-09-02 Thread Anthony Papillion
On 09/02/2013 11:12 AM, Chris “Kwpolska” Warrick wrote: > On Mon, Sep 2, 2013 at 6:06 PM, Anthony Papillion wrote: >> Hello Everyone, >> >> I have a multi-line string and I need to remove the very first line from >> it. How can I do that? I looked at StringIO but I can&

How can I remove the first line of a multi-line string?

2013-09-02 Thread Anthony Papillion
e put me on the right path? I know it is probably easy but I'm still learning Python and don't have all the string functions down yet. Thanks, Anthony -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I process this using Python? (SOLVED)

2013-08-31 Thread Anthony Papillion
On 08/31/2013 07:32 PM, Chris Angelico wrote: > On Sun, Sep 1, 2013 at 10:19 AM, Anthony Papillion > wrote: >> On 08/31/2013 06:48 PM, Chris Angelico wrote: >>> On Sun, Sep 1, 2013 at 9:44 AM, Anthony Papillion >>> wrote: >>>> I'm writing a proces

Re: How do I process this using Python?

2013-08-31 Thread Anthony Papillion
On 08/31/2013 07:32 PM, Cameron Simpson wrote: > On 31Aug2013 19:19, Anthony Papillion wrote: > | On 08/31/2013 06:48 PM, Chris Angelico wrote: > | > On Sun, Sep 1, 2013 at 9:44 AM, Anthony Papillion > wrote: > | >> I'm writing a processor for Bitmessage

Re: How do I process this using Python?

2013-08-31 Thread Anthony Papillion
On 08/31/2013 06:48 PM, Chris Angelico wrote: > On Sun, Sep 1, 2013 at 9:44 AM, Anthony Papillion wrote: >> I'm writing a processor for Bitmessage messages and I am needing to >> parse the following returned JSON string: >> >> {u'inboxMessages': >

How do I process this using Python?

2013-08-31 Thread Anthony Papillion
x27;1377986599', u'message': u'VGhpcyBpcyB0aGUgM3JkIHRlc3QNCg0hjj0NCkpvaG4gUGVycnkNCg0K\n', u'encodingType': 2, u'subject': u'dGhpcyBpcyB0aGUgM3Jk\n'}]} I tried using the following code: data = json.loads(api.getAllInboxMessages) # This is the API call for messageSender in data['inboxMessages']['fromAddress'] print messageSender For some reason (probably obvious reasons) isn't working. I'm trying to loop through the JSON and return all of the fromAddress fields. Can anyone offer suggestions? Thanks, Anthony -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about crypto

2013-08-19 Thread Anthony Papillion
On 08/18/2013 05:52 PM, Roy Smith wrote: > In article , > Anthony Papillion wrote: > >> I've just started working with the Crypto library and I've already run >> into a wall even though I'm following a tutorial. Basically, I'm trying >> to encr

Re: Question about crypto

2013-08-19 Thread Anthony Papillion
w how or what >> to do. > > Does this Stack Overflow thread help? It looks to me like you aren't > defining an initialization vector at all. > > http://stackoverflow.com/questions/14716338/pycrypto-how-does-the-initialization-vector-work Completely missed that S

Question about crypto

2013-08-18 Thread Anthony Papillion
ialization Vector") is either the key OR something else I can set. But I don't know how or what to do. Does anyone see what is wrong with the code above and could suggest ways to make it work? I've spent the last 45 minutes googling around and nothing comes up specific to my prob

Question about function failing with large number

2013-08-13 Thread Anthony Papillion
(bits) print "\nGenerated Number: ", a, "\n" print "Number of digits: ", len(str(a)) isNumberPrime = isprime(a) if isNumberPrime == True: print "\nThis number is a prime.\n" else: print "\nThis number is not a prime.\n" Thanks!

Re: Best Practice Question

2013-02-05 Thread Anthony Correia
On Tuesday, February 5, 2013 10:17:54 AM UTC-5, pytho...@tim.thechases.com wrote: > On Tue, 5 Feb 2013 15:32:32 +0100 (CET), Jean-Michel Pichavant wrote: > > > By the way, did someone ever notice that r'\' fails ? I'm sure > > > there's a reason for that... (python 2.5) Anyone knows ? > > > >

Best Practice Question

2013-02-04 Thread Anthony Correia
Just started learning Python. I just wrote a simple copy files script. I use Powershell now as my main scripting language but I wanted to extend into the linux platform as well. Is this the best way to do it? import os objdir = ("C:\\temp2") colDir = os.listdir(objdir) for f in

Opinion on best practice...

2013-02-04 Thread Anthony Correia
I need to pick up a language that would cover the Linux platform. I use Powershell for a scripting language on the Windows side of things. Very simple copy files script. Is this the best way to do it? import os objdir = ("C:\\temp2") colDir = os.listdir(objdir) for f in colDir:

Command Line Progress Bar

2012-12-25 Thread Kevin Anthony
Hello, I'm writing a file processing script(Linux), and i would like to have a progress bar. But i would also like to be able to print messages. Is there a simple way of doing this without implementing something like ncurses? -- Thanks Kevin Anthony www.NoSideRacing.com Do you use Ba

Re: list comprehension question

2012-10-16 Thread Kevin Anthony
Is it not true that list comprehension is much faster the the for loops? If it is not the correct way of doing this, i appoligize. Like i said, I'm learing list comprehension. Thanks Kevin On Oct 16, 2012 10:14 PM, "Dave Angel" wrote: > On 10/16/2012 09:54 PM, Kevin Antho

list comprehension question

2012-10-16 Thread Kevin Anthony
if product else self.__matrix[m][p]* other.__matrix[p][n]) for p in range(0,self.col) for n in range(0,self.col)] for m in range(0,self.__row)] But i know that isn't correct, can someone nudge my in the right direction? -- Thanks Kevin Anthony

Re: __setitem__ without position

2012-10-11 Thread Kevin Anthony
I'm not supprised... and understand why it's happening. I'm asking how to get around it. Basically i'm asking how to override, if i can, the `=` On Thu, Oct 11, 2012 at 5:32 PM, Dave Angel wrote: > On 10/11/2012 04:48 PM, Kevin Anthony wrote: > > I have a class

__setitem__ without position

2012-10-11 Thread Kevin Anthony
I have a class that contains a list of items I can set items using __setitem__ but if i want to set the while list, i changes the variable from a myclass to a list. How can i accomblish this Example >>>C = myclass() >>>C[0] = 57 >>>type(C) myclass >>> C = [57,58,59,60] >>>type(C) list -- http://m

Compairing filenames in a list

2012-09-29 Thread Kevin Anthony
I have a list of filenames, and i need to find files with the same name, different extensions, and split that into tuples. does anyone have any suggestions on an easy way to do this that isn't O(n^2)? -- Thanks Kevin Anthony www.NoSideRacing.com Do you use Banshee? Download the Comm

Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction?

2012-09-26 Thread Anthony Kong
Hi, Chris, Thanks for your reply. I really do not have any requirement. It is more a curiosity question (not work related). I'd like to find out how python can be used to 'glue' all these moving parts together. Performance and security are definitely not a concern as it is just a toy idea/proje

Looking for pointers/suggestion - how to make a webbrowser with these restriction?

2012-09-26 Thread Anthony Kong
Hi, all, It is kind of a MacGyver question. I am just looking for some general suggestions/pointer. First let me first describe the development environment I am in: it is a locked down WinXP PC with limited development tools and libraries. At my disposal I have python 2.6 , webkit 5.33 dll, wx

Question about argparse and namespace

2012-05-23 Thread Kevin Anthony
s. Is this a good idea? is there a better way of doing this? -- Thanks Kevin Anthony Do you use Banshee? Download the Community Extensions: http://banshee.fm/download/extensions/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-14 Thread anthony
ble resolution, i am more than happy to transfer assets to the PSF, so we can simply absolve each other and get back to writing some damn code. however, such decisions will be made with the same care and consideration as those which brought us here ... i'm not in a hurry to witness the very encumbrances i worked hard -- and received much flak -- be reinstated. so far so good ... let's just continue working toward that goal, together. i am tight on time and resources, so this is be my last correspondence here ... best to everyone. -- C Anthony -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread anthony
. this of course has neither waned nor faltered. i encourage anyone willing to take the time to consult the archives, pyjamas' and elsewhere, as they are the only path to proper answers. this will impact the project in both known and untold ways, but we have a great number of minds willing to push beyond. -- C Anthony -- http://mail.python.org/mailman/listinfo/python-list

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Anthony Nguyen
If Safari is your default browser, Python will open the address in Safari. >From the Python docs: webbrowser.open(url[, new=0[, autoraise=True]]) Display url using the default browser. If new is 0, the url is opened in the same browser window if possible. If new is 1, a new browser window is ope

Design Pattern and Python: Any book recommendation? Your view?

2011-11-03 Thread Anthony Kong
Sorry to resurrect this topic. By google search the last discussion was in 2003. I would like to find out what is the current prevailing view or consensus (if any) on the use of Design Pattern in python? I am doing some 'fact-finding' in this area on request of my colleagues. Some of them want

Re: Aw: Re: Aw: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-18 Thread Anthony Kong
Thanks for all the great suggestion. First of all, Carl is right that it does not take much to impress a java programmer about the expressiveness of functional programming. Covered map, reduce and filter as Rainer suggested. Emphasized the advantages of functional style as summarised by Steve

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread Anthony Kong
I stand corrected. Thanks Ian Cheers On Thu, Jul 14, 2011 at 1:18 AM, Ian Kelly wrote: > On Wed, Jul 13, 2011 at 8:19 AM, Anthony Kong > wrote: > > One of the main difference is that pypy supports only R-Python, which > stands > > for 'Restricted Python".

Re: What is the difference between PyPy and Python? are there lot of differences?

2011-07-13 Thread Anthony Kong
One of the main difference is that pypy supports only R-Python, which stands for 'Restricted Python". It is a subset of C-python language. See here for more info: http://codespeak.net/pypy/dist/pypy/doc/coding-guide.html#rpython-definition-not Cheers On Thu, Jul 14, 2011 at 12:06 AM, ArrC wrot

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Anthony Kong
Hi, James, > > You might also want to cover gotchas like Python's references. > Not sure what it means in the context of functional programming. If you can give some code to demonstrate, it will be great. Cheers -- Tony Kong *blog:* www.ahwkong.com Don’t EVER make the mistake that you can de

Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Anthony Kong
(My post did not appear in the mailing list, so this is my second try. Apology if it ends up posted twice) Hi, all, If you have read my previous posts to the group, you probably have some idea why I asked this question. I am giving a few presentations on python to my colleagues who are mainly

Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-13 Thread Anthony Kong
Hi, all, If you have read my previous posts to the group, you probably have some idea why I asked this question. I am giving a few presentations on python to my colleagues who are mainly java developers and starting to pick up python at work. So I have picked this topic for one of my presentati

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-13 Thread Anthony Kong
Thanks, mate! I was writing that up really late at night. Somehow I changed term to semi-colon half way through, Cheers On Wed, Jul 13, 2011 at 5:36 PM, Thorsten Kampe wrote: > * Dave Angel (Mon, 11 Jul 2011 10:36:48 -0400) > > On 01/-10/-28163 02:59 PM, Anthony Kong wrote: > >

Re: Property setter and lambda question

2011-07-11 Thread Anthony Kong
On Tue, Jul 12, 2011 at 3:41 AM, Ian Kelly wrote: > On Mon, Jul 11, 2011 at 11:21 AM, Anthony Kong > wrote: > > Awesome, Thomas. The trick only works if there is only one leading > > underscore in the method names. > > The following example works as I expected for the

Re: Property setter and lambda question

2011-07-11 Thread Anthony Kong
> > PS: are you sure the lambda self: self.__foo() trick works, with > subclasses or otherwise? I haven't tested it, and I'm not saying it > doesn't, but I have a feeling double-underscore name mangling might be a > problem somewhere down the line? > > Awesome, Thomas. The trick only works if there

Re: Property setter and lambda question

2011-07-11 Thread Anthony Kong
Good point! Need to get my terminology right. Thanks On Tue, Jul 12, 2011 at 2:43 AM, Ian Kelly wrote: > On Mon, Jul 11, 2011 at 9:54 AM, Anthony Kong > wrote: > > Hi, all, > > This question is in the same context of my two earlier questions. This > > question w

Re: Property setter and lambda question

2011-07-11 Thread Anthony Kong
as Jollans wrote: > On 07/11/2011 05:54 PM, Anthony Kong wrote: > > Hi, all, > > > > This question is in the same context of my two earlier questions. This > > question was raised by some python beginners, and I would like to check > > with the list to ensure I provi

Re: My take on 'Python Productivity tip for Java Programmer'. Could you give me more feedback?

2011-07-11 Thread Anthony Kong
t; On 07/11/2011 05:07 PM, Anthony Kong wrote: > > Hi, all, > > > > Lately I am giving some presentations to my colleagues about the python > > language. A new internal project is coming up which will require the use > > of python. > > > > One of the goals

Property setter and lambda question

2011-07-11 Thread Anthony Kong
Hi, all, This question is in the same context of my two earlier questions. This question was raised by some python beginners, and I would like to check with the list to ensure I provide a correct answer. Here is a code snippet I used to demonstrate the keyword *property*: class A(object):

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-11 Thread Anthony Kong
8163 02:59 PM, Anthony Kong wrote: > >> Hi, all, >> >> Lately I am giving some presentations to my colleagues about the python >> language. A new internal project is coming up which will require the use >> of >> python. >> >> One of my colleague

My take on 'Python Productivity tip for Java Programmer'. Could you give me more feedback?

2011-07-11 Thread Anthony Kong
Hi, all, Lately I am giving some presentations to my colleagues about the python language. A new internal project is coming up which will require the use of python. One of the goals of the presentations, as told by the 'sponsor' of the presentation, is to help the existing Java/Excel VBA programm

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-11 Thread Anthony Kong
Awesome! Thanks for blog post link Cheers On Tue, Jul 12, 2011 at 12:16 AM, Thomas Jollans wrote: > On 07/11/2011 03:51 PM, Anthony Kong wrote: > > Hi, all, > > > > Lately I am giving some presentations to my colleagues about the python > > language. A new internal

An interesting beginner question: why we need colon at all in the python language?

2011-07-11 Thread Anthony Kong
Hi, all, Lately I am giving some presentations to my colleagues about the python language. A new internal project is coming up which will require the use of python. One of my colleague asked an interesting: *If Python use indentation to denote scope, why it still needs semi-colon at the end of f

OK, I lied, I do have another question...

2011-07-10 Thread Anthony Papillion
Hi Everyone, So I've used Glade to build a simple UI and I'm loading it with gtkBuilder. The UI loads fine but, for some reason, none of my signals are being connected. For example, in Glade, I said when the button called btnExit was clicked, execute the btnExit_clicked method. Then, in my App() c

Re: How to get or set the text of a textfield? - SOLVED

2011-07-10 Thread Anthony Papillion
problems. I'm excited. Thanks for the direction! Anthony -- http://mail.python.org/mailman/listinfo/python-list

How to get or set the text of a textfield?

2011-07-10 Thread Anthony Papillion
Hi Everyone, So I've built a UI with Glade and have loaded it using the standard Python code. In my UI, I have a textfield called txtUsername. How do I get and set the text in this field from my Python code? Thanks! Anthony -- Anthony Papillion Advanced Data Concepts Get real about

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-10 Thread Anthony Papillion
ldn't learn it in a week. It's very usable, pretty easy to learn, and doesn't cost you a penny. If you've not already, I recommend you check out Glade. I think it's probably what you're looking for. Anthony On 7/10/11, Ivan Kljaic wrote: > Ok Guys. I know that most

Why are my signals being ignored?

2011-06-22 Thread Anthony Papillion
is never called. I've been following tutorials and this seems to be the proper way to wire signals yet mine simply don't work. Would anyone be so kind as to look over the following code and give me a bit of advice (or direction) as to what I might be doing wrong? Thanks! Anthony

Simple question about loading a .glade UI file

2011-06-21 Thread Anthony Papillion
ct("destroy", gtk.main_quit) def on_winMain_delete(self, widget, dummy): gtk.main_quit() if __name__ == "__main__": myGui = GMB() gtk.main() Is there any reason why I'd be getting this error from the code above? Both the UI file and the source code file are in the same directory. Thanks! Anthony -- http://mail.python.org/mailman/listinfo/python-list

Re: New member intro and question

2011-06-19 Thread Anthony Papillion
Just wanted to thank you guys for taking the time to respond. Looks like my 'limited resources' aren't so limited after all! Cheers, Anthony -- http://mail.python.org/mailman/listinfo/python-list

New member intro and question

2011-06-17 Thread Anthony Papillion
m-pc-in-a-power-outlet-2011022/) which isn't too shabby but I wonder if it will work. Thanks! Anthony Papillion -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >