Re: Where can I find libtiff binary for 64-bit windows - for use in conjunction with Python package libtiff

2019-09-06 Thread Dobedani
Thanks for the answer. That site provides wheels for installing the Python 
libtiff package - great if "pip install libtiff" does not work out well. 
Besides that package, you'll need to have a 64-bits DLL on your system for it 
to work. That's the DLL I'm looking for.

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


Re: Where can I find libtiff binary for 64-bit windows - for use in conjunction with Python package libtiff

2019-09-06 Thread MRAB

On 2019-09-06 14:05, Dobedani wrote:

Hi there!
I'm using Python package libtiff on Windows (version 0.4.2) - see also 
https://github.com/pearu/pylibtiff. For this package to work well, it requires 
you to have a libtiff.dll in your PATH. For 32-bits I got my DLL here: 
http://gnuwin32.sourceforge.net/packages/tiff.htm (version 3.8.2) and I'm 
running my code with success.

I would like to run my Python code also with a 64-bit version of Python, so I 
need a 64-bit of the above-mentioned binary / DLL. My problem is that I can't 
find any reliable site where it's available for download.

Okay, I have come across several sites where one can download Visual Studio 
projects to compile libtiff by yourself - not really my piece of cake.

Only from one site I was able to download some binary files: 
https://www.bruot.org/hp/libraries/ (libtiff binaries, version 4.0.7). However, 
the archive contains 2 files in folder lib: tiff.dll and tiff.lib. The Python 
libtiff code does not recognise these binaries. When I rename then to 
libtiff.dll and libtiff.lib, then it does not also work: AttributeError: 
function 'TIFFGetVersion' not found. Am I missing something? What am I doing 
wrong?


Have you tried Christoph Gohlke's site?

https://www.lfd.uci.edu/~gohlke/pythonlibs/
--
https://mail.python.org/mailman/listinfo/python-list


Where can I find libtiff binary for 64-bit windows - for use in conjunction with Python package libtiff

2019-09-06 Thread Dobedani
Hi there!
I'm using Python package libtiff on Windows (version 0.4.2) - see also 
https://github.com/pearu/pylibtiff. For this package to work well, it requires 
you to have a libtiff.dll in your PATH. For 32-bits I got my DLL here: 
http://gnuwin32.sourceforge.net/packages/tiff.htm (version 3.8.2) and I'm 
running my code with success.

I would like to run my Python code also with a 64-bit version of Python, so I 
need a 64-bit of the above-mentioned binary / DLL. My problem is that I can't 
find any reliable site where it's available for download.

Okay, I have come across several sites where one can download Visual Studio 
projects to compile libtiff by yourself - not really my piece of cake.

Only from one site I was able to download some binary files: 
https://www.bruot.org/hp/libraries/ (libtiff binaries, version 4.0.7). However, 
the archive contains 2 files in folder lib: tiff.dll and tiff.lib. The Python 
libtiff code does not recognise these binaries. When I rename then to 
libtiff.dll and libtiff.lib, then it does not also work: AttributeError: 
function 'TIFFGetVersion' not found. Am I missing something? What am I doing 
wrong?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: OT?: Where can I find python programming material in different languages?

2016-06-22 Thread Chris Angelico
On Thu, Jun 23, 2016 at 2:59 AM, Joe Gulizia  wrote:
> Potentially Off Topic
>

Not at all off topic! A very reasonable question.

>
> I am looking for python programming related blogs, papers, videos in Swahili, 
> Tagalog, Somali, Javanese (Indonesian?), Lithuanian, Pashto, Bulgarian, 
> Farsi, Amharic, Georgian, Kazakh, and Tamil. Although blogs are not online I 
> am looking for material that is not easily and freely available via the Web 
> (or requires a subscription).  I found the Python in languages other than 
> English listsWould those be the best places to start?
>

Here's a good start:

https://wiki.python.org/moin/Languages

The Python wiki tries to maintain a list of these kinds of things.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


OT?: Where can I find python programming material in different languages?

2016-06-22 Thread Joe Gulizia

Potentially Off Topic


I am looking for python programming related blogs, papers, videos in Swahili, 
Tagalog, Somali, Javanese (Indonesian?), Lithuanian, Pashto, Bulgarian, Farsi, 
Amharic, Georgian, Kazakh, and Tamil. Although blogs are not online I am 
looking for material that is not easily and freely available via the Web (or 
requires a subscription).  I found the Python in languages other than English 
listsWould those be the best places to start?

Thank you



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


Re: Where can I find a lexical spec of python?

2011-09-21 Thread Thomas Jollans
On 21/09/11 20:01, Shaofei Cheng wrote:
> Yes, I'm using this document now but I was wondering if there is a formal 
> spec for lexical grammar?  It looks like some part of the doc 
> "http://docs.python.org/py3k/reference/grammar.html";  is missing. 
> We can find some replacement in lexical_analysis.html but it seems this 
> document is write for a python user instead of a guy trying to implement 
> python.

Yes, I understood alright what you were asking. As I said, I don't
believe there is any more formal documentation of the Python language
than what you have already seen. However, I am of the opinion that it
gives you all the information you need, and that a complete formal
grammar, while perhaps, for you, easier to interpret, would not add any
information.

Thomas



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


Re:Re: Where can I find a lexical spec of python?

