Re: List spam

2011-08-20 Thread George
I find python group is filled with spam mails, is there any way to filter these mails before sending it to the group. I can't see this situation with similar user group, such as the jsr. George. On 20/08/2011 07:07, "Ben Finney" wrote: > Javier writes: > You will

Re:Python thread

2011-09-01 Thread George
ing module, separate processes are created with unique PID. Any input would be great George -- http://mail.python.org/mailman/listinfo/python-list

Re:PythonThreading

2011-09-01 Thread George
, separate processes are created with unique PID. Any input would be great George -- http://mail.python.org/mailman/listinfo/python-list

Re: Python thread

2011-09-01 Thread George
So what exactly does threading module do, if it doesn't create a subprocess. Does each thread have its own stack and PC. What advantage would a threading module provide over sequential execution. On 01/09/2011 22:54, "Terry Reedy" wrote: > On 9/1/2011 5:14 PM, George wr

Parsing an HTML a tag

2005-09-24 Thread George
How can I parse an HTML file and collect only that the A tags. I have a start for the code but an unable to figure out how to finish the code. HTML_parse gets the data from the URL document. Thanks for the help def HTML_parse(data): from HTMLParser import HTMLParser parser = MyHTMLParser() par

Re: Parsing an HTML a tag

2005-09-24 Thread George
I'm very new to python and I have tried to read the tutorials but I am unable to understand exactly how I must do this problem. Specifically, the showIPnums function takes a URL as input, calls the read_page(url) function to obtain the entire page for that URL, and then lists, in sorted order, the

Struggling with this concept please help

2005-09-25 Thread George
Hello everyone I know many have helped but I cannot get this to work out correctly. I cannot use BeautifulSoup at all. I need to: Parse the HTML and extracting all the links, convert them to IP addresses, and build a list of all these IP addresses, thwn I need to sort the list and remove the dupl

Re: Struggling with this concept please help

2005-09-25 Thread George
Not allowed to use Beautiful Soup because of the very important built ins that is provides that makes it very simple to complete this problem. Not my choice . This is a review question for our final in two months and I just want to get things going so I can try to understand things better. Please h

form filling XML

2005-10-13 Thread George
How can I do the following in python: given two strings: form=""" My Sample Web Page What are the weekdays? Monday Tuesday Wednesday Thursday Friday """ fillin=""" maandag dinsdag woensdag donderdag vrijdag zaterdag zondag """ How can I compare the text in the element tags with the

XML dom question

2005-10-14 Thread George
How can I do the following in python: compare the text in the element tags with the elements tags in filling and if they match replace the text within the elements tags with the text in the matching element tag of fillin. For example Since the text Monday in form matches the Element tag in fill

Re: XML dom question

2005-10-15 Thread George
Yes but I cannot get the if statement to work to compare the two or the replaceChild portion to work. Could someone help me with that. -- http://mail.python.org/mailman/listinfo/python-list

Please Help with replaceChild

2005-10-16 Thread George
How can I do the following in python: compare the text in the element tags with the elements tags in filling and if they match replace the text within the elements tags with the text in the matching element tag of fillin. For example Since the text Monday in form matches the Element tag in fil

Automate decryption using GnuPGInterface

2005-11-30 Thread George
Hi, Does anyone have any experience with GnuPGInterface? I'm having a problem with decrypting files through a cron job. The below job works great when I run it manually from the command line, but it blows up whenever I try to run it through cron, and I can't really figure out why. I've been tryi

Re: Automate decryption using GnuPGInterface

2005-11-30 Thread George
I have 5 python scripts I've added to cron over the past year that run correctly all the time. I double-checked the permissions and paths and everything looks good there. Here's the cron entry that I just tested with: 23 12 * * * /usr/local/bin/decrypt_test.py > /usr/local/bin/decrypt.log

Re: MySQLdb

