A question about reference in Python.

2008-12-07 Thread Group

Hello, I'm studying algorithom. For concentrating on the question itself, I
intend to use Python to implement the algorithoms.

Now, I want to write a Red-Black Tree, and a List structure. In C/C++, I 
can
use pointers to refer to  children  notes (or next notes). But, in 
Python, how

can I do it? Except the sequence, I know not any way.

You'd better help me understan how can I transform the following C code into
Python:

/* a List */
struct {
 int data;
 int *next;
 int *prev;
}

That's all. Thanks!
Kermit

--
http://mail.python.org/mailman/listinfo/python-list


Mesothelioma

2010-10-16 Thread group
---  WWW.WEBDESIGNING2ALL.BLOGSPOT.COM 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Books?

2012-08-21 Thread Anonymous Group
On Aug 21, 7:04 pm, Chris Angelico  wrote:
> On Wed, Aug 22, 2012 at 11:39 AM, Roy Smith  wrote:
> > In article
> > <5203ee16-5a80-4cd9-9434-ee2efb645...@kg10g2000pbc.googlegroups.com>,
> >  Anonymous Group  wrote:
>
> >> What books do you recomend for learning python? Preferably free and/or
> >> online.
>
> > I would start withhttp://docs.python.org/tutorial/
>
> Agreed. And for anything beyond that, I would recommend the anonymous
> OP offer some more information, such as current programming skill
> level and languages known.
>
> But the tutorial is a good start regardless.
>
> ChrisA

Thanks
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Google AI Challenge at U of Waterloo

2010-02-05 Thread **Group User**
On Feb 6, 7:02 am, Forthminder  wrote:
> Contest runs from 4 February to 26 February 2010.
>
> You may choose a programming language, such as
> Java, C++, Python, Ruby or Haskell.
>
> See details at
>
> http://csclub.uwaterloo.ca/contest/problem_description.php
>
> Bonne Chance!
>
> Mentifex
> --http://www.scn.org/~mentifex/mindforth.txt

I find out that
I was a donkie
I was hooked up
Torn
Screwed up
And Haskel was there at that time
He got anrgy, pity
For my stupidity
All for best
Simulation for good alone



KKIIEEENNII
-- 
http://mail.python.org/mailman/listinfo/python-list


Web Solutions with PYTHON - Etisbew Technology Group

2018-06-26 Thread Etisbew Technology Group
From: Etisbew Technology Group 

Etisbew is a leading Python development company, serving businesses across the
globe by delivering successful web-based apps using Python frameworks like
TurboGears, Django, web2py & more. With hands-on experience over the Python web
 development, we offer bespoke, & robust PYTHON web solutions for all your web
needs

--- BBBS/Li6 v4.10 Toy-3
 * Origin: Prism bbs (1:261/38)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Returned mail: see transcript for details (1174853648)

2007-03-25 Thread Internet Technology Group
--|||--
Request Management System - Time Inc.
---

To confirm this message was intended to be created as a request
in the Internet Technology Group's Request Management System,
please reply to this message and type '/OK' (without the quotes)
as the text of your message. Do not retype your request and feel
free to delete the rest of this text from your reply.

---
If the Request Management System does not receive your ack-
knowledgement within 24 hours, your original request will be
terminated, thus requiring resubmission of the request.
---

-- 
http://mail.python.org/mailman/listinfo/python-list


Computer Security Information and What You Can Do To Keep Your System Safe!

2007-12-01 Thread Anand . Bhaskar . group . com
.:: Unix and Linux Hacking and Security ::.
1. Unix - Vulnerabilities and Advisories
-- Tutorials and Papers
-- Specific Exploits and Vulnerabilities

2. Unix - Security Tools
-- Unix Security and Audit Tools (Including IDS and Access Control
Tools)
-- Unix Log Analysis Tools
-- Unix Proxies, Firewalls and Accessories
-- Unix Miscellany

