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
ing module, separate processes are created with unique
PID.
Any input would be great
George
--
http://mail.python.org/mailman/listinfo/python-list
, separate processes are created with unique
PID.
Any input would be great
George
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
,
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
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
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
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
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
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
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
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
[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.
got error on your page--
http://mail.python.org/mailman/listinfo/python-list
.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
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
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
** **
>>
>> 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
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
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
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
, separate processes are created with unique
PID.
Any input would be great
George
--
http://mail.python.org/mailman/listinfo/python-list
= '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
Okta.
We are using Okta's .net backend stuff and Angular widget
BR,
George
--
https://mail.python.org/mailman/listinfo/python-list
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
[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
> 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
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
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:
> >
> >
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
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
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
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
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,
>> >> >
>> >>
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
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'
ps://docs.pytest.org/en/latest/logging.html
BR,
George
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
>
> 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
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
//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
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
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
" % (100./3.)
Not quite the most readable expression in python.. ;)
George
--
http://mail.python.org/mailman/listinfo/python-list
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
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
:
''.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
"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
"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
"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
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
score, not the stored
(negative) one.
I would go for the first alternative but YMMV.
George
--
http://mail.python.org/mailman/listinfo/python-list
"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,
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
plete
compared to (dense) numeric arrays. Any alternatives ?
George
--
http://mail.python.org/mailman/listinfo/python-list
\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
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]
(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
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
_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
"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
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
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
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
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
"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
lready been
conceived, implemented
and used by others...
George
--
http://mail.python.org/mailman/listinfo/python-list
"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
"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
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
% (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
"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.
> >
&
may not be defined for the list elements), so the original version
is correct.
George
--
http://mail.python.org/mailman/listinfo/python-list
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
>>> 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 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
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
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
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
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 - 100 of 1560 matches
Mail list logo