2005-01-28 Thread George
, I was just wondering the executemany sends the insert as batch, does it? That is what I was going to suggest for speed MySQL should process this very quickly as a batch the problem was probably getting them there. Regards, George -- http://mail.python.org/mailman/listinfo/python-list

Reading registry export files

2005-06-22 Thread George
nary text files. Should I open these reg-files in a different way, or treat them differently once read in Python? Thanks for any help. Kind regards, George -- http://mail.python.org/mailman/listinfo/python-list

Expected Value

2005-09-09 Thread George
I have never done any programming with python in my life so I will most definetly need help understanding how I can accomplish this part of my program. The function expectP(z) computes E(X) for the random variable representing a sample over the probability generated by "pf" for the set of discrete

Expected Value

2005-09-10 Thread George
How would I get the expected value out of this information. I have tried many times to understand this but am unable to. The function expectP(z) computes E(X) for the random variable representing a sample over the probability generated by "pf" for the set of discrete items [1,10]. The consta

Launch file in Notepad

2005-05-12 Thread George
e way, b1 comes from a command line parameter, so the user enters c:\test.txt as command line parameter.) George -- http://mail.python.org/mailman/listinfo/python-list

Re: Launch file in Notepad

2005-05-12 Thread George
scapes the t. (read on!) That is, until now. For some very strange reason it suddenly works as expected. I don't understand it anymore, but never mind. Maybe I changed my little proggie somehow, causing it accidentally to work. Thanks anyway. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Launch file in Notepad

2005-05-12 Thread George
It did, but now not anymore. I don't understand why, maybe I've changed something in the code. See my other post. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Launch file in Notepad

2005-05-12 Thread George
Bengt Richter wrote: > On Thu, 12 May 2005 15:41:14 +0200, George <[EMAIL PROTECTED]> wrote: >>(By the way, b1 comes from a command line parameter, so the user enters >>c:\test.txt as command line parameter.) > > It should be ok then, unless you have somehow

Re: Latest models of Gibson guitars

2007-08-19 Thread George
[EMAIL PROTECTED] wrote: > On 19 kol, 19:34, [EMAIL PROTECTED] wrote: >> Reviews of latest models of best guitars, fender, gibson, yamaha, and >> many more, with pictures and prices. >> >> http://spam-guitars.blogspot.com/ >> >> And if you want to win a free guitar go here >> >> http://spamguitars.

Re: moyea flv to video converter keygen

2008-06-19 Thread George
got error on your page-- http://mail.python.org/mailman/listinfo/python-list

Re: Why is python source code not available on github?

2012-06-23 Thread George Silva
.org/mailman/listinfo/python-list > > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessamento.net http://blog.geoprocessamento.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Geodetic functions library GeoDLL 32 Bit and 64 Bit

2012-08-28 Thread George Silva
t; > Fred > Email: info_at_killetsoft.de > -- > http://mail.python.org/mailman/listinfo/python-list > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessamento.net http://blog.geoprocessamento.net -- http://mail.python.org/mailman/listinfo/python-list

Re: A sad day for the scientific Python community. John Hunter, creator of matplotlib: 1968-2012.

2012-08-29 Thread George Silva
want > to thank Dr. Carla Moreira, chief surgical resident, who spent the > last few hours of John's life with us despite having just completed a > solid night shift of surgical work. Instead of resting she came to > the ICU and worked to ensure that those last hours were as comfortable > as possible for John; her generous actions helped us through a very > difficult moment. > > It is now time to close this already too long message... > > John, thanks for everything you gave all of us, and for the privilege > of knowing you. > > Fernando. > > -- > http://mail.python.org/mailman/listinfo/python-list > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessamento.net http://blog.geoprocessamento.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Python/ArcPy

2012-12-12 Thread George Silva
** ** >> >> Mind the road, not your business. >> >> [image: Logo]**** >> >> ** ** >> >> ** ** >> >> ** ** >> >> ** ** >> >> -- >> http://mail.python.org/mailman/listinfo/python-list >> >> > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessamento.net http://blog.geoprocessamento.net <>-- http://mail.python.org/mailman/listinfo/python-list