3. Unix - BSD, FreeBSD, etc...
-- FreeBSD
-- BSD and Misc. BSD variants
-- BSD Security Tools
-- BSD Micro-distributions

4. Unix - Solaris, SunOS etc...
-- Solaris
-- SunOS
-- Cobalt Appliances
-- SunOS and Solaris Security Tools

5. Unix - Other Flavors (Irix, HPUX, AIX, etc...)
-- SGI/Irix
-- HP-UX
-- AIX
-- SCO
-- Miscellaneous

6. Linux - Vulnerabilities and Advisories
-- Linux - General Hacking
-- Linux Application Exploits
-- Linux - Red Hat Specific
-- Linux - Debian Specific

7. Linux - Security Tools
-- Linux - Intrusion Detection
-- Linux - Access Control
-- Linux Log Analysis Tools
-- Linux Rootkits
-- Linux Proxies and Firewalls
-- Linux - General Security and Audit Tools

8. Linux - Security-oriented mini- and micro-distributions
-- DMZS-Biatchux
-- NSA Security Enhanced Linux
-- Linux Mini- and Micro-distributions
-- Applications

.:: Windows Hacking and Security ::.
1. Windows Vulnerabilities, Advisories, and even security flaws
introduced by so-called security products!!!
-- Microsoft IIS Vulnerabilities
-- Microsoft FrontPage Vulnerabilities
-- Microsoft Internet Explorer Vulnerabilities
-- Windows Application Vulnerabilities
-- Windows Internet/Networking Vulnerabilities
-- Insecurities introduced by "security" programs!
-- Netscape Browsers
-- Windows Hacks - Miscellaneous

2. Windows Security and Auditing Tools
-- Windows Registry Tools
-- Windows and MSDOS Security and Auditing Tools
-- Windows Local Security
-- File/Disk/Log Shredders

3. Windows Miscellany
-- Raw Sockets and Custom Packet Building
-- A Few Little Extras for Microsoft "Fans"

.:: Crypto, Virology, Cracking and Backdoors ::.
1. Cryptography, Cryptanalysis, Steganography
-- Crypto: PGP and GPG
-- Crypto: Cryptanalysis
-- Crypto: Steganography
-- Crypto: Miscellaneous
-- Misc. File Encryptors

2. About Viruses and Worms
-- Virus Info Files and Advisories
-- Worms
-- Virus/Worm Protection Utilities

3. Backdoors, Trojans and defenses
-- Back Orifice and BO2K
-- SubSeven and Addons
-- Other Remote Administration Tools
-- Trojan Detectors/Removers/Retaliators
-- Information Files

.:: Learn what Hackers know, how they do it, and what you can do to
keep your system safe ::.
1. General Hacking Information
-- General Security Concepts
-- Antique Systems
-- Oracle
-- Tools, Advisories and Exploits affecting multiple platforms
-- PC Software and BIOS Hacking
-- Truly Miscellaneous Hacking Info

2. Password Security
-- Password Hacking
-- Password Generators
-- Password Security Audit Programs
-- Word Lists

3. Scanning, Fingerprinting and similar techniques
-- Network Scanning
-- "Wargames" Modem Carrier Scanning
-- Fingerprinting
-- Sniffing

4. How Hackers Attack Numerous Internet Services
-- Denial of Service Attacks
-- Email and News
-- Proxies and IP Spoofing
-- DNS and BIND
-- SPAM
-- FTP
-- General Unsorted Information
-- Indispensible Internet Utilities
-- Cable and DSL Info and Hacking

5. How Hackers Attack Web Servers, CGIs, PHP, ASP, etc...
-- Web Site Hacking - General and Miscellaneous
-- Web Site Hacking - Specific Sites
-- Web Site Hacking - Servers
-- Web Site Hacking - CGI, Perl, ASP, PHP etc.
-- Web BBSes
-- Web Site Hacking - Audit Tools

