Re: Bad comment on Enigmatic Code

2014-09-10 Thread blindanagram
On 10/09/2014 07:05, Steven D'Aprano wrote:
> blindanagram wrote:
> 
>> Hi Jim,
>>
>> When you get a moment, can you please remove the wrongly formatted
>> Python comment I made on your site?
>>
>> Thanks
>>
>> Brian
> 
> Who is Jim, and what comment are you talking about?
> 
> Perhaps you have sent this message to the wrong address?
> 
My apologies for this unintended message to this newsgroup.

  Brian


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


Python 3.3.2 help

2014-09-10 Thread D Moorcroft

> Hi,
> 
> We are running Python 3.3.2 but pupils are unable to print as they
> cannot use the command prompt.
> 
> An error comes up saying printing failed (exit status Oxff).
> 
> Is there any way that we can get users who can't see the command
> prompt to be able to print?
> 
> Thank you,
> 
> David Moorcroft ICT Operations Manager & Website Manager Turves Green
> Girls' School
> 
> 
> 
> * This
> email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are
> addressed. If you have received this email in error please notify
> [email protected]
> 
> The views expressed within this email are those of the individual,
> and not necessarily those of the organisation 
> *
> 



*
This message has been checked for viruses by the
Birmingham Grid for Learning.  For guidance on good
e-mail practice, e-mail viruses and hoaxes please visit:
http://www.bgfl.org/emailaup
*



*
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this email 
in error please notify [email protected]

The views expressed within this email are those of the 
individual, and not necessarily those of the organisation
*
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3.3.2 help

2014-09-10 Thread Steven D'Aprano
Hello,

My response is below, interleaved with your comments.

D Moorcroft wrote:

>> Hi,
>> 
>> We are running Python 3.3.2 but pupils are unable to print as they
>> cannot use the command prompt.

What operating system are you using? Windows, Linux, Mac? Something else?

Is it ALL pupils who are unable to print or just some of them?

Which command prompt are they using? Can you reproduce the failure to print?
If so, please tell us the detailed steps you (and the pupils) go through.
E.g. something like this:

"On Windows XP, choose Run from the Start Menu. Type cmd.exe and press
Enter. When the terminal window opens, type print 'Hello World' and Enter."

It will help if you can tell us whether your pupils are using IDLE, IPython,
or the default Python interactive interpreter.

If you can answer these questions, which should have a better chance of
diagnosing the problem.

Further responses below.


>> An error comes up saying printing failed (exit status Oxff).

Based on this, my guess is that your students are accidentally running the
DOS "print" command at the DOS prompt, not Python at all. Perhaps they are
forgetting to run the "python" command first to launch the Python
interpreter, and are running directly in the DOS prompt?

You can check this by reading the command prompt. If it looks like three
greater-than signs >>> then you are running in Python's default
interpreter. If it looks something like this:

C:\Documents and Settings\user\>

or perhaps like this:

C:\>

then you are still inside the DOS command prompt.

Unfortunately, I am not very experienced with Windows, so I cannot tell you
the right method to start Python. I would expect there to be a Start menu
command, perhaps called "IDLE", or "Python", but I'm not sure.


>> Is there any way that we can get users who can't see the command
>> prompt to be able to print?

I'm not entirely sure I understand this question. Can you explain in more
detail?

By the way, as you know there are two meanings of "print" in computing.
There is printing to the screen, and printing to sheets of paper with an
actual printer. Which are you intending?


Regards,



-- 
Steven

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


Why Python has moved to a multilingual Unicode model

2014-09-10 Thread Steven D'Aprano
Many Python 2 users (mostly English speakers, but also a few Europeans) are
frustrated with the move of Python 3 to Unicode strings instead of ASCII
strings.

One of the core Python developers, Nick Coghlan of Red Hat, has written an
article for the Red Hat Developer Blog explaining why the core devs have
made that major paradigm shift of text-as-ASCII-plus-bytes to
text-as-Unicode:


http://developerblog.redhat.com/2014/09/09/transition-to-multilingual-programming-python/


-- 
Steven

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


ANN: python-ldap 2.4.16

2014-09-10 Thread Michael Ströder
Find a new release of python-ldap:

  http://pypi.python.org/pypi/python-ldap/2.4.16