Algorithm. Tony Gaddis book 2 Starting python3

2013-01-27 Thread george . 15
Hi Question 3 Chp2 Page 76 Adds2 to a and assigns the result to b. I have several attemtps,would like to check my answer.help please At 80 i need all the help i can find. Thanks George Smart -- http://mail.python.org/mailman/listinfo/python-list

Questionnaire on motivation analysis of open source and open content

2012-02-22 Thread George Tsinarakis
Dear Sirs, We are researchers in Technical University of Crete and our current research is in the field of motivation analysis of open source and open content software projects participants. We would like to ask you to fill a questionnaire and forward it to people involved in such teams and p

trying to use spec file

2012-04-24 Thread George Georgalis
ted in the spec file issues, or maybe I should just make a simple one from it? -George -- Forwarded message ------ From: George Georgalis Date: Mon, Apr 23, 2012 at 6:18 PM Subject: trying to use spec file To: compiler-...@python.org Hi - hope this list is still active. I'd like

Re:Threads in Python

2011-09-01 Thread George Kovoor
, separate processes are created with unique PID. Any input would be great George -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Text Strip() now working constantly.

2018-01-27 Thread George Shen
= 'some_text.data' string_next = string_abc.strip('data') string_final = string_next.strip('.') Please see the JPG. Sorry if this has been filed before, if I have filed this incorrectly could you please provide me a better avenue for future reference. Regards, -George J Shen -- https://mail.python.org/mailman/listinfo/python-list

Testing an app protected by Okta authorization code with PKCE flow

2022-04-29 Thread George Fischhof
Okta. We are using Okta's .net backend stuff and Angular widget BR, George -- https://mail.python.org/mailman/listinfo/python-list

Re: Popular Python Package 'ctx' Hijacked to Steal AWS Keys

2022-05-25 Thread George Fischhof
package appears, and becomes downloadable. Compiled parts should be allowed only in source, and security checkers would check those too, and compile from source and publish package only after these checks executed and did not found any harmful thing. BR, George -- https://mail.python.org/mailman/listinfo/python-list

exec() an locals() puzzle

2022-07-20 Thread george trojan
[1], in () 7 print(y) 8 # y = eval('y') 9 #print('ok:', eval('y'))---> 10 f() Input In [1], in f() 4 exec('y = i; print(y); print(locals())') 5 print(locals())> 6 y = eval('y') 7 print(y) File :1, in NameError: name 'y' is not defined1. Another thing: within the first exec(), the print order seems reversed. What is going on? BTW, I am using python 3.8.13. George -- https://mail.python.org/mailman/listinfo/python-list

Re: exec() an locals() puzzle

2022-07-21 Thread george trojan
> accessible/visible from f's code. > > So, a few observations (by no means this is how the vm works): > > 1) each function has a set of variables defined by the code (let's call > this "code-defined locals" or "cdef-locals"). > 2) each function a

Download Python 3.10.6 for windows

2022-08-30 Thread George Rwaga
asked to verify access to this directly. I went to properties, made what I thought were the relevant changes. But I keep getting asked to verify access. My R and RStudio are installed in C:\program files. How should I proceed? George -- -- https://mail.python.org/mailman/listinfo/python-list

Re: Download Python 3.10.6 for windows

2022-08-31 Thread George Rwaga
my old code based on such sources as Python for Finance by Yves Hilpisch, a book by the same title by Yuxing Yan, Python for Data Analysis by Wes McKinney, etc. Again, thanks. George -- On Tue, Aug 30, 2022 at 4:06 PM Eryk Sun wrote: > On 8/30/22, George Rwaga wrote: > > > >

Re: Definition of "property"