6. How Hackers attack IRC, Instant Messaging, and Multiplayer Games
-- ICQ Hacking
-- IRC Hacking, Scripts and Bots
-- AOL Instant Messenger (AIM)
-- Miscellaneous Chat/gaming Systems

7. Vulnerabilities found in Platforms with Smaller Market Share
-- Macintosh
-- PalmOS
-- Printers
-- Dedicated Network Appliances, Hubs, Routers, etc...
-- Cisco Equipment
-- Miscellaneous

8. How Hackers Attack Novell and 802.11b Networks
-- Novell Networks
-- Wireless LANs
-- X.25 Networks
-- Miscellaneous Networking Information

.:: Computer Security Information ::.
-- Access Control
-- Basics
-- Chat Systems
-- Cryptography
-- Denial Of Service
-- Hacking Security Groups
-- Hardening Securing Papers
-- ICQ
-- Intrusion Detection Systems
-- IRC
-- Miscellaneous
-- Network Auditing Secuirty Penetration
-- Online Privacy
-- Operating Systems
-- Protocols

.:: Phreaking - The black art of telephony ::.
1. GENERAL - General Information About the Phone Company
-- Hacking Answering Machines and Voice Mail
-- Phreaking Programs

2. Electronic Toll Fraud and Other Phone Devices
-- The Fixer's Box Review - Read this before you read the rest of
these files!
-- Blue and Green Boxes
-- Red Box
-- Beige and Bridge Boxes
-- Various new boxes
-- Programs to generate phreak tones

3. All about Payphones, COCOTs, BOCOTs, etc...
-- Payphones
-- COCOTs
-- Nortel/Quortech Millennium
-- Smart Cards/Phone Cards

4. Cellular Telephones and the Hacking Thereof
-- Cellular Phones

Re: Usual practice: running/testing modules in a package

2008-08-22 Thread Medardo Rodriguez (Merchise Group)
On Fri, Aug 22, 2008 at 1:25 PM, Gabriel Genellina
<[EMAIL PROTECTED]> wrote:
> what if __init__.py contains code?

Thats what I usually do to solve the "problem", but for my taste it's
better to write the test code of a module inside it.
The code I write in "__init__.py" is related to structures of
initializations, globals at package level.

if __name__ == "__main__":
pass # Here I test only concepts related to the entire package,
not to any module.

Regards
--
http://mail.python.org/mailman/listinfo/python-list


Re: Generate alphabet?

2008-08-22 Thread Medardo Rodriguez (Merchise Group)
On Fri, Aug 22, 2008 at 6:02 PM, ssecorp <[EMAIL PROTECTED]> wrote:
> .['a'..'z'] for a list of the alphabet.
>
> Is there a way in Python to generate chars?


Not as nice as in Haskell (or other languages), but:

[chr(i) for i in xrange(ord('a'), ord('z')+1)]

Regards
--
http://mail.python.org/mailman/listinfo/python-list


Re: >> and << operators?

2008-08-22 Thread Medardo Rodriguez (Merchise Group)
On Fri, Aug 22, 2008 at 6:30 PM, defn noob <[EMAIL PROTECTED]> wrote:
> What does >> and << do?

Normally they are bitwise operators:
>> Shifts bits right
<< Shifts bits left

print 1 << 3
8

because 8 = 1000 in binary

Regards
--
http://mail.python.org/mailman/listinfo/python-list


Re: Generators can only yield ints?

2008-08-22 Thread Medardo Rodriguez (Merchise Group)
On Fri, Aug 22, 2008 at 6:44 PM, defn noob <[EMAIL PROTECTED]> wrote:
> def letters():
>a = xrange(ord('a'), ord('z')+1)
>B = xrange(ord('A'), ord('Z')+1)
>while True:
>yield chr(a)
>yield chr(B)
>
>
> TypeError: an integer is required