python-ldap provides an object-oriented API to access LDAP directory
servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for
that purpose. Additionally it contains modules for other LDAP-related
stuff (e.g. processing LDIF, LDAP URLs and LDAPv3 schema).

Project's web site:

  http://www.python-ldap.org/

Ciao, Michael.


Released 2.4.16 2014-09-10

Changes since 2.4.15:

Lib/
* New convenience function ldap.dn.is_dn()
* New convenience function ldap.escape_str()
* New convenience methods LDAPObject.read_s() and
  LDAPObject.find_unique_entry()
* Fixed invoking start_tls_s() in ReconnectLDAPObject.reconnect()
  (thanks to Philipp Hahn)

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


streaming dynamically appended music tracks

2014-09-10 Thread Mike Kilmer
Hi Python list admins,

I didn't see a page on etiquette at the info page, so inquiring of you:

Is the Python list an appropriate place to seek a mentor for hire?

I'm new to Python and have been working with Echonest's Remix "music 
synthesizer" package.

I may be out of my league with the large amount of data required by the Numpy 
arrays, which will require some combination of streaming, threading, lazy 
loading, etc. I've found some promising leads in ForeverFM, but my background 
in php (css, html, etc) does not include extensive or advanced programming.

Thanks and peace.

Michael Kilmer
Media Zoo 
Music, Theater, Multimedia and Web Development
[email protected]
201-679-4168
http://www.mZoo.org
www.madhappy.com
www.explorepensacolahistory.com














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


Poszukiwany Programista Python - Warszawa / Gdańsk / Kraków

2014-09-10 Thread magda . brylska
Witam, 

Aktulanie prowadzę kilka bardzo ciekawych projektów rekrutacyjnych, w związku z 
czym poszukuję kilkunastu developerów Python, chcących pracować w Warszawie, 
Krakowie bądź Gdańsku. 

Jeśli masz minimum 3 letnie doświaczenie w programowaniu w języku Python
LUB doświadczenie w programowaniu w innym języku (np. PHP, Ruby, C#, Java) i 
chesz się przekwalifikować na programistę Python to zachęcam do wysłania CV na 
adres [email protected] 

Oferujemy współpracę w oparciu o dowolną formę współpracy. 
Umowa o pracę: od 10.000 brutto do 15.000 brutto
B2B: od 10.000 netto do 15.000 netto +vat

Dla najlepszych możliwość negocjacji stawek Uśmiech

Zainteresowane osoby zapraszam do kontaktu ([email protected] lub 797 021 
610), z chęcią odpowiem na wszelkie pytania o widełki, stanowisko oraz samego 
klienta :)

Pozdrawiam, 
Magdalena Brylska
IT/Telco Recruitment Consultant 
Devonshire Sp. z o.o.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: streaming dynamically appended music tracks

2014-09-10 Thread Chris Angelico
On Wed, Sep 10, 2014 at 11:24 PM, Mike Kilmer  wrote:
> I didn't see a page on etiquette at the info page, so inquiring of you:
>
> Is the Python list an appropriate place to seek a mentor for hire?

An interesting question. Normally I'd point you to the Python Job
Board, but I believe it's down at the moment.

I'm really not sure what the best place to post this sort of thing is.
You could try http://careers.stackoverflow.com/ but I've never used it
and can't advise either way.

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


testfixtures 4.0.2 Released!

2014-09-10 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.0.2. This is a 
bugfix release that fixes the following:


- Fix "maximum recursion depth exceeded" when comparing a string with
  bytes that did not contain the same character.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


Re: Why Python has moved to a multilingual Unicode model (OT)

2014-09-10 Thread mm0fmf

On 10/09/2014 14:27, [email protected] wrote:

A "multilingual Unicode model" has not too much sense.


You are Pavlov's Dog AICMFP

;-)

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


Re: O'Reilly Python Certification

2014-09-10 Thread mjkantowski
I just completed all four modules and Kirby was my instructor.  I really 
enjoyed the class and got a lot out of it.  I am not a developer, so common 
concepts like objects were new to me, whereas standard data structures like 
lists, dicts, etc. were already known.  It definitely allowed me to increase my 
overall understanding of common programming concepts while I learned the 
pythonic way to implement them.

I recommend the class.  It's a bit pricey, so best if your employer can foot 
the bill.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Why Python has moved to a multilingual Unicode model (OT)

2014-09-10 Thread Terry Reedy