2021-06-02 Thread George Fischhof
Hi, I think in OOP point of view one can write that property is the python implementation of the OOP concepts: Encapsulation and Information hiding Some explanation for beginners on these paradigms: https://stackify.com/oop-concept-for-beginners-what-is-encapsulation/ BR, George -- https://mail.python.org/mailman/listinfo/python-list

Re: Making command-line args available to deeply-nested functions

2021-08-21 Thread George Fischhof
omplexity of testing. > > Cheers, > > Loris > > -- > This signature is currently under construction. > -- > https://mail.python.org/mailman/listinfo/python-list > > > > Hi, Also you can give a try to click and / or typer packages. Putting args into environment variables can be a solution too All of these depends on several things: personal preferences, colleagues / firm standards, the program, readability, variable accessibility (IDE support, auto completition) (env vars not supported by IDEs as they are not part of code) BR, George -- https://mail.python.org/mailman/listinfo/python-list

Re: Making command-line args available to deeply-nested functions

2021-08-23 Thread George Fischhof
Loris Bennett ezt írta (időpont: 2021. aug. 23., H 19:26): > George Fischhof writes: > > > Loris Bennett ezt írta (időpont: 2021. aug. > > 20., P 17:54): > > > >> Julio Di Egidio writes: > >> > >> > On Friday, 20 August 2

Re: Making command-line args available to deeply-nested functions

2021-08-29 Thread George Fischhof
Loris Bennett ezt írta (időpont: 2021. aug. 26., Cs, 16:02): > George Fischhof writes: > > [snip (79 lines)] > > >> > Hi, > >> > > >> > Also you can give a try to click and / or typer packages. > >> > Putting args into environment va

Re: Making command-line args available to deeply-nested functions

2021-08-31 Thread George Fischhof
George Fischhof ezt írta (időpont: 2021. aug. 29., V, 21:27): > > > Loris Bennett ezt írta (időpont: 2021. aug. > 26., Cs, 16:02): > >> George Fischhof writes: >> >> [snip (79 lines)] >> >> >> > Hi, >> >> > >> >>

GPG signatures invisible in new PyPI (was: Re: new Python Package Index is now in beta at pypi.org)

2018-03-31 Thread Dominik George
rce downlaod?), and how do I find out whether an upload is signed? I am asking mainly as a Debian developer relying on upstream signatures. -nik -- PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17 FD26 B79A 3C16 A0C4 F296 Dominik George · Hundeshagenstr. 26 · 53225 Bonn Phone: +49 228 92934581 · ht

Re: GPG signatures invisible in new PyPI (was: Re: new Python Package Index is now in beta at pypi.org)

2018-03-31 Thread Dominik George
Hi Sumana, > I've been trying to reach out to the Debian Python community via IRC, > personal connections, tickets, and mailing lists to ensure a smooth > transition; I see now that a post I tried to get onto the debian-python > list a few weeks ago did not get posted there, so I've re-sent it. I'

Re: How to add values from test steps in pytest excel report

2018-04-30 Thread George Fischhof
ps://docs.pytest.org/en/latest/logging.html BR, George -- https://mail.python.org/mailman/listinfo/python-list

Re: Flask test generator code review?

2018-04-30 Thread George Fischhof
emplate in templates: > yield the_test, self, template > > > if __name__ == '__main__': > nose.run(defaultTest=__name__, argv=[sys.argv[0], '__main__', > '--verbosity=2']) > -- > https://mail.python.org/mailman/listinfo/python-list > Hi, maybe you should check PyTest https://docs.pytest.org/en/latest/ and Flas testing turorial: http://flask.pocoo.org/docs/1.0/testing/ BR, George -- https://mail.python.org/mailman/listinfo/python-list

Re: unittest.Testsuite and execution order

2018-04-30 Thread George Fischhof
r TestSuite is a replaceable class. I'm not sure what the mechanics are for test randomization, but it is most definitely a thing. ChrisA -- https://mail.python.org/mailman/listinfo/python-list Hi, If you want to use more asserts in a test case, you should use pytest-assume plugin. George -- https://mail.python.org/mailman/listinfo/python-list