No. The problem is that "chr function" receives "int"
"a" and "B" are generators of "int" items.

What exactly you intent with that code?

Maybe:
#
def letters():
   for i in xrange(ord('a'), ord('z')+1):
   yield chr(i)
   for i in xrange(ord('A'), ord('Z')+1):
   yield chr(i)

for letter in letters():
   print letter
#

Regards
--
http://mail.python.org/mailman/listinfo/python-list


Re: Regex on a huge text

2008-08-22 Thread Medardo Rodriguez (Merchise Group)
On Fri, Aug 22, 2008 at 4:48 PM, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Does not grep only work a line at a time?  Just like the code below?

My understanding was that if the regex contains "^" and "$", it will
matches in the full file. I wasn't never test it.
I tested just before, and didn't work :(

If you have a notion of the maximum amount of lines, there is an easy solution.

Regards
--
http://mail.python.org/mailman/listinfo/python-list


Re: recursively change values in list of lists

2008-08-24 Thread Medardo Rodriguez (Merchise Group)
On Sun, Aug 24, 2008 at 10:17 AM, Carson Farmer <[EMAIL PROTECTED]> wrote:
> So in the end, the only thing that should be changed is the values,
> not the lists themselves... clear as mud?
>
> Any hints, and/or suggestions are greatly appreciated,

You gave the solution yourself.

I don't know if your inner polygons can contain lines and polygons, or
only lines, so:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2008 Medardo Rodriguez (Merchise Group)
#
# This is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License (GPL) as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# :)

def MoveDelta(target, dx, dy):
   for item in target:
   if isinstance(item[0], list):# is item a polygon?
   MoveDelta(item, dx, dy)  # Recursive version
   else:
   assert len(item) == 2# make sure that it is a point
   item[0] += dx
   item[1] += dy

if __name__ == '__main__':
   sample = [[[1, 2], [3, 4]], [[[7, 8], [10, 20]], [5, 6]]]
   print 'Original:', sample
   MoveDelta(sample, 10, 100)
   print 'Result:', sample

# Regards
--
http://mail.python.org/mailman/listinfo/python-list


Re: What is class method?

2008-08-24 Thread Medardo Rodriguez (Merchise Group)
On Sun, Aug 24, 2008 at 4:32 AM, Hussein B <[EMAIL PROTECTED]> wrote:
> I'm familiar with static method concept, but what is the class method?
> how it does differ from static method? when to use it?

"Class Methods" are related to the meta-class concept introduced since
the first beginning of OOP but not known enough so far.
If you are capable to reason (to model) using that concept, the you
will need "classmethod" decorator in Python.

"Static Methods" are global operations but are declared in the
name-space context of a class; so, they are not strictly methods.

In Python everything is an object, but functions declared in the
module scope not receive the instance of the module, so they are not
module methods, they are not methods, they are global functions that
are in the name-space context of the module in this case.

Methods always receive the instance as a special argument (usually
declared as self in Python). Classes (theoretically speaking) are also
objects (dual behavior).

Let's be explicit:

#
class Test(object):
   def NormalMethod(self):
   print 'Normal:', self

   @staticmethod
   def StaticMethod(self=None):
   print 'Static:', self

   @classmethod
   def ClassMethod(self):
   print 'Class:', self

test = Test()
test.NormalMethod()
test.StaticMethod()
test.ClassMethod()   # the instance "test" is coerced to it's class to
call the method.
#

Regards
--
http://mail.python.org/mailman/listinfo/python-list


Re: What is class method?

2008-08-26 Thread Medardo Rodriguez (Merchise Group)
On Tue, Aug 26, 2008 at 4:10 PM, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> In Python, there's *no* relationship between classmethods and metaclasses.

In OOP the concept of meta-class has everything to do with class
methods, regardless if is in Python, SmallTalk or CLOSS. "classmethod"
decorator it's just a syntax sugar structure to define them. There is
no difference (conceptually) on "method1" and "method2":