2011-09-21 Thread Shaofei Cheng
Yes, I'm using this document now but I was wondering if there is a formal spec 
for lexical grammar?  It looks like some part of the doc 
"http://docs.python.org/py3k/reference/grammar.html";  is missing. 
We can find some replacement in lexical_analysis.html but it seems this 
document is write for a python user instead of a guy trying to implement python.
在 2011-09-22 00:55:45,"Thomas Jollans"  写道:
>On 21/09/11 18:33, 程劭非 wrote:
>> Thanks Thomas.
>> I've read the document 
>> http://docs.python.org/py3k/reference/lexical_analysis.html 
>> 
>> but I worried it might leak some language features like "tab magic".
>> 
>> For I'm working on a parser with JavaScript I need a more strictly defined 
>> spec. 
>> 
>> Currently I have a highlighter here 
>> ->http://shaofei.name/python/PyHighlighter.html
>> (Also the lexer  http://shaofei.name/python/PyLexer.html)
>> 
>> As you can see, I just make its behavior align with CPython, but I'm not 
>> sure what the real python lexical grammar is like.
>> 
>> Does anyone know if there is a lexical grammar spec like other 
>> languages(e.g. http://bclary.com/2004/11/07/#annex-a)?
>
>I believe the language documentation on docs.python.org is all the
>documentation of the language there is. It may not be completely formal,
>and in parts it concentrates not on the actual rules but on the original
>implementation, but, as far as I can tell, it tells you everything you
>need to know to write a new parser for the Python language, without any
>ambiguity.
>
>You appear to be anxious about implementing the indentation mechanism
>correctly. The language documentation describes a behaviour precisely.
>What is the problem?
>
>Thomas
>
>> 
>> Please help me. Thanks a lot.
>> 在 2011-09-21 19:41:33,"Thomas Jollans"  写道:
>>> On 21/09/11 11:44, 程劭非 wrote:
 Hi, everyone, 
 I've found there was several tokens used in python's
 grammar(http://docs.python.org/reference/grammar.html) but I didn't see
 their definition anywhere.  The tokens listed here: 
>>>
>>> They should be documented in
>>> http://docs.python.org/py3k/reference/lexical_analysis.html - though
>>> apparently not using these exact terms.
>>>
 NEWLINE
>>> Trivial: U+000A
>>>
 ENDMARKER
>>> End of file.
>>>
 NAME
>>> documented as "identifier" in 2.3
>>>
 INDENT
 DEDENT
>>> Documented in 2.1.8.
>>>
 NUMBER
>>> Documented in 2.4.3 - 2.4.6
>>>
 STRING
>>> Documented in 2.4.2
>>>
 I've got some infomations from the source
 code(http://svn.python.org/projects/python/trunk/Parser/tokenizer.c) but
 I'm not sure which feature is only for this specified implementaion.  (I
 saw tabstop could be modified with comments using "tab-width:",
 ":tabstop=", ":ts=" or "set tabsize=", is this feature really in spec?)
>>>
>>> That sounds like a legacy feature that is no longer used. Somebody
>>> familiar with the early history of Python might be able to shed more
>>> light on the situation. It is inconsisten with the spec (section 2.1.8):
>>>
>>> """
>>> Indentation is rejected as inconsistent if a source file mixes tabs and
>>> spaces in a way that makes the meaning dependent on the worth of a tab
>>> in spaces; a TabError is raised in that case.
>>> """
>>>
>>> - Thomas
>>> -- 
>>> http://mail.python.org/mailman/listinfo/python-list
>> 
>

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


Re: Re: Where can I find a lexical spec of python?

2011-09-21 Thread Chris Rebert
On Wed, Sep 21, 2011 at 9:33 AM, 程劭非  wrote:
> Thanks Thomas.
> I've read the document 
> http://docs.python.org/py3k/reference/lexical_analysis.html
>
> but I worried it might leak some language features like "tab magic".
>
> For I'm working on a parser with JavaScript I need a more strictly defined 
> spec.
>
> Currently I have a highlighter here 
> ->http://shaofei.name/python/PyHighlighter.html
> (Also the lexer  http://shaofei.name/python/PyLexer.html)
>
> As you can see, I just make its behavior align with CPython, but I'm not sure 
> what the real python lexical grammar is like.
>
> Does anyone know if there is a lexical grammar spec like other languages(e.g. 
> http://bclary.com/2004/11/07/#annex-a)?

Closest thing would be http://docs.python.org/py3k/reference/grammar.html

Cheers,
Chris
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find a lexical spec of python?

2011-09-21 Thread Thomas Jollans
On 21/09/11 18:33, 程劭非 wrote:
> Thanks Thomas.
> I've read the document 
> http://docs.python.org/py3k/reference/lexical_analysis.html 
> 
> but I worried it might leak some language features like "tab magic".
> 
> For I'm working on a parser with JavaScript I need a more strictly defined 
> spec. 
> 
> Currently I have a highlighter here 
> ->http://shaofei.name/python/PyHighlighter.html
> (Also the lexer  http://shaofei.name/python/PyLexer.html)
> 
> As you can see, I just make its behavior align with CPython, but I'm not sure 
> what the real python lexical grammar is like.
> 
> Does anyone know if there is a lexical grammar spec like other languages(e.g. 
> http://bclary.com/2004/11/07/#annex-a)?

I believe the language documentation on docs.python.org is all the
documentation of the language there is. It may not be completely formal,
and in parts it concentrates not on the actual rules but on the original
implementation, but, as far as I can tell, it tells you everything you
need to know to write a new parser for the Python language, without any
ambiguity.

You appear to be anxious about implementing the indentation mechanism
correctly. The language documentation describes a behaviour precisely.
What is the problem?

Thomas

> 
> Please help me. Thanks a lot.
> 在 2011-09-21 19:41:33,"Thomas Jollans"  写道:
>> On 21/09/11 11:44, 程劭非 wrote:
>>> Hi, everyone, 
>>> I've found there was several tokens used in python's
>>> grammar(http://docs.python.org/reference/grammar.html) but I didn't see
>>> their definition anywhere.  The tokens listed here: 
>>
>> They should be documented in
>> http://docs.python.org/py3k/reference/lexical_analysis.html - though
>> apparently not using these exact terms.
>>
>>> NEWLINE
>> Trivial: U+000A
>>
>>> ENDMARKER
>> End of file.
>>
>>> NAME
>> documented as "identifier" in 2.3
>>
>>> INDENT
>>> DEDENT
>> Documented in 2.1.8.
>>
>>> NUMBER
>> Documented in 2.4.3 - 2.4.6
>>
>>> STRING
>> Documented in 2.4.2
>>
>>> I've got some infomations from the source
>>> code(http://svn.python.org/projects/python/trunk/Parser/tokenizer.c) but
>>> I'm not sure which feature is only for this specified implementaion.  (I
>>> saw tabstop could be modified with comments using "tab-width:",
>>> ":tabstop=", ":ts=" or "set tabsize=", is this feature really in spec?)
>>
>> That sounds like a legacy feature that is no longer used. Somebody
>> familiar with the early history of Python might be able to shed more
>> light on the situation. It is inconsisten with the spec (section 2.1.8):
>>
>> """
>> Indentation is rejected as inconsistent if a source file mixes tabs and
>> spaces in a way that makes the meaning dependent on the worth of a tab
>> in spaces; a TabError is raised in that case.
>> """
>>
>> - Thomas
>> -- 
>> http://mail.python.org/mailman/listinfo/python-list
> 

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


Re:Re: Where can I find a lexical spec of python?

2011-09-21 Thread 程劭非
Thanks Thomas.
I've read the document 
http://docs.python.org/py3k/reference/lexical_analysis.html 

but I worried it might leak some language features like "tab magic".

For I'm working on a parser with JavaScript I need a more strictly defined 
spec. 

Currently I have a highlighter here 
->http://shaofei.name/python/PyHighlighter.html
(Also the lexer  http://shaofei.name/python/PyLexer.html)

As you can see, I just make its behavior align with CPython, but I'm not sure 
what the real python lexical grammar is like.

Does anyone know if there is a lexical grammar spec like other languages(e.g. 
http://bclary.com/2004/11/07/#annex-a)?

Please help me. Thanks a lot.
在 2011-09-21 19:41:33,"Thomas Jollans"  写道:
>On 21/09/11 11:44, 程劭非 wrote:
>> Hi, everyone, 
>> I've found there was several tokens used in python's
>> grammar(http://docs.python.org/reference/grammar.html) but I didn't see
>> their definition anywhere.  The tokens listed here: 
>
>They should be documented in
>http://docs.python.org/py3k/reference/lexical_analysis.html - though
>apparently not using these exact terms.
>
>> NEWLINE
>Trivial: U+000A
>
>> ENDMARKER
>End of file.
>
>> NAME
>documented as "identifier" in 2.3
>
>> INDENT
>> DEDENT
>Documented in 2.1.8.
>
>> NUMBER
>Documented in 2.4.3 - 2.4.6
>
>> STRING
>Documented in 2.4.2
>
>> I've got some infomations from the source
>> code(http://svn.python.org/projects/python/trunk/Parser/tokenizer.c) but
>> I'm not sure which feature is only for this specified implementaion.  (I
>> saw tabstop could be modified with comments using "tab-width:",
>> ":tabstop=", ":ts=" or "set tabsize=", is this feature really in spec?)
>
>That sounds like a legacy feature that is no longer used. Somebody
>familiar with the early history of Python might be able to shed more
>light on the situation. It is inconsisten with the spec (section 2.1.8):
>
>"""
>Indentation is rejected as inconsistent if a source file mixes tabs and
>spaces in a way that makes the meaning dependent on the worth of a tab
>in spaces; a TabError is raised in that case.
>"""
>
>- Thomas
>-- 
>http://mail.python.org/mailman/listinfo/python-list

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


Re: Where can I find a lexical spec of python?

2011-09-21 Thread Thomas Jollans
On 21/09/11 11:44, 程劭非 wrote:
> Hi, everyone, 
> I've found there was several tokens used in python's
> grammar(http://docs.python.org/reference/grammar.html) but I didn't see
> their definition anywhere.  The tokens listed here: 

They should be documented in
http://docs.python.org/py3k/reference/lexical_analysis.html - though
apparently not using these exact terms.

> NEWLINE
Trivial: U+000A

> ENDMARKER
End of file.

> NAME
documented as "identifier" in 2.3

> INDENT
> DEDENT
Documented in 2.1.8.

> NUMBER
Documented in 2.4.3 - 2.4.6

> STRING
Documented in 2.4.2

> I've got some infomations from the source
> code(http://svn.python.org/projects/python/trunk/Parser/tokenizer.c) but
> I'm not sure which feature is only for this specified implementaion.  (I
> saw tabstop could be modified with comments using "tab-width:",
> ":tabstop=", ":ts=" or "set tabsize=", is this feature really in spec?)

That sounds like a legacy feature that is no longer used. Somebody
familiar with the early history of Python might be able to shed more
light on the situation. It is inconsisten with the spec (section 2.1.8):

"""
Indentation is rejected as inconsistent if a source file mixes tabs and
spaces in a way that makes the meaning dependent on the worth of a tab
in spaces; a TabError is raised in that case.
"""

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


Where can I find a lexical spec of python?

2011-09-21 Thread 程劭非
Hi, everyone, 
I've found there was several tokens used in python's 
grammar(http://docs.python.org/reference/grammar.html) but I didn't see their 
definition anywhere.  The tokens listed here: 
NEWLINE
ENDMARKER
NAME
INDENT
DEDENT
NUMBER
STRING


I've got some infomations from the source 
code(http://svn.python.org/projects/python/trunk/Parser/tokenizer.c) but I'm 
not sure which feature is only for this specified implementaion.  (I saw 
tabstop could be modified with comments using "tab-width:", ":tabstop=", ":ts=" 
or "set tabsize=", is this feature really in spec?)-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find documentation for data[:,9]

2010-03-11 Thread Cal Who

"Martin P. Hellwig"  wrote in message 
news:hnbq8q$vg...@news.eternal-september.org...
> On 03/11/10 22:08,  Cal Who wrote:
> 
>> Thanks, that helped a lot.
>>
>> I'm having trouble knowing what to search for to find documenatation. For
>> example, is print a Python command, a numpy command or a java command?
>>
>> I like to read the documentation even if the command is working for me.
>>
>>
>> Thanks again
>>
>>
> Probably for you the right way would be to familiarize yourself with the 
> namespace concept of Python, this makes it easier to identify whether 
> something is built-in, a standard module or an external module.
> Which makes it much easier to feed google the right clues.
>
> -- 
> mph

Thanks a lot, I'll look that up now. 


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


Re: Where can I find documentation for data[:,9]

2010-03-11 Thread Martin P. Hellwig

On 03/11/10 22:08,  Cal Who wrote:


Thanks, that helped a lot.

I'm having trouble knowing what to search for to find documenatation. For
example, is print a Python command, a numpy command or a java command?

I like to read the documentation even if the command is working for me.


Thanks again


Probably for you the right way would be to familiarize yourself with the 
namespace concept of Python, this makes it easier to identify whether 
something is built-in, a standard module or an external module.

Which makes it much easier to feed google the right clues.

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


Re: Where can I find documentation for data[:,9]

2010-03-11 Thread Cal Who

"Robert Kern"  wrote in message 
news:mailman.631.1268335358.23598.python-l...@python.org...
> On 2010-03-11 13:01 PM,  Cal Who wrote:
>> data = readdata( 'data/input.dat', delimiter = ',' )
>>
>> input = data[:, :9]#nine data columns
>>
>>
>>
>> Where can I find documentation for the
>>
>> data[:,9]
>>
>> in the code above.
>>
>> Been looking and found many examples but would like to know the 
>> definition.
>
> When asking questions like this, it helps *a lot* to provide a complete 
> example, not just a snippet. If I weren't already intimately familiar with 
> the library you are using, I would have no idea how to help you.
>
> However, I do know that input object is a numpy array, and the syntax you 
> are asking about is multidimensional slicing.
>
> http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html
>
>> I need to skip the first column and then read 9
>
> data[:, 1:10]
>
>> I would also like to print the data in ihe variable "input"
>
> print input
>
> -- 
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless 
> enigma
>  that is made terrible by our own mad attempt to interpret it as though it 
> had
>  an underlying truth."
>   -- Umberto Eco
>
Thanks, that helped a lot.

I'm having trouble knowing what to search for to find documenatation. For 
example, is print a Python command, a numpy command or a java command?

I like to read the documentation even if the command is working for me.


Thanks again 


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


Re: Where can I find documentation for data[:,9]

2010-03-11 Thread Robert Kern

On 2010-03-11 13:01 PM,  Cal Who wrote:

data = readdata( 'data/input.dat', delimiter = ',' )

input = data[:, :9]#nine data columns



Where can I find documentation for the

data[:,9]

in the code above.

Been looking and found many examples but would like to know the definition.


When asking questions like this, it helps *a lot* to provide a complete example, 
not just a snippet. If I weren't already intimately familiar with the library 
you are using, I would have no idea how to help you.


However, I do know that input object is a numpy array, and the syntax you are 
asking about is multidimensional slicing.


http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html


I need to skip the first column and then read 9


data[:, 1:10]


I would also like to print the data in ihe variable "input"


print input

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

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


Where can I find documentation for data[:,9]

2010-03-11 Thread Cal Who
data = readdata( 'data/input.dat', delimiter = ',' )

input = data[:, :9]#nine data columns



Where can I find documentation for the

data[:,9]

in the code above.

Been looking and found many examples but would like to know the definition.

I need to skip the first column and then read 9



I would also like to print the data in ihe variable "input"



Thanks


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


where can I find gdkimlib (imlib bindings)?

2008-04-24 Thread Xavier Toth
I'm trying to get some old code that imported GdkImlib to work but I can't
find these a current version of these binding, anyone know where they are?
--
http://mail.python.org/mailman/listinfo/python-list

Re: Where can I find :

2008-04-02 Thread alex23
On Apr 2, 10:08 pm, [EMAIL PROTECTED] wrote:
> On Mar 30, 1:22 am, [EMAIL PROTECTED] wrote:
> > [the usual masturbatory castironpi ramble]
>
> What?

Yeah, that's what pretty much everyone says regarding his posts. Very
very little signal amongst that noise.

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


Re: Where can I find :

2008-04-02 Thread lbonafide
On Mar 30, 1:22 am, [EMAIL PROTECTED] wrote:
>
> That's weird.  I feel like I could go on about an introductory program
> for days and days, la.
>
> I usually start (both times) with interpreted vs. compiled.  It's a
> layer of abstraction.  But it's very weird; the layers can't tell
> either of each other apart.  I can hand you the machine instructions,
> the names of circuitry, that run Line 1 to Line 9 one time, but you
> can't tell the difference between the code and the data.
>
> Some of it lingers in post-perceptive operations: the memory system,
> for the record.  Some lingers long times.  So far it equates to
> different Pythons produce different Pythons, however, though, so I'll
> ask the spell checker.  Python.get_back_in_skin().  Weird.
>
> I'm not sure if it makes any difference.  The binary you run is
> Python.exe.  It's already running, then you feed it a raw string, not
> on disk without loss of generality.  The translation is a little hard
> to find too.
>
> Python :: mingw-c++ :
> Python.exe :: mingw-c++.exe :
> what? :: machine instructions.exe
>
> In Python there's a for-loop that's the exact same as one in machine
> instructions.
>
> 0101 b1= 1000
> 0110 if a < b0 goto b1
> 0111 b2= b2+ 1
>
> accumulates a number in register b2.  You probably want interface and
> graphics primitives.  Sometimes I feel like "with a scroll bar"
> suffices to specify all the detail you need; there's too many
> options.  (I can do this and this and ... scroll bar, please.)  You
> know the episode of Star Trek NG where Barclay takes over the
> Enterprise.
>
> I'd also like to be able to write (write) a series of instructions and
> have it loop, and debug in vivo, as though a BASIC program were
> running and I could edit lines in its doing so, maybe time Windows
> Media visualization codecs in time.  You could tell story lines and
> have it refine, post-inspiration.
>
> You might be surprised how much repetition in instructions Lines 1
> through 9 (of -code-) share, in both sides of the analogy.  Anyone
> work with a VAX?


What?








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


Re: Where can I find :

2008-04-02 Thread lbonafide
On Mar 31, 11:07 am, Laurent Pointal <[EMAIL PROTECTED]>
wrote:

> You may look at "Dive into Python", there is an online version,
> translation in some languages other than english (if needed). It propose
> a line by line explanation on many scripts targetting language and
> libraries usage.
>
> http://www.diveintopython.org/

I second that recommendation and was about to post the link myself.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find :

2008-03-31 Thread Laurent Pointal
Le Sat, 29 Mar 2008 20:15:59 -0700, pythonnubie a écrit :

> Hi  All :
> Does anyone know where I  can find  either a book or a website  that
> explains  beginning  python  by actually  building a  project  line by
> line and explaining  it indepth . I  am primarily interested in
> understading  flowcontrol as well  as syntax .
> 
> If it was related to  netwoprking  then that would be a great addition 
> although not required  because that is my primary field of interest .
> 
> All help greatly appreciated !
> 
> Mark

You may look at "Dive into Python", there is an online version, 
translation in some languages other than english (if needed). It propose 
a line by line explanation on many scripts targetting language and 
libraries usage.

http://www.diveintopython.org/



-- 
Laurent POINTAL - [EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Where can I find :

2008-03-31 Thread Jorgen Grahn
On Sun, 30 Mar 2008 16:41:31 -0700, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On 30 Mar 2008 23:07:02 GMT, Jorgen Grahn <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> 
>> He *might* simply be talking about if, for, while, break and so on --
>> things which control program flow.
>>
>   Which /is/ what I was referring to... with regards to structuring
> the usage of said in a safe&sane manner 

Oh, sorry. I see that now.  I was thinking of flow control as in
communication protocols, preventing a fast sender from flooding a
receiver and so on.

/Jorgen

-- 
  // Jorgen Grahn   R'lyeh wgah'nagl fhtagn!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find :

2008-03-30 Thread Jorgen Grahn
On Sat, 29 Mar 2008 21:19:32 -0700, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sat, 29 Mar 2008 20:15:59 -0700 (PDT), pythonnubie
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>> Hi  All :
>> Does anyone know where I  can find  either a book or a website  that
>> explains  beginning  python  by actually  building a  project  line by
>> line and explaining  it indepth . I  am primarily interested in
>> understading  flowcontrol as well  as syntax .
>>
>   Flow control, if I'm not misinterpreting your usage, is something
> that most common language books will not really cover -- that falls into
> the realms of software engineering...

He *might* simply be talking about if, for, while, break and so on --
things which control program flow.

/Jorgen

-- 
  // Jorgen Grahn   R'lyeh wgah'nagl fhtagn!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find :

2008-03-29 Thread castironpi
On Mar 29, 11:19 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sat, 29 Mar 2008 20:15:59 -0700 (PDT), pythonnubie
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
> > Hi  All :
> > Does anyone know where I  can find  either a book or a website  that
> > explains  beginning  python  by actually  building a  project  line by
> > line and explaining  it indepth . I  am primarily interested in
> > understading  flowcontrol as well  as syntax .
>
>         Flow control, if I'm not misinterpreting your usage, is something
> that most common language books will not really cover -- that falls into
> the realms of software engineering... Or, at the simplest, structured
> design/programming (even if a language is OO, when one gets down to the
> actual logic of methods, one is back into structured programming).
>
>         Syntax is covered in the Python language reference manual, and
> Python has a very simple vocabulary to learn.
>
>         The two are disjoint concepts. Structured design applies to any
> language, one just has to map the constructs of the language (and since
> Python lacks a native GOTO, this becomes even simpler).

That's weird.  I feel like I could go on about an introductory program
for days and days, la.

I usually start (both times) with interpreted vs. compiled.  It's a
layer of abstraction.  But it's very weird; the layers can't tell
either of each other apart.  I can hand you the machine instructions,
the names of circuitry, that run Line 1 to Line 9 one time, but you
can't tell the difference between the code and the data.

Some of it lingers in post-perceptive operations: the memory system,
for the record.  Some lingers long times.  So far it equates to
different Pythons produce different Pythons, however, though, so I'll
ask the spell checker.  Python.get_back_in_skin().  Weird.

I'm not sure if it makes any difference.  The binary you run is
Python.exe.  It's already running, then you feed it a raw string, not
on disk without loss of generality.  The translation is a little hard
to find too.

Python :: mingw-c++ :
Python.exe :: mingw-c++.exe :
what? :: machine instructions.exe

In Python there's a for-loop that's the exact same as one in machine
instructions.

0101 b1= 1000
0110 if a < b0 goto b1
0111 b2= b2+ 1

accumulates a number in register b2.  You probably want interface and
graphics primitives.  Sometimes I feel like "with a scroll bar"
suffices to specify all the detail you need; there's too many
options.  (I can do this and this and ... scroll bar, please.)  You
know the episode of Star Trek NG where Barclay takes over the
Enterprise.

I'd also like to be able to write (write) a series of instructions and
have it loop, and debug in vivo, as though a BASIC program were
running and I could edit lines in its doing so, maybe time Windows
Media visualization codecs in time.  You could tell story lines and
have it refine, post-inspiration.

You might be surprised how much repetition in instructions Lines 1
through 9 (of -code-) share, in both sides of the analogy.  Anyone
work with a VAX?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find :

2008-03-29 Thread Gabriel Genellina
En Sun, 30 Mar 2008 00:15:59 -0300, pythonnubie <[EMAIL PROTECTED]>  
escribió:

> Does anyone know where I  can find  either a book or a website  that
> explains  beginning  python  by actually  building a  project  line by
> line and explaining  it indepth . I  am primarily interested in
> understading  flowcontrol as well  as syntax .

See the section about Learing Python in the wiki:  
http://wiki.python.org/moin/BeginnersGuide

> If it was related to  netwoprking  then that would be a great
> addition  although not required  because that is my primary field of
> interest .

Many books on Python have some chapters on networking, and there are even  
whole books like Python Web Programming by Steve Holden.

-- 
Gabriel Genellina

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


Where can I find :

2008-03-29 Thread pythonnubie
Hi  All :
Does anyone know where I  can find  either a book or a website  that
explains  beginning  python  by actually  building a  project  line by
line and explaining  it indepth . I  am primarily interested in
understading  flowcontrol as well  as syntax .

If it was related to  netwoprking  then that would be a great
addition  although not required  because that is my primary field of
interest .

All help greatly appreciated !

Mark

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


Re: Looking for contract developer(s) - where can I find them?

2007-02-23 Thread John J. Lee
[EMAIL PROTECTED] writes:

> On Feb 21, 9:51 pm, Scott SA <[EMAIL PROTECTED]> wrote:
> >
> > I've just sent a job listing to python.org and posted this message on
> > comp.lang.python,
> 
> Interesting, so Python-list@python.org and comp.lang.python are
> _related_. I guess that means I'm the new guy on the block. Well I
> guess this joke is on me this time ... LOL!

Yes, there's a bidirectional gateway between the two -- post to one
and it shows up on the other.


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


Re: Looking for contract developer(s) - where can I find them?

2007-02-21 Thread rscottco
On Feb 21, 9:51 pm, Scott SA <[EMAIL PROTECTED]> wrote:
>
> I've just sent a job listing to python.org and posted this message on
> comp.lang.python,

Interesting, so Python-list@python.org and comp.lang.python are
_related_. I guess that means I'm the new guy on the block. Well I
guess this joke is on me this time ... LOL!

Sorry for the double-post, I'll do my best to make it the last one.

Cheers,

Scott

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


Looking for contract developer(s) - where can I find them?

2007-02-21 Thread Scott SA
Hi,

I've just sent a job listing to python.org and posted this message on
comp.lang.python, but am also trying to proactively find python developers
through other means. 

python.org and guru.com notwithstanding, most job-sites to seem only support
people/organizations looking for full/part-time employment or with
full-time/part-time positions instead of work-for-hire. I require the latter,
and in the very near future (days). I'm not looking for an employee as I cannot
guarantee long-term work, though much of what is available is fairly consistent
(on the board is a 4-week job, followed by another 6-week one).

If anyone has ideas where I might find talented individuals and small companies
offering (reasonably-priced i.e. not $125/hr like a local firm charges) python
services, I'd be most appreciative.

We are developing and extending a couple of projects previously developed for
clients and replacing a 5-year-old Zope site, all with django, PostgreSQL etc.
The work is immediately available for an experienced, self-motivated python
web-application programmer. 

For those on this list that might be interested, I'm looking for self-motivated
developers with excellent python skills and if possible experience with django
(along with CVS/Subversion, PostgreSQL, SSH, vi/emacs and other open-source
projects & tools). Zope experience would be handy too as one job is to replace
an old site with a spanky-new django one. 

Good communication and organizational skills are important. Documentation &
commenting are also very important along with the ability to work alone and
with others. Meeting deadlines, consistent development pace and accurate
reporting are also key. Finally, having a sense of humor is valuable... as you
might find yourself being called Bruce (especially if your name is Ryan, Shawn
or Mike... as the other guys workin' for me already have those names. Then
again if your name is really Bruce... 8-)

I'd prefer someone from Western Canada (the other half of the country would be
okay too, I guess), but if necessary will consider talented individuals from
North America. Due to time-zone and possible language/communication issues,
off-shore developers are not attractive _at_this_time_ (sorry). 

Please submit a resume or other description of qualifications along with
availability, desired rate and examples of work (i.e. URLs of projects and what
you did on them and/or sample code showing _typical_ style of work).

Thanks for any assitance, greatly appreciated.

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


Looking for contract developer(s) - where can I find them?

2007-02-21 Thread rscottco
Hi,

I've just sent a job listing to python.org, but am also trying to
proactively find python developers through other means.

python.org and guru.com notwithstanding, most job-sites to seem only
support people/organizations looking for full/part-time employment or
with full-time/part-time positions instead of work-for-hire. I require
the latter, and in the very near future (days). I'm not looking for an
employee as I cannot guarantee long-term work, though much of what is
available is fairly consistent (on the board is a 4-week job, followed
by another 6-week one).

If anyone has ideas where I might find talented individuals and small
companies offering (reasonably-priced i.e. not $125/hr like a local
firm charges) python services, I'd be most appreciative.

We are developing and extending a couple of projects previously
developed for clients and replacing a 5-year-old Zope site, all with
django, PostgreSQL etc. The work is immediately available for an
experienced, self-motivated python web-application programmer.

For those on this list that might be interested, I'm looking for self-
motivated developers with excellent python skills and if possible
experience with django (along with CVS/Subversion, PostgreSQL, SSH, vi/
emacs and other open-source projects & tools). Zope experience would
be handy too as one job is to replace an old site with a spanky-new
django one.

Good communication and organizational skills are important.
Documentation & commenting are also very important along with the
ability to work alone and with others. Meeting deadlines, consistent
development pace and accurate reporting are also key. Finally, having
a sense of humor is valuable... as you might find yourself being
called Bruce (especially if your name is Ryan, Shawn or Mike... as the
other guys workin' for me already have those names. Then again if your
name is really Bruce... 8-)

I'd prefer someone from Western Canada (the other half of the country
would be okay too, I guess), but if necessary will consider talented
individuals from North America. Due to time-zone and possible language/
communication issues, off-shore developers are not attractive
_at_this_time_ (sorry).

Please submit a resume or other description of qualifications along
with availability, desired rate and examples of work (i.e. URLs of
projects and what you did on them and/or sample code showing _typical_
style of work).

Scott

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


Re: Where can I find good python code?

2006-10-16 Thread kdart
I think the following is a package with a lot of good code. But then,
I'm biased. ;-)

http://code.google.com/p/pynms/


On Oct 13, 9:08 am, "js " <[EMAIL PROTECTED]> wrote:
>  Hi,
>
> I've learned basics of Python and want to go to the next step.
> So I'm looking for good python examples
> I steal good techniques from.
>
> I found Python distribution itself contains some examples in Demo directory.
> I spent some time to read them and
> I think they're good but seemed not so practical to me.
> 
> Any recommendations?

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


Re: Where can I find good python code?

2006-10-15 Thread vasudevram

Chris Lambacher wrote:
> On Sat, Oct 14, 2006 at 01:08:37AM +0900, js  wrote:
> >  Hi,
> >
> > I've learned basics of Python and want to go to the next step.
> > So I'm looking for good python examples
> > I steal good techniques from.
> >
> > I found Python distribution itself contains some examples in Demo directory.
> > I spent some time to read them and
> > I think they're good but seemed not so practical to me.
> >
> > Any recommendations?
> A large portion of the standard library is pure python and of high
> quality(thats how it made it there in the first place).  The newer a module is
> to the library, the better it will conform to current best practices.
>
> On Unix environments you can find the standard library in
> $PREFIX/lib/python$VERSION/ where $PREFIX is often /usr but sometimes
> /usr/local and version is the version you have installed (maybe 2.4 or 2.5?)
>
> On Windows you can find the standard library in c:\Python%VERSION%\Lib where
> %VERSION% is the version you installed (maybe 24 or 25?)
>
> -Chris

Try reading the code in this package:
http://sourceforge.net/projects/xtopdf
Not very idiomatic or Pythonic code (done when I was still fairly new
to Python), but clear, well-commented - IMO, of course.
Also it is a real-world, though small, app, with both end-user tools
and a developer API.
So you can play around with using and extending it, etc. - and its easy
to understand too.
Might help motivate the learning if you try to build something useful
with it :-)

HTH
Vasudev Ram
~~
Software training and consulting
Dancing Bison Enterprises
http://www.dancingbison.com
~~

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


Re: Where can I find good python code?

2006-10-13 Thread Chris Lambacher
On Sat, Oct 14, 2006 at 01:08:37AM +0900, js  wrote:
>  Hi,
> 
> I've learned basics of Python and want to go to the next step.
> So I'm looking for good python examples
> I steal good techniques from.
> 
> I found Python distribution itself contains some examples in Demo directory.
> I spent some time to read them and
> I think they're good but seemed not so practical to me.
> 
> Any recommendations?
A large portion of the standard library is pure python and of high
quality(thats how it made it there in the first place).  The newer a module is
to the library, the better it will conform to current best practices.

On Unix environments you can find the standard library in
$PREFIX/lib/python$VERSION/ where $PREFIX is often /usr but sometimes
/usr/local and version is the version you have installed (maybe 2.4 or 2.5?)

On Windows you can find the standard library in c:\Python%VERSION%\Lib where
%VERSION% is the version you installed (maybe 24 or 25?)

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


Re: Where can I find good python code?

2006-10-13 Thread [EMAIL PROTECTED]
js  wrote:
> Hi,
>
> I've learned basics of Python and want to go to the next step.
> So I'm looking for good python examples
> I steal good techniques from.
> Any recommendations?

The cookbook, dead-tree version reccomended, otherwise try here:
http://aspn.activestate.com/ASPN/Cookbook/Python/

Lorenzo

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


Re: Where can I find good python code?

2006-10-13 Thread hg
js wrote:
> Hi,
> 
> I've learned basics of Python and want to go to the next step.
> So I'm looking for good python examples
> I steal good techniques from.
> 
> I found Python distribution itself contains some examples in Demo
> directory.
> I spent some time to read them and
> I think they're good but seemed not so practical to me.
> 
> Any recommendations?

Sure, there are tons of pure-Python modules out there.

hg

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


Where can I find good python code?

2006-10-13 Thread js
 Hi,

I've learned basics of Python and want to go to the next step.
So I'm looking for good python examples
I steal good techniques from.

I found Python distribution itself contains some examples in Demo directory.
I spent some time to read them and
I think they're good but seemed not so practical to me.

Any recommendations?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: where can I find Python acceptance test suite?

2006-08-07 Thread The Eternal Squire
Thanks.

Terry Reedy wrote:
> "The Eternal Squire" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I've been doing some hacking of the Python engine, and I've been
> > looking for
> > where the comprehensive regression tests are kept so that I can
> > determine
> > where I've broken part of the engine.
> 
> ...python2x/Lib/test

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


Re: where can I find Python acceptance test suite?

2006-08-06 Thread Terry Reedy

"The Eternal Squire" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> I've been doing some hacking of the Python engine, and I've been
> looking for
> where the comprehensive regression tests are kept so that I can
> determine
> where I've broken part of the engine.

...python2x/Lib/test 



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


where can I find Python acceptance test suite?

2006-08-06 Thread The Eternal Squire
All,

I've been doing some hacking of the Python engine, and I've been
looking for
where the comprehensive regression tests are kept so that I can
determine
where I've broken part of the engine.

Thanks in advance,

The Eternal Squire

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


Re: sockets, where can I find documentation?

2006-03-03 Thread John Pote
Thanks everyone for such a quick response.
Brilliant!

John Pote

"John Pote" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi all,
>
> I want to use python on a server to access incoming TCP port accesses. So 
> I need to use the socket interface which is new to me. To quote the Py 
> Library Reference "7.2 socket -- Low-level networking interface":-
>
> For an introduction to socket programming (in C), see the following 
> papers: An Introductory 4.3BSD Interprocess Communication Tutorial, by 
> Stuart Sechrest and An Advanced 4.3BSD Interprocess Communication 
> Tutorial, by Samuel J. Leffler et al, both in the Unix Programmer's 
> Manual, Supplementary Documents 1 (sections PS1:7 and PS1:8). The 
> platform-specific reference material for the various socket-related system 
> calls are also a valuable source of information on the details of socket 
> semantics. For Unix, refer to the manual pages; for Windows, see the 
> WinSock (or Winsock 2) specification. For IPv6-ready APIs, readers may 
> want to refer to RFC 2553 titled Basic Socket Interface Extensions for 
> IPv6.
>
> Where can I get the various papers mentioned in the manual? And as I like 
> books sitting on the shelf can someone recommend a book on sockets.
>
> many thanks,
>
> John Pote
> 


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


Re: sockets, where can I find documentation?

2006-03-03 Thread Rene Pijlman
John Pote:
>I want to use python on a server to access incoming TCP port accesses. So I 
>need to use the socket interface which is new to me. 

You may also want to look at Twisted:
http://twistedmatrix.com/trac/

>Where can I get the various papers mentioned in the manual? And as I like 
>books sitting on the shelf can someone recommend a book on sockets.

Stevens++

-- 
René Pijlman
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: sockets, where can I find documentation?

2006-03-03 Thread utabintarbo
For a good general book on networking with python, try Foundations of
Python Network Programming by John Goerzen.
http://www.amazon.com/gp/product/1590593715/qid=1141390241/sr=1-9/ref=sr_1_9/104-7194399-1227965?s=books&v=glance&n=283155

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


Re: sockets, where can I find documentation?

2006-03-03 Thread Mc Osten
On Fri, 03 Mar 2006 11:41:05 GMT, John Pote wrote:

> Where can I get the various papers mentioned in the manual? And as I like 
> books sitting on the shelf can someone recommend a book on sockets.

Unix Network Programming by Stevens

-- 
USB Priests for only 10$
-- 
http://mail.python.org/mailman/listinfo/python-list


sockets, where can I find documentation?

2006-03-03 Thread John Pote
Hi all,

I want to use python on a server to access incoming TCP port accesses. So I 
need to use the socket interface which is new to me. To quote the Py Library 
Reference "7.2 socket -- Low-level networking interface":-

For an introduction to socket programming (in C), see the following papers: 
An Introductory 4.3BSD Interprocess Communication Tutorial, by Stuart 
Sechrest and An Advanced 4.3BSD Interprocess Communication Tutorial, by 
Samuel J. Leffler et al, both in the Unix Programmer's Manual, Supplementary 
Documents 1 (sections PS1:7 and PS1:8). The platform-specific reference 
material for the various socket-related system calls are also a valuable 
source of information on the details of socket semantics. For Unix, refer to 
the manual pages; for Windows, see the WinSock (or Winsock 2) specification. 
For IPv6-ready APIs, readers may want to refer to RFC 2553 titled Basic 
Socket Interface Extensions for IPv6.

Where can I get the various papers mentioned in the manual? And as I like 
books sitting on the shelf can someone recommend a book on sockets.

many thanks,

John Pote 


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


Re: Where can I find string.translate source?

2005-11-20 Thread bobueland
Thanks Mike and Fredrik. In my Python installation there is no
directory called Objects.

I use Windows and I downloaded Python from
http://www.python.org/download/

As I looked closer I saw that the link
# Python 2.4.2 Windows installer (Windows binary -- does not
include source)

which clearly says that it doesn't include source. So in order to see
the source I had to download
# Python 2.4.2 source (for Unix or OS X compile)

And in that download there is a directory called Objects and there is
file called
stringobjects.c
where one can find the implementation of translate.

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


Re: Where can I find string.translate source?

2005-11-20 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote:

> The module string has a function called translate. I tried to find the
> source code for that function.  In:
>
> C:\Python24\Lib
>
> there is one file called
>
> string.py
>
> I open it and it says
>
> """A collection of string operations (most are no longer used).
> Warning: most of the code you see here isn't normally used nowadays.
> Beginning with Python 1.6, many of these functions are implemented as
> methods on the standard string object. They used to be implemented by
> a built-in module called strop, but strop is now obsolete itself."""
>
> Inside the file string.py I couldn't find the source code for
> translate.  Where could it be?

in the string.py module, of course.

if you read that comment again, you'll notice that it says

many of these functions are implemented as methods on the
standard string object

and if you search for translate in string.py, you'll also find the source
code for the translate function

# Character translation through look-up table.
def translate(s, table, deletions=""):
/... docstring snipped .../
if deletions:
return s.translate(table, deletions)
else:
# Add s[:0] so that if s is Unicode and table is an 8-bit string,
# table is converted to Unicode.  This means that table *cannot*
# be a dictionary -- for that feature, use u.translate() directly.
return s.translate(table + s[:0])

which calls the translate method to do the work, just as the comment
said.

to find the method implementation, you have to look at the string object
implementation.  it's in the Objects directory in the source distribution.





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


Re: Where can I find string.translate source?

2005-11-20 Thread Mike Meyer
[EMAIL PROTECTED] writes:
> Inside the file string.py I couldn't find the source code for
> translate. Where could it be?

Object/stringmodule.c in the python source distribution.

  http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
-- 
http://mail.python.org/mailman/listinfo/python-list


Where can I find string.translate source?

2005-11-19 Thread bobueland
The module string has a function called translate. I tried to find the
source code for that function.  In:

C:\Python24\Lib

there is one file called

string.py

I open it and it says

"""A collection of string operations (most are no longer used).
Warning: most of the code you see here isn't normally used nowadays.
Beginning with Python 1.6, many of these functions are implemented as
methods on the standard string object. They used to be implemented by
a built-in module called strop, but strop is now obsolete itself."""

Inside the file string.py I couldn't find the source code for
translate. Where could it be?

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


Re: Where can I find an example that uses FTP standard library?

2005-11-15 Thread cosmo

QuadriKev wrote:
>I would like to see examples of programs written.

http://python.codefetch.com lets you search published books for Python
example source code.

> I am also interested in using Telnet to check services and things on
> the Linux server.

a search for "telnet" on codefetch brought up this nice example source
code:

http://www.codefetch.com/cache?url=http://examples.oreilly.com/pythoncook2/cb2_examples.zip&path=cb2_examples/cb2_15_9_sol_1.py&lang=python&qy=telnet

from the book _Python Cookbook_

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


Re: Where can I find an example that uses FTP standard library?

2005-11-15 Thread Larry Bates
Pick up a copy of the Python Cookbook, it is full of examples.

You also might want to check out this site:

http://aspn.activestate.com/ASPN/Cookbook/Python

It contains 100's of code samples that might help.

The archives of this list are also a good place to look.
Google is also your friend.  I entered python ftplib example
and turned up several examples like:

http://postneo.com/stories/2003/01/01/beyondTheBasicPythonFtplibExample.html

-Larry Bates

QuadriKev wrote:
> I am fairly new to programming in Python.  There are a number of cases
> where I would like to see examples of programs written.  I like to
> write them on Windows and in some cases put them on my Linux server to
> do something useful.
> 
> I am also interested in using Telnet to check services and things on
> the Linux server.  Can someone give me direction on the best place for
> examples?  Full example of something written with GTK or wxPython would
> be very interesting also.
> 
> TIA
> 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find an example that uses FTP standard library?

2005-11-14 Thread Grig Gheorghiu
I have some code that looks something like this:

from ftplib import FTP

ftp = FTP()
# connect and login
ftp.connect(server_name)
ftp.login(user_name, password)
cmd = "STOR %s" % filename
#"ASCII transfer"
l = open(filename)
ftp.storlines(cmd, l)
#"BIN transfer"
l = open(filename, 'rb')
ftp.storbinary(cmd, l)
# close connection
ftp.close()

All the various methods on the ftp object should be called in
try/except blocks, since they can potentially raise exceptions.

Grig

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


Where can I find an example that uses FTP standard library?

2005-11-14 Thread QuadriKev
I am fairly new to programming in Python.  There are a number of cases
where I would like to see examples of programs written.  I like to
write them on Windows and in some cases put them on my Linux server to
do something useful.

I am also interested in using Telnet to check services and things on
the Linux server.  Can someone give me direction on the best place for
examples?  Full example of something written with GTK or wxPython would
be very interesting also.

TIA

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


Re: import __main__ where can i find a module called "__main__.py"?

2005-08-21 Thread John Machin
wen wrote:
> and, in which case, the following case will happen:
> if __name__!='__main__':
> do_sth()
> 
> any help would be appreciated.
> 
> 
Sorry, but your question is rather difficult to interpret.

For a start, you don't need/want to import __main__.

On import, __name__ is set to the name of the module. When a source file 
is run as a script, there is no module, so  __name__ is set to the dummy 
value "__main__". The module __main__ doesn't exist, and its source file 
__main__.py doesn't exist either (this side of the looking-glass).

Below is a minimal example of the behaviour of __name__.

C:\junk>type wenmain.py
print "__name__:", __name__

C:\junk>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import wenmain
__name__: wenmain
 >>> ^Z

C:\junk>python wenmain.py
__name__: __main__

Hope this helps,
John
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: import __main__ where can i find a module called "__main__.py"?

2005-08-21 Thread gene tani
http://www.python.org/doc/faq/programming.html#how-do-i-find-the-current-module-name

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


import __main__ where can i find a module called "__main__.py"?

2005-08-21 Thread wen
and, in which case, the following case will happen:
if __name__!='__main__':
do_sth()

any help would be appreciated.


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


Re: where can i find pylibpcap module for win32?

2005-05-30 Thread ionel
i've compiled a pcapy
http://lenoi.3x.ro/
works fine ( using it :) )

On 5/30/05, jerky <[EMAIL PROTECTED]> wrote:
> thanks for your any imformation.
> 
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 


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


where can i find pylibpcap module for win32?

2005-05-30 Thread jerky
thanks for your any imformation.


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


Re: Where can I find sample "beginner" programs to study?

2005-01-31 Thread Franz Steinhaeusler
On Fri, 28 Jan 2005 21:41:05 +0100, moma <[EMAIL PROTECTED]> wrote:

>Eggs are here. Bring some bacon.
>http://www.python-eggs.org/links.html

Hi,

interesting site, but who is maintaining this
page. I'd like to add some new links.
-- 
Franz Steinhaeusler
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread Marc Poulin
Todd_Calhoun wrote:

> I'm trying to learn Python (and programming), and I'm wondering if there
> are any places where I can find small, simple programs to study.
> 
> Thanks.

Look at
http://www.livewires.org.uk/python/

Good projects and tutorials for beginners.

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


Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread Todd_Calhoun
Thanks for the great links.  The cookbook page has some smaller stuff that 
looks great.


"JanC" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Todd_Calhoun schreef:
>
>> I'm trying to learn Python (and programming), and I'm wondering if
>> there are any places where I can find small, simple programs to study.
>
> Try:
> 
> 
>
> -- 
> JanC
>
> "Be strict when sending and tolerant when receiving."
> RFC 1958 - Architectural Principles of the Internet - section 3.9 


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


Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread JanC
Todd_Calhoun schreef:

> I'm trying to learn Python (and programming), and I'm wondering if
> there are any places where I can find small, simple programs to study.

Try:



-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread moma
Todd_Calhoun wrote:
I'm trying to learn Python (and programming), and I'm wondering if there are 
any places where I can find small, simple programs to study.

Thanks. 

Hello,
http://www.python.org  (docs -> tutorial)
http://www.python.org/doc/ !
http://www.diveintopython.org
http://www.byteofpython.info
Eggs are here. Bring some bacon.
http://www.python-eggs.org/links.html

Cross platform GUI-programs:
http://www.wxPython.org
Widgets documentation: http://www.wxPython.org

IDEs (programmers Python editors, if you want one):
Eric
http://www.die-offenbachs.de/detlev/eric3.html
Dr.Python
http://drpython.sourceforge.net/
?
// moma
   http://www.futuredesktop.org/OpenOffice.html
   http://www.futuredesktop.org/hpc_linux.html
--
http://mail.python.org/mailman/listinfo/python-list


Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread wes weston
Todd_Calhoun wrote:
I'm trying to learn Python (and programming), and I'm wondering if there are 
any places where I can find small, simple programs to study.

Thanks. 


Todd,
   Have you been here:
http://www.python.org/doc/
and tried the tutorial or beginners guide?
The tutorial has all the pieces you use most
often.
wes
--
http://mail.python.org/mailman/listinfo/python-list


Where can I find sample "beginner" programs to study?

2005-01-28 Thread Todd_Calhoun
I'm trying to learn Python (and programming), and I'm wondering if there are 
any places where I can find small, simple programs to study.

Thanks. 


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


Re: Where can I find Mk4py.dll for python24 ?

2005-01-26 Thread Erik Johnson
I don't know what metakit or the file you are looking for is, but a
simple search on google turns up the following article where a guy built it
for Python 2.2 and was willing to mail that to people. Try contacting him:

http://www.equi4.com/pipermail/metakit/2002-March/000560.html

HTH,
-ej


"Jose Rivera" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I installed the new release and I have not been able to make work metakit.
>
> Please give me some help to enjoy metakit and python 24.
>
> Thanks


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


Re: Where can I find Mk4py.dll for python24 ?

2005-01-25 Thread Steven Bethard
Jose Rivera wrote:
I installed the new release and I have not been able to make work metakit.
Please give me some help to enjoy metakit and python 24.
Repeating your request every 10 minutes is not likely to get you help 
quicker.  On the contrary, it's more likely to make people ignore your 
threads.  Wait patiently, and if someone knows the answer to your 
question, it's quite likely that they'll answer it.

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


Where can I find Mk4py.dll for python24 ?

2005-01-25 Thread Jose Rivera
I installed the new release and I have not been able to make work metakit.

Please give me some help to enjoy metakit and python 24.

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


Where can I find Mk4py.dll for Python24?

2005-01-25 Thread Jose Rivera
Hi

I changed for python24 and the only thing missed is metakit for python24.

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