[ANN] pluggable-info-monitor 0.2.1 released!

2018-05-29 Thread George Fischhof
quotes - it can be used as a dashboard for system administrators - etc There are example plugins to help developing your own plugins. Please note: The full feature set requires Python 3.4 and later. Have fun using pluggable-info-monitor George -- https://mail.python.org/mailman/listinfo

Re: command line utility for cups

2018-06-20 Thread George Fischhof
endAction(option_strings=['-o'], dest='o', nargs=None, const=None, > default=None, type= at 0x7feef70a8510>, choices=None, > help=None, metavar=None) > >>> parser.parse_args(["-o", "a=b", "-o", "c=d"]) > Namespace(o=[['a', 'b'], ['c', 'd']]) > > > -- > https://mail.python.org/mailman/listinfo/python-list Hi, You can also try click library from pypi, that is a very good command line stuff. George > > -- https://mail.python.org/mailman/listinfo/python-list

Re: translating foreign data

2018-06-21 Thread George Fischhof
numbers, not three And if you are able to identify the encoding codepage, then you should follow what the codepage says Another help can be if know the possible value range of the numbers (maybe it should be asked ...) George -- https://mail.python.org/mailman/listinfo/python-list

Re: how to get a value from CSV specific cell (A7) thanks

2018-09-01 Thread George Fischhof
HI, CSV has no cells, but you can use csv module from standard lib https://docs.python.org/3/library/csv.html and you can get 7th data from the first row (as A means the first row) __george__ ezt írta (időpont: 2018. szept. 1., Szo, 20:24): > how to get a value from CSV specific cell (A7) than

Re: Python for System Verilog testbench

2018-09-13 Thread George Fischhof
Bobby ezt írta (időpont: 2018. szept. 14., P 0:16): > > I have a very simple System Verilog (SV) adder as my DUT (device under > test). I would like to generate a test bench for this DUT based on the > 'requirements'. I wrote its (DUT) functions in simple text as > 'requirements' while followin

How to make sphinx to recognize functools.partial?

2016-04-03 Thread George Trojan
ipe is rendered correctly in html, but the link is not created. I did put a print statement in sphinx/util/inspect.py, it appears that spipe definition is not recognized. I am running sphinx 1.3.5, according to CHANGELOG functools.partial support was added in 1.2.1. George -- https://mail.python.org/mailman/listinfo/python-list

TypeError: unorderable types: function() < int()

2016-05-10 Thread George Molsom
I have created a program in class 'make a game that tests how good people are at guessing when 10 seconds has elapsed.' The following are the code I currently have and the error produced when I attempt to run it. I have tried everything I can think of to resolve the issue, and I have also run t

Re: Multiprocessing performance question

2019-02-20 Thread george trojan
rovided only for convenience, it is implemented with a for loop. IMO vectorization would have to be done on C level. Greetings from Anchorage George -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing performance question

2019-02-20 Thread george trojan
I don't know whether this is a toy example, having grid of this size is not uncommon. True, it would make more sense to do distribute more work on each box, if there was any. One has to find a proper balance, as with many other things in life. I simply responded to a question by the OP. G

Re: mocking for get method in requests

2019-03-16 Thread George Fischhof
> > It does give the value of ‘out’ as ‘Hello’ in sample.py file. > I know I am missing something, which is where I need some help :) > > Thanks. > > -- > > > > UG, CSE, > RVCE, Bengaluru. > -- > https://mail.python.org/mailman/listinfo/python-list H

Re: How to plot a data including date and time?