On 9/10/2014 1:57 PM, mm0fmf wrote:

On 10/09/2014 14:27, [email protected] wrote:

[quoted trollpost deleted]


By quoting spam and trolls, you become a spam/troll distributor 
yourself, and thrust same before people who missed (or blocked) the 
original.  Please don't do this. Best to completely ignore such.



[insulting response deleted]


Insults are also not wanted.  They have more of a negative effect on 
bystanders than the intended target.  Again, you are aiding the troll 
poster you purport to oppose.


Our intention is for python-list to be a polite, mutually respectful 
discussion for discussion of Python and how to use it well.


--
Terry Jan Reedy, python-list moderator

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


recursive closure

2014-09-10 Thread Li Tianqing
Hello,
Can someone explain me why gc(CPython) can not collect recursive closure's 
cycle reference?  There is no __del__ there, why gc can not collect?
After many times gc collect, i also see objects like below in gc.garbage. 
So i ask why gc can not collect them? 
Thanks a  lot.


(, ), , , [1], , 
(, ), , , [1], , 
(, ), , , [1], , 
(, ), , , [1], , 
(, ), , , [1], , 
(, ), , , [1], , 
(, ), ,




The test program is below.
#!/usr/bin/env python


import ipdb
import gc


gc.set_debug(gc.DEBUG_LEAK)


def A():
N = [1]
def aa(n):
if n in N:
return 1
else:
return n * aa(n-1)


x = 33 + aa(10)
#ipdb.set_trace()
print x 




if __name__ == '__main__':
while xrange(1000):
A()


--

Best
Li Tianqing-- 
https://mail.python.org/mailman/listinfo/python-list


Enterprise Data Warehouse Business Analyst in Banking domain Required for Qatar

2014-09-10 Thread vinirma2008
VAM SYSTEMS is a Business Consulting, IT Technology Solutions and Services 
company with operations in UAE, Qatar, Bahrain, USA, Australia, Singapore 
&India.

VAM SYSTEMS is currently looking for Enterprise Data Warehouse Business Analyst 
for our Qatar operations with the following skill set and terms and conditions:

Skill Set required:

*   3-8 years in data warehousing environment 
*   Should have experience in Business Analyst.
*   Banking experience is mandatory. 
*   Knowledge of the design and implementation of the data warehouse life 
cycle
*   Experience in ETL design and Implementation
*   Good knowledge of data quality and data analysis
*   Exposed to IBM datastage tool
*   Used Data Modeller tool
*   Exposed to Oracle, MS SQL, ERWIN
*   Exposed to BI tools (Cognos BI 8.4 or 10.2)
Tasks
*   Design or Works with IBM data modeler representative on developing the 
Banking Data warehouse System of Record (SoR) and Data Marts (Analysis area).
*   Analyzes operational source systems, business processes, data files and 
data files structure to determine source systems and source files to be 
extracted and map accordingly source to target
*   Analyzes data gaps and impact on deliverables
*   Team player
*   Excellent communication skills
*   Handle all the documentation related to EDW from mapping to design 
documents.
Responsibility:
*   Issues and assess Risk, Error and Change requests in respective Forms
*   Develops deliverables; Business requirements documents, Mapping 
documents, business transformations rules documents, Data mart dimensions and 
facts, Reports dimensions and measures matrixes documents
*   Develops test strategy, plan, and test phases

Domain: Bank
Terms and conditions: 

Joining time frame: 2 weeks (maximum 1 month).

The selected candidates shall join VAM SYSTEMS - Qatar and shall be deputed to 
one of the leading Banks in Qatar.

Should you be interested in this opportunity, please send your latest resume in 
MS Word format at the earliest at [email protected] or call us +91 
476 2681150.







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


Re: recursive closure

2014-09-10 Thread Ian Kelly
On Wed, Sep 10, 2014 at 10:00 PM, Li Tianqing  wrote:
> gc.set_debug(gc.DEBUG_LEAK)

The DEBUG_LEAK flag implies the DEBUG_SAVEALL flag, which causes all
unreachable objects to be appended to gc.garbage rather than freed.

https://docs.python.org/3/library/gc.html#gc.DEBUG_SAVEALL

Try not setting the flag, and I think you will find that gc.garbage no
longer accumulates.
-- 
https://mail.python.org/mailman/listinfo/python-list