class MetaXClass(type):
def Method1(self): pass
class Xclass(object):
__metaclass__ = MetaXClass
@classmethod
def Method2(self): pass


> You can drop the 'global' - there's nothing like a real global scope in
> Python.


Yes, they are. Functions defined at module level or using staticmethod
decorator don't receive the instance as argument, they are globa,
You can study in Python:
 * global keyword
 * globals function

> Nope. Functions wrapped by a method object receive the instance as *first*
> (not 'special') argument. In Python, a method is only a wrapper object
> around the function, the class and the instance. This wrapper is built by
> the function object's __get__ method (descriptor protocol) each time the
> attribute is looked up.

Seriously, I'm a programmer, not a intermediate code engineer. I know
very well how python work in its inner, but this forum is to talk
about Python programming.
Nevertheless, in some level is always call the original defined
function, that YES, it receives the self as an argument.

> Why "theoretically speaking" ?

Why not?

 isinstance(Foo, object)
> True

That's only means that python is nice because fulfills very well the
best OOP theory.

> 
> pep08 : method names should be all_lower
> 

Not for me. I use to be consistent in being pythonic, but there are
some few exceptions.

> 
> The convention for classmethod is to name the first function argument 'cls'.
> 

I just wanted the guy who made the question, don't see other
differences but classmethod decorator.
Sorry!

> Nope. There's nothing like "coercion" in Python.

http://docs.python.org/ref/coercion-rules.html

> If you really intend to go into low-level explanations of Python's object


I NEVER pretended to do that. Programming I like is high level,
because of that Python is right now my preferred language,
nevertheless I know every thing I'm interested in inner Python.

My best regards
--
http://mail.python.org/mailman/listinfo/python-list


arbeitsamt jobs ausland , stellenangebot in ausland , Berufskraftfahrer Berufskraftfahrerin , Maler Malerin , stellenanzeigen jobboerse , arbeitsvermittlung , Meteorologe Meteorologin , jobs und prakt

2011-01-10 Thread http://groups.google.com/group/de.comp.os.os2.apps/post
arbeitsamt jobs ausland , stellenangebot in ausland ,
Berufskraftfahrer Berufskraftfahrerin , Maler Malerin ,
stellenanzeigen jobboerse , arbeitsvermittlung , Meteorologe
Meteorologin , jobs und praktika im ausland 2007 , Innenarchitekt
Innenarchitektin ,

+
+
+
+++ TOPJOB AUSLAND +++ IM AUSLAND ARBEITEN +++
+
+
http://WWW.AUSLANDS-JOB.ORG
http://WWW.AUSLANDS-JOB.ORG
http://WWW.AUSLANDS-JOB.ORG
http://WWW.AUSLANDS-JOB.ORG
http://WWW.AUSLANDS-JOB.ORG
http://WWW.AUSLANDS-JOB.ORG
+
+
+
+
+
+
+
+


ehrenamtlich arbeiten im ausland Polizeivollzugsbeamte
Polizeivollzugsbeamter
Mediengestalter Bild und Ton www ausland jobs
stellenangebote fuers ausland ausland jobs de
jobboerse angebote stellenanzeigen ausland
außendienstmitarbeiter jobs im ausland australien
jobboersen ausland berufe ausland
Maurer Maurerin arbeiten im ausland steuern
Tieraerztin Tierarzt auswandern jobs im ausland
praktikum im ausland Event-Manager Event-Managerin
Industriemechaniker Industriemechanikerin jobsuche jobboerse
Restaurantfachfrau Restaurantfachmann Journalist Journalistin
will im ausland arbeiten jobangebote ausland
jobboerse arbeitgeber Personalreferent Personalreferentin
jobboerse bayern Kauffrau audiovisuelle Medien
www arbeiten im ausland Hebamme
-- 
http://mail.python.org/mailman/listinfo/python-list