2019-08-14 Thread George Fischhof
f['Diast EWM'] = df['Diastolic'].ewm(span=200).mean() > > > > plt.ioff() > > > > df.plot(x='Date') > > > > print(df.tail(60)) #a debug line I left in to watch the EWMs sink to more > > healthy levels > > > > plt.ylabel('mm Hg') > > > > plt.suptitle("Home BP record") > > > > plt.show() > > > > That should give you a start > > -- > To de-mung my e-mail address:- fsnospam$elliott$$ PGP Fingerprint: 1A96 > 3CF7 > 637F 896B C810 E199 7E5C A9E4 8E59 E248 > > -- > https://mail.python.org/mailman/listinfo/python-list Hi, Pygal is a very good and easy to use charting library BR, George > -- https://mail.python.org/mailman/listinfo/python-list

Re: What do you use for slides?

2019-11-16 Thread George Fischhof
//www.pythonmembers.club | https://github.com/Abdur-rahmaanJ > > Mauritius > > -- > > https://mail.python.org/mailman/listinfo/python-list > > > -- > https://mail.python.org/mailman/listinfo/python-list Hi I use Google drive's slides, plus https://revealjs.com/ br, George -- https://mail.python.org/mailman/listinfo/python-list

Re: Managing plug-ins

2020-05-27 Thread George Fischhof
one, is to put files to a given place and import them in runtime, I created a pluggable info monitor which does this: in every cycles imports the given files as plugins. https://pypi.org/project/pluggable-info-monitor/ BR, George -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-authors] Query

2021-01-11 Thread George Fischhof
ciated, or accepted, but there is. As I know this is the only one somewhat standardised exam now. Of course there are several institutes holding Python course and exam BR, George -- https://mail.python.org/mailman/listinfo/python-list

Re: How to show percentage

2005-09-22 Thread George Sakkis
" % (100./3.) Not quite the most readable expression in python.. ;) George -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie regular expression and whitespace question

2005-09-22 Thread George Sakkis
t the end of the next word > after an arbitrary number of characters. I am reading in to a > script a bunch of paragraphs formatted for a webpage, but they're all > on one big long line and I would like to split them for readability. What I guess you want to do is wrap

Re: Using distutils 2.4 for python 2.3

2005-09-23 Thread George Sakkis
anks, > Noam Raphael You could distribute the whole 2.4 distutils package in yours so that setup.py finds it before the default one. If distutils 2.4 is compatible with 2.3, that should work. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Most direct way to strip unoprintable characters out of a string?

2005-09-24 Thread George Sakkis
: ''.join(c for c in input_string if c not in string.printable) If you care about performance though, string.translate is faster; as always, the best way to decide on a performance issue is to profile the alternatives on your data and see if it's worth going for the fastest one at the expense of readability. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing an HTML a tag

2005-09-24 Thread George Sakkis
"Stephen Prinster" <[EMAIL PROTECTED]> wrote: > George wrote: > > How can I parse an HTML file and collect only that the A tags. I have a > > start for the code but an unable to figure out how to finish the code. > > HTML_parse gets the data from the URL docum

Re: Parsing an HTML a tag

2005-09-24 Thread George Sakkis
"George" <[EMAIL PROTECTED]> wrote: > I'm very new to python and I have tried to read the tutorials but I am > unable to understand exactly how I must do this problem. > > Specifically, the showIPnums function takes a URL as input, calls the > read_page(url

Re: Most direct way to strip unoprintable characters out of a string?

2005-09-25 Thread George Sakkis
"Steve Bergman" <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > > > > > >If by straightforward you mean one-liner, there is: > >''.join(c for c in input_string if c not in string.printable) > > > >If you care about perform

Re: unittest setup

2005-09-25 Thread George Sakkis
ch building on > top of each other. Is that the wrong approach? Are there other > frameworks supporting such a style? Yes, py.test: http://codespeak.net/py/current/doc/test.html. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Struggling with basics

2005-09-25 Thread George Sakkis
score, not the stored (negative) one. I would go for the first alternative but YMMV. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Struggling with this concept please help

2005-09-25 Thread George Sakkis
"George" <[EMAIL PROTECTED]> wrote: > Hello everyone I know many have helped but I cannot get this to work > out correctly. I cannot use BeautifulSoup at all. I need to: > [snipped] What do you mean you cannot use BeautifulSoup ? You cannot download it, install it,

Re: PEP 350: Codetags

2005-09-26 Thread George Sakkis
ozens if you count the meta-PEPs as well (http://www.python.org/peps/). This PEP states upfront that it is informational, so I don't see the problem, unless are you suggesting a (meta-)PEP against informational PEPs in general :-) George -- http://mail.python.org/mailman/listinfo/python-list

Sparse matrices

2005-09-26 Thread George Sakkis
plete compared to (dense) numeric arrays. Any alternatives ? George -- http://mail.python.org/mailman/listinfo/python-list

Re: backreferences

2005-09-28 Thread George Sakkis
\1): #i need help here with \1 > > Thanks in advance > A.D renDate = re.compile(some_regex) match = renDate.search(input) if match and str(lastmodDate) < match.group(1): do_something() HTH, George -- http://mail.python.org/mailman/listinfo/python-list

Re: grouping array

2005-09-29 Thread George Sakkis
0,0,2,1),(0,4,2,5)] which show the top left(x1,y1) and bottom > right(x2,y2) corners of each group.hope i am clear. > > Thanks I guess you imply rectangular regions only ? If not, what's the output supposed to be for [[2,2,0,0,1,1], [1,1,3,0,0,1], [1,1,3,0,1,1]] or [[2,2,2,2]

Re: Opinion on Pyrex

2005-09-30 Thread George Sakkis
(if you don't want to compile and link all your C source into a > statical or dynamical library). > > Carl You may want to check out weave: http://www.scipy.org/documentation/weave/ George -- http://mail.python.org/mailman/listinfo/python-list

Re: "no variable or argument declarations are necessary."

2005-10-02 Thread George Sakkis
oint of the specific erroneous example is the lack of the standard python idiom for iteration: for egold in xrange(10): pass Learning and using standard idioms is an essential part of learning a language; python is no exception to this. George -- http://mail.python.org/mailman/listinfo/python-list

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread George Sakkis
_retro_rockets() Actually modern compilers can (http://www.boost.org/libs/mpl/doc/tutorial/dimensional-analysis.html) at the expense of the programmer's eye health... George -- http://mail.python.org/mailman/listinfo/python-list

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-07 Thread George Sakkis
"Lasse Vågsæther Karlsen" <[EMAIL PROTECTED]> wrote: > Ok, that one looks more sleak than what I came up with. For the most efficient and elegant solution, check out Raymond Hettinger's reply to: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/1

Re: Python recipes: list mixin, improved timeit, etc

2005-10-07 Thread George Sakkis
as confusing and opaque as you want... > > *wink* Now this reminds me of Xah's entertaining posts about "moronicities of the tech-geek industry jargon" . George -- http://mail.python.org/mailman/listinfo/python-list

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-07 Thread George Sakkis
comparison operation but you can easily roll your own heap by transforming each item to a (key,item) tuple. Now that I'm thinking about it, it might be a good addition to the cookbook. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Objects with different data views

2005-10-07 Thread George Sakkis
d, properties is the way to go. There have been a few recipes in the Cookbook that avoid cluttering the class namespace with temporary get/set/del methods, e.g. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410698. HTH, George -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to share a python list of objects

2005-10-07 Thread George Sakkis
Send pickled objects between all processes and each keeps it own list > locally > - A ascii type protocol akin to ftp the hands out all the info to the > processes > > Any other ideas? What would work the best If all the processes are python, I would check Pyro first: http://pyro.s

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-08 Thread George Sakkis
"Lasse Vågsæther Karlsen" <[EMAIL PROTECTED]> wrote: > Alex Martelli wrote: > > George Sakkis <[EMAIL PROTECTED]> wrote: > > >>Yes, it's a little inconvenient that the builtin heap doesn't take a > >>comparison operation but you ca

Re: Function decorator that caches function results

2005-10-08 Thread George Sakkis
lready been conceived, implemented and used by others... George -- http://mail.python.org/mailman/listinfo/python-list

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-08 Thread George Sakkis
"Lasse Vågsæther Karlsen" <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > > Just added a recipe at > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440673. You can try > > both and see if there's any significant performance diffe

Re: how do you pronounce wxpython

2005-10-08 Thread George Sakkis
"Alex" <[EMAIL PROTECTED]> wrote: > My native language is not English so I just wonder how you pronounce > wxPython. > > vi-ex python > double-you-ex python > wax-python > > or something else > > Thanks I am sure it is pronounced the same way as wx

Re: Python reliability

2005-10-09 Thread George Sakkis
stake reliability (e.g. for health monitoring devices, avionics, nuclear reactor controllers, etc.) and robustness (e.g. a computation that takes weeks of cpu time to complete is interrupted without the possibility to restart from the point it stopped). George -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Count Question

2005-10-09 Thread George Sakkis
% (match.group(1), self._count) print ReplaceSecMain().sub(open("myfile.txt").read()) I also cleaned up the regular expression a little; google for lookahead/lookbehind assertions if you haven't seen them before. HTH, George -- http://mail.python.org/mailman/listinfo/python-list

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-10 Thread George Sakkis
"Alex Martelli" <[EMAIL PROTECTED]> wrote: > George Sakkis <[EMAIL PROTECTED]> wrote: >... > > > manipulation of a heap to place an item in the right spot, but with 4-5 > > > or a few more sources might not make an impact at all. > > &

Re: best Pythonic way to do this sort: Python newb

2005-10-10 Thread George Sakkis
may not be defined for the list elements), so the original version is correct. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing lists

2005-10-10 Thread George Sakkis
large lists. Why don't you implement it, test it and time it to be more convincing about your intuition ? George -- http://mail.python.org/mailman/listinfo/python-list

set.__getstate__ not overriden

2005-10-10 Thread George Sakkis
>>> import pickle >>> class Foo(set): ... def __getstate__(self): assert False >>> pickle.dumps(Foo()) # doesn't raise AssertionError The same happens with frozenset. Before I submit it to the bugs tracker, is there a chance this is a 'feature' ?

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-10 Thread George Sakkis
re to name, including python (if Condition: Affirmative > else: Negative). Block delimiters (curly braces, if/fi, begin/end, etc.) are also in just about any language but this didn't stop python using indentation instead, so what's your point ? Conformity and backwards compatibility should not be top priorities in language design; fortunately for python, they're not. George -- http://mail.python.org/mailman/listinfo/python-list

Re: How to do *args, **kwargs properly

2005-10-11 Thread George Sakkis
or..) in the function if you really have to. So when you do have to and when you don't ? You don't have to if all you do is iterate over the elements. This is true even if you want to iterate more than once; just use the itertools.tee() function to create N independent iterators. T

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-11 Thread George Sakkis
replace fruits with sorted(fruits, itemgetter(0)). By the way, read all the functions in the itertools module (http://docs.python.org/lib/itertools-functions.html), it will save you a lot of time. George -- http://mail.python.org/mailman/listinfo/python-list

Re: A Tree class, my $0.02 contribution to the python community.

2005-10-12 Thread George Sakkis
s step do if the keys are not integers since you restrict step to be integer ? George -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple assignments simplification

2005-10-12 Thread George Sakkis
en the following assignments can take place: x = v[1]; v[1] = v[2]; v[2] = v[3]; ...; v[n-1] = v[n]; v[n] = x So overall, you need just one auxiliary variable for each strongly component of G. HTH, George * More than one assignments with the same RHS [v=a, v=b] are useless since only th

  1   2   3   4   5   6   7   8   9   10   >